Function at 0x1400c0d40
Capabilities:
Accept command line arguments
Create process on windows
Set environment variable

Disassembly:
endbr64
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x308
lea rsi, [0x1400c7050]
call fcn.14000d410
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleCP]
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov rbx, qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rsi
lea rcx, [0x1400c7054]
call rbx
mov rdx, rsi
lea rcx, str.ENABLE_CP_UTF8
call rbx
mov rdx, rsi
lea rsi, [rsp + 0xf0]
lea rcx, str.ENABLE_HANDLING_VIRTUAL_TERMINAL_PROCESSING
call rbx
xor ecx, ecx
mov r8d, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400c0f99
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rcx, rax
test rax, rax
je 0x1400c0dec
lea rdx, [rax - 1]
nop dword [rax]
mov rbx, rdx
lea rdx, [rdx - 1]
cmp word [rsi + rbx*2], 0x5c
je 0x1400c0dee
cmp rdx, 0xffffffffffffffff
jne 0x1400c0dd8
xor ebx, ebx
lea rbp, str._cli.exe
mov rdi, rcx
mov rcx, rbp
sub rdi, rbx
call sub.msvcrt.dll_wcslen
cmp rdi, rax
jb 0x1400c10c7
sub rdi, rax
test rax, rax
lea r8, [rbx + rdi]
sete r9b
mov rcx, rdi
add r8, r8
add r8, rsi
cmp rbp, r8
je 0x1400c0e48
test r9b, r9b
jne 0x1400c0e48
xor edx, edx
movzx edi, word [rbp + rdx*2]
cmp word [r8 + rdx*2], di
jne 0x1400c0f80
add rdx, 1
cmp rdx, rax
jne 0x1400c0e2f
cmp rcx, 0xffffffffffffffff
je 0x1400c10c7
add rbx, rcx
mov eax, 0x208
lea r8, str..exe
add rbx, rbx
cmp rbx, rax
lea rcx, [rsi + rbx]
cmovae rax, rbx
mov rdx, rax
sub rdx, rbx
shr rdx, 1
call qword [sym.imp.msvcrt.dll_wcscpy_s]
mov ebx, eax
test eax, eax
jne 0x1400c10df
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x84]
mov ecx, 0x19
lea r12, [rsp + 0x60]
mov rdi, rdx
mov rbp, rax
lea r13, [rsp + 0x80]
mov eax, ebx
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, r12
mov rbx, qword [sym.imp.KERNEL32.dll_GetStdHandle]
rep stosd dword [rdi], eax
mov ecx, 0xfffffff5
mov dword [rsp + 0x80], 0x68
call rbx
mov ecx, 0xfffffff4
mov qword [rsp + 0xd8], rax
call rbx
mov ecx, 0xfffffff6
mov qword [rsp + 0xe0], rax
call rbx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
or dword [rsp + 0xbc], 0x100
mov rcx, rsi
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov rdx, rbp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400c0ff9
xor eax, eax
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
add rsp, 0x308
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rdx, [rcx - 1]
sub r8, 2
test rcx, rcx
je 0x1400c10c7
mov rcx, rdx
jmp 0x1400c0e23
mov rsi, qword [0x1400cd2f0]
mov r8d, 0x2d
lea rdx, str.Unable_to_determine_wrapper_executable_path:
mov rcx, rsi
call fcn.1400bb2e0
call fcn.1400a6900
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x80]
mov rcx, rsi
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x80], eax
call fcn.1400bdfb0
mov edx, 0xa
mov rcx, rax
call fcn.1400bdf10
mov eax, 1
jmp 0x1400c0f6e
mov rdi, qword [0x1400cd2f0]
mov r8d, 0x22
lea rdx, str.Unable_to_launch_main_executable:
mov rcx, rdi
call fcn.1400bb2e0
call fcn.1400a6900
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x50], eax
lea rbx, str.___assumed_path:
call fcn.1400bdfb0
mov edx, 0xa
mov rcx, rax
call fcn.1400bdf10
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rdx, rbx
mov rbx, qword [str._k_f_]
mov r8, rax
mov rcx, rbx
call fcn.1400bb6e0
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rdx, rsi
mov rcx, rbx
lea rsi, str.___assumed_command_line:
mov r8, rax
call fcn.1400bb6e0
mov edx, 0xa
mov rcx, rbx
call fcn.140001540
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rdx, rsi
mov rcx, rbx
mov r8, rax
call fcn.1400bb6e0
mov rdx, rbp
mov rcx, rbx
call fcn.1400be1b0
mov edx, 0xa
mov rcx, rax
call fcn.140001540
jmp 0x1400c0fef
mov rcx, qword [0x1400cd2f0]
lea rdx, str.Unable_to_determine_main_executable_path:_unexpected_wrapper_executable_name_n
call fcn.1400bde00
jmp 0x1400c0fef
call fcn.14000d310
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub rsp, 0x28
lea rcx, [0x1400c6e80]
call fcn.1400b7000
lea rcx, [0x1400c0cb0]
add rsp, 0x28
jmp fcn.140001410