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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f0fdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], 0xffffffff
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x4f0fb6
mov eax, 0x961
call fcn.00402f80
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.004036fc
mov dword [ebp - 0x64], 0x44
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov word [ebp - 0x32], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], 0x101
mov word [ebp - 0x34], 0
xor eax, eax
push ebp
push 0x4f0faf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, edi
call fcn.004051d0
push eax
mov eax, esi
call fcn.004051d0
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4f0f7e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 4]
call fcn.00404d40
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x960
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x78]
mov edx, dword [ebp - 0x10]
call fcn.00404f38
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 4]
call fcn.0040500c
cmp dword [ebp - 0x14], 0x960
jae 0x4f0f0c
lea edx, [ebp - 0x7c]
mov eax, ebx
call fcn.00458f84
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 4]
call fcn.0040500c
mov edx, dword [ebp - 0x7c]
mov eax, ebx
call fcn.00458fb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0fb6
mov eax, dword [ebp - 0x10]
call fcn.00402fb4
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0fe3
lea eax, [ebp - 0x7c]
call fcn.00404d40
lea eax, [ebp - 0x78]
call fcn.00404d40
lea eax, [ebp - 4]
call fcn.00404d40
ret