Function at 0x41f650
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7e71
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x4e72c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x454]
push 0
push eax
lea eax, [ebp - 0x440]
mov dword [ebp - 0x43c], 0
push eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x440], 0
push eax
mov dword [ebp - 0x454], 0xc
mov dword [ebp - 0x44c], 1
mov dword [ebp - 0x450], 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x41f6e9
xor al, al
jmp 0x41fb6a
mov esi, dword [ebp - 0x43c]
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x434], 0
test esi, esi
je 0x41f785
call eax
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x438], eax
test ecx, ecx
je 0x41f753
cmp ecx, 0xffffffff
je 0x41f753
call fcn.00404719
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x434]
call fcn.0040442b
push dword [ebp - 0x434]
call fcn.004051be
add esp, 0x14
mov dword [ebp - 0x434], 0
cmp esi, 0xffffffff
je 0x41f778
mov dword [ebp - 0x434], esi
call fcn.00404719
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x434]
push eax
push esi
call fcn.0040213f
add esp, 0x10
push dword [ebp - 0x438]
call edi
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x440]
mov dword [ebp - 4], 1
mov dword [ebp - 0x430], 0
test esi, esi
je 0x41f818
call eax
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x438], eax
test ecx, ecx
je 0x41f7eb
cmp ecx, 0xffffffff
je 0x41f7eb
call fcn.00404719
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.0040442b
push dword [ebp - 0x430]
call fcn.004051be
add esp, 0x14
mov dword [ebp - 0x430], 0
cmp esi, 0xffffffff
je 0x41f810
mov dword [ebp - 0x430], esi
call fcn.00404719
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x430]
push eax
push esi
call fcn.0040213f
add esp, 0x10
push dword [ebp - 0x438]
call edi
push 0
push 1
push dword [ebp - 0x43c]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x41f83e
mov dword [ebp - 4], 2
mov byte [ebp - 0x429], al
jmp 0x41fadd
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov eax, dword [ebp - 0x444]
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 6
push dword [eax + 4]
push dword [eax]
call fcn.00401168
mov eax, dword [ebp - 0x440]
xorps xmm0, xmm0
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
movlpd qword [ebp - 0x4a8], xmm0
movlpd qword [ebp - 0x4a0], xmm0
movlpd qword [ebp - 0x498], xmm0
movlpd qword [ebp - 0x490], xmm0
movlpd qword [ebp - 0x488], xmm0
movlpd qword [ebp - 0x480], xmm0
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x4ac], 0x44
mov dword [ebp - 0x470], eax
call esi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x474], eax
je 0x41f8f0
mov eax, dword [ebp - 0x440]
jmp 0x41f8f4
push 0xfffffffffffffff4
call esi
or dword [ebp - 0x480], 0x100
lea ecx, [ebp - 0x4bc]
cmp dword [ebp - 0x414], 8
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x4ac]
mov dword [ebp - 0x46c], eax
push ecx
push 0
push 0
push 0
push 1
push 0
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push 0
movups xmmword [ebp - 0x4bc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41f95b
mov dword [ebp - 4], 6
mov byte [ebp - 0x429], al
jmp 0x41fa7a
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x468]
call fcn.0040399a
mov eax, dword [ebp - 0x430]
mov byte [ebp - 4], 0xa
test eax, eax
je 0x41f9b4
cmp eax, 0xffffffff
je 0x41f9b4
call fcn.00404719
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.0040442b
push dword [ebp - 0x430]
call fcn.004051be
add esp, 0x14
mov dword [ebp - 0x430], 0
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x438]
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 0x438], 0
push eax
push dword [ebp - 0x43c]
call esi
test eax, eax
je 0x41fa34
mov edi, dword [ebp - 0x448]
nop dword [eax + eax]
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x41fa34
push eax
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.0040232e
push 0
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x43c]
call esi
test eax, eax
jne 0x41f9f0
push 0xffffffffffffffff
push dword [ebp - 0x468]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x458]
push eax
push dword [ebp - 0x468]
call fcn.00402b49
add esp, 8
cmp eax, 3
je 0x41fa68
mov byte [ebp - 0x429], 1
cmp eax, 1
jne 0x41fa6f
mov byte [ebp - 0x429], 0
lea ecx, [ebp - 0x468]
call fcn.004044f3
mov edx, dword [ebp - 0x414]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x41fac0
mov ecx, dword [ebp - 0x428]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41fab6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41fab6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040182a
add esp, 8
xor eax, eax
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov eax, dword [ebp - 0x430]
mov byte [ebp - 4], 0xb
test eax, eax
je 0x41fb24
cmp eax, 0xffffffff
je 0x41fb24
call fcn.00404719
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x430]
call fcn.0040442b
push dword [ebp - 0x430]
call fcn.004051be
add esp, 0x14
mov dword [ebp - 0x430], 0
mov eax, dword [ebp - 0x434]
mov dword [ebp - 4], 0xc
test eax, eax
je 0x41fb64
cmp eax, 0xffffffff
je 0x41fb64
call fcn.00404719
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x434]
call fcn.0040442b
push dword [ebp - 0x434]
call fcn.004051be
add esp, 0x14
mov al, byte [ebp - 0x429]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040282e
mov esp, ebp
pop ebp
ret