Function at 0x140010ec8
Capabilities:
Resolve path using msvcrt
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r15d, r15d
mov rcx, qword [0x1400980a8]
test rcx, rcx
je 0x140010f03
call fcn.14001c8bc
mov qword [0x1400980a8], r15
mov rcx, qword [0x140087b80]
test rcx, rcx
je 0x140010f1b
call fcn.14001c8bc
mov qword [0x140087b80], r15
mov rcx, qword [0x1400981e0]
test rcx, rcx
je 0x140010f33
call fcn.14001c8bc
mov qword [0x1400981e0], r15
mov rcx, qword [0x14009a5e0]
test rcx, rcx
je 0x140010f4f
mov rbx, qword [rcx]
call fcn.14001c8bc
mov rcx, rbx
test rbx, rbx
jne 0x140010f3f
cmp byte [0x14007ce0c], r15b
mov r9, qword [0x140087b08]
jne 0x140010f80
movsxd rcx, dword [0x140086514]
lea rdx, [0x140078160]
mov qword [r9 + rcx*8], rdx
inc ecx
mov rdx, qword [0x140087b00]
add rdx, 3
jmp 0x140010f8d
mov ecx, dword [0x140086514]
mov rdx, qword [0x140087b00]
movsxd rax, ecx
lea r8, [0x140078168]
inc ecx
or r12, 0xffffffffffffffff
mov qword [r9 + rax*8], r8
movsxd rax, ecx
lea r11d, [rcx + 1]
mov dword [0x140086514], r11d
mov qword [r9 + rax*8], rdi
mov rax, r12
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140010fb6
mov r8, qword [0x140087b10]
lea r10, [rax + 5]
add r10, rdx
add r8, 8
mov edx, dword [0x140086a5c]
dec edx
mov qword [0x140087b00], r10
mov dword [0x140086a5c], edx
mov qword [0x140087b10], r8
test edx, edx
jle 0x14001103a
mov rax, qword [r8]
movsxd rcx, r11d
inc r11d
mov qword [r9 + rcx*8], rax
mov rax, r12
mov rcx, qword [r8]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140011005
inc r10
dec edx
add r10, rax
add r8, 8
test edx, edx
jg 0x140010ff2
mov dword [0x140086a5c], edx
mov qword [0x140087b10], r8
mov qword [0x140087b00], r10
mov dword [0x140086514], r11d
lea rdx, [0x140078170]
lea rcx, [0x140077c18]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
mov rcx, qword [0x140087b00]
mov eax, 2
inc rcx
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.14000eec8
cmp dword [0x140086514], r15d
mov r14, rax
mov rbx, rax
mov ebp, r15d
jle 0x1400110fb
mov rsi, r15
mov rdx, qword [0x140087b00]
mov rdi, rbx
sub rdi, r14
sar rdi, 1
lea rax, [rdx + 1]
cmp rdi, rax
jb 0x1400110ab
mov ecx, 0x3f8
call fcn.140016a1c
mov rdx, qword [0x140087b00]
mov r8, qword [0x140087b08]
sub rdx, rdi
inc rdx
mov rcx, rbx
mov r8, qword [rsi + r8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rax, qword [0x140087b08]
mov rcx, qword [rsi + rax]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400110d3
lea rbx, [rbx + rax*2]
inc ebp
mov eax, 0x20
add rsi, 8
mov word [rbx], ax
add rbx, 2
cmp ebp, dword [0x140086514]
jl 0x140011081
mov rdx, r14
mov word [rbx - 2], r15w
lea rcx, str._ML_CMDFLAGS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
test eax, eax
je 0x14001111e
mov ecx, 0x3ec
call fcn.140016a1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
mov r8, qword [0x140086ab8]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x20], r15
mov rdx, qword [rax]
call qword [sym.imp.api_ms_win_crt_process_l1_1_0.dll__wspawnlp]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3