Function at 0x14000f340
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 - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x140021078]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140021610]
add rcx, 0xa0
call fcn.1400129e0
xor esi, esi
lea rbx, [rsi - 1]
test rax, rax
je 0x14000f59e
lea rdx, [rbp + 0x2a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000f59e
lea r9, [rbp + 0x90]
xor r8d, r8d
lea rdx, [0x14001a060]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000f59e
mov dword [rsp + 0x20], 1
lea r9d, [rsi + 0x40]
lea r8d, [rsi + 0x20]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.14000b170
nop
mov rcx, qword [0x140021610]
add rcx, 0xa0
call fcn.140012a4c
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], 0xf
mov byte [rbp + 0x70], sil
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000f440
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.140003410
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.140003580
nop
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rdx, qword [rbp + 0x50]
mov r8, qword [rbp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x48]
call fcn.14000fb20
test rax, rax
jne 0x14000f4b0
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 0x10
jb 0x14000f4ef
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f4e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f4e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015268
nop
mov qword [rbp + 0x60], rsi
mov qword [rbp + 0x68], 0xf
mov byte [rbp + 0x50], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x14000f541
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f53b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f53b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140015268
nop
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], 0xf
mov byte [rbp + 0x70], 0
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.14000b4f0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
lea rax, [rbp + 0x90]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000f5b4
mov r8, rbx
lea rdx, [rbp + 0x90]
mov rcx, rdi
call fcn.140009490
mov rax, rdi
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.140015310
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret