Function at 0x4f5cf0
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6acf9b
mov eax, dword fs:[0]
push eax
mov eax, 0x1898
call fcn.00666cc0
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x187c], 0x44
push 0x40
push 0
lea eax, [ebp - 0x1878]
push eax
call fcn.006665c0
add esp, 0xc
mov byte [ebp - 0x1014], 0
push 0xfff
push 0
lea ecx, [ebp - 0x1013]
push ecx
call fcn.006665c0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1014]
push eax
call fcn.00666ba0
add esp, 8
mov dword [ebp - 0x1828], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x10], 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push 1
push 1
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x44
push 0
lea ecx, [ebp - 0x187c]
push ecx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x1850], 0x100
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x183c], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1840], eax
xor ecx, ecx
mov word [ebp - 0x184c], cx
push 0x10abc64
lea edx, [ebp - 0x187c]
push edx
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x1880], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1880], 0
jne 0x4f5e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1828], eax
mov edx, dword [ebp - 0x1018]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1828], 0
setne al
jmp 0x4f6090
mov eax, dword [0x10abc6c]
push eax
push 0x748ce4
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov byte [ebp - 0x1824], 0
push 0x800
push 0
lea ecx, [ebp - 0x1823]
push ecx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x1830], 0
mov byte [ebp - 0x1829], 0
push 1
mov edx, dword [0x10abc64]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
sete cl
mov byte [ebp - 0x1829], cl
push 0
lea edx, [ebp - 0x1830]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
movzx ecx, byte [ebp - 0x1829]
test ecx, ecx
jne 0x4f5efa
cmp dword [ebp - 0x1830], 0
ja 0x4f5efa
mov dword [ebp - 0x18a4], 0
jmp 0x4f5f04
mov dword [ebp - 0x18a4], 1
cmp dword [ebp - 0x18a4], 0
je 0x4f6011
push 0x74731b
lea ecx, [ebp - 0x189c]
call fcn.00404630
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1830], 0
jbe 0x4f5fe0
mov edx, dword [ebp - 0x1830]
mov dword [ebp - 0x18a0], edx
cmp dword [ebp - 0x18a0], 0x800
jbe 0x4f5f57
mov dword [ebp - 0x18a0], 0x800
push 0
lea eax, [ebp - 0x18a0]
push eax
mov ecx, dword [ebp - 0x18a0]
push ecx
lea edx, [ebp - 0x1824]
push edx
mov eax, dword [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x18a0]
mov byte [ebp + ecx - 0x1824], 0
cmp dword [ebp - 0x18a0], 0
jbe 0x4f5fb7
lea edx, [ebp - 0x1824]
push edx
push 0x748cf8
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
lea eax, [ebp - 0x1824]
push eax
lea ecx, [ebp - 0x189c]
call fcn.004138a0
mov ecx, dword [ebp - 0x1830]
sub ecx, dword [ebp - 0x18a0]
mov dword [ebp - 0x1830], ecx
jmp 0x4f5f28
lea ecx, [ebp - 0x189c]
call fcn.00405300
movzx edx, al
test edx, edx
je 0x4f5ffa
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x189c]
call fcn.00404770
jmp 0x4f5e9f
push 0x748cfc
call fcn.0066610b
add esp, 4
push 0xffffffffffffffff
mov eax, dword [0x10abc64]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1828]
push ecx
mov edx, dword [0x10abc64]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x1880], eax
cmp dword [ebp - 0x1880], 0
jne 0x4f6059
mov dword [ebp - 0x1828], 0
mov eax, dword [0x10abc68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10abc64]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1828]
push edx
push 0x748d14
call fcn.0066610b
add esp, 8
cmp dword [ebp - 0x1828], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret