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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6e16
mov eax, dword fs:[0]
push eax
mov eax, 0x3878
call fcn.004a2a10
mov eax, dword [0x5060c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x3818], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3814], edi
test esi, esi
jne 0x4597ab
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x459a13
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x4ea100
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00403640
test al, al
jne 0x4599f5
push esi
push 0x4ea100
mov ecx, edi
call fcn.00403a90
jmp 0x4599f5
push 0x2800
lea eax, [ebp - 0x3810]
push 0
push eax
call fcn.004a4300
add esp, 0xc
lea eax, [ebp - 0x3810]
test ebx, ebx
je 0x4597de
push ebx
push esi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4597ee
push esi
push 0x4ed148
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
call fcn.004050c0
mov ecx, eax
test ecx, ecx
je 0x459a13
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3814], eax
push 0x4ea100
lea ecx, [ebp - 0x3814]
mov dword [ebp - 4], 1
call fcn.00403640
test al, al
jne 0x459838
push 0
push 0x4ea100
lea ecx, [ebp - 0x3814]
call fcn.00403a90
push 0
lea eax, [ebp - 0x382c]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x3820]
mov dword [ebp - 0x381c], 0
push eax
lea eax, [ebp - 0x381c]
mov dword [ebp - 0x3820], 0
push eax
mov dword [ebp - 0x382c], 0xc
mov dword [ebp - 0x3828], 0
mov dword [ebp - 0x3824], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45999d
lea eax, [ebp - 0x3880]
mov dword [ebp - 0x3880], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x3820]
mov dword [ebp - 0x3840], eax
mov dword [ebp - 0x3844], eax
xor eax, eax
mov word [ebp - 0x3850], ax
lea eax, [ebp - 0x383c]
push eax
lea eax, [ebp - 0x3880]
mov dword [ebp - 0x3854], 0x101
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x3810]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x45999d
push dword [ebp - 0x3820]
call esi
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004a4300
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x3818]
add esp, 0xc
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x381c]
call ebx
test eax, eax
je 0x45999d
nop
lea eax, [ebp - 0x1010]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459960
sub eax, edx
lea ecx, [ebp - 0x3814]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.00459e30
push 0
lea eax, [ebp - 0x3818]
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x381c]
call ebx
test eax, eax
jne 0x459950
mov eax, dword [ebp - 0x381c]
test eax, eax
je 0x4599b4
push eax
call esi
mov dword [ebp - 0x381c], 0
push dword [ebp - 0x383c]
call esi
push dword [ebp - 0x3838]
call esi
mov esi, dword [ebp - 0x3814]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0042f520
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4599f5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a2700
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404ea0
int3