Function at 0x1401d20ac
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 [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13b, r8b
mov rbx, rdx
mov r15, rcx
mov qword [rbp - 0x80], rcx
xor r12d, r12d
mov r14d, r12d
mov dword [rbp - 0x78], r12d
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov edi, r12d
mov qword [rsp + 0x48], r12
cmp qword [rdx + 0x10], r12
jne 0x1401d2129
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r12
jmp 0x1401d28dc
mov rcx, rbx
cmp qword [rdx + 0x18], 8
jb 0x1401d2136
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov esi, eax
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r12w
lea r12, [0x1403cb630]
test esi, esi
jne 0x1401d2222
call fcn.1400550c0
mov rsi, qword [rax + 8]
cmp dword [rsi], 3
jbe 0x1401d2214
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 0x1401d219f
mov rcx, qword [rbx]
mov rdx, r12
mov rax, r8
test rcx, rcx
je 0x1401d21bb
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r8w
jne 0x1401d21b1
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]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
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, [0x14047eece]
mov rcx, rsi
call fcn.140001208
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.14006fe84
jmp 0x1401d2266
mov rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.14019d860
nop
cmp qword [rbx + 0x18], 8
jb 0x1401d2239
mov rbx, qword [rbx]
mov r8d, esi
mov rdx, qword [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x20]
call fcn.140055574
nop
lea rcx, [rbp - 0x60]
call fcn.140097a24
xor r9d, r9d
lea rdx, [0x140542f78]
lea rcx, [rbp - 0x20]
call fcn.1402356f8
xor ebx, ebx
lea rcx, [rbp - 0x20]
test al, al
je 0x1401d22b6
lea r9, [0x14055d878]
cmp qword [0x14055d890], 8
cmovae r9, qword [0x14055d878]
mov rax, qword [0x14055d888]
mov qword [rsp + 0x20], rax
mov r8, qword [0x140542f88]
xor edx, edx
call fcn.1401d2964
jmp 0x1401d22f3
xor r9d, r9d
lea rdx, [0x140542f98]
call fcn.1402356f8
test al, al
je 0x1401d22f3
lea r8, [rbp - 0x20]
lea rdx, [0x14055d878]
lea rcx, [rbp - 0x40]
call fcn.14007a424
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140085570
lea rcx, [rbp - 0x40]
call fcn.140055f70
nop
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rcx, qword [rbp - 0x20]
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHEvaluateSystemCommandTemplate]
nop dword [rax + rax]
mov dword [rsp + 0x58], eax
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.14005da24
nop
cmp dword [rsp + 0x58], ebx
jl 0x1401d241a
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1401d241a
test r13b, r13b
jne 0x1401d2393
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp - 0x30], xmm0
xor r13d, r13d
mov word [rbp - 0x40], r13w
lea rcx, [rbp - 0x40]
call fcn.140055574
nop
lea r8, [rbp - 0x40]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1400b0a24
nop
lea rcx, [rbp - 0x40]
call fcn.140055f70
mov rdi, qword [rsp + 0x48]
jmp 0x1401d2396
xor r13d, r13d
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x1401d23ca
movdqa xmm0, xmmword [0x140420310]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r13w
lea rcx, [rbp - 0x40]
call fcn.140055574
mov r14d, 2
cmp qword [rbp - 0x30], r13
mov bl, r13b
jne 0x1401d23cc
mov bl, 1
test r14b, 2
je 0x1401d23db
lea rcx, [rbp - 0x40]
call fcn.140055f70
test bl, bl
je 0x1401d2407
mov rax, qword [rsp + 0x38]
mov qword [r15], rax
mov rax, qword [rsp + 0x40]
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
jmp 0x1401d289a
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp]
call fcn.140055574
jmp 0x1401d24b6
call fcn.1400550c0
mov r10, qword [rax + 8]
xor r13d, r13d
cmp dword [r10], 4
jbe 0x1401d24b6
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, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
mov rdx, r12
mov ecx, r13d
test rax, rax
je 0x1401d246d
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1401d2463
mov qword [rbp + 0x50], rdx
lea eax, [rcx*2 + 2]
mov dword [rbp + 0x58], eax
mov dword [rbp + 0x5c], r13d
lea rax, [rsp + 0x58]
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, [0x14047efd8]
mov rcx, r10
call fcn.140001208
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_shcore_obsolete_l1_1_0.dll_CommandLineToArgvW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x1401d25b2
call fcn.1400550c0
mov rbx, qword [rax + 8]
cmp dword [rbx], 3
jbe 0x1401d258a
lea rax, str.The_call_to_CommandLineToArgvW_has_failed
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 0x54
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
mov rax, r13
test rcx, rcx
je 0x1401d2531
mov r12, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1401d2527
mov qword [rbp + 0x50], r12
lea eax, [rax*2 + 2]
mov dword [rbp + 0x58], eax
mov dword [rbp + 0x5c], r13d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
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, [0x14047ef95]
mov rcx, rbx
call fcn.140001208
mov rax, qword [rsp + 0x38]
mov qword [r15], rax
mov rax, qword [rsp + 0x40]
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
jmp 0x1401d289a
mov esi, r13d
mov dword [rsp + 0x30], r13d
mov r12, qword [rsp + 0x40]
cmp dword [rsp + 0x5c], r13d
jle 0x1401d286c
mov r14, rax
mov qword [rsp + 0x70], rax
mov rbx, qword [rsp + 0x48]
mov rdx, qword [r14]
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r13w
lea rcx, [rbp - 0x60]
call fcn.140055574
nop
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], r13w
lea rdx, str.dll_
lea rcx, [rbp - 0x40]
call fcn.140055574
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x1401d2659
test rdx, rdx
jne 0x1401d2659
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r9, qword [rbp - 0x40]
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov qword [rsp + 0x20], r13
xor r8d, r8d
call fcn.1401fc598
mov r13, rax
jmp 0x1401d2788
lea rax, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rax, qword [rbp - 0x40]
lea rdi, [rax + rdx*2]
lea r9, [rbp - 0x40]
cmovae r9, qword [rbp - 0x40]
mov qword [rsp + 0x78], r9
lea rax, [rbp - 0x60]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x48]
cmp r8, 8
cmovae rax, rdx
lea rsi, [rax + rcx*2]
lea r13, [rbp - 0x60]
cmovae r13, rdx
mov r10, rdi
sub r10, r9
sar r10, 1
mov rax, rsi
sub rax, r13
sar rax, 1
cmp rax, r10
jl 0x1401d2741
lea rax, [r10 + r10]
mov rcx, rsi
sub rcx, rax
mov qword [rbp - 0x70], rcx
mov rcx, r9
mov qword [rsp + 0x68], rcx
cmp r9, rdi
je 0x1401d2763
mov rax, r13
sub rax, r9
movzx ecx, word [rax + rcx]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_tolower]
nop dword [rax + rax]
mov r14d, eax
mov rax, qword [rsp + 0x68]
movzx ecx, word [rax]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_tolower]
nop dword [rax + rax]
cmp r14d, eax
jne 0x1401d271f
mov rcx, qword [rsp + 0x68]
add rcx, 2
mov qword [rsp + 0x68], rcx
cmp rcx, rdi
je 0x1401d2763
mov r9, qword [rsp + 0x78]
jmp 0x1401d26d3
cmp r13, qword [rbp - 0x70]
je 0x1401d2730
add r13, 2
mov r9, qword [rsp + 0x78]
jmp 0x1401d26c2
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x60]
mov r14, qword [rsp + 0x70]
mov r13, rsi
lea rax, [rbp - 0x60]
cmp r8, 8
cmovae rax, rdx
lea rax, [rax + rcx*2]
mov esi, dword [rsp + 0x30]
cmp r13, rax
jne 0x1401d2776
or r13, 0xffffffffffffffff
jmp 0x1401d2788
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x60]
mov r14, qword [rsp + 0x70]
jmp 0x1401d2744
lea rax, [rbp - 0x60]
cmp r8, 8
cmovae rax, rdx
sub r13, rax
sar r13, 1
lea rcx, [rbp - 0x40]
call fcn.140055f70
lea rdi, [r13 + 3]
cmp r13, 0xffffffffffffffff
cmove rdi, r13
mov r8, rdi
lea rdx, [0x1403ce9d8]
lea rcx, [rbp - 0x60]
call fcn.1400b6550
cmp rax, 0xffffffffffffffff
je 0x1401d283e
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.140067800
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140085570
lea rcx, [rbp - 0x40]
call fcn.140055f70
cmp rbx, r12
je 0x1401d2823
xor r13d, r13d
mov qword [r12 + 0x10], r13
mov qword [r12 + 0x18], r13
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [r12], xmm0
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [r12 + 0x10], xmm1
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r13w
add r12, 0x20
mov qword [rsp + 0x40], r12
jmp 0x1401d2841
lea r8, [rbp - 0x60]
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.1400b0a24
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
xor r13d, r13d
lea rcx, [rbp - 0x60]
call fcn.140055f70
inc esi
mov dword [rsp + 0x30], esi
add r14, 8
mov qword [rsp + 0x70], r14
cmp esi, dword [rsp + 0x5c]
jl 0x1401d25d7
mov rbx, qword [rbp - 0x80]
mov rdi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x38]
mov qword [r15], rax
mov qword [r15 + 8], r12
mov qword [r15 + 0x10], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
nop
lea rcx, [rbp]
call fcn.140055f70
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401d28bb
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401d28d2
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x20]
call fcn.140055f70
nop
lea rcx, [rsp + 0x38]
call fcn.14005e188
mov rax, r15
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140356560
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret