Function at 0x140022f20
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 rsi, rcx
movabs rdi, 0x8000000000000000
lea rdx, str.HOMEUSERPROFILE.pipe__rust_anonymous_pipe1__.
lea rcx, [rbp - 0x60]
mov r8d, 4
call sym.std::env::_var_os::he8dc6fbde4542b6b
cmp qword [rbp - 0x60], rdi
jne 0x140022fa7
lea rdx, [0x14009f89c]
lea rcx, [rbp + 0x3d0]
mov r8d, 0xb
call sym.std::env::_var_os::he8dc6fbde4542b6b
mov rax, qword [rbp + 0x3d0]
cmp rax, rdi
je 0x140022fc9
mov rcx, qword [rbp + 0x3e8]
mov qword [rsi + 0x18], rcx
movups xmm0, xmmword [rbp + 0x3d8]
movups xmmword [rsi + 8], xmm0
mov qword [rsi], rax
jmp 0x140023224
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
mov rax, qword [rbp + 0x3d0]
cmp rax, rdi
jne 0x140022f89
mov qword [rbp + 0x3c8], rsi
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 esi, 0xffffffff
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140023040
jmp 0x14002302f
jae 0x140023142
cmp r8, 0x201
jae 0x140023040
mov r14d, 0x200
lea r13, [rbp - 0x60]
mov r15, r8
jmp 0x140023093
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14002306f
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h8425fdca76781b7a
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x3c0], rax
cmp rbx, rsi
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x400], r12
mov rdi, rbx
mov r14, 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 0x1400230d0
mov ecx, dword [rbp + 0x3d0]
dec ecx
test ecx, ecx
jne 0x1400230ff
jmp 0x1400230f0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400230f0
mov ecx, dword [rbp + 0x3d0]
test ecx, ecx
jne 0x1400230ff
nop word cs:[rax + rax]
call sub.kernel32.dll_GetLastError
xor ecx, ecx
test eax, eax
jne 0x1400231c8
mov r8d, ecx
cmp r15, r8
jne 0x140023020
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002323b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
mov esi, 0xffffffff
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14002302f
jmp 0x140023040
cmp r14, r8
jb 0x140023255
lea rcx, [rbp + 0x3d0]
mov rdx, r13
call sym.__std::ffi::os_str::OsString_as_std::os::windows::ffi::OsStringExt_::from_wide::hf0cfbcda3d609260
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rbp + 0x3d0]
movups xmm1, xmmword [rbp + 0x3e0]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rdx, qword [rbp + 0x3f0]
test rdx, rdx
mov rsi, qword [rbp + 0x3c8]
je 0x1400231a8
mov rcx, qword [rbp + 0x3f8]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
cmp qword [rbp + 0x3a0], rdi
je 0x140023215
movaps xmm0, xmmword [rbp + 0x3a0]
movaps xmm1, xmmword [rbp + 0x3b0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140023224
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3a8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3a0], rdi
mov rdx, qword [rbp + 0x3f0]
test rdx, rdx
je 0x14002320e
mov rcx, qword [rbp + 0x3f8]
add rdx, rdx
mov r8d, 2
call sym.__rust_dealloc
mov rsi, qword [rbp + 0x3c8]
mov qword [rsi], rdi
lea rcx, [rbp + 0x3a8]
call sym.core::ptr::drop_in_place_std::io::error::Error_::h44e53fd2f03802d7
mov rax, rsi
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_code7_t_
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call sym.core::panicking::panic::h28a915f45fddef8a
jmp 0x14002326a
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call sym.core::slice::index::slice_end_index_len_fail::h0554de1142a9c232
ud2