Function at 0x10043240
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::hf098d0b6c6656771
mov rdi, qword [rsp + 0xc0]
test rdi, rdi
je 0x100433e3
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 0x10043320
jmp 0x10043302
mov rdi, rsi
jae 0x10043439
cmp r8, 0x201
jae 0x10043320
lea r12, [rsp + 0xb8]
mov r13d, 0x200
mov rbp, r8
jmp 0x10043376
sub r8, r15
sub rbx, r15
cmp rbx, r8
mov rbx, qword [rsp + 0x30]
jae 0x1004334c
lea rcx, [rsp + 0x48]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h230005e80921748b
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 0x100433a2
call fcn.100d8c94
test eax, eax
jne 0x10043545
mov r8d, r14d
cmp rbp, r8
jne 0x100432f0
call fcn.100d8c94
cmp eax, 0x7a
jne 0x10043572
mov rdi, rsi
add rbp, rbp
mov eax, 0xffffffff
cmp rbp, rax
cmovae rbp, rax
mov r8, rbp
cmp r8, 0x201
jb 0x10043302
jmp 0x10043320
mov rdi, qword [rsp + 0xb8]
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x10043430
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 0x1004341d
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 0x1004352e
cmp r13, r8
jb 0x1004358c
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 0x100434a2
add rdx, rdx
mov r8d, 2
mov rcx, qword [rsp + 0x28]
call sym.__rust_dealloc
cmp r14b, 2
jne 0x100434f2
mov byte [rbx + 0x18], 2
mov eax, ebp
and eax, 3
cmp eax, 1
jne 0x10043513
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 0x100434dd
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 0x10043513
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 0x1004352e
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 fcn.100d8c94
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 0x1004348f
jmp 0x100434a2
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x100435a1
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