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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x180031080]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x180022400]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov rcx, qword [rsp + 0x20]
lea rdx, [rbp + 0x80]
sub rdx, rcx
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800020d0
lea rax, [rbp + 0x80]
sub rax, 2
nop dword [rax + rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x1800020f0
movups xmm0, xmmword [str.NathanSilversPOORMANS_IPC]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x18002c3a0]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x18002c3b0]
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x18002c3c0]
movsd qword [rax + 0x30], xmm0
xor edx, edx
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rbp + 0x80]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180002141
mov eax, dword [0x18002c3c8]
mov dword [rcx], eax
lea rcx, [rbp + 0x80]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180002160
xor edx, edx
nop dword [rax]
movzx eax, word [rbx + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x180002170
lea rcx, [rbp + 0x80]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180002190
movsd xmm0, qword [str..txt]
movsd qword [rcx], xmm0
movzx eax, word [0x18002c3d8]
mov word [rcx + 8], ax
lea rcx, [rsp + 0x30]
call fcn.180003620
nop
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.1800033d0
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.180004040
lea rcx, [rsp + 0x38]
call fcn.180003c50
test rax, rax
jne 0x18000221c
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0x78], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x40]
and eax, 0x17
mov dword [rsp + rcx + 0x40], eax
mov edx, dword [rsp + rcx + 0x44]
and edx, eax
jne 0x1800022ac
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
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.180003110
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.18000535c
nop
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.180005bf0
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
test dl, 4
je 0x1800022ba
lea rbx, str.ios_base::badbit_set
jmp 0x1800022cf
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x40]
call fcn.180001480
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.180001d30
lea rdx, [0x18002fff8]
lea rcx, [rbp + 0x50]
call fcn.180007bd8
int3