Function at 0x464a80
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x464a89
mov eax, dword [ebp - 4]
add esp, 0xfffffce4
push ebx
xor ecx, ecx
mov dword [ebp - 0x831c], ecx
mov dword [ebp - 0x8320], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ff4
xor eax, eax
push ebp
push 0x464d05
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x8318], 0x94
lea eax, [ebp - 0x8318]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x8308], 2
jne 0x464b11
mov dword [ebp - 0x80], 0xc
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 0xffffffff
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
jmp 0x464b25
push 0x400
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x464cc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x46beec]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00454868
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.0040315c
mov dword [ebp - 0x64], 0x44
mov word [ebp - 0x34], 0
mov dword [ebp - 0x38], 1
or dword [ebp - 0x38], 0x100
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x8281]
mov edx, dword [ebp - 4]
call fcn.00409aa8
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x8281]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x464c97
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x464c78
push 0x1f4
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0x8000
lea eax, [ebp - 0x8080]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x464c5f
cmp dword [ebp - 0x18], 0
jbe 0x464c5f
lea eax, [ebp - 0x8080]
xor ecx, ecx
mov edx, 0x8000
call fcn.0040315c
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x8080]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
lea eax, [ebp - 0x831c]
push eax
lea eax, [ebp - 0x8320]
lea edx, [ebp - 0x8080]
mov ecx, 0x8000
call fcn.00404db4
mov eax, dword [ebp - 0x8320]
mov ecx, dword [ebp - 0x14]
dec ecx
xor edx, edx
call fcn.00405064
mov edx, dword [ebp - 0x831c]
lea eax, [ebp - 0x20]
call fcn.00404e0c
cmp ebx, 0x102
je 0x464c6e
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x464bc0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464ccc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x46beec]
mov eax, dword [eax]
xor edx, edx
call fcn.00454868
ret