Function at 0x140036490
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::h4c9a51427fa9952c
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x1400364df
lea rcx, [rsp + 0xb0]
call sym.core::ptr::drop_in_place_std::io::error::Error_::ha5de4730a10cc339
mov qword [rsi], rdi
jmp 0x1400366f8
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 0x140036570
jmp 0x14003654f
jae 0x140036624
cmp r8, 0x201
jae 0x140036570
mov r12d, 0x200
lea r13, [rsp + 0xa8]
mov rbp, r8
jmp 0x1400365b7
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x140036597
lea rcx, [rsp + 0x28]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h652bddeb65308e11
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 0x1400365e1
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140036697
mov r8d, edi
cmp rbp, r8
jne 0x140036540
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14003670d
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov ebx, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x14003654f
jmp 0x140036570
cmp r12, r8
jb 0x140036727
lea rcx, [rsp + 0x88]
mov rdx, r13
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::hbf8b2f0179ef5cb6
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 0x14003667d
mov rcx, qword [rsp + 0x30]
mov edx, 2
call sym.__rust_dealloc
cmp qword [rsp + 0x60], rdi
je 0x1400366d4
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x1400366e1
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 0x1400366cf
mov rcx, qword [rsp + 0x30]
mov edx, 2
call sym.__rust_dealloc
mov rsi, qword [rsp + 0x48]
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call sym.core::ptr::drop_in_place_std::io::error::Error_::ha5de4730a10cc339
cmp qword [rsp + 0x50], 0
je 0x1400366f8
mov edx, 2
mov rcx, qword [rsp + 0x40]
call sym.__rust_dealloc
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_codeH_y_
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::hef3431a3c19424e4
jmp 0x14003673c
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r12
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::h89faa5dda92f1452
ud2