Function at 0x1400561f0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140130138]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea rdx, [rbp + 0xd0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r14w
lea rax, [rbp + 0xd0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140056260
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x58]
call fcn.140010890
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005628a
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rsp + 0x58]
call fcn.140055fc0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov rax, r8
sub rax, rdx
cmp rax, 4
jb 0x140056310
lea rcx, [rdx + 4]
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp r8, 8
cmovae rax, qword [rsp + 0x38]
movabs r8, 0x7300790073002e
mov qword [rax + rdx*2], r8
mov word [rax + rcx*2], r14w
lea rax, [rsp + 0x38]
jmp 0x140056335
mov qword [rsp + 0x20], 4
lea r9, str..sys
movzx r8d, byte [rsp + 0x30]
mov edx, 4
lea rcx, [rsp + 0x38]
call fcn.1400557f0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
add rbx, 0x20
lea rax, [rsp + 0x78]
cmp rbx, rax
je 0x140056390
mov rcx, rbx
call fcn.1400105b0
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rbx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x78], r14w
jmp 0x140056394
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400563d5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400563cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400563cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbea0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14005641a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056415
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056415
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbea0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140056473
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005646e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005646e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bbea0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 8
jb 0x14005648e
mov rbx, qword [rbx]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140055a50
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rbx
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea r9d, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], r9d
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 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, [rbp - 0x38]
call fcn.140056140
test rax, rax
jne 0x14005650f
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 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 rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x40], rbx
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x38]
call fcn.140055cf0
lea rcx, [rbp - 0x30]
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 + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.1400bbe80
add rsp, 0x3f0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret