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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x608
movaps xmmword [rsp + 0x5f0], xmm6
mov qword [rsp + 0x68], r9
mov r15, r8
mov ebp, edx
mov r13, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x5e8], rax
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov bl, byte [0x14052c7a0]
test bl, 0x19
jne 0x14037997e
xor esi, esi
mov qword [rsp + 0x58], rdi
mov r14, rdi
xor r12d, r12d
lea rcx, [rsp + 0x1d8]
mov qword [rcx], r12
lea rdx, [rsp + 0x1d0]
mov qword [rdx], r12
movaps xmm6, xmmword [0x14047fb40]
lea r8, [rsp + 0x1b0]
movaps xmmword [r8], xmm6
mov qword [r8 + 0x10], rdi
mov dword [r8], SafeArrayCopy
mov dword [r8 + 0x10], 1
mov qword [r8 + 8], r12
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x140379935
mov rdx, qword [rsp + 0x1d8]
xor r12d, r12d
lea rcx, [rsp + 0x1a8]
mov qword [rcx], r12
call fcn.140232c10
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x1a0]
mov qword [rcx], r12
call fcn.140232c10
mov rcx, qword [rsp + 0x1d8]
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1403798ef
mov qword [rsp + 0x60], r14
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x180]
mov qword [rdi + 0x10], r14
movaps xmmword [rdi], xmm6
mov rcx, rdi
mov rdx, r13
call fcn.1401335c0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x110], xmm0
movaps xmmword [rsp + 0x150], xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x120], xmm0
mov dword [rsp + 0x110], WSASetLastError
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x168], rax
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x160], rax
test bpl, bpl
jne 0x140379706
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x14037970e
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x14c], 0x100
xorps xmm0, xmm0
movaps xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], 0
cmp byte [rsp + 0x197], 0
jns 0x14037974a
mov rdi, qword [rsp + 0x180]
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r12d, r12d
xor ecx, ecx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1403798d3
lea rcx, [rsp + 0xd0]
mov qword [rcx + 0x10], r14
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0xf0]
call fcn.14018dff0
mov rax, qword [rsp + 0x1a0]
inc rax
cmp rax, 2
jb 0x1403797e0
call fcn.14026d530
mov rcx, qword [rsp + 0x1a0]
call fcn.140252540
mov qword [rsp + 0x1a0], 0
lea rdi, [rsp + 0x1e0]
mov r8d, 0x400
mov rcx, rdi
mov dl, 0xaa
call fcn.1402e0d10
lea r12, [rsp + 0x90]
mov r14, qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x1d8]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x400
mov r9, r12
call r14
test eax, eax
je 0x140379850
mov r8d, dword [rsp + 0x90]
test r8d, r8d
je 0x140379850
mov rcx, r15
mov rdx, rdi
call fcn.14013ad00
jmp 0x140379807
lea rdi, [rsp + 0x90]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetAppOutputInternal
lea r8, str....._baseprocesslaunch_win.cc
lea r15, [rsp + 0x70]
mov rcx, r15
mov r9d, 0x83
call fcn.14026d510
mov rcx, rdi
mov rdx, r15
xor r8d, r8d
call fcn.14025d230
lea r15, [rsp + 0xd0]
mov rcx, qword [r15]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.14025d470
mov rcx, qword [r15]
mov rdx, qword [rsp + 0x68]
call fcn.14018e210
and eax, 0xfffffffd
cmp eax, 1
setne r12b
mov rcx, r15
call fcn.14018e130
cmp byte [rsp + 0x197], 0
mov r14, qword [rsp + 0x60]
jns 0x1403798ef
mov rcx, qword [rsp + 0x180]
call fcn.1402dd16c
mov rax, qword [rsp + 0x1a0]
inc rax
cmp rax, 2
jb 0x140379912
call fcn.14026d530
mov rcx, qword [rsp + 0x1a0]
call fcn.140252540
mov rax, qword [rsp + 0x1a8]
inc rax
cmp rax, 2
jb 0x140379935
call fcn.14026d530
mov rcx, qword [rsp + 0x1a8]
call fcn.140252540
test bl, 0x19
je 0x14037994f
cmp byte [rsi], 0
je 0x14037994f
mov rcx, rsi
mov rdx, r14
mov r8, qword [rsp + 0x58]
call fcn.140251990
mov rcx, qword [rsp + 0x5e8]
xor rcx, rsp
call fcn.1402ddd70
mov eax, r12d
movaps xmm6, xmmword [rsp + 0x5f0]
add rsp, 0x608
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x1e0]
mov rcx, rsi
call fcn.140252c90
call sub.KERNEL32.dll_GetCurrentThreadId
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rsi, [0x14052c7a0]
lea r14, str.GetAppOutput
mov cl, 0x58
mov rdx, rsi
mov r8, r14
xor r9d, r9d
call fcn.140251090
mov qword [rsp + 0x58], rax
jmp 0x1403795cd