Function at 0x140001470
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140001569
lea rcx, [rbp - 0x50]
mov rdx, 0xffffffffffffffff
mov rax, rdx
lea rax, [rax + 1]
cmp word [rcx + rax*2], si
jne 0x1400014e5
cmp word [rbp + rax*2 - 0x52], 0x5c
jne 0x140001510
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x140001780
mov word [rbp + rax - 0x50], si
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], si
lea rax, [rbp - 0x50]
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], si
jne 0x140001530
lea rcx, [rbp - 0x70]
cmp rdx, 7
ja 0x14000155e
mov qword [rbp - 0x60], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + rbx - 0x70], si
jmp 0x1400015a0
lea r9, [rbp - 0x50]
call fcn.1400079c0
jmp 0x1400015a0
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140005a10
lea rdx, [0x140005be0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rsi
mov word [rbp - 0x70], si
cmp qword [rbp - 0x60], 0
jne 0x140001603
mov qword [rdi], rsi
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14000174f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000174a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000174a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x48]
call fcn.1400012e0
mov rbx, rax
movabs rcx, 0x7ffffffffffffffe
mov rdx, qword [rbp - 0x60]
sub rcx, rdx
cmp rcx, 1
jb 0x14000177a
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 1
lea rax, [0x14000e844]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x70]
call fcn.140007f20
nop
mov r9, rbx
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140007d10
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400016b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ba60
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400016f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ba60
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14000174f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000174a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000174a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ba60
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14000ba40
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400011d0
nop
call fcn.14000c0c8
int3