Function at 0x140012dd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x140026080]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x140026840]
add rcx, 0xa0
call fcn.1400166e0
mov rbx, 0xffffffffffffffff
test rax, rax
je 0x140013021
lea rdx, [rbp + 0x2a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140013021
lea r9, [rbp + 0x90]
xor r8d, r8d
lea rdx, [0x14001e320]
lea rcx, [rbp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140013021
mov dword [rsp + 0x20], 1
lea r9d, [rbx + 0x41]
lea r8d, [rbx + 0x21]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.14000d990
nop
mov rcx, qword [0x140026840]
add rcx, 0xa0
call fcn.14001674c
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140012ec4
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.140003130
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.1400035a0
nop
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova 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.1400137c0
test rax, rax
jne 0x140012f34
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, 0xf
jbe 0x140012f73
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012f6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012f6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140019098
nop
movdqa xmm0, xmmword [0x14001e580]
movdqu xmmword [rbp + 0x60], xmm0
mov byte [rbp + 0x50], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140012fc6
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012fc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140012fc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140019098
nop
movdqa xmm0, xmmword [0x14001e580]
movdqu xmmword [rbp + 0x80], xmm0
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.14000df50
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]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
lea rax, [rbp + 0x90]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140013040
mov r8, rbx
lea rdx, [rbp + 0x90]
mov rcx, rdi
call fcn.140003d30
mov rax, rdi
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.140019140
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret