Function at 0x18001e6a0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x428]
sub rsp, 0x500
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1801b0238]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov rbx, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x18001e734
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r12b
lea r8d, [r12 + 0x30]
lea rdx, str.Save_Failed:_Could_not_find_My_Document_Location
mov rcx, rdi
call fcn.18000f070
jmp 0x18001ea39
mov rax, r12
mov qword [rbp + 0x1d0], rax
mov edx, 7
mov qword [rbp + 0x1d8], rdx
mov word [rbp + 0x1c0], r12w
mov r15d, r12d
lea r14, [rbp + 0x1e0]
nop dword [rax]
movzx esi, word [r14]
test si, si
je 0x18001e80d
cmp rax, rdx
jne 0x18001e7bd
lea rcx, [rax + 1]
test rcx, rcx
jne 0x18001e79b
mov qword [rbp + 0x1d0], r12
lea rax, [rbp + 0x1c0]
cmp rdx, 8
cmovae rax, qword [rbp + 0x1c0]
mov word [rax], r12w
jmp 0x18001e7af
cmp rdx, rcx
jae 0x18001e7bd
mov rdx, rcx
lea rcx, [rbp + 0x1c0]
call fcn.180019300
mov rax, qword [rbp + 0x1d0]
mov rdx, qword [rbp + 0x1d8]
lea rcx, [rbp + 0x1c0]
cmp rdx, 8
cmovae rcx, qword [rbp + 0x1c0]
mov word [rcx + rax*2], si
mov rax, qword [rbp + 0x1d0]
inc rax
mov qword [rbp + 0x1d0], rax
mov word [rcx + rax*2], r12w
inc r15d
add r14, 2
cmp r15d, 0x104
jge 0x18001e80d
mov rdx, qword [rbp + 0x1d8]
mov rax, qword [rbp + 0x1d0]
jmp 0x18001e760
mov r8d, 8
lea rdx, str.BF1.dat
lea rcx, [rbp + 0x1c0]
call fcn.18001f650
lea rcx, [rsp + 0x40]
call fcn.18001e2d0
nop
lea rdx, [rbp + 0x1c0]
cmp qword [rbp + 0x1d8], 8
cmovae rdx, qword [rbp + 0x1c0]
mov r8d, 0x22
lea rcx, [rsp + 0x48]
call fcn.180020200
xor r8d, r8d
test rax, rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
jne 0x18001e87d
add rcx, rax
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]
jmp 0x18001e888
add rcx, rax
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
lea rdx, [rbp + 0x1c0]
cmp qword [rbp + 0x1d8], 8
cmovae rdx, qword [rbp + 0x1c0]
mov r8, qword [rbp + 0x1d0]
mov rcx, qword [0x1800eb330]
call fcn.18001e4c0
cmp qword [rbp - 0x38], 0
jne 0x18001e8cb
mov r8d, 0x23
lea rdx, str.Save_Failed:_Could_open_create_file
jmp 0x18001e9bd
lea rcx, [rbp + 0x50]
mov eax, 2
nop dword [rax]
nop dword [rax + rax]
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rbx, [rbx + 0x80]
sub rax, 1
jne 0x18001e8e0
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
mov rax, qword [rbx + 0x60]
mov qword [rcx + 0x60], rax
mov eax, dword [rbx + 0x68]
mov dword [rcx + 0x68], eax
mov r8d, 0x16c
lea rdx, [rbp + 0x50]
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.180020880
test rax, rax
jne 0x18001e9b0
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]
mov r8d, 0xe
lea rdx, str.Saved_Settings
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, rdi
call fcn.18000f070
nop
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.180020010
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]
nop
mov r8, qword [rbp + 0x1d8]
cmp r8, 8
jb 0x18001ea39
inc r8
mov rdx, qword [rbp + 0x1c0]
call fcn.180019510
mov rax, rdi
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1800e5f40
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret