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

Disassembly:
push 0xffffffffffffffff
push 0x4b570d
mov eax, dword fs:[0]
push eax
mov eax, 0x27ac
call fcn.004866d0
mov eax, dword [0x4e7950]
xor eax, esp
mov dword [esp + 0x27a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e7950]
xor eax, esp
push eax
lea eax, [esp + 0x27c0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x27d0]
xor esi, esi
push esi
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x45fb21
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], eax
lea eax, [esp + 0x4c]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push 0x4e9438
xor ecx, ecx
push esi
mov word [esp + 0xa0], cx
mov dword [esp + 0x9c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [esp + 0x8c]
mov edi, eax
call fcn.00429180
mov dword [esp + 0x27c8], esi
cmp edi, esi
je 0x45fca3
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x2711
lea edx, [esp + 0xac]
push esi
push edx
call fcn.004865d0
mov edx, dword [esp + 0x2c]
add esp, 0xc
push esi
lea eax, [esp + 0x48]
push eax
push 0x2710
lea ecx, [esp + 0xb4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
jne 0x45fb28
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
lea ecx, [esp + 0x8c]
call fcn.00402610
xor eax, eax
jmp 0x45fcd6
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00461040
lea ecx, [esp + 0x1c]
call fcn.00401e00
mov bl, 2
push esi
mov ecx, 0x4ed948
mov byte [esp + 0x27cc], bl
call fcn.004077a0
push eax
lea ecx, [esp + 0x20]
call fcn.00402010
mov edi, eax
cmp edi, 0xffffffff
je 0x45fbd7
lea ecx, [esp + 0x18]
call fcn.00402590
mov esi, eax
mov ecx, 0x4ed948
sub esi, edi
call fcn.00402590
sub esi, eax
push esi
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
call fcn.00402170
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x27cc], 3
call fcn.00401ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c8], bl
call fcn.00408680
mov ecx, 0x4ed950
call fcn.00402590
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.00402200
mov byte [esp + 0x27c8], 4
jmp 0x45fc62
push esi
mov ecx, 0x4ed94c
call fcn.004077a0
push eax
lea ecx, [esp + 0x20]
call fcn.00402010
mov edi, eax
cmp edi, 0xffffffff
je 0x45fc7a
lea ecx, [esp + 0x18]
call fcn.00402590
mov esi, eax
mov ecx, 0x4ed94c
sub esi, edi
call fcn.00402590
sub esi, eax
push esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402170
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x27cc], 5
call fcn.00401ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c8], bl
call fcn.00408680
mov ecx, 0x4ed950
call fcn.00402590
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
call fcn.00402200
mov byte [esp + 0x27c8], 6
push eax
mov ecx, ebp
call fcn.00401ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c8], bl
call fcn.00408680
mov ecx, ebp
call fcn.004025b0
test al, al
je 0x45fc91
push 0x4ed950
mov ecx, ebp
call fcn.00401ec0
lea ecx, [esp + 0x1c]
call fcn.00408680
lea ecx, [esp + 0x18]
call fcn.00408680
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
lea ecx, [esp + 0x8c]
call fcn.00402610
mov eax, 1
mov ecx, dword [esp + 0x27c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27a8]
xor ecx, esp
call fcn.00480723
add esp, 0x27b8
ret 4