Function at 0x1401a5a10
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rbx, rcx
lea rcx, [rsp + 0x98]
call fcn.14018b910
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1401a5b7b
mov qword [rsp + 0x38], rbx
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
mov esi, 0xffffffff
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x1401a5ad0
jmp 0x1401a5aaf
jae 0x1401a5bdc
cmp r8, 0x201
jae 0x1401a5ad0
mov r13d, 0x200
lea r12, [rsp + 0x98]
mov rbp, r8
jmp 0x1401a5b17
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x1401a5af7
lea rcx, [rsp + 0x48]
mov rdx, r14
call fcn.14009e710
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rdi, qword [rsp + 0x50]
cmp rdi, rsi
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x58], r14
mov rbx, rdi
mov r13, r14
mov r12, qword [rsp + 0x20]
mov rbp, r14
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, r12
mov r8d, ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x1401a5b42
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1401a5ce6
mov r8d, r15d
cmp rbp, r8
jne 0x1401a5aa0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401a5d05
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
cmp r8, 0x201
jb 0x1401a5aaf
jmp 0x1401a5ad0
mov rdi, qword [rsp + 0xa0]
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1401a5bd3
lea rsi, [rdi - 1]
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
call qword [rax]
mov rax, qword [rdi + 7]
cmp qword [rax + 8], 0
je 0x1401a5bc2
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x1401a5bb4
mov r8, qword [r8 - 8]
mov rcx, qword [0x14031a128]
xor edx, edx
call fcn.1401f903c
mov rcx, qword [0x14031a128]
xor edx, edx
mov r8, rsi
call fcn.1401f903c
mov byte [rbx + 0x18], 2
jmp 0x1401a5cd1
cmp r13, r8
jb 0x1401a5d1f
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.14018d070
mov rbp, qword [rsp + 0x60]
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
movzx ebx, byte [rsp + 0x78]
mov eax, dword [rsp + 0x79]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x2b], eax
test rdi, rdi
je 0x1401a5c31
mov rcx, qword [0x14031a128]
xor edx, edx
mov r8, qword [rsp + 0x20]
call fcn.1401f903c
cmp bl, 2
jne 0x1401a5c91
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x18], 2
mov eax, ebp
and eax, 3
cmp eax, 1
jne 0x1401a5cb6
lea rdi, [rbp - 1]
mov rcx, qword [rbp - 1]
mov rax, qword [rbp + 7]
call qword [rax]
mov rax, qword [rbp + 7]
cmp qword [rax + 8], 0
je 0x1401a5c7e
mov r8, qword [rdi]
cmp qword [rax + 0x10], 0x11
jb 0x1401a5c70
mov r8, qword [r8 - 8]
mov rcx, qword [0x14031a128]
xor edx, edx
call fcn.1401f903c
mov rcx, qword [0x14031a128]
xor edx, edx
mov r8, rdi
call fcn.1401f903c
jmp 0x1401a5cb6
movaps xmm0, xmmword [rsp + 0x80]
mov rdx, qword [rsp + 0x38]
movups xmmword [rdx + 8], xmm0
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
mov qword [rdx], rbp
mov byte [rdx + 0x18], bl
cmp qword [rsp + 0x40], 0
je 0x1401a5cd1
mov rcx, qword [0x14031a128]
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.1401f903c
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov bl, 2
test rdi, rdi
jne 0x1401a5c1e
jmp 0x1401a5c31
lea rcx, [0x1402be391]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002cb80
jmp 0x1401a5d34
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.14002c6f0
ud2