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

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x140032008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rcx
mov qword [r11 - 0x58], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xor eax, eax
mov qword [rcx], rax
lea rdx, [0x140023b64]
call fcn.140008690
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rbp
mov byte [rsp + 0x40], bpl
xor r8d, r8d
lea rdx, [0x140023b8e]
lea rcx, [rsp + 0x40]
call fcn.140008c80
nop
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x140023980]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140017269
mov edx, 0x104
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbx, rax
mov edx, 0x104
lea rcx, str.AdobeCRLogs
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea rcx, [rax + 1]
add rcx, rbx
mov eax, 2
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.14001fb10
mov rsi, rax
mov edx, 0x104
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbx, rax
mov edx, 0x104
lea rcx, str.AdobeCRLogs
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea rcx, [rax + 1]
add rcx, rbx
mov r8d, 0x209
cmp rcx, r8
jae 0x1400171f0
mov edx, 0x104
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rbx, rax
mov edx, 0x104
lea rcx, str.AdobeCRLogs
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
lea r8, [rax + 1]
add r8, rbx
je 0x1400171fb
nop dword [rax]
sub r8, 1
mov word [rsi + r8*2], bp
jne 0x1400171f0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.AdobeCRLogs
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test rsi, rsi
je 0x14001722c
nop
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x140017220
mov ebp, edi
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.140009ae0
mov rcx, qword [r14]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140017255
xor r8d, r8d
mov rdx, qword [r14]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rcx, rsi
call fcn.14001f7c8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rax, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x1400172c5
inc rax
mov rcx, qword [rsp + 0x40]
cmp rax, 0x1000
jb 0x1400172c0
test cl, 0x1f
je 0x140017290
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400172a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400172b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400172bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14001f3e4
mov rax, r14
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001f400
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret