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

Disassembly:
push 0xffffffffffffffff
push 0x52e298
mov eax, dword fs:[0]
push eax
mov eax, 0x1178
call fcn.0050c290
mov eax, dword [0x579680]
xor eax, esp
mov dword [esp + 0x1170], eax
push esi
push edi
mov eax, dword [0x579680]
xor eax, esp
push eax
lea eax, [esp + 0x1184]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1194], 0
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4046de
mov ecx, dword [esp + 0x1194]
push ecx
lea edx, [esp + 0x80]
push 0xff
push edx
call fcn.005085d6
add esp, 0xc
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
xor ecx, ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x38]
push eax
push ecx
push ecx
push 0x20
push 1
push ecx
push ecx
mov word [esp + 0x84], cx
lea ecx, [esp + 0x9c]
push ecx
push 0
mov dword [esp + 0x88], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404713
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov dword [esp + 0x118c], 0xffffffff
mov eax, dword [esp + 0x1194]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40470c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40483f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0x249f0
push edx
mov dword [esi + 0x74], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40479d
mov eax, dword [esi + 0x74]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x40475a
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov dword [esp + 0x118c], 0xffffffff
mov eax, dword [esp + 0x1194]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x404700
push 0xfff
lea ecx, [esp + 0x181]
push 0
push ecx
mov byte [esp + 0x188], 0
call fcn.00509cd0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0
lea edx, [esp + 0x34]
push edx
push 0xfff
lea eax, [esp + 0x188]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
lea eax, [esp + 0x17c]
push eax
mov ecx, edi
call fcn.00406c60
mov dword [esp + 0x118c], 0xffffffff
mov eax, dword [esp + 0x1194]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40483a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1170]
xor ecx, esp
call fcn.00507bff
add esp, 0x1184
ret 4