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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
xor ebx, ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.00405a20
xor eax, eax
push ebp
push 0x4ef708
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00416958
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0xc
call fcn.004035f8
mov dword [ebp - 0x3c], 0xc
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0xffffffff
push 0xf4240
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0xd4]
xor ecx, ecx
mov edx, 0x10
call fcn.004035f8
mov byte [ebp - 0x21], 0
cmp dword [ebp + 0x1c], 0
jne 0x4ef3ea
cmp dword [ebp + 0x18], 0
jne 0x4ef3ea
cmp dword [ebp + 0x14], 0
jne 0x4ef3ea
cmp dword [ebp + 0x10], 0
jne 0x4ef3ea
cmp dword [ebp + 0xc], 0
jne 0x4ef3e4
cmp dword [ebp + 8], 0
jb 0x4ef3ea
jmp 0x4ef3e6
jl 0x4ef3ea
mov byte [ebp - 0x21], 1
mov eax, dword [0x5504b0]
cmp byte [eax], 0
je 0x4ef4fc
lea eax, [ebp - 0xd8]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00405814
mov eax, dword [ebp - 0xd8]
mov edx, 0x4ef71c
call fcn.00405790
je 0x4ef44e
mov edx, dword [ebp - 8]
mov eax, 0x4ef728
call fcn.0040598c
test eax, eax
je 0x4ef44e
push 0x4ef730
push dword [ebp - 8]
push 0x4ef730
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405748
lea eax, [ebp - 0xc4]
xor ecx, ecx
mov edx, 0x44
call fcn.004035f8
mov dword [ebp - 0xc4], 0x44
mov dword [ebp - 0x98], 1
cmp byte [ebp - 0x21], 0
je 0x4ef484
mov dword [ebp - 0x98], 0x101
mov word [ebp - 0x94], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x84], eax
cmp dword [ebp + 0x14], 0
jne 0x4ef4bd
cmp dword [ebp + 0x10], 0
jne 0x4ef4bd
mov word [ebp - 0x94], 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, 0x4ef738
call fcn.004056d8
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.0040565c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
jmp 0x4ef598
lea eax, [ebp - 0x80]
xor ecx, ecx
mov edx, 0x44
call fcn.004035f8
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], 1
cmp byte [ebp - 0x21], 0
je 0x4ef526
mov dword [ebp - 0x54], 0x101
mov word [ebp - 0x50], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
cmp dword [ebp + 0x14], 0
jne 0x4ef550
cmp dword [ebp + 0x10], 0
jne 0x4ef550
mov word [ebp - 0x50], 0
lea eax, [ebp - 0xdc]
mov ecx, dword [ebp - 8]
mov edx, 0x4ef74c
call fcn.004056d8
mov edx, dword [ebp - 0xdc]
lea eax, [ebp - 0x2c]
call fcn.00404efc
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0x2c]
call fcn.00405138
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp dword [ebp + 0x1c], 0
jne 0x4ef5b2
cmp dword [ebp + 0x18], 0
jne 0x4ef5b2
mov dword [ebp + 0x18], 0xffffffff
mov dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x4ef5c1
call fcn.00403be4
push eax
mov eax, dword [ebp - 0xd4]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp byte [ebp - 0x21], 0
je 0x4ef666
cmp dword [ebp + 0xc], 0
jne 0x4ef603
cmp dword [ebp + 8], 1
jne 0x4ef603
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xd4]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x20]
mov cl, 4
call fcn.00416704
jmp 0x4ef666
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 0x20], 0
jbe 0x4ef666
mov eax, 0xf4240
call fcn.00402d90
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0xe0]
mov edx, dword [ebp - 0x30]
call fcn.004055ac
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xc]
call fcn.004169d4
mov eax, dword [ebp - 0x30]
call fcn.00402dc4
mov eax, dword [ebp - 0xd0]
test eax, eax
jns 0x4ef675
call fcn.00403be4
call fcn.004b1bf8
test al, al
je 0x4ef68a
mov eax, dword [ebp - 0xd0]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xd4]
test eax, eax
jns 0x4ef699
call fcn.00403be4
call fcn.004b1bf8
test al, al
je 0x4ef6ae
mov eax, dword [ebp - 0xd4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ef70f
lea eax, [ebp - 0xe0]
mov edx, 3
call fcn.00405498
lea eax, [ebp - 0x2c]
call fcn.00404c58
lea eax, [ebp - 0x28]
call fcn.00405480
lea eax, [ebp - 8]
call fcn.00405480
ret