Function at 0x46ba8c
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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
mov byte [ebp - 1], 0
mov eax, 0x1000
call fcn.00402a48
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x46bd91
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x10
call fcn.004030d4
lea eax, [ebp - 0x80]
xor ecx, ecx
mov edx, 0xc
call fcn.004030d4
mov dword [ebp - 0x80], 0xc
mov dword [ebp - 0x78], 0xffffffff
xor eax, eax
mov dword [ebp - 0x7c], eax
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_CreatePipe
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.004030d4
mov dword [ebp - 0x64], 0x44
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x101
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, edi
call fcn.00404910
push eax
push 0
push 0x4000030
push 0xffffffffffffffff
push 0
push 0
mov eax, ebx
call fcn.00404910
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x46bd52
xor eax, eax
push ebp
push 0x46bd1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
mov dl, 1
mov eax, dword [0x41629c]
call fcn.00403694
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x46bc3c
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x46bbc9
mov edx, ebx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x10]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x1000
mov ebx, dword [ebp - 0x18]
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x46bbbc
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov eax, esi
call fcn.00404a9c
mov eax, dword [esi]
call fcn.00404710
test eax, eax
jle 0x46bc26
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, esi
call fcn.00404968
mov edx, eax
mov eax, dword [ebp - 0x20]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bc43
mov eax, dword [ebp - 0x20]
call fcn.004036c4
ret
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
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 0x46bd98
mov edx, 0x1000
mov eax, dword [ebp - 0x18]
call fcn.00402a78
ret