Function at 0x466c10
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Read pipe
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4a7188
mov eax, dword fs:[0]
push eax
mov eax, 0x1098
call fcn.0049cd30
mov eax, dword [0x4d62b0]
xor eax, esp
mov dword [esp + 0x1090], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d62b0]
xor eax, esp
push eax
lea eax, [esp + 0x10ac]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x34], esi
xor ebx, ebx
push 0x40
lea eax, [esp + 0x64]
mov dword [esp + 0x10b8], ebx
push ebx
push eax
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x68], ebx
call int.0048bd10
xor eax, eax
add esp, 0xc
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call fcn.0040b430
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
xor eax, eax
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
mov esi, 1
push eax
mov dword [esp + 0x5c], 0xc
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call edi
test eax, eax
je 0x466ea6
mov ecx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push ebx
push esi
push ecx
call ebp
test eax, eax
je 0x466ea6
push 0x4000
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
je 0x466ea6
mov edx, dword [esp + 0x18]
push ebx
push esi
push edx
call ebp
test eax, eax
je 0x466ea6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x10bc]
mov dword [esp + 0x5c], 0x44
mov dword [esp + 0x88], 0x101
mov word [esp + 0x8c], bx
cmp dword [eax - 4], esi
jle 0x466d83
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x10c0]
push edx
call fcn.0040d760
mov edx, dword [esp + 0x10bc]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x60]
push ecx
push ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb eax, eax
neg eax
mov dword [esp + 0x30], eax
je 0x466ea6
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x466dd0
mov ecx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x20], ebx
call esi
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x24], ebx
call esi
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push ebx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
mov ebp, 0xfff
push ebp
push ebx
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebp
call edi
test eax, eax
je 0x466e96
mov edi, edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x466eac
cmp eax, ebp
jbe 0x466e36
mov eax, ebp
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x30]
push edx
push eax
lea eax, [esp + 0xb0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x466e9e
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x466eac
mov esi, dword [esp + 0x34]
lea edx, [esp + 0xa4]
push edx
mov byte [esp + eax + 0xa8], bl
call fcn.00468450
mov edx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebp
push ebx
push edx
mov dword [esp + 0x40], ebp
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x466e20
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x466eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x466eac
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x466eb7
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x466ec2
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x466ecd
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x466ed8
push eax
call esi
cmp dword [esp + 0x30], ebx
je 0x466efc
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x40]
push edx
call esi
mov eax, dword [esp + 0x3c]
push eax
call esi
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x10bc]
xor ecx, ecx
cmp eax, ebx
sete cl
mov edi, ecx
mov ecx, dword [edx]
push ecx
push eax
push esi
push 0x4c3428
push 0x4c3450
call fcn.00474370
push eax
call fcn.004743e0
lea eax, [esi - 0x10]
add esp, 0x18
mov dword [esp + 0x10b4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466f58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1090]
xor ecx, esp
call fcn.00488fa3
add esp, 0x10a4
ret