Function at 0x47eaf4
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff95c
push ebx
xor ebx, ebx
mov dword [ebp - 0x6a4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004045cc
xor eax, eax
push ebp
push 0x47ed7e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0047eacc
test al, al
je 0x47eb86
push 1
lea eax, [ebp - 0x9c]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x9c]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
mov dword [ebp - 0x88], 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0xffffffff
push 0x400
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
jmp 0x47eb9a
push 0x400
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x47ed56
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d50
mov dword [ebp - 0x6c], 0x44
cmp byte [ebp + 8], 0
je 0x47ebcc
mov word [ebp - 0x3c], 1
jmp 0x47ebd2
mov word [ebp - 0x3c], 0
mov dword [ebp - 0x40], 1
or dword [ebp - 0x40], 0x100
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x69d]
mov edx, dword [ebp - 4]
call fcn.004090e0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x69d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x47ed36
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x47ed17
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov dword [ebp - 0x28], eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x47ecf4
cmp dword [ebp - 0x20], 0
jbe 0x47ecf4
mov dl, 1
mov eax, dword [0x41605c]
call fcn.00403318
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x47eced
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x49c]
xor ecx, ecx
mov edx, 0x400
call fcn.00402d50
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x49c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 0x6a4]
lea edx, [ebp - 0x49c]
mov ecx, 0x400
call fcn.0040438c
mov edx, dword [ebp - 0x6a4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ecf4
mov eax, dword [ebp - 0x1c]
call fcn.00403348
ret
cmp dword [ebp - 0x28], 0x102
je 0x47ed06
mov dword [ebp - 0x24], 1
jmp 0x47ed0d
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
je 0x47ec33
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ed5d
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret