Function at 0x4063e0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x24]
test eax, eax
sete al
cmp ecx, 1
sete bl
test al, al
je 0x406412
mov edx, dword [esi + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x406420
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.00406060
xor edi, edi
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x406658
push 2
push 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0xc]
push eax
call edi
mov ecx, dword [ebp - 4]
push eax
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
test eax, eax
jne 0x4064a5
mov edx, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4064e0
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 4]
push edx
call esi
mov eax, dword [ebp - 0xc]
push eax
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push 2
push 0
lea eax, [esi + 0xc]
push 0
push eax
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 8]
push eax
push ecx
call edi
push eax
call ebx
test eax, eax
jne 0x40652c
mov edx, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call esi
mov ecx, dword [ebp - 0xc]
push ecx
call esi
mov edx, dword [ebp - 0x10]
push edx
call esi
mov eax, dword [ebp - 0x14]
push eax
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
push 2
push 0
lea eax, [esi + 8]
push 0
push eax
mov dword [ebp - 0x1c], eax
call edi
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call edi
push eax
call ebx
test eax, eax
jne 0x406580
mov edx, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 4]
push eax
call esi
mov ecx, dword [ebp - 0xc]
push ecx
call esi
mov edx, dword [ebp - 0x10]
push edx
call esi
mov eax, dword [ebp - 0x14]
push eax
call esi
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x10]
push ecx
call edi
push 0x44
lea edx, [ebp - 0x7c]
push 0
push edx
call fcn.00499330
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x38]
push ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], eax
xor eax, eax
lea edx, [ebp - 0x7c]
push edx
push eax
push eax
push 0x10
push 1
push eax
push eax
mov word [ebp - 0x4c], ax
mov eax, dword [ebp + 8]
push eax
push 0
mov dword [ebp - 0x7c], 0x44
mov dword [ebp - 0x50], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x38]
test eax, eax
mov eax, dword [ebp - 0x34]
setne bl
mov dword [esi + 0x10], ecx
test eax, eax
je 0x4065f9
push eax
call edi
mov edx, dword [ebp - 0x14]
push edx
call edi
mov eax, dword [ebp - 4]
push eax
call edi
mov ecx, dword [ebp - 0xc]
push ecx
call edi
test bl, bl
jne 0x406636
mov esi, dword [ebp - 0x1c]
mov edx, dword [esi]
push edx
call edi
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
push eax
call edi
pop edi
mov dword [esi], 0
pop esi
mov dword [ebx], 0
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esi + 0x20]
push ecx
push 0
push esi
push 0x406330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x406663
call fcn.00406060
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x406686
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4