Function at 0x140043040
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rbx, rcx
lea rdx, str.HOMEUSERPROFILE_library_std_src_syswindowspath.rs
lea rcx, [rsp + 0x98]
mov r8d, 4
call dbg._var_os
cmp byte [rsp + 0xb0], 2
jne 0x1400430c1
lea rdx, [0x140146c7c]
lea rcx, [rsp + 0x30]
mov r8d, 0xb
call dbg._var_os
movzx eax, byte [rsp + 0x48]
cmp al, 2
je 0x1400430e4
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov ecx, dword [rsp + 0x49]
mov edx, dword [rsp + 0x4c]
mov dword [rbx + 0x19], ecx
mov dword [rbx + 0x1c], edx
mov byte [rbx + 0x18], al
jmp 0x14004333c
movups xmm0, xmmword [rsp + 0x98]
movups xmm1, xmmword [rsp + 0xa8]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
movzx eax, byte [rsp + 0x48]
cmp al, 2
jne 0x14004309a
call fcn.1400d4708
mov qword [rsp + 0x60], 0
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0x20008
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x140043258
mov qword [rsp + 0x58], rbx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov r8d, 0x200
mov ebx, 2
xor r12d, r12d
mov r14d, 0xffffffff
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x140043213
jmp 0x140043173
jae 0x140043261
cmp r8, 0x201
jae 0x140043213
mov esi, 0x200
lea r15, [rsp + 0x98]
mov rbp, r8
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov dword [rsp + 0x30], ebp
mov rcx, qword [rsp + 0x50]
mov rdx, r15
lea r8, [rsp + 0x30]
call sub.USERENV.dll_GetUserProfileDirectoryW
test eax, eax
je 0x1400431b0
mov ecx, dword [rsp + 0x30]
dec ecx
test ecx, ecx
jne 0x1400431df
jmp 0x1400431d0
call fcn.1400d46b0
cmp eax, 0x7a
jne 0x1400431d0
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x1400431df
nop word cs:[rax + rax]
call fcn.1400d46b0
xor ecx, ecx
test eax, eax
jne 0x140043353
mov r8d, ecx
cmp rbp, r8
jne 0x140043160
call fcn.1400d46b0
cmp eax, 0x7a
jne 0x140043373
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x140043173
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x140043235
lea rcx, [rsp + 0x68]
mov rdx, r13
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov rbx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
cmp r12, r14
mov r13d, 0xffffffff
cmovb r13, r12
mov qword [rsp + 0x78], r13
mov rdi, r12
mov rsi, r13
mov r15, rbx
mov rbp, r13
jmp 0x140043183
mov byte [rbx + 0x18], 2
jmp 0x14004333c
cmp rsi, r8
jb 0x14004338d
lea rcx, [rsp + 0x30]
mov rdx, r15
call dbg.from_wide
mov rsi, qword [rsp + 0x30]
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x80], xmm0
movzx edi, byte [rsp + 0x48]
mov eax, dword [rsp + 0x49]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x2b], eax
test r12, r12
je 0x1400432b7
add r12, r12
mov r8d, 2
mov rcx, rbx
mov rdx, r12
call sym.__rust_dealloc
cmp dil, 2
jne 0x14004330c
mov rbx, qword [rsp + 0x58]
mov byte [rbx + 0x18], 2
mov eax, esi
and eax, 3
cmp eax, 1
jne 0x140043332
lea rdi, [rsi - 1]
mov rcx, qword [rsi - 1]
mov rax, qword [rsi + 7]
call qword [rax]
mov rax, qword [rsi + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400432f7
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 0x140043332
movaps xmm0, xmmword [rsp + 0x80]
mov rbx, qword [rsp + 0x58]
movups xmmword [rbx + 8], xmm0
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov dword [rbx + 0x19], eax
mov dword [rbx + 0x1c], ecx
mov qword [rbx], rsi
mov byte [rbx + 0x18], dil
mov rcx, qword [rsp + 0x50]
call fcn.1400d47f8
mov rax, rbx
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400d46b0
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov dil, 2
test r12, r12
jne 0x1400432a3
jmp 0x1400432b7
lea rcx, str.internal_error:_entered_unreachable_codex
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call dbg.panic
jmp 0x1400433a2
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call dbg.slice_end_index_len_fail
ud2