Function at 0x140045c70
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
lea rdx, [0x1414ea590]
lea rcx, [rsp + 0xa8]
mov r8d, 4
call dbg._var_os
cmp byte [rsp + 0xc0], 2
jne 0x140045cf1
lea rdx, [0x1414ea594]
lea rcx, [rsp + 0x30]
mov r8d, 0xb
call dbg._var_os
movzx eax, byte [rsp + 0x48]
cmp al, 2
je 0x140045d14
mov rcx, qword [rsp + 0x40]
mov qword [rsi + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
mov ecx, dword [rsp + 0x49]
mov edx, dword [rsp + 0x4c]
mov dword [rsi + 0x19], ecx
mov dword [rsi + 0x1c], edx
mov byte [rsi + 0x18], al
jmp 0x140045f2d
movups xmm0, xmmword [rsp + 0xa8]
movups xmm1, xmmword [rsp + 0xb8]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
movzx eax, byte [rsp + 0x48]
cmp al, 2
jne 0x140045cca
call fcn.1400dbef4
mov qword [rsp + 0x60], 0
lea r8, [rsp + 0x60]
mov rcx, rax
mov edx, 0x20008
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x140045e98
mov qword [rsp + 0x58], rsi
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x68], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor r12d, r12d
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x140045db0
jmp 0x140045d8f
jae 0x140045ea1
cmp r8, 0x201
jae 0x140045db0
mov ebx, 0x200
lea r15, [rsp + 0xa8]
mov rbp, r8
jmp 0x140045df7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x140045dd7
lea rcx, [rsp + 0x68]
mov rdx, r13
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r12, qword [rsp + 0x70]
cmp r12, rsi
mov r13d, 0xffffffff
cmovb r13, r12
mov qword [rsp + 0x78], r13
mov r14, r12
mov rbx, r13
mov r15, qword [rsp + 0x28]
mov rbp, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov dword [rsp + 0x30], ebp
mov rcx, rdi
mov rdx, r15
lea r8, [rsp + 0x30]
call sub.USERENV.dll_GetUserProfileDirectoryW
test eax, eax
je 0x140045e30
mov ecx, dword [rsp + 0x30]
dec ecx
test ecx, ecx
jne 0x140045e5f
jmp 0x140045e50
call fcn.1400dbe94
cmp eax, 0x7a
jne 0x140045e50
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x140045e5f
nop word cs:[rax + rax]
call fcn.1400dbe94
xor ecx, ecx
test eax, eax
jne 0x140045f44
mov r8d, ecx
cmp rbp, r8
jne 0x140045d80
call fcn.1400dbe94
cmp eax, 0x7a
jne 0x140045f71
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
cmp r8, 0x201
jb 0x140045d8f
jmp 0x140045db0
mov byte [rsi + 0x18], 2
jmp 0x140045f2d
cmp rbx, r8
jb 0x140045f8b
lea rcx, [rsp + 0x30]
mov rdx, r15
call dbg.from_wide
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
mov rsi, qword [rsp + 0x58]
test r12, r12
je 0x140045ef1
add r12, r12
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, r12
call sym.__rust_dealloc
cmp byte [rsp + 0x98], 2
jne 0x140045f0e
mov byte [rsi + 0x18], 2
lea rcx, [rsp + 0x80]
call dbg.drop_in_place<core::result::Result<std::path::PathBuf, std::io::error::Error>>
jmp 0x140045f25
movaps xmm0, xmmword [rsp + 0x80]
movaps xmm1, xmmword [rsp + 0x90]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rcx, rdi
call fcn.1400dbfec
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400dbe94
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x98], 2
mov rsi, qword [rsp + 0x58]
test r12, r12
jne 0x140045edb
jmp 0x140045ef1
lea rcx, [0x1414e5eb0]
lea r8, [0x1414eb028]
mov edx, 0x28
call dbg.panic
jmp 0x140045fa0
lea rax, [0x1414eb010]
mov rcx, r8
mov rdx, rbx
mov r8, rax
call dbg.slice_end_index_len_fail
ud2