Function at 0x140001704
Capabilities:
Create process on windows
Get common file path
Set current directory
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
lea rbp, [rax - 0xa08]
sub rsp, 0xaf0
mov rax, qword [0x1400143c8]
xor rax, rsp
mov qword [rbp + 0x9e0], rax
mov r12, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectA]
xor ecx, ecx
lea rdx, str.Job_creation_failed
test rax, rax
mov qword [0x140016400], rax
setne cl
call fcn.140001074
mov rcx, qword [0x140016400]
lea r11, [rsp + 0x50]
mov ebx, 0x90
mov edi, 9
lea r8, [0x140016420]
mov r9d, ebx
mov edx, edi
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x14000179b
cmp dword [rsp + 0x50], ebx
jne 0x14000179b
lea ecx, [rdi - 8]
jmp 0x14000179d
xor ecx, ecx
lea rdx, str.Job_information_querying_failed
call fcn.140001074
mov rcx, qword [0x140016400]
or dword [0x140016430], 0x3000
lea r8, [0x140016420]
mov r9d, ebx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
lea rdx, str.Job_information_setting_failed
mov ecx, eax
call fcn.140001074
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x68]
call fcn.140007eb0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test dword [rbp - 0x64], 0x600
jne 0x14000187b
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rsi
mov rbx, rax
call fcn.1400014a8
lea rdx, str.making_stdin_inheritable_failed
mov ecx, eax
call fcn.140001074
mov rcx, rdi
call fcn.1400014a8
lea rdx, str.making_stdout_inheritable_failed
mov ecx, eax
call fcn.140001074
mov rcx, rbx
call fcn.1400014a8
lea rdx, str.making_stderr_inheritable_failed
mov ecx, eax
call fcn.140001074
bts dword [rbp - 0x64], 8
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rbx
lea rax, [0x140016408]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov rdx, r12
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000190a
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x1e0]
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rcx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea r9, [rbp + 0x1e0]
lea rdx, str.Unable_to_create_process_using__ls:__ls
mov r8, r12
xor ecx, ecx
call fcn.140001000
cmp word [rbp - 0x5e], 4
jb 0x140001985
mov rdx, qword [rbp - 0x58]
test rdx, rdx
je 0x140001985
movsxd rdi, dword [rdx]
movzx eax, word [rbp - 0x5e]
lea rcx, [rdi + rdi*8 + 4]
cmp rax, rcx
jb 0x140001985
lea rcx, [0x1400014ec]
lea rsi, [rdi + rdx + 4]
call fcn.140003010
lea rbx, [rsi + 0x18]
lea r12, [rsi + rdi*8]
mov r13, rax
cmp rbx, r12
jae 0x14000197d
mov rdi, rbx
sub rdi, rsi
cmp qword [rbx], 0
je 0x140001970
cmp qword [rbx], 0xffffffffffffffff
je 0x140001970
cmp qword [rbx], 0xfffffffffffffffe
je 0x140001970
mov rcx, rdi
sar rcx, 3
call fcn.140004010
add rbx, 8
add rdi, 8
cmp rbx, r12
jb 0x140001952
mov rcx, r13
call fcn.140003010
call fcn.140001540
lea rdx, [rbp - 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x1400019ac
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [0x140001480]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rdx, str.control_handler_setting_failed
mov ecx, eax
call fcn.140001074
mov rdx, qword [0x140016408]
mov rcx, qword [0x140016400]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov rcx, qword [0x140016410]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140016408]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [0x140016408]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea rdx, str.Failed_to_get_exit_code_of_process
mov ecx, eax
call fcn.140001074
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExitProcess]