Function at 0x140111cf0
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 0x140111d3f
lea rcx, [rsp + 0xb0]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], rdi
jmp 0x140111f58
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 0x140111dd0
jmp 0x140111daf
jae 0x140111e84
cmp r8, 0x201
jae 0x140111dd0
mov r12d, 0x200
lea r13, [rsp + 0xa8]
mov rbp, r8
jmp 0x140111e17
sub r8, r15
sub rsi, r15
cmp rsi, r8
jae 0x140111df7
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 0x140111e41
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140111ef7
mov r8d, edi
cmp rbp, r8
jne 0x140111da0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140111f6d
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
mov ebx, 0xffffffff
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x140111daf
jmp 0x140111dd0
cmp r12, r8
jb 0x140111f87
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 0x140111edd
mov rcx, qword [rsp + 0x30]
mov edx, 2
call sym.__rust_dealloc
cmp qword [rsp + 0x60], rdi
je 0x140111f34
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140111f41
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 0x140111f2f
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 dbg.drop_in_place<std::io::error::Error>
cmp qword [rsp + 0x50], 0
je 0x140111f58
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, [0x140282002]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call dbg.panic
jmp 0x140111f9c
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