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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69dd1a
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x88], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c0], ecx
mov eax, dword [ebp + 8]
push eax
push 0x6cbf20
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
push 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x413193
xor al, al
jmp 0x413464
push 0x44
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x84], 0x44
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x100
xor ecx, ecx
mov word [ebp - 0x54], cx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x84]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41327b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x89c], eax
push 0
push 0
lea edx, [ebp - 0x898]
push edx
push 0x400
mov eax, dword [ebp - 0x89c]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x898]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x6cbf58
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [ebp - 0x898]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x413464
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
push edx
push 0x6cbf44
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x14], 0x801
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x19], 0
push 1
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
sete cl
mov byte [ebp - 0x19], cl
push 0
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
jne 0x413302
cmp dword [ebp - 0x3c], 0
ja 0x413302
mov dword [ebp - 0x8c4], 0
jmp 0x41330c
mov dword [ebp - 0x8c4], 1
cmp dword [ebp - 0x8c4], 0
je 0x413440
push 0x6ca4a1
lea ecx, [ebp - 0x8b8]
call fcn.00404630
mov dword [ebp - 4], 0
cmp dword [ebp - 0x3c], 0
jbe 0x4133a1
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x8bc], edx
cmp dword [ebp - 0x3c], 0x800
jbe 0x413352
mov dword [ebp - 0x8bc], 0x800
push 0
lea eax, [ebp - 0x8bc]
push eax
mov ecx, dword [ebp - 0x8bc]
push ecx
lea edx, [ebp - 0x894]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x8bc]
mov byte [ebp + ecx - 0x894], 0
lea edx, [ebp - 0x894]
push edx
lea ecx, [ebp - 0x8b8]
call fcn.004138a0
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x8bc]
mov dword [ebp - 0x3c], eax
jmp 0x413330
lea ecx, [ebp - 0x8b8]
call fcn.00405300
movzx ecx, al
test ecx, ecx
jne 0x413421
lea ecx, [ebp - 0x8b8]
call fcn.00404810
push eax
push 0x6cbfa8
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
push 0
push 0x6cbfac
lea ecx, [ebp - 0x8b8]
call fcn.004138c0
cmp eax, 0xffffffff
jne 0x41340b
push 0
push 0x6cbfb4
lea ecx, [ebp - 0x8b8]
call fcn.004138c0
cmp eax, 0xffffffff
je 0x41341f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8b8]
call fcn.00404770
jmp 0x413440
jmp 0x413429
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8b8]
call fcn.00404770
jmp 0x4132b9
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x88]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 0xc