Function at 0x1400ae650
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.140095000
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400ae7bb
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 0x1400ae710
jmp 0x1400ae6ef
jae 0x1400ae808
cmp r8, 0x201
jae 0x1400ae710
mov r13d, 0x200
lea r12, [rsp + 0x98]
mov rbp, r8
jmp 0x1400ae757
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x1400ae737
lea rcx, [rsp + 0x48]
mov rdx, r14
call fcn.1400954c0
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 0x1400ae782
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1400ae8f6
mov r8d, r15d
cmp rbp, r8
jne 0x1400ae6e0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400ae915
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
cmp r8, 0x201
jb 0x1400ae6ef
jmp 0x1400ae710
mov rdi, qword [rsp + 0xa0]
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1400ae7ff
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 0x1400ae7f2
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.140009bb0
mov edx, 8
mov rcx, rsi
call fcn.140009bb0
mov byte [rbx + 0x18], 2
jmp 0x1400ae8e1
cmp r13, r8
jb 0x1400ae92f
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.140096d60
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 0x1400ae859
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.140009bb0
cmp bl, 2
jne 0x1400ae8a5
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x18], 2
mov eax, ebp
and eax, 3
cmp eax, 1
jne 0x1400ae8ca
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 0x1400ae896
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.140009bb0
mov edx, 8
mov rcx, rdi
call fcn.140009bb0
jmp 0x1400ae8ca
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 0x1400ae8e1
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.140009bb0
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 0x1400ae84a
jmp 0x1400ae859
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14000e4f0
jmp 0x1400ae944
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.14000e060
ud2