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

Disassembly:
sub esp, 0x88
mov ecx, dword [esp + 0xa4]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
je 0x10039e76
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x2c], ecx
mov esi, ecx
cmp dword [esp + 0xc0], ebx
je 0x10039e8c
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x1c], edx
mov edi, edx
cmp dword [esp + 0xcc], ebx
je 0x10039ea0
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0xa0]
cmp ebp, ebx
je 0x1003a0c6
cmp byte [ebp], bl
je 0x1003a0c6
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x38], ecx
mov esi, dword [sym.imp.KERNEL32.DLL_CreatePipe]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x48]
mov dword [esp + 0x50], edx
push ebx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], 0xc
mov dword [esp + 0x60], 1
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebx
call esi
test eax, eax
je 0x1003a085
lea eax, [esp + 0x48]
push ebx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call esi
test eax, eax
je 0x1003a085
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x54]
push edx
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [esp + 0x7c], 0x44
mov dword [esp + 0xa8], 0x101
mov word [esp + 0xac], bx
mov dword [esp + 0xbc], ecx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x1003a085
call fcn.1003b490
mov dword [esp + 0x28], eax
call fcn.1003b490
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x38]
push 0x64
push ecx
call esi
cmp eax, 0x102
je 0x10039fc1
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x10039feb
mov edx, dword [esp + 0x38]
push esi
push edx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
jne 0x10039feb
mov dword [esi], ebx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x34], 1
cmp esi, ebx
je 0x1003a02b
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.10039d90
mov eax, dword [esi]
add esp, 8
cmp eax, ebx
je 0x1003a01c
push eax
call fcn.10039320
add esp, 4
mov edx, dword [esp + 0x28]
push edx
call fcn.1003b410
add esp, 4
mov dword [esi], eax
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x1003a063
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.10039d90
mov eax, dword [esi]
add esp, 8
cmp eax, ebx
je 0x1003a054
push eax
call fcn.10039320
add esp, 4
mov edx, dword [esp + 0x24]
push edx
call fcn.1003b410
add esp, 4
mov dword [esi], eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x1003a074
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1003a085
push eax
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp eax, ebx
je 0x1003a096
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1003a0a1
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1003a0ac
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x1003a0b7
push eax
call esi
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
cmp eax, ebx
je 0x1003a0cc
mov dword [eax], ebx
cmp esi, ebx
je 0x1003a0e1
mov eax, dword [esi]
cmp eax, ebx
je 0x1003a0e1
push eax
call fcn.10039320
add esp, 4
mov dword [esi], ebx
cmp edi, ebx
je 0x1003a0f6
mov eax, dword [edi]
cmp eax, ebx
je 0x1003a0f6
push eax
call fcn.10039320
add esp, 4
mov dword [edi], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret