Function at 0x140045510
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
movaps xmmword [rsp + 0x480], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x80]
call sym.std::sys::windows::to_u16s::inner::h7e66ebc21fd40bcf
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140045679
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov esi, 0xffffffff
xor r15d, r15d
xor edi, edi
cmp r8, 0x201
jae 0x1400455d0
jmp 0x1400455af
jae 0x14004568f
cmp r8, 0x201
jae 0x1400455d0
mov r13d, 0x200
lea r12, [rsp + 0x80]
mov rbp, r8
jmp 0x140045616
sub r8, rdi
sub r15, rdi
cmp r15, r8
jae 0x1400455f7
lea rcx, [rsp + 0x48]
mov rdx, rdi
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r14, qword [rsp + 0x50]
cmp r14, rsi
mov edi, 0xffffffff
cmovb rdi, r14
mov qword [rsp + 0x58], rdi
mov r15, r14
mov r13, rdi
mov r12, qword [rsp + 0x20]
mov rbp, rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, r12
mov r8d, ebp
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x140045640
call fcn.1400dbe94
test eax, eax
jne 0x140045795
mov r8d, ebx
cmp rbp, r8
jne 0x1400455a0
call fcn.1400dbe94
cmp eax, 0x7a
jne 0x1400457ba
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
cmp r8, 0x201
jb 0x1400455af
jmp 0x1400455d0
lea rcx, [rsp + 0x80]
call dbg.drop_in_place<core::result::Result<alloc::vec::Vec<u16, alloc::alloc::Global>, std::io::error::Error>>
mov byte [rsi + 0x18], 2
jmp 0x140045776
cmp r13, r8
jb 0x1400457d4
lea rcx, [rsp + 0x60]
mov rdx, r12
call dbg.from_wide
mov r12, qword [rsp + 0x60]
movups xmm6, xmmword [rsp + 0x68]
movzx ebx, byte [rsp + 0x78]
mov eax, dword [rsp + 0x79]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x2b], eax
mov rsi, qword [rsp + 0x38]
test r14, r14
je 0x1400456e4
add r14, r14
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, r14
call sym.__rust_dealloc
cmp bl, 2
jne 0x140045741
mov byte [rsi + 0x18], 2
mov eax, r12d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140045759
test rax, rax
je 0x140045759
lea rbx, [r12 - 1]
mov r14, qword [r12 - 1]
mov r15, qword [r12 + 7]
mov rcx, r14
call qword [r15]
mov rdx, qword [r15 + 8]
test rdx, rdx
je 0x14004572c
mov r8, qword [r15 + 0x10]
mov rcx, r14
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call sym.__rust_dealloc
jmp 0x140045759
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [rsi + 0x1c], ecx
mov dword [rsi + 0x19], eax
mov qword [rsi], r12
movups xmmword [rsi + 8], xmm6
mov byte [rsi + 0x18], bl
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140045776
add rdx, rdx
mov r8d, 2
mov rcx, qword [rsp + 0x30]
call sym.__rust_dealloc
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x480]
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400dbe94
mov r12d, eax
shl r12, 0x20
or r12, 2
mov bl, 2
mov rsi, qword [rsp + 0x38]
test r14, r14
jne 0x1400456ce
jmp 0x1400456e4
lea rcx, [0x1414e5eb0]
lea r8, [0x1414eb028]
mov edx, 0x28
call dbg.panic
jmp 0x1400457e9
lea rax, [0x1414eb010]
mov rcx, r8
mov rdx, r13
mov r8, rax
call dbg.slice_end_index_len_fail
ud2