Function at 0x14009ef40
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 - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1400f2040]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x60]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x14009f010
lea rcx, [rbp - 0x60]
mov r8, 0xffffffffffffffff
mov rax, r8
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], bx
jne 0x14009efc0
cmp word [rbp + rax*2 - 0x62], 0x5c
jne 0x14009efeb
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x14009f321
mov word [rbp + rax - 0x60], bx
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
lea rax, [rbp - 0x60]
nop
inc r8
cmp word [rax + r8*2], bx
jne 0x14009f000
lea rdx, [rbp - 0x60]
jmp 0x14009f04d
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.140021b50
lea rdx, [0x140021d30]
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]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
xor r8d, r8d
lea rdx, [0x1400dd318]
lea rcx, [rsp + 0x78]
call fcn.14000eb70
nop
mov r15, qword [rbp - 0x78]
test r15, r15
jne 0x14009f0cd
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rbx
xor r8d, r8d
lea rdx, [0x1400dd318]
mov rcx, rsi
call fcn.14000eb70
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x14009f2e8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009f2e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009f2e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rsp + 0x58]
call fcn.14009f340
mov qword [rsp + 0x28], rax
movabs rax, 0x7ffffffffffffffe
mov rcx, rax
sub rcx, r15
cmp rcx, 1
jb 0x14009f327
lea rdx, [rsp + 0x78]
mov r14, qword [rsp + 0x78]
mov r12, qword [rbp - 0x70]
cmp r12, 7
cmova rdx, r14
mov qword [rsp + 0x20], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r13, [r15 + 1]
mov ebx, 7
lea rdi, [rsp + 0x30]
cmp r13, rbx
jbe 0x14009f1d3
mov rbx, r13
or rbx, 7
cmp rbx, rax
jbe 0x14009f158
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14009f187
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14009f31b
add rcx, rcx
cmp rcx, 0x1000
jb 0x14009f1b8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14009f31b
mov rcx, rax
call fcn.140025c18
test rax, rax
je 0x14009f245
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov rdx, qword [rsp + 0x20]
jmp 0x14009f1ce
test rcx, rcx
je 0x14009f1cc
call fcn.140025c18
mov rdi, rax
mov rdx, qword [rsp + 0x20]
jmp 0x14009f1ce
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + rbx], 0x5c
xor ebx, ebx
mov word [rdi + r13*2], bx
mov r9, qword [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.1400240c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14009f252
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009f24c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009f24c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025c10
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x14009f297
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009f292
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009f292
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025c10
movdqa xmm0, xmmword [0x1400dfee0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], bx
cmp r12, 7
jbe 0x14009f2e8
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x14009f2e0
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14009f2e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140025c10
mov rax, rsi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140025bf0
lea r11, [rsp + 0x2c0]
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.1400015e0
nop
call fcn.1400261e0
nop
call fcn.140001680
int3