Function at 0x140172520
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call sym.std::sys::pal::windows::to_u16s::inner::hf18d8ce8b4f1b2ad
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x14017256f
lea rcx, [rsp + 0xb0]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], rdi
jmp 0x140172794
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov ebx, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x140172600
jmp 0x1401725df
jae 0x1401726b4
cmp r8, 0x201
jae 0x140172600
mov r12d, 0x200
lea r13, [rsp + 0xa8]
mov rbp, r8
jmp 0x140172647
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x140172627
lea rcx, [rsp + 0x28]
mov rdx, r15
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
cmp r14, rbx
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rsi, r14
mov r12, r15
mov r13, qword [rsp + 0x58]
mov rbp, r15
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x40]
mov rdx, r13
mov r8d, ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov edi, eax
test eax, eax
jne 0x140172671
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14017272b
mov r8d, edi
cmp rbp, r8
jne 0x1401725d0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1401727a9
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov ebx, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x1401725df
jmp 0x140172600
cmp r12, r8
jb 0x1401727c3
lea rcx, [rsp + 0x88]
mov rdx, r13
call dbg.from_wide
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
cmp qword [rsp + 0x28], 0
mov rsi, qword [rsp + 0x48]
je 0x140172711
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x14030f110]
xor edx, edx
call sub.kernel32.dll_HeapFree
cmp qword [rsp + 0x60], rdi
je 0x14017276c
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140172779
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
cmp qword [rsp + 0x28], 0
je 0x140172767
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x14030f110]
xor edx, edx
call sub.kernel32.dll_HeapFree
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call dbg.drop_in_place<std::io::error::Error>
cmp qword [rsp + 0x50], 0
je 0x140172794
mov rcx, qword [0x14030f110]
xor edx, edx
mov r8, qword [rsp + 0x40]
call sub.kernel32.dll_HeapFree
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_code_rustc_3406ada96f8e16e49e947a91db3eba0db45245falibrary_std_src_threadmod.rs
lea r8, str.Ms__
mov edx, 0x28
call dbg.panic
jmp 0x1401727d8
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r12
mov r8, rax
call dbg.slice_end_index_len_fail
ud2