Function at 0x1400a0400
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 rbx, rcx
lea rbp, [rsp + 0x60]
lea rsi, [rsp + 0x50]
call method.std::_V2.system_category__
xor r8d, r8d
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], r8w
nop dword [rax]
xor r8d, r8d
mov rcx, rsi
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 0x1400a0450
xor edi, edi
test eax, eax
je 0x1400a0560
xor r8d, r8d
mov rcx, rsi
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 rdx, [rbx + 0x10]
mov rcx, qword [rsp + 0x58]
mov qword [rbx], rdx
cmp rax, rbp
je 0x1400a05c8
mov qword [rbx], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rcx
lea r12, [rbx + 0x20]
xor ecx, ecx
mov word [rsp + 0x60], cx
mov rcx, r12
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], 0
call method.std::filesystem::__cxx11::path::_List._List__
mov rcx, rbx
call method.std::filesystem::__cxx11::path._M_split_cmpts__
mov rcx, qword [rsp + 0x50]
cmp rcx, rbp
je 0x1400a04f0
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
test edi, edi
je 0x1400a0580
cmp qword [rbx + 8], 0
jne 0x1400a0679
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, str.temp_directory_path
mov rcx, rsi
mov rbp, rax
call fcn.1400e7bb0
movdqa xmm0, xmmword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbp
movaps 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, rsi
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, [0x140110500]
mov rcx, rbp
call sym.__cxa_throw
nop dword [rax + rax]
mov qword [rsp + 0x28], rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0x28]
mov dword [rsp + 0x40], eax
mov edi, eax
jmp 0x1400a0479
lea rdx, [rsp + 0x40]
mov rcx, rbx
call method.std::filesystem.status_std::filesystem::__cxx11::path_const__std::error_code_
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x1400a04f8
cmp al, 2
je 0x1400a05b4
call method.std::_V2.generic_category__
mov dword [rsp + 0x40], 0x14
mov qword [rsp + 0x48], rax
jmp 0x1400a04f8
mov rax, rbx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [rcx + rcx + 2]
cmp eax, 8
jae 0x1400a0610
test al, 4
jne 0x1400a0660
test eax, eax
je 0x1400a04aa
movzx r8d, byte [rbp]
mov byte [rbx + 0x10], r8b
test al, 2
je 0x1400a04aa
mov eax, eax
movzx r8d, word [rbp + rax - 2]
mov word [rdx + rax - 2], r8w
jmp 0x1400a04aa
mov r8, qword [rbp]
mov r11, rbp
mov qword [rbx + 0x10], r8
mov r8d, eax
mov r9, qword [rbp + r8 - 8]
mov qword [rdx + r8 - 8], r9
lea r9, [rbx + 0x18]
and r9, 0xfffffffffffffff8
sub rdx, r9
add eax, edx
sub r11, rdx
and eax, 0xfffffff8
cmp eax, 8
jb 0x1400a04aa
and eax, 0xfffffff8
xor edx, edx
mov r8d, edx
add edx, 8
mov r10, qword [r11 + r8]
mov qword [r9 + r8], r10
cmp edx, eax
jb 0x1400a0649
jmp 0x1400a04aa
mov r8d, dword [rbp]
mov eax, eax
mov dword [rbx + 0x10], r8d
mov r8d, dword [rbp + rax - 4]
mov dword [rdx + rax - 4], r8d
jmp 0x1400a04aa
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, str.temp_directory_path
mov rcx, rsi
mov rbp, rax
call fcn.1400e7bb0
movdqa xmm1, xmmword [rsp + 0x40]
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
lea r9, [rsp + 0x30]
movaps 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, rsi
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, [0x140110500]
mov rcx, rbp
call sym.__cxa_throw
mov rdx, qword [rbx + 0x20]
mov rdi, rax
test rdx, rdx
je 0x1400a06e5
mov rcx, r12
call method.std::filesystem::__cxx11::path::_List::_Impl_deleter.operator___std::filesystem::__cxx11::path::_List::_Impl__const
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 method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___._M_dispose__
mov rcx, rdi
call dbg._Unwind_Resume
mov rdi, rax
jmp 0x1400a06e5