Function at 0x4056d0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411c28
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 0x405945
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.0040fcf0
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.0040eaf7
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.0040f078
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call fcn.0040f078
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 0x4057f3
push ecx
call fcn.004102e3
mov eax, dword [ebp - 0x54]
add esp, 4
push 2
push eax
call fcn.004102b1
mov ecx, dword [ebp - 0x5c]
xor eax, eax
add esp, 8
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x405816
push ecx
call fcn.004102e3
mov eax, dword [ebp - 0x5c]
add esp, 4
push 1
push eax
call fcn.004102b1
add esp, 8
cmp dword [ebx + 0x3c], 0xffffffff
je 0x405910
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x18
mov ecx, esp
push 0
push 0xffffffffffffffff
push 0x413a10
call fcn.0040e5e8
lea ecx, [ebx + 0x20]
call fcn.0040f90c
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 0x40597a
cmp edi, 0x3e5
jne 0x405991
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x4058b1
sub eax, 1
jne 0x4058d1
mov eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x4058d4
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 0x405760
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4058ed
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.00410270
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x64]
call fcn.0040e5e8
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x88]
call fcn.004045c0
push 0x416240
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.0040e5e8
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x88]
call fcn.004045c0
push 0x416240
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.0040e5e8
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x88]
call fcn.004045c0
push 0x416240
lea eax, [ebp - 0x88]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3