Function at 0x64b48
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x519
push 0
push 0
dec ecx
jne 0x64b50
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x64fb1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2894]
mov eax, 0x64fc0
call fcn.0005bdb8
mov eax, dword [ebp - 0x2894]
call fcn.00064944
xor eax, eax
push ebp
push 0x64f1e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x8c]
xor ecx, ecx
mov edx, 0x44
call fcn.00012b38
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x10
call fcn.00012b38
xor eax, eax
push ebp
push 0x64f0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x40], 0xffffffff
xor eax, eax
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x2800
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_CreatePipe
mov dword [ebp - 0x8c], 0x44
mov eax, dword [ebp - 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], 0x101
mov word [ebp - 0x5c], 0
call fcn.0005e0e0
mov word [ebp - 2], ax
lea edx, [ebp - 0x20]
mov ax, word [ebp - 2]
call fcn.0005d07c
mov eax, dword [ebp - 0x20]
call fcn.000648d0
call fcn.000128c8
dec eax
jl 0x64c5c
lea edx, [ebp - 0x2898]
mov eax, 0x64fd4
call fcn.0005bdb8
mov eax, dword [ebp - 0x2898]
call fcn.00064944
lea edx, [ebp - 0x289c]
mov eax, 0x64ff0
call fcn.0005bdb8
mov edx, dword [ebp - 0x289c]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
call fcn.00013e68
lea eax, [ebp - 0x14]
call fcn.00059b98
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00013fe0
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.00013fe0
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x64d00
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x28a0]
mov eax, 0x65004
call fcn.0005bdb8
lea eax, [ebp - 0x28a0]
push eax
lea edx, [ebp - 0x28a4]
mov eax, dword [ebp - 0x28]
call fcn.00059a8c
mov edx, dword [ebp - 0x28a4]
pop eax
call fcn.00013e24
mov eax, dword [ebp - 0x28a0]
call fcn.00064944
jmp 0x64ecf
call fcn.000128c8
dec eax
jge 0x64ecf
cmp dword [ebp - 0x38], 0
je 0x64eac
cmp dword [ebp - 0x3c], 0
je 0x64eac
lea edx, [ebp - 0x28a8]
mov eax, 0x65014
call fcn.0005bdb8
mov edx, dword [ebp - 0x28a8]
lea eax, [ebp - 0x10]
mov ecx, 0x65030
call fcn.00013e68
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
je 0x64e59
cmp dword [ebp - 0x18], 0xffffffff
je 0x64e59
push 0x64
call sub.kernel32.dll_Sleep
xor eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x64dc5
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x28ac]
mov eax, 0x65034
call fcn.0005bdb8
lea eax, [ebp - 0x28ac]
push eax
lea edx, [ebp - 0x28b0]
mov eax, dword [ebp - 0x28]
call fcn.00059a8c
mov edx, dword [ebp - 0x28b0]
pop eax
call fcn.00013e24
mov eax, dword [ebp - 0x28ac]
call fcn.00064944
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x288d]
mov edx, 0x2800
call fcn.0001746c
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push 0x27ff
lea eax, [ebp - 0x288d]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 0xc], 0
jbe 0x64e36
lea edx, [ebp - 0x28b4]
lea eax, [ebp - 0x288d]
call fcn.0005bdb8
mov edx, dword [ebp - 0x28b4]
lea eax, [ebp - 0x10]
call fcn.00013e24
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x288d]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_ReadFile_1
cmp dword [ebp - 0x24], 0x103
jne 0x64e77
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0x1c]
call fcn.0005a57c
cmp eax, 0x7530
jbe 0x64d5f
jmp 0x64e77
lea edx, [ebp - 0x28b8]
mov eax, 0x6503c
call fcn.0005bdb8
mov edx, dword [ebp - 0x28b8]
lea eax, [ebp - 0x10]
call fcn.00013e24
push dword [ebp - 0x10]
push 0x65030
lea edx, [ebp - 0x28bc]
mov eax, 0x65050
call fcn.0005bdb8
push dword [ebp - 0x28bc]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00013edc
mov eax, dword [ebp - 0x10]
call fcn.000648d0
jmp 0x64ecf
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x28c0]
mov eax, 0x65064
call fcn.0005bdb8
mov eax, dword [ebp - 0x28c0]
call fcn.00064944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64f14
lea eax, [ebp - 0x3c]
call fcn.0005bd74
cmp dword [ebp - 0x18], 0
je 0x64ef3
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0x18], 0
je 0x64f02
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x18], eax
ret