Function at 0x405710
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411c68
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x418014]
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 0x405985
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.0040fd30
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 fcn.0040eb37
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.0040f0b8
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.0040f0b8
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 ecx, dword [ebp - 0x54]
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebp - 0x54], eax
test ecx, ecx
je 0x405833
push ecx
call fcn.00410323
mov eax, dword [ebp - 0x54]
add esp, 4
push 2
push eax
call fcn.004102f1
mov ecx, dword [ebp - 0x5c]
xor eax, eax
add esp, 8
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x405856
push ecx
call fcn.00410323
mov eax, dword [ebp - 0x5c]
add esp, 4
push 1
push eax
call fcn.004102f1
add esp, 8
cmp dword [ebx + 0x3c], 0xffffffff
je 0x405950
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x18
mov ecx, esp
push 0
push 0xffffffffffffffff
push 0x413a10
call fcn.0040e628
lea ecx, [ebx + 0x20]
call fcn.0040f94c
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 0x4059ba
cmp edi, 0x3e5
jne 0x4059d1
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x4058f1
sub eax, 1
jne 0x405911
mov eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x405914
mov eax, dword [ebx]
push dword [ebx + 4]
push dword [ebx + 0x3c]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x413248]
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 0x4057a0
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x40592d
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.004102b0
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x64]
call fcn.0040e628
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x88]
call fcn.00404600
push 0x416248
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.0040e628
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x88]
call fcn.00404600
push 0x416248
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 [0x413248]
mov ecx, ebx
call esi
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x64]
call fcn.0040e628
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x88]
call fcn.00404600
push 0x416248
lea eax, [ebp - 0x88]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3