Function at 0x18003c0a0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x180052040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
xor r12d, r12d
mov qword [rbp - 0x30], r12
lea r9, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1800428b0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x18003c359
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov rdx, qword [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x18003c110
lea rcx, [rbp - 0x28]
call fcn.180005060
nop
mov r15, qword [rsi + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r15
cmp rax, 1
jb 0x18003c386
cmp qword [rsi + 0x18], 7
jbe 0x18003c14c
mov rsi, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea r14, [r15 + 1]
mov edi, 7
lea rbx, [rbp - 0x50]
cmp r14, rdi
jbe 0x18003c1fc
mov rdi, r14
or rdi, 7
cmp rdi, rcx
jbe 0x18003c1c3
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x18003c1f0
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18003c380
mov rcx, rax
call fcn.18003f698
test rax, rax
je 0x18003c271
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x18003c1f8
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x18003c380
add rcx, rcx
jne 0x18003c18e
mov rbx, r12
jmp 0x18003c1f8
call fcn.18003f698
mov rbx, rax
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], rdi
mov word [rbx], 0x5c
lea rcx, [rbx + 2]
lea r8, [r15 + r15]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + r14*2], r12w
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.18003d430
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x18003c27d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003c278
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003c278
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003f690
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18003c2a8
test al, 0x10
je 0x18003c2a8
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor bl, bl
jmp 0x18003c2ce
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rcx, qword [rbp - 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rbp - 0x30]
test eax, eax
je 0x18003c30f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov bl, 1
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x18003c30a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov r8, rcx
cmp rdx, 0x1000
jb 0x18003c305
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub r8, rcx
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x18003c34d
call fcn.18003f690
movzx eax, bl
jmp 0x18003c35b
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x18003c359
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003c354
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003c354
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18003f690
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18003f670
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.180001300
nop
call fcn.1800013a0
int3