Function at 0x140001440
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 [0x140024008]
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 0x140001539
lea rcx, [rbp - 0x50]
mov rdx, 0xffffffffffffffff
mov rax, rdx
lea rax, [rax + 1]
cmp word [rcx + rax*2], si
jne 0x1400014b5
cmp word [rbp + rax*2 - 0x52], 0x5c
jne 0x1400014e0
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x140001750
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 0x140001500
lea rcx, [rbp - 0x70]
cmp rdx, 7
ja 0x14000152e
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 0x140001570
lea r9, [rbp - 0x50]
call fcn.140008940
jmp 0x140001570
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.140006220
lea rdx, [0x1400063f0]
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 0x1400015d3
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 0x14000171f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000171a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000171a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x48]
call fcn.1400012b0
mov rbx, rax
movabs rcx, 0x7ffffffffffffffe
mov rdx, qword [rbp - 0x60]
sub rcx, rdx
cmp rcx, 1
jb 0x14000174a
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
mov qword [rsp + 0x30], 1
lea rax, [0x140012914]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x70]
call fcn.140008eb0
nop
mov r9, rbx
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140008ca0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140001684
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000167e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000167e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fd60
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400016c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016c4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016c4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fd60
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14000171f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000171a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000171a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000fd60
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14000fd40
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.1400011b0
nop
call fcn.140010178
int3