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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rbp + 0x410], rax
xor r14d, r14d
mov rdi, rdx
mov rsi, rcx
mov ebx, r14d
test rdx, rdx
je 0x1400214a4
mov ecx, r14d
lea rdx, str.stderr
nop dword [rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x140021512
cmp rcx, 7
jne 0x140021480
mov ecx, 2
call fcn.14004cadc
mov rbx, rax
mov r9d, 0x1000
mov dword [rsp + 0x54], 0xffffffff
lea r8, [rbp - 0x80]
mov qword [rbp - 0x80], r14
lea rdx, [rsp + 0x60]
mov qword [rbp - 0x70], 1
lea rcx, [rsp + 0x58]
mov qword [rbp - 0x78], r14
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400216ea
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14002154c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.14004cadc
lea rdx, str.SetHandleInformation___failed_with__d__n
jmp 0x140021703
lea rdx, [0x140093bc0]
mov rcx, rdi
call fcn.14004c9b0
mov rbx, rax
test rax, rax
jne 0x1400214a4
lea ecx, [rax + 2]
call fcn.14004cadc
mov rcx, rax
lea rdx, str.Failed_to_open__s_n
mov r8, rdi
call fcn.1400209f0
jmp 0x14002170e
xor eax, eax
mov dword [rbp - 0x60], 0x68
xorps xmm0, xmm0
mov dword [rbp - 0xc], eax
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rbp], rax
xor r8d, r8d
mov qword [rbp - 8], rax
mov rdx, rsi
movups xmmword [rbp - 0x2c], xmm0
xor ecx, ecx
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x1c], xmm0
psrldq xmm0, 8
movd eax, xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
bts eax, 8
mov dword [rbp - 0x24], eax
xor eax, eax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14002168a
mov rcx, qword [rsp + 0x68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14002167d
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
mov r8d, 0x400
mov qword [rsp + 0x20], r14
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002167d
cmp dword [rsp + 0x50], r14d
jbe 0x14002165a
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.140057be8
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x50]
mov r8d, 0x400
mov qword [rsp + 0x20], r14
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140021647
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400216c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400216c8
mov ecx, 2
call fcn.14004cadc
mov rcx, rax
lea rdx, str.CreateProcess_failed._Error__d_n
mov r8d, edi
call fcn.1400209f0
test rbx, rbx
je 0x1400216e4
mov ecx, 2
call fcn.14004cadc
cmp rbx, rax
je 0x1400216e4
mov rcx, rbx
call fcn.14004d150
mov eax, dword [rsp + 0x54]
jmp 0x140021713
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.14004cadc
lea rdx, str.CreatePipe___failed_with__d__n
mov r8d, ebx
mov rcx, rax
call fcn.1400209f0
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.140042470
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret