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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.004f96c0
mov edi, eax
test edi, edi
je 0x4f7b71
push dword [ebp + 8]
push edi
call fcn.004f9730
add esp, 8
test eax, eax
jne 0x4f7b71
push 0x2e
push dword [edi]
call fcn.00505480
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4f7846
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f7831
sub ecx, edx
mov dword [ebp - 4], 0
cmp ecx, 4
jbe 0x4f784d
mov dword [ebp - 4], 0x53caec
mov esi, 0x104
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.004c44f0
add esp, 8
test eax, eax
je 0x4f7b71
lea eax, [ebp - 0x28]
mov ebx, esi
push eax
push dword [ebp - 0x34]
push esi
push dword [ebp - 4]
push dword [edi]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
mov esi, eax
test esi, esi
je 0x4f7b71
cmp esi, ebx
ja 0x4f7852
mov ebx, dword [edi + 4]
xor edx, edx
xor esi, esi
cmp dword [ebx], edx
je 0x4f78c7
mov eax, ebx
nop dword [eax]
test edx, edx
je 0x4f78bd
mov ecx, dword [eax]
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f78b0
sub ecx, dword [ebp - 4]
inc esi
add esi, ecx
inc edx
cmp dword [ebx + edx*4], 0
lea eax, [ebx + edx*4]
jne 0x4f78a0
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004c44f0
add esp, 8
test eax, eax
je 0x4f7b71
mov eax, dword [edi + 4]
xor ebx, ebx
cmp dword [eax], ebx
je 0x4f79a2
xor esi, esi
nop
mov dword [ebp - 0x38], ebx
test ebx, ebx
jne 0x4f796a
push 0x2f
push dword [esi + eax]
call fcn.00504f90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7926
mov eax, dword [edi + 4]
push 0x5c
push dword [eax]
call fcn.00504f90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f7926
mov eax, dword [edi + 4]
mov esi, dword [eax]
jmp 0x4f7927
inc esi
push 0x20
push esi
call fcn.00504f90
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x4f7947
lea eax, [ebp - 0x20]
push 0x22
push eax
call fcn.004c3d30
add esp, 8
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.004c3d90
add esp, 8
cmp dword [ebp - 4], 0
je 0x4f7987
lea eax, [ebp - 0x20]
push 0x22
push eax
call fcn.004c3d30
add esp, 8
jmp 0x4f7987
lea eax, [ebp - 0x20]
push 0x20
push eax
call fcn.004c3d30
mov eax, dword [edi + 4]
push dword [esi + eax]
lea eax, [ebp - 0x20]
push eax
call fcn.004c3d90
add esp, 0x10
mov eax, dword [edi + 4]
inc ebx
lea esi, [ebx*4]
cmp dword [esi + eax], 0
jne 0x4f78f0
cmp dword [ebp - 0x38], 1
jge 0x4f79e4
push 0x20
push dword [ebp - 0x28]
call fcn.00504f90
mov esi, eax
add esp, 8
test esi, esi
je 0x4f79c3
lea eax, [ebp - 0x20]
push 0x22
push eax
call fcn.004c3d30
add esp, 8
push dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
call fcn.004c3d90
add esp, 8
test esi, esi
je 0x4f79e4
lea eax, [ebp - 0x20]
push 0x22
push eax
call fcn.004c3d30
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x44]
push 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x44], 0xc
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 1
push eax
mov dword [ebp - 0x40], 0
call ebx
test eax, eax
je 0x4f7b71
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push 1
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4f7b71
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
je 0x4f7b71
push 0
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x4f7b71
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x24]
push 2
push 1
push 0
push eax
call esi
push eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4f7b71
xor eax, eax
mov dword [ebp - 0x66], 0
mov word [ebp - 0x62], ax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
xor eax, eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x98]
movlpd qword [ebp - 0x94], xmm0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp - 0x20]
movlpd qword [ebp - 0x8c], xmm0
push dword [ebp - 0x34]
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x74], xmm0
mov dword [ebp - 0x98], 0x44
mov dword [ebp - 0x6c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4f7b71
push 0xffffffffffffffff
push dword [ebp - 0x54]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
push 0
push dword [ebp - 0xc]
call fcn.005182a1
mov ecx, dword [ebp + 0x10]
push 1
push dword [ebp - 0x10]
mov dword [ecx], eax
call fcn.005182a1
mov ecx, dword [ebp + 0xc]
add esp, 0x10
push dword [ebp - 8]
mov dword [ecx], eax
call esi
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x20]
push eax
call fcn.004c4580
lea eax, [ebp - 0x34]
push eax
call fcn.004c4580
push edi
call fcn.004f96d0
mov eax, dword [ebp - 0x4c]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x4f7b82
push eax
call esi
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x4f7b8d
push eax
call esi
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x4f7b98
push eax
call esi
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x4f7ba3
push eax
call esi
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x4f7bae
push eax
call esi
lea eax, [ebp - 0x20]
push eax
call fcn.004c4580
lea eax, [ebp - 0x34]
push eax
call fcn.004c4580
push edi
call fcn.004f96d0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret