Function at 0x406130
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412b4d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x419040]
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
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 0x406399
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x24], xmm0
call fcn.00410d20
add esp, 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x24], vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
mov dword [ebp - 0x20], eax
lea eax, [ebx + 8]
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
mov dword [ebp - 0x4c], 0
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 4
call fcn.0040fbc4
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 5
call fcn.00410147
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.00410147
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 - 0x50]
mov dword [ebp - 0x50], 0
test eax, eax
je 0x40625b
push eax
call fcn.004112b3
mov eax, dword [ebp - 0x50]
add esp, 4
test eax, eax
je 0x40625b
push 2
push eax
call fcn.0041127e
add esp, 8
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x58], 0
test eax, eax
je 0x406284
push eax
call fcn.004112b3
mov eax, dword [ebp - 0x58]
add esp, 4
test eax, eax
je 0x406284
push 1
push eax
call fcn.0041127e
add esp, 8
cmp dword [ebx + 0x3c], 0xffffffff
je 0x406364
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x18
mov ecx, esp
push 0
push 0xffffffffffffffff
push 0x4149a0
call fcn.0040f761
lea ecx, [ebx + 0x20]
call fcn.0041093d
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 0x4063ce
cmp edi, 0x3e5
jne 0x4063e5
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x40633f
sub eax, 1
jne 0x4061b4
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x40631c
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.00411240
mov esp, ebp
pop ebp
ret
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]
jmp 0x4061b4
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x60]
call fcn.0040f761
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x84]
call fcn.00405040
push 0x4171f0
lea eax, [ebp - 0x84]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x60]
call fcn.0040f761
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x84]
call fcn.00405040
push 0x4171f0
lea eax, [ebp - 0x84]
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 - 0x60]
call fcn.0040f761
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x84]
call fcn.00405040
push 0x4171f0
lea eax, [ebp - 0x84]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3