Function at 0x1400e7300
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.1400e4370
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x400], rax
test rax, rax
je 0x1400e7487
mov qword [rbp + 0x3f8], rsi
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x3e8], rax
mov qword [rbp + 0x3d0], 0
mov qword [rbp + 0x3d8], 2
mov qword [rbp + 0x3e0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x408], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x1400e73c0
jmp 0x1400e73af
jae 0x1400e7502
cmp r8, 0x201
jae 0x1400e73c0
lea r12, [rbp - 0x60]
mov esi, 0x200
mov r15, r8
jmp 0x1400e7418
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x1400e73ef
lea rcx, [rbp + 0x3d0]
mov rdx, r13
call fcn.140110e20
mov rdi, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov qword [rbp + 0x408], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3e0], r13
mov rbx, rdi
mov r12, qword [rbp + 0x408]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x400]
mov rdx, r12
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400e7448
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400e764c
mov r8d, r14d
cmp r15, r8
jne 0x1400e73a0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400e766c
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400e73af
jmp 0x1400e73c0
mov rdx, qword [rbp - 0x60]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x1400e74f9
lea rax, [rdx - 1]
mov qword [rbp + 0x400], rax
mov rcx, qword [rdx - 1]
mov qword [rbp + 0x408], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp + 0x408]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rdi, qword [rbp + 0x400]
je 0x1400e74e7
mov r8, qword [rdi]
cmp qword [rax + 0x10], 0x11
jb 0x1400e74d8
mov r8, qword [r8 - 8]
mov rcx, qword [0x14017e260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14017e260]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov byte [rsi + 0x18], 2
jmp 0x1400e7637
cmp rsi, r8
jb 0x1400e7686
lea rcx, [rbp + 0x3b0]
mov rdx, r12
call fcn.1400e5c60
mov rsi, qword [rbp + 0x3b0]
movups xmm0, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3a0], xmm0
movzx ebx, byte [rbp + 0x3c8]
mov eax, dword [rbp + 0x3c9]
mov dword [rbp + 0x3f0], eax
mov eax, dword [rbp + 0x3cc]
mov dword [rbp + 0x3f3], eax
test rdi, rdi
je 0x1400e7569
mov rcx, qword [0x14017e260]
xor edx, edx
mov r8, qword [rbp + 0x408]
call qword [sym.imp.kernel32.dll_HeapFree]
cmp bl, 2
jne 0x1400e75ed
mov rax, qword [rbp + 0x3f8]
mov byte [rax + 0x18], 2
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x1400e7617
lea rax, [rsi - 1]
mov qword [rbp + 0x408], rax
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
mov qword [rbp + 0x3f8], rsi
call qword [rax]
mov rax, qword [rbp + 0x3f8]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rsi, qword [rbp + 0x408]
je 0x1400e75d9
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x1400e75ca
mov r8, qword [r8 - 8]
mov rcx, qword [0x14017e260]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14017e260]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400e7617
movaps xmm0, xmmword [rbp + 0x3a0]
mov rdx, qword [rbp + 0x3f8]
movups xmmword [rdx + 8], xmm0
mov eax, dword [rbp + 0x3f0]
mov ecx, dword [rbp + 0x3f3]
mov dword [rdx + 0x19], eax
mov dword [rdx + 0x1c], ecx
mov qword [rdx], rsi
mov byte [rdx + 0x18], bl
cmp qword [rbp + 0x3e8], 0
je 0x1400e7637
mov rcx, qword [0x14017e260]
xor edx, edx
mov r8, qword [rbp + 0x400]
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov bl, 2
test rdi, rdi
jne 0x1400e7553
jmp 0x1400e7569
lea rcx, str.internal_error:_entered_unreachable_code_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_std_src_threadmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14010b520
jmp 0x1400e769b
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14010b510
ud2