Function at 0x4070c0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411d9e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x4c], 0
push 0
movdqu xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
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
jne 0x4071b1
push 0
push eax
push str.Failed_to_create_connection
lea ecx, [ebp - 0x64]
call fcn.0040e865
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], vtable.RSException.0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
push esi
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x84]
call main
push 0x415fd4
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x88], vtable.CMessageException.0
call sub.MSVCR120.dll__CxxThrowException
lea eax, [ebp - 0x34]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x24], xmm0
call fcn.0040ff26
add esp, 4
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x24], vtable.RSSecurityUtilsWin::CLocalFreeGuard.0
mov dword [ebp - 0x20], eax
lea ecx, [edi + 8]
jmp 0x4071e0
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 ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 6
call main
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.0040f63a
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 8
call fcn.0040f63a
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], 4
mov ecx, dword [ebp - 0x54]
mov dword [edi + 0x3c], eax
xor eax, eax
mov dword [ebp - 0x54], eax
test ecx, ecx
je 0x407274
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x54]
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [ebp - 0x5c]
xor eax, eax
add esp, 4
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x407297
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x5c]
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [edi + 0x3c], 0xffffffff
je 0x4073c7
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x18
mov ecx, esp
push 0
push 0xffffffffffffffff
push 0x4137ac
call fcn.0040e865
lea ecx, [edi + 0x20]
call fcn.0040fe56
lea eax, [ebp - 0x48]
push eax
push dword [edi + 0x3c]
call dword [sym.imp.kernel32.dll_ConnectNamedPipe]
call dword [sym.imp.kernel32.dll_GetLastError]
push dword [ebp - 0x1c]
mov dword [ebp - 0x68], eax
push 0
push 0x100000
call dword [sym.imp.kernel32.dll_OpenProcess]
mov dword [edi + 0x38], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x68]
cmp eax, 0x217
je 0x407385
cmp eax, 0x3e5
jne 0x407392
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x407331
dec eax
jne 0x407347
mov eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x40734a
push dword [edi + 4]
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x3c]
call dword [eax + 4]
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_ResetEvent]
mov eax, dword [ebp - 0x4c]
lea ecx, [edi + 8]
test eax, eax
je 0x4071e0
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x407363
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410663
mov esp, ebp
pop ebp
ret
push dword [edi + 4]
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x3c]
call dword [eax + 4]
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x64]
call fcn.0040e865
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x88]
call main
push 0x415fd4
lea eax, [ebp - 0x88]
push eax
call sub.MSVCR120.dll__CxxThrowException
push 0
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x64]
call fcn.0040e865
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x88]
call main
push 0x415fd4
lea eax, [ebp - 0x88]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3