Function at 0x180001980
Capabilities:
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800203e0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r12, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov byte [rbp + 0x40], bl
xor edx, edx
mov r8d, 0x103
lea rcx, [rbp + 0x41]
call fcn.180007a70
xor r9d, r9d
lea r8d, [rbx + 0x28]
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x1800019fe
xor r9d, r9d
lea r8d, [rbx + 0x15]
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdi, [rbp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str._appdata_roaming]
mov qword [rdi - 1], rax
mov rax, qword [0x18001bd00]
mov qword [rdi + 7], rax
movzx eax, byte [0x18001bd08]
mov byte [rdi + 0xf], al
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdi, [rbp + 0x40]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.Thumbs.db]
mov qword [rdi - 1], rax
movzx eax, word [0x18001bd18]
mov word [rdi + 7], ax
movzx eax, byte [0x18001bd1a]
mov byte [rdi + 9], al
lea rax, [0x18001c090]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 1
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.180001600
lea rdx, [rsp + 0x38]
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], rbx
lea rcx, [rbp - 0x28]
call fcn.180004270
mov byte [rbp + 0x30], al
cmp qword [rbp + 0x20], 0
jne 0x180001abd
mov edx, dword [rbp - 0x18]
or edx, 4
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.180001490
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.180003840
nop
mov r8d, 0xa
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.1800038e0
mov edi, 4
test rax, rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x30]
jne 0x180001b1a
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x180001b23
or edx, edi
jmp 0x180001b23
mov edx, ebx
cmp qword [rcx + 0x48], rdx
cmove edx, edi
xor r8d, r8d
call fcn.180001490
cmp qword [rbp - 0x30], 0
jne 0x180001b82
mov r8d, 2
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.1800038e0
test rax, rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x30]
jne 0x180001b6a
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x180001b73
or edx, edi
jmp 0x180001b73
mov edx, ebx
cmp qword [rcx + 0x48], rdx
cmove edx, edi
xor r8d, r8d
call fcn.180001490
cmp qword [rbp - 0x30], 0
je 0x180001bce
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x180001bce
mov rsi, r12
nop dword [rax + rax]
movzx edx, byte [rsi]
xor dl, 0xa5
lea rcx, [rsp + 0x30]
call fcn.1800044c0
inc ebx
inc rsi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rax, ebx
cmp rax, rcx
jb 0x180001ba0
lea rcx, [rbp - 0x28]
call fcn.180002a10
lea rdx, vtable.std::ios_base.0
mov qword [rbp - 0x28], rdx
lea rcx, [rbp - 0x28]
call fcn.180012d84
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.180004a50
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret