Function at 0x402ca0
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x40e040]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
or esi, 0xffffffff
mov dword [esp + 0x18], 0
push edi
or eax, esi
or edi, esi
push 0x40ae0c
mov dword [esp + 0x18], eax
call fcn.00401180
add esp, 4
call fcn.00403020
test eax, eax
je 0x402fcf
push 0x40ae44
call fcn.00401180
add esp, 4
lea eax, [esp + 0x50]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x402d28
push str.cleanup_n
call fcn.00401180
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x402ff1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
je 0x402d57
push str.cleanup_n
call fcn.00401180
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x402ff1
cmp dword [esp + 0x1c], 0
jne 0x402d79
push str.cleanup_n
call fcn.00401180
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x402ff1
push 0x40ae4c
call fcn.00401180
mov eax, dword [esp + 0x20]
add esp, 4
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
movaps xmmword [esp + 0x60], xmm0
mov dword [esp + 0x70], 0
push 0x208
movq qword [esp + 0x54], xmm0
mov dword [esp + 0x5c], 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
jne 0x402ddc
push str.cleanup_n
call fcn.00401180
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
jmp 0x402ff5
cmp dword [0x40e0d8], 7
mov eax, 0x40e0c4
push dword [esp + 0x10]
cmova eax, dword [0x40e0c4]
push eax
push 0x104
push esi
call fcn.004013c0
add esp, 0x10
lea eax, [esp + 0x60]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x402e1f
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x402dc4
cmp dword [0x40e168], 7
lea ecx, [esp + 0x54]
push 0
push ecx
mov eax, 0x40e154
cmova eax, dword [0x40e154]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x402e55
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x402dc4
lea eax, [esp + 0x50]
push eax
push 0
push 0x800
push 0x800
push 0xa
push 0
push 0x40000003
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp esi, 0xffffffff
je 0x402dc4
test esi, esi
je 0x402fcf
push 0x40ae54
call fcn.00401180
add esp, 4
mov dword [esp + 0x30], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
jne 0x402ee2
push str.cleanup_n
call fcn.00401180
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x402ff1
lea eax, [esp + 0x20]
mov dword [esp + 0x30], edi
push eax
xorps xmm0, xmm0
push esi
movlpd qword [esp + 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x402f29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x402f29
push str.cleanup_n
xor edi, edi
call fcn.00401180
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x402ff1
push 0x40ae5c
call fcn.00401180
add esp, 4
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x4c]
push eax
push 0
push dword [esp + 0x24]
push 0x4031f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x402f78
push str.cleanup_n
mov dword [esp + 0x18], eax
call fcn.00401180
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x402ff1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
test eax, eax
je 0x402fcf
push 0x40ae64
call fcn.00401180
add esp, 4
mov eax, edi
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402fcf
push 0x40ae6c
call fcn.00401180
add esp, 4
mov ecx, esi
call fcn.004033b0
push str.cleanup_n
call fcn.00401180
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x402ff1
push str.cleanup_n
call fcn.00401180
add esp, 4
test esi, esi
je 0x402feb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x402ff1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x402ff8
push edi
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403003
push eax
call esi
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00407c49
mov esp, ebp
pop ebp
ret