Function at 0x1400427e0
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 rbp, rcx
lea rcx, [rsp + 0xa8]
call sym.std::sys::windows::to_u16s::inner::h7271486d358e9ef7
mov rsi, qword [rsp + 0xa8]
test rsi, rsi
je 0x140042962
mov qword [rsp + 0x38], rbp
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x40], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x20], rax
xor r13d, r13d
xor ebp, ebp
cmp r8, 0x201
jae 0x1400428a0
jmp 0x140042882
mov rsi, rdi
jae 0x1400429b7
cmp r8, 0x201
jae 0x1400428a0
mov r12d, 0x200
lea r15, [rsp + 0xa8]
mov rbx, r8
jmp 0x1400428f5
sub r8, rbp
sub r13, rbp
cmp r13, r8
mov r13, qword [rsp + 0x20]
jae 0x1400428cc
lea rcx, [rsp + 0x40]
mov rdx, rbp
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov r13, qword [rsp + 0x48]
mov eax, 0xffffffff
cmp r13, rax
mov ebp, 0xffffffff
cmovb rbp, r13
mov qword [rsp + 0x50], rbp
mov rax, r13
mov qword [rsp + 0x20], r13
mov r12, rbp
mov r15, qword [rsp + 0x28]
mov rbx, rbp
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rdi, rsi
mov rcx, rsi
mov rdx, r15
mov r8d, ebx
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r14d, eax
test eax, eax
jne 0x140042921
call fcn.1400d46b0
test eax, eax
jne 0x140042ac1
mov r8d, r14d
cmp rbx, r8
jne 0x140042870
call fcn.1400d46b0
cmp eax, 0x7a
jne 0x140042aee
mov rsi, rdi
add rbx, rbx
mov eax, 0xffffffff
cmp rbx, rax
cmovae rbx, rax
mov r8, rbx
cmp r8, 0x201
jb 0x140042882
jmp 0x1400428a0
mov rdi, qword [rsp + 0xb0]
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1400429ae
lea rsi, [rdi - 1]
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
call qword [rax]
mov rax, qword [rdi + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14004299b
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov byte [rbp + 0x18], 2
jmp 0x140042aaa
cmp r12, r8
jb 0x140042b08
lea rcx, [rsp + 0x58]
mov rdx, r15
mov rdi, qword [rsp + 0x20]
call dbg.from_wide
mov rbx, qword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x90], xmm0
movzx r14d, byte [rsp + 0x70]
mov eax, dword [rsp + 0x71]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x33], eax
mov rbp, qword [rsp + 0x38]
test rdi, rdi
je 0x140042a1a
add rdi, rdi
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call sym.__rust_dealloc
cmp r14b, 2
jne 0x140042a6a
mov byte [rbp + 0x18], 2
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x140042a8c
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140042a55
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
jmp 0x140042a8c
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rbp + 8], xmm0
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x33]
mov dword [rbp + 0x19], eax
mov dword [rbp + 0x1c], ecx
mov qword [rbp], rbx
mov byte [rbp + 0x18], r14b
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140042aaa
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call sym.__rust_dealloc
mov rax, rbp
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d46b0
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14b, 2
mov rbp, qword [rsp + 0x38]
mov rsi, rdi
mov rdi, qword [rsp + 0x20]
test rdi, rdi
jne 0x140042a04
jmp 0x140042a1a
lea rcx, str.internal_error:_entered_unreachable_codex
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x140042b1d
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call dbg.slice_end_index_len_fail
ud2