Function at 0x4c2bb0
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 esi, esi
lea eax, [esp + 0x38]
lea ebx, [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [esp + 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 0x4c], 0xc
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 1
call sub.kernel32.dll_CreatePipe
sub esp, 0x10
test eax, eax
jne 0x4c2c10
add esp, 0xec
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea eax, [esp + 0x40]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.kernel32.dll_CreatePipe
sub esp, 0x10
test eax, eax
je 0x4c2de0
lea eax, [esp + 0x48]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
lea eax, [esp + 0x44]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.kernel32.dll_CreatePipe
sub esp, 0x10
test eax, eax
je 0x4c2da0
mov dword [esp + 4], 0x10
mov dword [esp], 1
call sub.msvcrt.dll_calloc
mov ecx, dword [0x742be0]
mov ebx, eax
test ecx, ecx
je 0x4c2e07
lea ebp, [esp + 0x58]
mov eax, esi
mov ecx, 0x11
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x84], 0x100
mov dword [esp + 0x98], eax
mov esi, 0x208
test byte [esp + 0x110], 1
jne 0x4c2f25
mov eax, dword [esp + 0x100]
mov dword [esp], eax
call fcn.00583d00
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
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 0x4c2ed0
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push esi
mov esi, ebx
mov eax, dword [esp + 0x104]
mov edx, dword [esp + 0x34]
mov dword [eax], edx
mov eax, dword [esp + 0x108]
mov edx, dword [esp + 0x3c]
mov dword [eax], edx
mov eax, dword [esp + 0x10c]
mov edx, dword [esp + 0x44]
mov dword [eax], edx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push edi
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push ebp
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
jmp 0x4c2bff
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push ebx
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push edi
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push ebp
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
jmp 0x4c2bff
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, esi
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esp + 0x9c]
mov eax, esi
mov ecx, 0x11
mov edi, ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x9c], 0x44
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc8], 0x100
mov dword [esp + 0xdc], eax
mov esi, 0x208
test byte [esp + 0x110], 1
je 0x4c2e6e
mov dword [esp + 0xc8], 0x101
mov si, 0x200
mov eax, dword [esp + 0x100]
mov dword [esp], eax
call fcn.00583ce0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
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 0x4c2d36
mov eax, dword [esp + 0x34]
xor esi, esi
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.kernel32.dll_CloseHandle
push edx
jmp 0x4c2bff
mov dword [esp + 0x84], 0x101
mov si, 0x200
jmp 0x4c2ce0