Function at 0x4017b0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
xor ebx, ebx
lea eax, [esp + 0xcc]
lea esi, [esp + 0xbc]
mov dword [esp + 4], eax
lea eax, [esp + 0xc8]
mov dword [esp + 0xbc], 0xc
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
test eax, eax
jne 0x401820
add esp, 0xec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0xd0]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea eax, [esp + 0xd4]
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
test eax, eax
je 0x401a15
lea eax, [esp + 0xdc]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea eax, [esp + 0xd8]
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
test eax, eax
je 0x4019d0
mov dword [esp + 4], 0x10
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov ecx, dword [0x46d3b0]
mov esi, eax
test ecx, ecx
je 0x401a42
lea ebp, [esp + 0x34]
mov eax, ebx
mov ecx, 0x11
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x60], 0x100
mov dword [esp + 0x74], eax
mov ebx, 0x208
test byte [esp + 0x110], 1
jne 0x401b70
mov eax, dword [esp + 0x100]
mov dword [esp], eax
call fcn.004076c0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessW
sub esp, 0x28
test eax, eax
je 0x401b05
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push ebx
mov ebx, esi
mov eax, dword [esp + 0x104]
mov edx, dword [esp + 0xc8]
mov dword [eax], edx
mov eax, dword [esp + 0x108]
mov edx, dword [esp + 0xd0]
mov dword [eax], edx
mov eax, dword [esp + 0x10c]
mov edx, dword [esp + 0xd8]
mov dword [eax], edx
mov eax, dword [esp + 0xd4]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push edi
mov eax, dword [esp + 0xcc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push ebp
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
jmp 0x401811
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push esi
mov eax, dword [esp + 0xcc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push edi
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push ebp
mov eax, dword [esp + 0xd4]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
jmp 0x401811
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov eax, dword [esp + 0xcc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov eax, ebx
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esp + 0x78]
mov eax, ebx
mov ecx, 0x11
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x78], 0x44
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0xa4], 0x100
mov dword [esp + 0xb8], eax
mov ebx, 0x208
test byte [esp + 0x110], 1
je 0x401aaa
mov dword [esp + 0xa4], 0x101
xor bl, bl
mov eax, dword [esp + 0x100]
mov dword [esp], eax
call fcn.004076a0
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
jmp 0x40194f
mov eax, dword [esp + 0xc8]
xor ebx, ebx
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov eax, dword [esp + 0xd8]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov eax, dword [esp + 0xd4]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov eax, dword [esp + 0xcc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov eax, dword [esp + 0xdc]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push edx
jmp 0x401811
mov dword [esp + 0x60], 0x101
xor bl, bl
jmp 0x4018f9