Function at 0x40ffe0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x550
lea rbp, [rsp + 0x80]
mov r15, r8
mov rsi, rdx
mov qword [rbp + 0x4b0], rcx
lea rcx, [rbp + 0x4b0]
mov rdx, rcx
call fcn.00754280
mov qword [rbp + 0x4b8], rsi
lea rcx, [rbp + 0x4b8]
mov rdx, rcx
call fcn.00754280
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x90]
call fcn.00766150
mov rdi, rax
mov dword [rbp + 0x450], 0x18
mov qword [rbp + 0x458], 0
mov dword [rbp + 0x460], 1
lea rcx, [rbp + 0x480]
lea rdx, [rbp + 0x4a8]
lea r8, [rbp + 0x450]
xor r9d, r9d
call fcn.00766030
mov rdx, qword [rbp + 0x4a8]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x498]
mov rcx, rdi
mov r8, rdi
call fcn.00766088
lea rcx, [rbp + 0x490]
lea rdx, [rbp + 0x488]
lea r8, [rbp + 0x450]
xor r9d, r9d
call fcn.00766030
mov rdx, qword [rbp + 0x480]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x478]
mov rcx, rdi
mov r8, rdi
call fcn.00766088
mov rdx, qword [rbp + 0x488]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x470]
mov rcx, rdi
mov r8, rdi
call fcn.00766088
mov rcx, qword [rbp + 0x480]
call fcn.00765fd8
mov rcx, qword [rbp + 0x488]
call fcn.00765fd8
lea rsi, [rbp + 0x3d0]
xor edx, edx
mov r8d, 0x68
mov rcx, rsi
call fcn.0072a3d0
mov dword [rbp + 0x3d0], 0x68
mov dword [rbp + 0x40c], 0x101
mov word [rbp + 0x410], 0
mov rax, qword [rbp + 0x4a8]
mov qword [rbp + 0x428], rax
mov rax, qword [rbp + 0x490]
mov qword [rbp + 0x420], rax
mov rax, qword [rbp + 0x498]
mov qword [rbp + 0x430], rax
mov rax, qword [rbp + 0x4b0]
test rax, rax
lea rdx, [0x007682d8]
cmovne rdx, rax
lea rax, [rbp + 0x438]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call fcn.00766040
mov r14, qword [rbp + 0x438]
mov rcx, qword [rbp + 0x440]
call fcn.00765fd8
mov rcx, qword [rbp + 0x4a8]
call fcn.00765fd8
mov rcx, qword [rbp + 0x490]
call fcn.00765fd8
mov rcx, qword [rbp + 0x498]
call fcn.00765fd8
mov qword [rbp + 0x4c8], 0
lea rdx, [0x007682d8]
lea rcx, [rbp + 0x4c8]
mov r8d, 0xffffffff
xor r9d, r9d
call fcn.00746290
lea rcx, [rbp - 0x30]
xor edx, edx
mov r8d, 0x400
call fcn.0072a3d0
lea rbx, [rbp - 0x30]
lea rdi, [rbp + 0x46c]
lea rsi, [rbp + 0x4a0]
lea r12, [rbp + 0x4c8]
nop
mov rcx, qword [rbp + 0x478]
mov qword [rsp + 0x20], 0
mov r8d, 0x3fe
mov rdx, rbx
mov r9, rdi
call fcn.00766418
test eax, eax
je 0x4102e3
mov qword [rbp + 0x4a0], 0
xor r8d, r8d
mov rcx, rsi
mov rdx, rbx
call fcn.00745fa0
mov rcx, r12
mov rdx, rsi
call fcn.00746950
mov rcx, rsi
call fcn.004202c0
xor edx, edx
mov r8d, 0x400
mov rcx, rbx
call fcn.0072a3d0
jmp 0x410280
mov qword [rbp + 0x4c0], 0
lea rcx, [rbp + 0x4c0]
lea rdx, [rbp + 0x4c8]
call fcn.00591f90
mov rcx, qword [rbp + 0x4c0]
mov rdx, qword [rbp + 0x4b8]
mov r8, r15
call fcn.00409e00
lea rcx, [rbp + 0x4c0]
call fcn.007541c0
mov rcx, qword [rbp + 0x478]
call fcn.00765fd8
mov rcx, qword [rbp + 0x470]
call fcn.00765fd8
mov rcx, r14
call fcn.00765fd8
lea rcx, [rbp + 0x4c8]
call fcn.004202c0
lea rcx, [rbp + 0x4b8]
call fcn.007541c0
lea rcx, [rbp + 0x4b0]
call fcn.007541c0
mov al, 1
add rsp, 0x550
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret