Function at 0x405f70
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4126cd
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x419014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push 1
push 0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x4061f1
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.00410820
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x24], vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
mov dword [ebp - 0x20], eax
lea eax, [ebx + 8]
nop
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call main
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.0040fbe0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.0040fbe0
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x1000
push 0x1000
push 0xff
push 0xe
push 0x40000003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeA]
mov byte [ebp - 4], 2
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x54], 0
test eax, eax
je 0x4060a4
push eax
call fcn.00410db3
mov eax, dword [ebp - 0x54]
add esp, 4
test eax, eax
je 0x4060a4
push 2
push eax
call main
add esp, 8
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x4060cd
push eax
call fcn.00410db3
mov eax, dword [ebp - 0x5c]
add esp, 4
test eax, eax
je 0x4060cd
push 1
push eax
call main
add esp, 8
cmp dword [ebx + 0x3c], 0xffffffff
je 0x4061bc
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x18
mov ecx, esp
push 0
push 0xffffffffffffffff
push 0x414a34
call fcn.0040f12e
lea ecx, [ebx + 0x20]
call fcn.00410448
lea eax, [ebp - 0x48]
push eax
push dword [ebx + 0x3c]
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
call dword [sym.imp.kernel32.dll_GetLastError]
push dword [ebp - 0x1c]
mov edi, eax
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenProcess]
mov dword [ebx + 0x38], eax
mov dword [ebp - 0x14], eax
cmp edi, 0x217
je 0x406226
cmp edi, 0x3e5
jne 0x40623d
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x40615d
sub eax, 1
jne 0x40617d
mov eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x406180
mov eax, dword [ebx]
push dword [ebx + 4]
push dword [ebx + 0x3c]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x414234]
mov ecx, ebx
call edi
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_ResetEvent]
mov eax, dword [ebp - 0x4c]
test eax, eax
lea eax, [ebx + 8]
je 0x406000
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x406199
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410d40
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x64]
call fcn.0040f12e
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x88]
call main
push 0x417248
lea eax, [ebp - 0x88]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x64]
call fcn.0040f12e
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x88]
call main
push 0x417248
lea eax, [ebp - 0x88]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov eax, dword [ebx]
push dword [ebx + 4]
push dword [ebx + 0x3c]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x414234]
mov ecx, ebx
call esi
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x64]
call fcn.0040f12e
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x88]
call main
push 0x417248
lea eax, [ebp - 0x88]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3