Function at 0x14009454f
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x558
mov rdi, r8
mov rbx, rdx
mov r12, rcx
lea rsi, [rsp + 0xd8]
mov rcx, rsi
call fcn.14017b180
lea r14, [rsp + 0x118]
mov rcx, r14
mov rdx, rsi
call fcn.140159110
mov al, byte [r14]
cmp al, 0xa
je 0x140094670
add al, 0xfa
movzx ecx, al
lea rdx, [rcx + 1]
xor eax, eax
cmp cl, 4
cmovb rax, rdx
cmp rax, 1
je 0x140094670
cmp eax, 4
jne 0x140094615
mov rdx, qword [rsp + 0x120]
mov r8, qword [rsp + 0x128]
lea rsi, [rsp + 0x150]
mov rcx, rsi
call fcn.140055380
cmp qword [rsi], 0
mov rdx, qword [rsi + 0x10]
jne 0x1400945ee
mov rcx, qword [rsp + 0x158]
jmp 0x1400945f0
xor ecx, ecx
lea r8, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_path_calculate_0.1.3_src_calculate.rs
call fcn.14000f9ae
lea r8, str._nnull0x_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_yaml_rust_0.4.5_src_parser.rsunexpected_eoffetch_token_needs_to_be_preceded_by_peek_token
mov r9d, 1
mov rcx, rax
call fcn.1401a2d3f
test al, al
je 0x140094670
xorps xmm0, xmm0
movups xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0xb0], 1
mov byte [rsp + 0xc8], 1
lea rdx, str.HOMEUSERPROFILE_library_std_src_syswindowspath.rs
lea rsi, [rsp + 0x150]
mov r8d, 4
mov rcx, rsi
call fcn.1401737b0
cmp byte [rsi + 0x18], 2
jne 0x140094683
lea rdx, [0x14031c474]
lea rcx, [rsp + 0x30]
mov r8d, 0xb
call fcn.1401737b0
jmp 0x14009469d
mov rcx, r12
mov rdx, rbx
mov r8, rdi
call fcn.140094a92
jmp 0x1400949f7
movups xmm0, xmmword [rsp + 0x150]
movups xmm1, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
cmp byte [rsp + 0x48], 2
jne 0x140094815
mov qword [rsp + 0xa8], r12
call sub.kernel32.dll_GetCurrentProcess
lea r8, [rsp + 0xd0]
and qword [r8], 0
mov rcx, rax
mov edx, 0x20008
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x140094a26
mov rdi, qword [rsp + 0xd0]
lea rax, [rsp + 0x68]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor r13d, r13d
mov esi, 0xffffffff
xor r14d, r14d
xor r12d, r12d
cmp r8, 0x201
jae 0x14009472a
mov ebx, 0x200
lea r15, [rsp + 0x150]
mov rbp, r8
jmp 0x140094771
sub r8, r12
sub r14, r12
cmp r14, r8
jae 0x140094751
lea rcx, [rsp + 0x68]
mov rdx, r12
call fcn.1401578b0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r13, qword [rsp + 0x70]
cmp r13, rsi
mov r12d, 0xffffffff
cmovb r12, r13
mov qword [rsp + 0x78], r12
mov r14, r13
mov rbx, r12
mov r15, qword [rsp + 0x28]
mov rbp, r12
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 0x140094798
mov ecx, dword [rsp + 0x30]
dec ecx
jmp 0x1400947a6
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400947aa
mov ecx, dword [rsp + 0x30]
test ecx, ecx
jne 0x1400947b5
call sub.kernel32.dll_GetLastError
xor ecx, ecx
test eax, eax
jne 0x140094829
mov r8d, ecx
cmp rbp, r8
jne 0x1400947dd
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x140094a0c
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
jmp 0x14009470f
jb 0x14009470f
cmp rbx, r8
jb 0x140094a40
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.140158840
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0x80], xmm0
jmp 0x140094846
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
jmp 0x1400948ac
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x80], rax
mov byte [rsp + 0x98], 2
test r13, r13
je 0x14009485a
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.14002a3e0
mov bpl, byte [rsp + 0x98]
cmp bpl, 2
mov r12, qword [rsp + 0xa8]
jne 0x140094882
lea rcx, [rsp + 0x80]
call fcn.140158790
mov bpl, 2
jmp 0x14009489a
mov rbx, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
mov rcx, rdi
call sub.kernel32.dll_CloseHandle
cmp bpl, 2
je 0x140094a26
lea rdi, [rsp + 0x150]
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call fcn.140055380
cmp qword [rdi], 0
mov rdx, qword [rdi + 0x10]
mov ecx, 0
jne 0x1400948d9
mov rcx, qword [rsp + 0x158]
lea r8, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_path_calculate_0.1.3_src_calculate.rs
call fcn.14000f9ae
lea r8, str._rustc_cc66ad468955717ab92600c770da8c1601a4ff33librarycore_src_fmtmod.rs
mov rcx, rax
xor r9d, r9d
call fcn.1401a2d3f
test al, al
je 0x14009492c
mov rcx, rbx
mov rdx, r14
call fcn.140087bce
movabs rax, 0x1400000003
mov qword [r12], rax
mov byte [r12 + 0x18], 3
mov rdx, qword [rsp + 0xb8]
mov ecx, 1
jmp 0x1400949f2
lea rdi, [rsp + 0x150]
mov rcx, rdi
mov rdx, rbx
mov r8, rsi
call fcn.14017b180
lea rsi, [rsp + 0x30]
lea r15, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rdi
call fcn.140159110
cmp byte [rsp + 0x30], 0xa
je 0x14009496e
mov rcx, r15
mov rdx, rsi
call fcn.14009452c
jmp 0x14009494f
movups xmm0, xmmword [rsp + 0xd8]
movups xmm1, xmmword [rsp + 0xe8]
movups xmm2, xmmword [rsp + 0xf8]
movups xmm3, xmmword [rsp + 0x108]
lea rsi, [rsp + 0x150]
movaps xmmword [rsi + 0x30], xmm3
movaps xmmword [rsi + 0x20], xmm2
movaps xmmword [rsi + 0x10], xmm1
movaps xmmword [rsi], xmm0
lea rdi, [rsp + 0x30]
lea r15, [rsp + 0xb0]
mov rcx, rdi
mov rdx, rsi
call fcn.140159110
cmp byte [rsp + 0x30], 0xa
je 0x1400949d1
mov rcx, r15
mov rdx, rdi
call fcn.14009452c
jmp 0x1400949b2
movups xmm0, xmmword [rsp + 0xb0]
movups xmm1, xmmword [rsp + 0xc0]
movups xmmword [r12 + 0x10], xmm1
movups xmmword [r12], xmm0
mov rcx, rbx
mov rdx, r14
call fcn.140087bce
nop
add rsp, 0x558
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140050c60
jmp 0x140094a55
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str._usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_path_calculate_0.1.3_src_calculate.rs
mov edx, 0x2b
call fcn.140050c60
ud2
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov ecx, eax
mov rdx, rbx
mov r8, rax
call fcn.140050440
ud2