Function at 0x4707a0
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, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4709fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x44], 0xffffffff
xor eax, eax
mov dword [ebp - 0x48], eax
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x470804
call fcn.0041279c
xor eax, eax
push ebp
push 0x4709d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x90]
xor ecx, ecx
mov edx, 0x44
call fcn.00403af4
mov dword [ebp - 0x90], 0x44
mov dword [ebp - 0x64], 0x101
mov word [ebp - 0x60], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
call fcn.0040cf0c
test al, al
je 0x47086a
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00405340
jmp 0x470872
lea eax, [ebp - 0x14]
call fcn.0040d408
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00405340
lea eax, [ebp - 0x10]
call fcn.00405790
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00405738
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405738
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_CloseHandle
cmp byte [ebp - 0x1d], 0
je 0x4709a9
xor eax, eax
push ebp
push 0x4709a2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.004052a8
lea eax, [ebp - 0x1c]
mov edx, 0xff
call fcn.004059c8
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x47090e
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405738
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x1d], al
cmp dword [ebp - 0x24], 0
jbe 0x47095e
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.004057a0
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x18]
call fcn.00405574
cmp byte [ebp - 0x1d], 0
je 0x47096a
cmp dword [ebp - 0x24], 0
jne 0x4708f2
push 0xffffffffffffffff
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4709ae
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_CloseHandle
ret
call fcn.0041279c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4709d7
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
call fcn.004052fc
ret