Function at 0x402da0
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
push esi
push edi
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
call ebx
test eax, eax
jne 0x402dee
mov ebx, 0x412748
call fcn.00401240
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0
lea eax, [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x402e3d
mov ebx, 0x412754
call fcn.00401240
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
call ebx
test eax, eax
jne 0x402e82
mov ebx, 0x412748
call fcn.00401240
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
push 2
push 0
push 0
push 0x416cc4
call esi
mov ecx, dword [esp + 0x28]
push eax
push ecx
call esi
push eax
call edi
test eax, eax
jne 0x402eda
mov ebx, str.DupliateHandle
call fcn.00401240
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
push 2
push 0
push 0
push 0x416ccc
call esi
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call esi
push eax
call edi
test eax, eax
jne 0x402f3b
mov ebx, str.DupliateHandle
call fcn.00401240
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [0x416cc4]
push ecx
call esi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
test eax, eax
jne 0x402f8c
mov ebx, str.CloseHandle__1_
call fcn.00401240
mov eax, dword [0x416ccc]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
mov edx, dword [0x416cc4]
push edx
call edi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x402fd1
mov ebx, str.CloseHandle__2_
call fcn.00401240
mov ecx, dword [0x416ccc]
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [0x416cc4]
push edx
call edi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
mov dword [0x415b2c], eax
jne 0x40301c
mov ebx, 0x412794
call fcn.00401240
mov eax, dword [0x416ccc]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
mov ecx, dword [0x416cc4]
push ecx
call edi
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
call fcn.004031c0
add esp, 0x10
test eax, eax
je 0x402fed
mov edx, dword [esp + 0xc]
push edx
call edi
test eax, eax
je 0x4030bb
mov eax, dword [esp + 0x14]
push eax
call edi
test eax, eax
je 0x4030bb
mov ecx, dword [esp + 0x10]
push ecx
call edi
test eax, eax
je 0x4030bb
mov eax, dword [0x416cc4]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push 0x4032a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x416cc8], eax
jne 0x4030af
mov ecx, dword [0x416ccc]
push ecx
call edi
mov edx, dword [0x416cc4]
push edx
call edi
mov ebx, 0x4127b4
call fcn.00401240
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [0x416ccc]
push eax
call edi
mov ecx, dword [0x416cc4]
push ecx
call edi
mov ebx, str.CloseHandles
call fcn.00401240
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret