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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x180141040]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rdi, rcx
lea r9, [rsp + 0x38]
xor esi, esi
lea rcx, [0x1800f5648]
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 0x180050c7a
mov qword [rsp + 0x1a8], r12
movabs rax, 0xd6cb825fa683d133
mov qword [rsp + 0x30], rax
movabs r12, 0x95e958374533b2f0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0x9591584e455bb280
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movabs rax, 0x3904107c4efc72f8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x1b0], r13
movabs r13, 0x390410204e9d7291
mov qword [rsp + 0x1b8], r14
movabs r14, 0x374c07797228bb32
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x170], r15
movabs r15, 0xd6b8823ea6add16f
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rbp - 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x30], r13
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x30]
vmovdqu xmm0, xmmword [rsp + 0x40]
vpxor xmm2, xmm0, xmmword [rbp - 0x30]
vmovdqu xmm0, xmmword [rsp + 0x50]
mov rdx, qword [rsp + 0x38]
mov qword [rbp - 0x18], rax
mov rax, rdi
vpxor xmm1, xmm0, xmmword [rbp - 0x20]
vmovdqu xmmword [rsp + 0x40], xmm2
movzx ecx, word [rdx]
vmovdqu xmmword [rsp + 0x50], xmm1
test cx, cx
je 0x1800508d0
sub rdx, rdi
nop dword [rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x1800508c0
vmovq rdx, xmm2
mov word [rax], si
test dx, dx
je 0x180050901
lea r8, [rsp + 0x40]
sub r8, rax
nop word [rax + rax]
mov word [rax], dx
add rax, 2
movzx edx, word [r8 + rax]
test dx, dx
jne 0x1800508f0
xor edx, edx
mov word [rax], si
mov rcx, rdi
mov bl, 1
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180050c5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180050c5a
mov dl, 3
call fcn.180072d40
movabs rax, 0xa298e65bcac4b009
movabs rcx, 0x5a7af21342ea177c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
movabs rax, 0xf09d39523750929f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
movabs rax, 0x4d68654128f816b1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
movabs rax, 0x50226e120047cc12
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
movabs rax, 0x4f56f1471af1cc23
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x80], rax
movabs rax, 0x45291a895ed24d06
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x78], rax
movabs rax, 0x928ca87b680309c0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x70], rax
movabs rax, 0x17dc08425e8ef829
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x68], rax
movabs rax, 0x4d3bcad4b12fe73e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x60], rax
movabs rax, 0x789226bf02991491
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x58], rax
movabs rax, 0xf002147afab9925c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x50], rax
movabs rax, 0x8acb98862d00529a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x48], rax
movabs rax, 0x58023dca2c323693
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rbp - 0x38], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], r12
mov qword [rbp - 0x10], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], r13
mov qword [rbp - 8], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], r14
mov qword [rbp], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 8], rax
movabs rax, 0x202292226898a803
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x10], rax
movabs rax, 0x244a7feb7efe3474
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x18], rax
movabs rax, 0xb2e9c61448667ab5
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x20], rax
lea rdx, [rsp + 0x60]
movabs rax, 0x37b97a2d33ae8a46
mov r8d, edx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x28], rax
movabs rax, 0x295ea7a6d45b8957
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x30], rax
movabs rax, 0xafb429f67ed75f8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x38], rax
movabs rax, 0x83677d0895cdf139
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x40], rax
movabs rax, 0xefebeca1436f36ba
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x48], rax
movabs rax, 0x58023dca58415feb
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x50], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x60]
mov rax, qword [rsp + 0x30]
vmovdqu xmm0, xmmword [rsp + 0x60]
vpxor xmm3, xmm0, xmmword [rbp - 0x10]
vmovdqu xmm0, xmmword [rsp + 0x70]
vpxor xmm1, xmm0, xmmword [rbp]
vmovdqu xmm2, xmmword [rbp - 0x80]
vpxor xmm0, xmm2, xmmword [rbp + 0x10]
vmovdqu xmmword [rsp + 0x70], xmm1
vmovdqu xmm1, xmmword [rbp - 0x70]
vpxor xmm2, xmm1, xmmword [rbp + 0x20]
vmovdqu xmmword [rbp - 0x80], xmm0
vmovdqu xmm0, xmmword [rbp - 0x60]
vpxor xmm1, xmm0, xmmword [rbp + 0x30]
vmovdqu xmmword [rbp - 0x70], xmm2
vmovdqu xmm2, xmmword [rbp - 0x50]
vpxor xmm0, xmm2, xmmword [rbp + 0x40]
mov qword [rbp + 0x58], rax
vmovdqu xmmword [rbp - 0x60], xmm1
vmovdqu xmm1, xmmword [rbp - 0x40]
vpxor xmm2, xmm1, xmmword [rbp + 0x50]
vmovq rax, xmm3
vmovdqu xmmword [rbp - 0x40], xmm2
vmovdqu xmmword [rsp + 0x60], xmm3
vmovdqu xmmword [rbp - 0x50], xmm0
test al, al
je 0x180050c3b
nop word [rax + rax]
inc rcx
mov r8, rcx
cmp byte [rcx], sil
jne 0x180050c30
mov rcx, qword [0x180141318]
sub r8d, edx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor bl, bl
mov r14, qword [rsp + 0x1b8]
mov r13, qword [rsp + 0x1b0]
mov r12, qword [rsp + 0x1a8]
mov r15, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movzx eax, bl
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1800d7380
add rsp, 0x178
pop rdi
pop rsi
pop rbx
pop rbp
ret