Function at 0x4078f0
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 0x66bf63
mov eax, dword fs:[0]
push eax
mov eax, 0x1094
call fcn.004ce320
mov eax, dword [0x74b1ac]
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 ebx, ecx
mov dword [ebp - 0x102c], ebx
mov dword [ebp - 0x102c], ebx
push 0
lea eax, [ebp - 0x1044]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x1044], 0xc
push eax
lea eax, [ebp - 0x1034]
mov dword [ebp - 0x1040], 0
push eax
mov dword [ebp - 0x103c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4079d3
xor eax, eax
mov dword [ebx + 0x10], 0
push eax
mov dword [ebx + 0x14], 7
mov ecx, ebx
push 0x708fec
mov word [ebx], ax
call fcn.00409b90
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x407c2b
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407c21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c49
jmp 0x407c21
lea eax, [ebp - 0x1090]
mov dword [ebp - 0x1090], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x1030]
lea ecx, [ebp - 0x10a0]
push ecx
lea ecx, [ebp - 0x1090]
mov dword [ebp - 0x1050], eax
push ecx
push 0
push 0
push 0
mov dword [ebp - 0x1054], eax
xor eax, eax
cmp dword [ebp + 0x1c], 8
push 1
mov word [ebp - 0x1060], ax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push 0
push eax
push 0
mov dword [ebp - 0x1064], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407976
push dword [ebp - 0x1030]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.004e5e40
add esp, 0xc
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
lea ecx, [ebp - 0x1010]
mov byte [ebp - 4], 1
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407a90
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push 0
push eax
call fcn.004e5e40
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x102c]
add esp, 0xc
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1034]
call edi
test eax, eax
je 0x407bb0
nop word [eax + eax]
lea esi, [ebp - 0x1010]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x407af0
mov edx, dword [ebp - 0x1014]
sub esi, ecx
mov ecx, dword [ebp - 0x1018]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x407b45
lea eax, [ecx + esi]
cmp edx, 0x10
mov dword [ebp - 0x1018], eax
lea edi, [ebp - 0x1028]
cmovae edi, dword [ebp - 0x1028]
lea eax, [ebp - 0x1010]
add edi, ecx
push eax
push edi
call fcn.004e58c0
mov byte [esi + edi], 0
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x407b65
lea eax, [ebp - 0x1010]
mov byte [ebp - 0x1038], 0
push eax
push dword [ebp - 0x1038]
lea ecx, [ebp - 0x1028]
push esi
call fcn.004040d0
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407b70
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push 0
push eax
call fcn.004e5e40
add esp, 0xc
lea eax, [ebp - 0x102c]
push 0
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1034]
call edi
test eax, eax
jne 0x407ae0
sub esp, 0x18
lea eax, [ebp - 0x1028]
mov ecx, esp
push eax
call fcn.00403520
mov ecx, ebx
call fcn.004073a0
mov edx, dword [ebp - 0x1014]
add esp, 0x18
cmp edx, 0x10
jb 0x407c01
mov ecx, dword [ebp - 0x1028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407bf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407c49
push edx
push ecx
call fcn.004cd516
add esp, 8
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
jmp 0x407996
push edx
push ecx
call fcn.004cd516
add esp, 8
mov eax, ebx
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.004cd30a
mov esp, ebp
pop ebp
ret
call fcn.004e9059
int3