Function at 0x49a054
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.004045e8
xor eax, eax
push ebp
push 0x49a2de
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0049a02c
test al, al
je 0x49a0e6
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 0x49a0fa
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 0x49a2b6
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 0x49a12c
mov word [ebp - 0x3c], 1
jmp 0x49a132
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.004091d8
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 0x49a296
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x49a277
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 0x49a254
cmp dword [ebp - 0x20], 0
jbe 0x49a254
mov dl, 1
mov eax, dword [0x415f58]
call fcn.00403318
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x49a24d
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.004043a8
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 0x49a254
mov eax, dword [ebp - 0x1c]
call fcn.00403348
ret
cmp dword [ebp - 0x28], 0x102
je 0x49a266
mov dword [ebp - 0x24], 1
jmp 0x49a26d
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 0
je 0x49a193
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 0x49a2bd
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