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

Disassembly:
push rbp
mov eax, 0x2950
call fcn.0041bb70
sub rsp, rax
lea rbp, [rsp + 0x80]
mov rax, qword [0x00442300]
mov rax, qword [rax]
xor rax, rbp
mov qword [rbp + 0x28c8], rax
mov qword [rbp], rcx
mov qword [rbp - 8], rdx
and r8b, 1
mov byte [rbp - 9], r8b
mov rax, qword [rbp - 8]
mov qword [rax], 0
cmp qword [rbp], 0
jne 0x4167ac
mov dword [rbp + 8], 0xffffffff
jmp 0x416ab9
mov dword [rbp + 0xbc], 0
mov dword [rbp - 0x10], 0x8000000
test byte [rbp - 9], 1
je 0x4167ce
mov dword [rbp - 0x10], 5
mov dword [rbp + 0xa0], 0x18
mov dword [rbp + 0xb0], 1
mov qword [rbp + 0xa8], 0
lea rcx, [rbp + 0x98]
lea rdx, [rbp + 0x90]
lea r8, [rbp + 0xa0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
cmp eax, 0
jne 0x416820
mov dword [rbp + 8], 0xffffffff
jmp 0x416ab9
mov rcx, qword [rbp + 0x98]
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
cmp eax, 0
jne 0x416864
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 8], 0xffffffff
jmp 0x416ab9
lea rcx, [rbp + 0x28]
xor edx, edx
mov r8d, 0x68
call fcn.0041ba90
mov dword [rbp + 0x28], 0x68
mov dword [rbp + 0x64], 0x101
mov word [rbp + 0x68], 0
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x10]
xor edx, edx
mov r8d, 0x18
call fcn.0041ba90
mov rdx, qword [rbp]
mov r11d, dword [rbp - 0x10]
xor eax, eax
mov r9d, eax
lea r10, [rbp + 0x28]
lea rax, [rbp + 0x10]
mov rcx, r9
mov r8, r9
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 0
jne 0x41692f
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 8], 0xffffffff
jmp 0x416ab9
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rbp + 0x10]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x10]
lea rdx, [rbp + 0xbc]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov qword [rbp - 0x18], 0
mov rcx, qword [rbp + 0x98]
lea rdx, [rbp + 0xc0]
mov r8d, 0x2800
lea r9, [rbp + 0xc]
xor eax, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
xor eax, eax
cmp ecx, 0
mov byte [rbp - 0x21], al
je 0x4169b1
cmp dword [rbp + 0xc], 0
seta al
mov byte [rbp - 0x21], al
mov al, byte [rbp - 0x21]
test al, 1
jne 0x4169c1
jmp 0x416a5b
mov rax, qword [rbp - 8]
mov rcx, qword [rax]
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbp + 0xc]
add rdx, rax
add rdx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x416a23
mov rax, qword [rbp - 8]
mov rcx, qword [rax]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 8], 0xffffffff
jmp 0x416ab9
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov qword [rax], rcx
mov rax, qword [rbp - 8]
mov rcx, qword [rax]
add rcx, qword [rbp - 0x18]
lea rdx, [rbp + 0xc0]
mov eax, dword [rbp + 0xc]
mov r8d, eax
call fcn.0041bba0
mov eax, dword [rbp + 0xc]
add rax, qword [rbp - 0x18]
mov qword [rbp - 0x18], rax
jmp 0x41696e
mov rax, qword [rbp - 8]
cmp qword [rax], 0
je 0x416a78
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, qword [rbp - 0x18]
mov byte [rax + rcx], 0
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0xbc], 0
jne 0x416ab2
mov dword [rbp + 8], 0
jmp 0x416ab9
mov dword [rbp + 8], 0xffffffff
mov eax, dword [rbp + 8]
mov dword [rbp - 0x28], eax
mov rcx, qword [rbp + 0x28c8]
xor rcx, rbp
mov rax, qword [0x00442300]
mov rax, qword [rax]
sub rax, rcx
jne 0x416ae1
jmp 0x416ae6
call fcn.0041bf30
mov eax, dword [rbp - 0x28]
add rsp, 0x2950
pop rbp
ret