Function at 0x14007f440
Capabilities:
Get common file path

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x40], 0
mov rsi, rcx
lea rbp, [rsp + 0x60]
lea rbx, [rsp + 0x50]
call method.std::_V2.system_category__
xor r9d, r9d
mov qword [rsp + 0x50], rbp
mov rdi, qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rsp + 0x48], rax
mov edx, 0x400
mov qword [rsp + 0x58], 0
mov word [rsp + 0x60], r9w
nop dword [rax]
xor r8d, r8d
mov rcx, rbx
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.resize_unsigned_long_long__wchar_t_
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
call rdi
mov edx, eax
cmp qword [rsp + 0x58], rdx
jb 0x14007f490
test eax, eax
je 0x14007f5a0
xor r8d, r8d
mov rcx, rbx
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.resize_unsigned_long_long__wchar_t_
mov rax, qword [rsp + 0x50]
lea rcx, [rsi + 0x10]
mov rdi, qword [rsp + 0x58]
mov qword [rsi], rcx
cmp rax, rbp
je 0x14007f608
mov qword [rsi], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], rdi
lea rdi, [rsi + 0x20]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], 0
mov word [rsp + 0x60], r8w
call method.std::filesystem::__cxx11::path::_List._List__
mov rcx, rsi
call method.std::filesystem::__cxx11::path._M_split_cmpts__
mov rcx, qword [rsp + 0x50]
cmp rcx, rbp
je 0x14007f530
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14007f5c0
cmp qword [rsi + 8], 0
jne 0x14007f635
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, str.temp_directory_path
mov rcx, rbx
mov r12, rax
call fcn.1400b8930
movdqu xmm0, xmmword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, r12
movups xmmword [rsp + 0x30], xmm0
call method.std::filesystem::__cxx11::filesystem_error.filesystem_error_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::error_code_
mov rcx, rbx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x1400e7f00]
mov rcx, r12
call sym.__cxa_throw
nop dword [rax]
mov qword [rsp + 0x28], rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0x28]
mov dword [rsp + 0x40], eax
jmp 0x14007f4b7
lea rdx, [rsp + 0x40]
mov rcx, rsi
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x14007f53c
cmp al, 2
je 0x14007f5f4
call method.std::_V2.generic_category__
mov dword [rsp + 0x40], 0x14
mov qword [rsp + 0x48], rax
jmp 0x14007f53c
mov rax, rsi
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r8, [rdi + rdi + 2]
mov rdx, rbp
call sym.memcpy
jmp 0x14007f4e8
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, str.temp_directory_path
mov rcx, rbx
mov r12, rax
call fcn.1400b8930
movdqu xmm1, xmmword [rsp + 0x40]
mov r8, rsi
mov rdx, rbx
mov rcx, r12
lea r9, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm1
call method.std::filesystem::__cxx11::filesystem_error.filesystem_error_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::filesystem::__cxx11::path_const__std::error_code_
mov rcx, rbx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea r8, [method.std::filesystem::__cxx11::filesystem_error.filesystem_error__]
lea rdx, [0x1400e7f00]
mov rcx, r12
call sym.__cxa_throw
mov rsi, rax
mov rcx, rbx
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___._M_dispose__
mov rcx, rsi
call sym._Unwind_Resume
mov rbp, rax
mov rcx, rbx
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
mov rbx, rbp
mov rcx, r12
call sym.__cxa_free_exception
mov rcx, rdi
call method.std::unique_ptr_std::filesystem::__cxx11::path::_List::_Impl__std::filesystem::__cxx11::path::_List::_Impl_deleter_.unique_ptr__
mov rcx, rsi
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___._M_dispose__
mov rcx, rbx
call sym._Unwind_Resume
mov rbx, rax
jmp 0x14007f6ae