Function at 0x140048f90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b8
mov rbx, rcx
lea rcx, [rsp + 0xb8]
call sym.std::sys::windows::to_u16s::inner::h1c8d3276b38eccb1
mov rdi, qword [rsp + 0xc0]
test rdi, rdi
je 0x140049133
mov qword [rsp + 0x40], rbx
mov rcx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x30], rax
xor ebx, ebx
xor r15d, r15d
cmp r8, 0x201
jae 0x140049070
jmp 0x140049052
mov rdi, rsi
jae 0x140049189
cmp r8, 0x201
jae 0x140049070
lea r12, [rsp + 0xb8]
mov r13d, 0x200
mov rbp, r8
jmp 0x1400490c6
sub r8, r15
sub rbx, r15
cmp rbx, r8
mov rbx, qword [rsp + 0x30]
jae 0x14004909c
lea rcx, [rsp + 0x48]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h3ffee1938298280a
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r15d, 0xffffffff
cmovb r15, rbx
mov qword [rsp + 0x58], r15
mov rax, rbx
mov qword [rsp + 0x30], rbx
mov r12, qword [rsp + 0x28]
mov r13, r15
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rsi, rdi
mov rcx, rdi
mov rdx, r12
mov r8d, ebp
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r14d, eax
test eax, eax
jne 0x1400490f2
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x140049295
mov r8d, r14d
cmp rbp, r8
jne 0x140049040
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400492c2
mov rdi, rsi
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x140049052
jmp 0x140049070
mov rdi, qword [rsp + 0xb8]
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x140049180
lea rbp, [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 0x14004916d
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp]
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rbp
call sym.__rust_dealloc
mov byte [rbx + 0x18], 2
jmp 0x14004927e
cmp r13, r8
jb 0x1400492dc
lea rcx, [rsp + 0x68]
mov rdx, r12
call dbg.from_wide
mov rbp, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0xa0], xmm0
movzx r14d, byte [rsp + 0x80]
mov eax, dword [rsp + 0x81]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x3b], eax
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400491f2
add rdx, rdx
mov r8d, 2
mov rcx, qword [rsp + 0x28]
call sym.__rust_dealloc
cmp r14b, 2
jne 0x140049242
mov byte [rbx + 0x18], 2
mov eax, ebp
and eax, 3
cmp eax, 1
jne 0x140049263
lea rsi, [rbp - 1]
mov rcx, qword [rbp - 1]
mov rax, qword [rbp + 7]
call qword [rax]
mov rax, qword [rbp + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14004922d
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
jmp 0x140049263
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rbx + 8], xmm0
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3b]
mov dword [rbx + 0x19], eax
mov dword [rbx + 0x1c], ecx
mov qword [rbx], rbp
mov byte [rbx + 0x18], r14b
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x14004927e
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x4b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov r14b, 2
mov rbx, qword [rsp + 0x40]
mov rdi, rsi
mov rdx, qword [rsp + 0x30]
test rdx, rdx
jne 0x1400491df
jmp 0x1400491f2
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x1400492f1
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call dbg.slice_end_index_len_fail
ud2