Function at 0x1800532f0
Capabilities:
Create directory
Get common file path
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov rax, qword [0x18017b040]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rcx
lea r9, [rsp + 0x38]
xor esi, esi
lea rcx, [0x18011e658]
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov edx, 0x8000
xor bl, bl
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x18005386a
mov qword [rsp + 0x1c8], r12
movabs rax, 0xad99c49252994d63
mov qword [rsp + 0x30], rax
movabs r12, 0xadf0c4fe52b74d3f
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x50], rax
movabs rax, 0x794d2183c191c8af
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x48], rax
movabs rax, 0x973bd15f42095498
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x40], rax
movabs rax, 0x8ba833c4c686580b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x1d0], r13
movabs r13, 0x792321f7c1f9c8c8
mov qword [rsp + 0x1d8], r14
movabs r14, 0x47ed39a207353db3
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x190], r15
movabs r15, 0xf5fa90cb6c7b017c
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov qword [rbp - 0x20], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x18], rax
movabs rax, 0x974cd138426754f1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x10], rax
movabs rax, 0x8bf433a1c6f4586a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 8], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rbp], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
movdqa xmm2, xmmword [rbp - 0x50]
movdqa xmm0, xmmword [rbp - 0x40]
movdqa xmm1, xmmword [rbp - 0x30]
mov rdx, qword [rsp + 0x38]
xorps xmm2, xmmword [rbp - 0x20]
xorps xmm0, xmmword [rbp - 0x10]
mov qword [rbp + 8], rax
mov rax, rdi
movzx ecx, word [rdx]
xorps xmm1, xmmword [rbp]
movdqa xmmword [rbp - 0x50], xmm2
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmmword [rbp - 0x30], xmm1
test cx, cx
je 0x1800534c0
sub rdx, rdi
nop dword [rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x1800534b0
movq rdx, xmm2
mov word [rax], si
test dx, dx
je 0x1800534f1
lea r8, [rbp - 0x50]
sub r8, rax
nop dword [rax]
nop dword [rax + rax]
mov word [rax], dx
add rax, 2
movzx edx, word [r8 + rax]
test dx, dx
jne 0x1800534e0
xor edx, edx
mov word [rax], si
mov rcx, rdi
mov bl, 1
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18005384a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18005384a
mov dl, 3
call fcn.180076590
movabs rax, 0xd9d0a09b3ede2c59
movabs rcx, 0xd96f70c36a62ea84
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0x1c574092b39ae8a7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movabs rax, 0xe320a459240230d1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
movabs rax, 0xec9a5acab49b2f4a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
movabs rax, 0x28995ac7755c5993
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
movabs rax, 0x9499f5a94c57780e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
movabs rax, 0x8fe836134d8d3d40
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
movabs rax, 0x841e95cae30acbf1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
movabs rax, 0xe4820e244a576e4e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x80], rax
movabs rax, 0x192220fae1c4a59
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x78], rax
movabs rax, 0xbe16c0e29880837c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x70], rax
movabs rax, 0x4fa4ccfef12ed072
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x68], rax
movabs rax, 0xe816747a33f28623
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x30], r12
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov qword [rbp + 0x10], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x18], rax
movabs rax, 0x974cd138426754f1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x20], rax
movabs rax, 0x8bf433a1c6f4586a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], r14
mov qword [rbp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], r15
mov qword [rbp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x38], rax
movabs rax, 0xaf8d587c6de84e35
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x40], rax
lea rdx, [rsp + 0x40]
movabs rax, 0xa47be7a58e2ab99e
mov r8d, edx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x48], rax
movabs rax, 0x80e763562f230027
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x50], rax
movabs rax, 0x73fb462fcb682b30
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x58], rax
movabs rax, 0xcd73a990f7f4e019
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x60], rax
movabs rax, 0x2a84b8d99f41b452
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x68], rax
movabs rax, 0xe816747a4781ef5b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x70], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x30]
movdqa xmm0, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rbp + 0x20]
movdqa xmm1, xmmword [rsp + 0x60]
xorps xmm1, xmmword [rbp + 0x30]
movdqa xmm2, xmmword [rsp + 0x40]
xorps xmm2, xmmword [rbp + 0x10]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm0, xmmword [rsp + 0x70]
xorps xmm0, xmmword [rbp + 0x40]
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm1, xmmword [rbp - 0x80]
xorps xmm1, xmmword [rbp + 0x50]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm0, xmmword [rbp - 0x70]
xorps xmm0, xmmword [rbp + 0x60]
movdqa xmmword [rbp - 0x80], xmm1
movdqa xmm1, xmmword [rbp - 0x60]
mov qword [rbp + 0x78], rax
movq rax, xmm2
xorps xmm1, xmmword [rbp + 0x70]
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmmword [rbp - 0x60], xmm1
movdqa xmmword [rsp + 0x40], xmm2
test al, al
je 0x18005382b
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x180053820
mov rcx, qword [0x18017bed8]
sub r8d, edx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor bl, bl
mov r14, qword [rsp + 0x1d8]
mov r13, qword [rsp + 0x1d0]
mov r12, qword [rsp + 0x1c8]
mov r15, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movzx eax, bl
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1800db5c0
add rsp, 0x198
pop rdi
pop rsi
pop rbx
pop rbp
ret