Function at 0x1002f980
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x488
lea rbp, [rsp + 0x80]
mov r15, rcx
movabs rsi, 0x8000000000000000
lea rdx, str.HOMEUSERPROFILE.pipe__rust_anonymous_pipe1__.
lea rcx, [rbp - 0x50]
mov r8d, 4
call sym.std::env::_var_os::h1341aba88e0b784f
xor eax, eax
cmp rax, qword [rbp - 0x50]
jno 0x1002fa0a
lea rdx, [0x1014238c]
lea rcx, [rbp + 0x3d0]
mov r8d, 0xb
call sym.std::env::_var_os::h1341aba88e0b784f
mov rax, qword [rbp + 0x3d0]
cmp rax, rsi
je 0x1002fa2c
mov rcx, qword [rbp + 0x3e8]
mov qword [r15 + 0x18], rcx
movups xmm0, xmmword [rbp + 0x3d8]
movups xmmword [r15 + 8], xmm0
mov qword [r15], rax
jmp 0x1002fcc5
movups xmm0, xmmword [rbp - 0x50]
movups xmm1, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
mov rax, qword [rbp + 0x3d0]
cmp rax, rsi
jne 0x1002f9eb
mov qword [rbp + 0x3c8], r15
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c0], rax
xor ebx, ebx
mov r14d, 0xffffffff
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1002faa0
jmp 0x1002fa8f
jae 0x1002fbb3
cmp r8, 0x201
jae 0x1002faa0
mov esi, 0x200
lea r13, [rbp - 0x50]
mov r15, r8
jmp 0x1002fb02
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1002fade
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call sym.alloc::raw_vec::RawVecInner_A_::reserve::do_reserve_and_handle::h314566584a244f3b
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x3c0], rax
cmp rbx, r14
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x400], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3c0]
mov r15, r12
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov dword [rbp + 0x3d0], r15d
mov rcx, 0xfffffffffffffffc
mov rdx, r13
lea r8, [rbp + 0x3d0]
call sub.userenv.dll_GetUserProfileDirectoryW
test eax, eax
je 0x1002fb40
mov ecx, dword [rbp + 0x3d0]
dec ecx
test ecx, ecx
jne 0x1002fb6f
jmp 0x1002fb60
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1002fb60
mov ecx, dword [rbp + 0x3d0]
test ecx, ecx
jne 0x1002fb6f
nop word cs:[rax + rax]
call sub.kernel32.dll_GetLastError
xor ecx, ecx
test eax, eax
jne 0x1002fc36
mov r8d, ecx
cmp r15, r8
jne 0x1002fa80
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1002fcdc
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
mov r14d, 0xffffffff
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1002fa8f
jmp 0x1002faa0
cmp rsi, r8
jb 0x1002fcf6
lea rcx, [rbp + 0x3d0]
mov rdx, r13
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::h41c25f2af65ae5e0
mov r15, qword [rbp + 0x3c8]
movabs rbx, 0x8000000000000000
mov rsi, qword [rbp + 0x3d0]
mov rdi, qword [rbp + 0x3d8]
movups xmm0, xmmword [rbp + 0x3e0]
movaps xmmword [rbp + 0x3b0], xmm0
mov rdx, qword [rbp + 0x3f0]
test rdx, rdx
je 0x1002fc19
mov rcx, qword [rbp + 0x3f8]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
cmp rsi, rbx
je 0x1002fc77
movaps xmm0, xmmword [rbp + 0x3b0]
movups xmmword [r15 + 0x10], xmm0
mov qword [r15], rsi
mov qword [r15 + 8], rdi
jmp 0x1002fcc5
call sub.kernel32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
mov rdx, qword [rbp + 0x3f0]
test rdx, rdx
je 0x1002fc62
mov rcx, qword [rbp + 0x3f8]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
or rdi, 2
mov r15, qword [rbp + 0x3c8]
movabs rbx, 0x8000000000000000
mov qword [r15], rbx
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1002fcc5
lea rbx, [rdi - 1]
mov r14, qword [rdi - 1]
mov rdi, qword [rdi + 7]
mov rax, qword [rdi]
test rax, rax
je 0x1002fc9d
mov rcx, r14
call rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x1002fcb2
mov r8, qword [rdi + 0x10]
mov rcx, r14
call sym.__rust_dealloc
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call sym.__rust_dealloc
mov rax, r15
add rsp, 0x488
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::hbd6cd6a2d9022e85
jmp 0x1002fd0b
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::hca289dda450e409b
ud2