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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x68], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58ab63
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0x58a804
mov eax, ebx
call fcn.0042509c
lea eax, [ebp - 0x68]
mov edx, esi
call fcn.00404778
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.00408f98
cmp dword [ebp - 0x64], 0
je 0x58ab48
mov dword [ebx + 0x54], edi
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0x48], 0xffffffff
xor eax, eax
mov dword [ebp - 0x4c], eax
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebx + 0x4c]
push eax
lea eax, [ebx + 0x48]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x58aa2a
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x70]
call fcn.004095b0
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x58ab7c
call fcn.0040488c
mov eax, dword [ebp - 0x6c]
call fcn.00438b2c
mov eax, dword [0x595a34]
mov byte [eax], 0
jmp 0x58ab48
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebx + 0x40], eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebx + 0x44], eax
cmp dword [ebx + 0x40], 0xffffffff
je 0x58ab48
cmp dword [ebx + 0x44], 0xffffffff
je 0x58ab48
mov eax, dword [ebx + 0x4c]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_SetStdHandle
mov eax, dword [ebx + 0x4c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_SetStdHandle
mov eax, dword [0x595a34]
mov byte [eax], 1
lea eax, [ebp - 0x44]
push eax
call sub.kernel32.dll_GetStartupInfoA_1
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 0x101
mov word [ebp - 0x14], 0
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor edi, edi
lea eax, [ebp - 0x78]
mov edx, esi
call fcn.00404778
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.00408f98
mov eax, dword [ebp - 0x74]
call fcn.00404a40
mov esi, eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0x8000000
push 0xffffffffffffffff
push 0
push 0
push esi
push edi
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x58ab05
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebx + 0x40]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_SetStdHandle
mov eax, dword [ebx + 0x40]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_SetStdHandle
mov eax, dword [ebx + 0x4c]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x58ab48
mov eax, dword [0x595a34]
mov byte [eax], 0
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x80]
call fcn.004095b0
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 0x58ab94
call fcn.0040488c
mov eax, dword [ebp - 0x7c]
call fcn.00438b2c
mov eax, dword [ebx + 0x4c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebx + 0x48]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58ab6a
lea eax, [ebp - 0x80]
mov edx, 8
call fcn.004045a4
ret