Function at 0x47a1d8
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.00404598
xor eax, eax
push ebp
push 0x47a462
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0047a1b0
test al, al
je 0x47a26a
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 0x47a27e
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 0x47a43a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d24
mov dword [ebp - 0x6c], 0x44
cmp byte [ebp + 8], 0
je 0x47a2b0
mov word [ebp - 0x3c], 1
jmp 0x47a2b6
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.00408e00
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 0x47a41a
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x47a3fb
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 0x47a3d8
cmp dword [ebp - 0x20], 0
jbe 0x47a3d8
mov dl, 1
mov eax, dword [0x4128b0]
call fcn.004032e4
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x47a3d1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x49c]
xor ecx, ecx
mov edx, 0x400
call fcn.00402d24
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.00404358
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 0x47a3d8
mov eax, dword [ebp - 0x1c]
call fcn.00403314
ret
cmp dword [ebp - 0x28], 0x102
je 0x47a3ea
mov dword [ebp - 0x24], 1
jmp 0x47a3f1
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
je 0x47a317
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 0x47a441
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