Function at 0x140039a80
Capabilities:
Create pipe
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rbp - 0x19], r15d
xor edx, edx
lea r8d, [r15 + 2]
add rcx, 0x10
call fcn.1400241a0
lea rdx, [rbp + 7]
lea rcx, [r14 + 0x10]
call fcn.140025210
mov r13, qword [rax + 8]
add r13, qword [rax]
lea edi, [r13 + 1]
mov eax, 2
mul rdi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140066cfc
mov rbx, rax
mov qword [rbp + 0x77], rax
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, rax
call fcn.140069420
nop
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movdqa xmm1, xmmword [0x14009fe00]
movdqu xmmword [rbp + 0x17], xmm1
mov word [rbp + 7], r15w
mov dword [rbp - 0x19], 4
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rax
mov ecx, dword [r14 + 0x88]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140039b6e
mov rax, qword [r14 + 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140039b6e
mov rax, qword [r14 + 0x38]
mov rdx, qword [rax]
mov qword [rbp + 0x67], r8
lea rax, [r14 + 0x80]
lea rcx, [rbp + 0x67]
cmp r8, qword [rax]
cmovb rcx, rax
mov r8, qword [rcx]
sub r8, rdx
sar r8, 1
jmp 0x140039ba1
test cl, 4
jne 0x140039b99
mov rax, qword [r14 + 0x50]
mov r8, qword [rax]
test r8, r8
je 0x140039b99
mov rax, qword [r14 + 0x30]
mov rdx, qword [rax]
mov rax, qword [r14 + 0x68]
movsxd rcx, dword [rax]
lea r8, [r8 + rcx*2]
sub r8, rdx
sar r8, 1
jmp 0x140039ba1
mov r8, qword [rbp - 9]
mov rdx, qword [rbp - 0x11]
test rdx, rdx
je 0x140039bb0
lea rcx, [rbp + 7]
call fcn.14003a630
nop
lea rdx, [rbp + 7]
mov rdi, qword [rbp + 7]
mov r12, qword [rbp + 0x1f]
cmp r12, 8
cmovae rdx, rdi
mov r8d, r13d
add r8, r8
mov rcx, rbx
call fcn.140068d80
cmp r12, 8
jb 0x140039c0d
lea rdx, [r12*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140039c05
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039d73
mov rcx, rdi
call fcn.140066cf4
mov byte [rsi], 0
mov dword [rsi + 0x88], r15d
mov qword [rsi + 0x90], 0xffffffffffffffff
lea r13, [rsi + 0x70]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rax
lea rdi, [rsi + 8]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
mov qword [rdi + 0x60], rax
mov dword [rdi], 0x68
cmp byte [r14 + 0x131], al
je 0x140039cb4
mov dword [rbp + 7], 0x18
mov dword [rbp + 0x17], 1
mov qword [rbp + 0xf], r15
xor r9d, r9d
lea r8, [rbp + 7]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rbp - 9]
mov qword [rsi + 0x60], rax
mov rax, qword [rbp - 0x11]
mov qword [rsi + 0x90], rax
or dword [rsi + 0x44], 0x100
cmp qword [r14 + 0x108], 0
jbe 0x140039cd1
lea rdx, [r14 + 0xf8]
cmp qword [rdx + 0x18], 8
jb 0x140039cd4
mov rdx, qword [rdx]
jmp 0x140039cd4
mov rdx, r15
mov eax, dword [r14 + 0x12c]
mov ecx, dword [r14 + 0x128]
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9, qword [r14 + 0x120]
mov r8, qword [r14 + 0x118]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
sete al
mov byte [rsi], al
cmp qword [r14 + 0x138], 0xffffffffffffffff
je 0x140039d33
mov rcx, qword [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsi], 0
jne 0x140039d41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov dword [rsi + 0x88], r15d
test rbx, rbx
je 0x140039d55
mov rcx, rbx
call fcn.140066cf4
mov rax, rsi
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140075c54
nop
int3