Function at 0x14002f390
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 rdi, rcx
movabs rsi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call sym.std::sys::pal::windows::to_u16s::inner::h4c9a51427fa9952c
mov rax, qword [rsp + 0xa8]
cmp rax, rsi
jne 0x14002f3df
lea rcx, [rsp + 0xb0]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rdi], rsi
jmp 0x14002f613
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x58], rax
xor r15d, r15d
mov r14d, 0xffffffff
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x14002f470
jmp 0x14002f44f
jae 0x14002f525
cmp r8, 0x201
jae 0x14002f470
mov esi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14002f4b7
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14002f497
lea rcx, [rsp + 0x30]
mov rdx, r13
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov r15, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
cmp r15, r14
mov r13d, 0xffffffff
cmovb r13, r15
mov qword [rsp + 0x40], r13
mov rdi, r15
mov rsi, r13
mov rbp, qword [rsp + 0x58]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x48]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x14002f4e1
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14002f5a3
mov r8d, ebx
cmp r12, r8
jne 0x14002f440
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002f62a
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov r14d, 0xffffffff
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002f44f
jmp 0x14002f470
cmp rsi, r8
jb 0x14002f644
lea rcx, [rsp + 0x88]
mov rdx, rbp
mov rsi, qword [rsp + 0x28]
call dbg.from_wide
mov rdi, qword [rsp + 0x50]
movabs rbx, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14002f589
mov rcx, qword [rsp + 0x38]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
cmp qword [rsp + 0x60], rbx
je 0x14002f5eb
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
jmp 0x14002f5f8
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rbx, 0x8000000000000000
mov qword [rsp + 0x60], rbx
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14002f5e1
mov rcx, qword [rsp + 0x38]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x50]
mov qword [rdi], rbx
lea rcx, [rsp + 0x68]
call dbg.drop_in_place<std::io::error::Error>
test rsi, rsi
je 0x14002f613
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call sym.__rust_dealloc
mov rax, rdi
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_codex
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call dbg.panic
jmp 0x14002f659
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call dbg.slice_end_index_len_fail
ud2