Function at 0x1400a2d00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb80]
sub rsp, 0xc80
mov rax, qword [0x14024fa28]
xor rax, rsp
mov qword [rbp + 0xb70], rax
mov rsi, qword [rbp + 0xbe0]
mov r13, r8
mov r14, qword [rbp + 0xbe8]
mov r8d, 0x100
mov r15, qword [rbp + 0xbf0]
mov rcx, r9
mov r12, qword [rbp + 0xbf8]
mov rdi, r9
mov qword [rsp + 0x68], rdx
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbx, 0xffffffffffffffff
cmp eax, 0x100
jbe 0x1400a2dbc
lfence
mov rax, rbx
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400a2d80
lfence
mov edx, 0x100
lea rcx, [rsp + 0x70]
mov r8, rdi
cmp rax, rdx
jae 0x1400a2da7
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400a2dbc
mov r9d, 0xff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor eax, eax
mov word [rbp + 0x16e], ax
mov r8d, 0x100
lea rdx, [rbp + 0x970]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x100
jbe 0x1400a2e07
lfence
mov rax, rbx
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400a2de0
lfence
mov edx, 0x100
lea rcx, [rbp + 0x970]
mov r8, rsi
cmp rax, rdx
jae 0x1400a2e5a
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor esi, esi
mov r8d, 0x100
lea rdx, [rbp + 0x770]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x100
jbe 0x1400a2e84
lfence
mov rax, rbx
nop dword [rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x1400a2e30
lfence
mov edx, 0x100
lea rcx, [rbp + 0x770]
mov r8, r14
cmp rax, rdx
jae 0x1400a2e71
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400a2e84
mov r9d, 0xff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor esi, esi
mov word [rbp + 0xb6e], si
jmp 0x1400a2e09
mov r9d, 0xff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x96e], si
mov r8d, 0x100
lea rdx, [rbp + 0x570]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x100
jbe 0x1400a2eed
lfence
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [r15 + rax*2], 0
jne 0x1400a2eb0
lfence
mov edx, 0x100
lea rcx, [rbp + 0x570]
mov r8, r15
cmp rax, rdx
jae 0x1400a2eda
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400a2eed
mov r9d, 0xff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x76e], si
mov r8d, 0x100
lea rdx, [rbp + 0x370]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x100
jbe 0x1400a2f4d
lfence
mov rax, rbx
inc rax
cmp word [r12 + rax*2], 0
jne 0x1400a2f10
lfence
mov edx, 0x100
lea rcx, [rbp + 0x370]
mov r8, r12
cmp rax, rdx
jae 0x1400a2f3a
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400a2f4d
mov r9d, 0xff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x56e], si
xor edx, edx
lea rcx, [rbp + 0x170]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
inc rbx
cmp word [r13 + rbx*2], 0
jne 0x1400a2f61
lfence
mov edx, 0x100
lea rcx, [rbp + 0x170]
mov r8, r13
cmp rbx, rdx
jae 0x1400a2f8c
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
jmp 0x1400a2f9f
mov r9d, 0xff
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov word [rbp + 0x36e], si
xor r8d, r8d
lea rcx, [rbp + 0x170]
mov edx, 0x100
call fcn.140197280
mov edx, 0x5b
lea rcx, [rsp + 0x70]
lea rdi, [rsp + 0x70]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov edx, 0x5d
lea rcx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x1400a2ff7
test rbx, rbx
je 0x1400a2ff7
cmp rbx, rax
jae 0x1400a2ff7
lea rdi, [rbx + 2]
mov word [rax], si
lea rbx, [rax + 2]
jmp 0x1400a301f
mov edx, 0x3a
lea rcx, [rsp + 0x70]
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov edx, 0x3a
lea rcx, [rsp + 0x70]
mov rbx, rax
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
cmp rbx, rax
jne 0x1400a3040
mov r10d, 0x19
test rbx, rbx
je 0x1400a3046
lea rcx, [rbx + 2]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov r10d, eax
test eax, eax
je 0x1400a3040
mov word [rbx], si
jmp 0x1400a3046
mov r10d, 0x19
mov r9, qword [rbp + 0xc00]
mov eax, esi
mov qword [rsp + 0x60], rsi
cmp byte [r9], 0
setne al
mov ecx, eax
or ecx, 0x10
cmp byte [r9 + 4], 0
cmove ecx, eax
mov eax, ecx
or eax, 4
cmp byte [r9 + 2], 0
cmove eax, ecx
mov ecx, eax
or ecx, 8
cmp byte [r9 + 3], 0
cmove ecx, eax
movzx eax, byte [rbp + 0xc08]
mov r8d, ecx
or r8d, 2
cmp byte [r9 + 1], 0
cmove r8d, ecx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rcx
mov edx, r8d
mov dword [rsp + 0x50], eax
or edx, 0x20
cmp byte [r9 + 5], 0
lea rax, [rbp + 0x370]
mov dword [rsp + 0x48], r10d
lea r9, [rbp + 0x170]
mov qword [rsp + 0x40], rax
cmove edx, r8d
lea rax, [rbp + 0x570]
mov rcx, rdi
mov qword [rsp + 0x38], rax
lea r8, [rbp + 0x770]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edx
lea rdx, [rbp + 0x970]
mov qword [rsp + 0x20], rax
call fcn.14019af10
mov ebx, eax
test eax, eax
jne 0x1400a3140
mov rcx, qword [0x14024fa68]
lea rdx, [0x14024fa68]
cmp rcx, rdx
je 0x1400a3174
test byte [rcx + 0x1c], 0x20
je 0x1400a3174
cmp byte [rcx + 0x19], 2
jb 0x1400a3174
mov eax, dword [rsp + 0x60]
mov r9d, dword [rsp + 0x64]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14008ed10
jmp 0x1400a3174
mov rcx, qword [0x14024fa68]
lea rdx, [0x14024fa68]
cmp rcx, rdx
je 0x1400a3174
test byte [rcx + 0x1c], 0x20
je 0x1400a3174
cmp byte [rcx + 0x19], 4
jb 0x1400a3174
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401fc458]
mov edx, 0x43
call fcn.14008eb30
test ebx, ebx
setne al
mov rcx, qword [rbp + 0xb70]
xor rcx, rsp
call fcn.1401c5190
mov rbx, qword [rsp + 0xcc0]
add rsp, 0xc80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret