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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rbx, rdx
mov rsi, rcx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r15b
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x60], 0x18
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x68], r15
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140046b81
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], eax
mov dword [rbp - 0x50], 0x68
mov rax, qword [rsp + 0x58]
mov qword [rbp + 0x10], rax
mov qword [rbp + 8], rax
psrldq xmm0, 8
movd eax, xmm0
bts eax, 8
mov dword [rbp - 0x14], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x140046b4d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0xe0], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xe0]
mov r8d, 0x80
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140046b26
movzx ebx, byte [rbp + 0xd0]
mov eax, dword [rbp + 0xe0]
test eax, eax
je 0x140046b26
mov r14d, eax
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp r14, rax
ja 0x140046ae3
lea rax, [rcx + r14]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x140046ac9
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, r14
lea rdx, [rbp + 0x20]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + r14], 0
jmp 0x140046afb
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x20]
movzx r8d, bl
mov rdx, r14
mov rcx, rsi
call fcn.14004d710
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xe0]
mov r8d, 0x80
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140046a91
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.CreateProcess_failed
lea rcx, [rbp - 0x70]
call fcn.14003d7a0
lea rdx, [0x14010d2a0]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.CreatePipe_failed
lea rcx, [rbp - 0x70]
call fcn.14003d7a0
lea rdx, [0x14010d2a0]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3