Function at 0x1401a2214
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13b, r8b
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov r15d, r12d
mov dword [rsp + 0x68], r12d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov esi, r12d
mov qword [rsp + 0x40], r12
cmp qword [rdx + 0x10], r12
jne 0x1401a228f
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
jmp 0x1401a2868
mov rcx, rbx
cmp qword [rdx + 0x18], 8
jb 0x1401a229c
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
movdqa xmm0, xmmword [0x14034f9a0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r12w
lea r12, [0x14030cae0]
test r14d, r14d
jne 0x1401a2381
call fcn.14004acb4
mov r14, qword [rax + 8]
cmp dword [r14], 3
jbe 0x1401a2372
lea rax, str.The_call_to_ExpandEnvironmentStringsW_has_failed__continue_as_we_might_still_be_able_to_find_some_file_names
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 0xda
xor r8d, r8d
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401a2303
mov rcx, qword [rbx]
mov rdx, r12
mov rax, r8
test rcx, rcx
je 0x1401a231f
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r8w
jne 0x1401a2315
mov qword [rbp + 0x50], rdx
lea eax, [rax*2 + 2]
mov dword [rbp + 0x58], eax
mov dword [rbp + 0x5c], r8d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403998a2]
mov rcx, r14
call fcn.140001158
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.140061d90
jmp 0x1401a23c0
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.14016b760
nop
cmp qword [rbx + 0x18], 8
jb 0x1401a2398
mov rbx, qword [rbx]
mov r8d, r14d
mov rdx, qword [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, qword [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.14007cf28
nop
lea rcx, [rbp - 0x68]
call fcn.140084ac8
xor r9d, r9d
lea rdx, [0x140463278]
lea rcx, [rsp + 0x78]
call fcn.1401ea630
xor r14d, r14d
lea rcx, [rsp + 0x78]
test al, al
je 0x1401a2413
lea r9, [0x1404632b8]
cmp qword [0x1404632d0], 8
cmovae r9, qword [0x1404632b8]
mov rax, qword [0x1404632c8]
mov qword [rsp + 0x20], rax
mov r8, qword [0x140463288]
xor edx, edx
call fcn.1401a289c
jmp 0x1401a247c
xor r9d, r9d
lea rdx, [0x140463298]
call fcn.1401ea630
test al, al
je 0x1401a247c
lea r8, [rsp + 0x78]
lea rdx, [0x1404632b8]
lea rcx, [rbp - 0x48]
call fcn.14006b6ac
mov rbx, rax
lea rax, [rsp + 0x78]
cmp rax, rbx
je 0x1401a2472
lea rcx, [rsp + 0x78]
call fcn.14004b500
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
lea rcx, [rbp - 0x48]
call fcn.14004b500
nop
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHEvaluateSystemCommandTemplate]
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x28]
call fcn.14004a36c
nop
cmp dword [rsp + 0x50], r14d
jl 0x1401a2573
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1401a2573
test r13b, r13b
jne 0x1401a2501
lea rcx, [rbp - 0x48]
call fcn.14004a9e4
nop
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x30]
call fcn.1400989d4
nop
lea rcx, [rbp - 0x48]
call fcn.14004b500
mov rsi, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1401a2523
lea rcx, [rbp - 0x48]
call fcn.14004a9e4
mov r15d, 2
cmp qword [rax + 0x10], r14
mov bl, r14b
jne 0x1401a2525
mov bl, 1
test r15b, 2
je 0x1401a2534
lea rcx, [rbp - 0x48]
call fcn.14004b500
test bl, bl
je 0x1401a2560
mov rax, qword [rsp + 0x30]
mov qword [rdi], rax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
jmp 0x1401a2831
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x28]
call fcn.14007cf28
jmp 0x1401a260e
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401a260e
lea rax, str.The_call_to_SHEvaluateSystemCommandTemplate_has_failed__continue_as_we_might_still_be_able_to_find_some_file_names
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 0xe6
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rax, qword [rsp + 0x78]
mov rdx, r12
mov rcx, r14
test rax, rax
je 0x1401a25c5
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x1401a25bb
mov qword [rbp + 0x50], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x58], eax
mov dword [rbp + 0x5c], r14d
lea rax, [rsp + 0x50]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140399794]
mov rcx, r10
call fcn.140001158
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
call fcn.14005f560
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
lea rdx, [rsp + 0x54]
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_CommandLineToArgvW]
mov rbx, rax
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x48]
call fcn.14004b500
test rbx, rbx
jne 0x1401a2718
call fcn.14004acb4
mov rbx, qword [rax + 8]
cmp dword [rbx], 3
jbe 0x1401a26f0
lea rax, str.The_call_to_CommandLineToArgvW_has_failed
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 0x54
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rcx, qword [rbp - 0x28]
mov rax, r14
test rcx, rcx
je 0x1401a269d
mov r12, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1401a2693
mov qword [rbp + 0x50], r12
lea eax, [rax*2 + 2]
mov dword [rbp + 0x58], eax
mov dword [rbp + 0x5c], r14d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], 4
lea rax, [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403997d6]
mov rcx, rbx
call fcn.140001158
mov rax, qword [rsp + 0x30]
mov qword [rdi], rax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
jmp 0x1401a2831
xor r12d, r12d
cmp dword [rsp + 0x54], r12d
jle 0x1401a2804
mov r15, rbx
mov rdx, qword [r15]
lea rcx, [rbp - 0x68]
call fcn.14004a9e4
nop
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rcx, qword [rbp - 0x68]
mov qword [rsp + 0x20], 4
lea r9, str.dll_
xor r8d, r8d
mov rdx, qword [rbp - 0x58]
call fcn.1401a2ae0
lea rsi, [rax + 3]
cmp rax, 0xffffffffffffffff
cmove rsi, rax
mov r8, rsi
lea rdx, [0x14030f790]
lea rcx, [rbp - 0x68]
call fcn.14009dae0
cmp rax, 0xffffffffffffffff
je 0x1401a27e4
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x68]
call fcn.14005a194
mov rsi, rax
lea rax, [rbp - 0x68]
cmp rax, rsi
je 0x1401a27cc
lea rcx, [rbp - 0x68]
call fcn.14004b500
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 7
mov word [rsi], r12w
lea rcx, [rbp - 8]
call fcn.14004b500
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x30]
call fcn.1400989d4
nop
lea rcx, [rbp - 0x68]
call fcn.14004b500
inc r14d
add r15, 8
cmp r14d, dword [rsp + 0x54]
jl 0x1401a2729
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov qword [rdi], rax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rbp - 0x28]
call fcn.14004b500
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401a284c
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401a285d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rsp + 0x78]
call fcn.14004b500
nop
lea rcx, [rsp + 0x30]
call fcn.1400565a8
mov rax, rdi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret