Function at 0x2d9e3c6dd0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Execute shell command and capture output
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov qword [rcx + 8], rdx
lea rax, [0x2d9e408cf8]
mov qword [rcx], rax
xor r9d, r9d
mov qword [rdx + 0x68], rcx
mov rbx, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x10], rax
xor r12d, r12d
lea rcx, [rbp - 0x68]
mov dword [rbp - 0x70], r12d
lea rax, [0x2d9e409480]
xor edx, edx
mov qword [rbx], rax
xor eax, eax
mov qword [rbp - 0x80], rax
lea r8d, [rax + 0x60]
call fcn.2d9e3e3840
xor eax, eax
mov qword [rsp + 0x58], r12
xor edx, edx
mov qword [rsp + 0x60], rax
mov r8d, 0x208
mov qword [rsp + 0x68], rax
lea rcx, [rbp]
call fcn.2d9e3e3840
xor r9d, r9d
mov qword [rbx + 0x18], r12
lea r8, [rsp + 0x70]
mov qword [rbx + 0x20], r12
lea rdx, [rbx + 0x30]
mov qword [rbx + 0x28], r12
lea rcx, [rbx + 0x18]
mov qword [rbx + 0x30], r12
mov dword [rsp + 0x70], 0x18
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x2d9e3c6eda
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x2d9e3c6ec2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x2d9e3c706f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x2d9e3c706f
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rbx + 0x20]
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x2d9e3c6f1b
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x2d9e3c6f03
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x2d9e3c706f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x2d9e3c706f
xor edx, edx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x68]
call fcn.2d9e3e3840
xor eax, eax
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rax, qword [rbx + 0x28]
lea rcx, [rbp]
mov qword [rbp - 0x20], rax
mov edx, 0x104
mov rax, qword [rbx + 0x30]
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x70], 0x68
mov word [rbp - 0x30], r12w
mov dword [rbp - 0x34], 0x101
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, [0x2d9e409498]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rbp]
lea rax, [rbp - 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x2d9e3c6ff9
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x2d9e3c706f
mov rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbx + 8]
mov r9b, 0x3f
mov qword [rbx + 0x38], rax
mov r8d, 1
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x40], rax
mov byte [rsp + 0x50], 0x85
call fcn.2d9e3b1ff0
mov rcx, qword [rbx + 0x10]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x96
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r9, rbx
mov byte [rsp + 0x30], r12b
lea r8, [0x2d9e3c72e0]
call fcn.2d9e3c8b70
mov r9, rbx
mov qword [rbx + 0x48], rax
lea r8, [0x2d9e3c7470]
mov byte [rsp + 0x30], r12b
call fcn.2d9e3c8b70
mov qword [rbx + 0x50], rax
mov rax, rbx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.2d9e3da7d0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret