Function at 0x140003580
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140122060]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rsi, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x70]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x140003660
lea rcx, [rbp - 0x70]
mov r8, 0xffffffffffffffff
mov rax, r8
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140003600
xor edi, edi
cmp word [rbp + rax*2 - 0x72], 0x5c
jne 0x14000362e
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x1400037f3
mov word [rbp + rax - 0x70], di
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov ebx, 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x68], di
lea rax, [rbp - 0x70]
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], di
jne 0x140003650
lea rdx, [rbp - 0x70]
jmp 0x1400036a7
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.140007c00
lea rdx, [0x140007de0]
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]
xor edi, edi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov ebx, 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x68], di
xor r8d, r8d
lea rdx, [0x1400fa0f4]
lea rcx, [rsp + 0x68]
call fcn.140007860
nop
mov r14, qword [rsp + 0x78]
test r14, r14
jne 0x1400036e1
mov qword [rsi], rdi
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], rbx
mov word [rsi], di
xor r8d, r8d
lea rdx, [0x1400fa0f4]
mov rcx, rsi
call fcn.140007860
jmp 0x1400037b0
lea rcx, [rsp + 0x48]
call fcn.140003470
mov qword [rsp + 0x20], rax
movabs rax, 0x7ffffffffffffffe
mov rcx, rax
sub rcx, r14
cmp rcx, 1
jb 0x1400037ed
lea r13, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae r13, qword [rsp + 0x68]
mov qword [rsp + 0x28], rdi
lea r12, [r14 + 1]
lea r15, [rsp + 0x28]
cmp r12, 7
jbe 0x14000375c
mov rbx, r12
or rbx, 7
cmp rbx, rax
jbe 0x14000373f
mov rbx, rax
jmp 0x14000374b
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
call fcn.14000a310
mov r15, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r13
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x5c
mov word [rbx + r15], ax
mov word [r15 + r12*2], di
mov r9, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rcx, rsi
call fcn.14000a160
nop
lea rcx, [rsp + 0x28]
call fcn.1400076a0
nop
lea rcx, [rsp + 0x48]
call fcn.1400076a0
nop
lea rcx, [rsp + 0x68]
call fcn.1400076a0
mov rax, rsi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400e4b30
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140003370
nop
call fcn.1400e51c0
int3