Function at 0x140017500
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 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, rcx
mov qword [r11 - 0x50], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xor eax, eax
mov qword [rcx], rax
call fcn.140001540
mov rcx, rax
test rax, rax
je 0x14001779b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140027f5e.0]
add rax, 0x18
mov qword [r14], rax
lea rbx, [0x14002dea4]
mov rdx, rbx
mov rcx, r14
call fcn.14000ae00
lea rbp, [rdi - 1]
test al, al
jne 0x140017599
mov rax, rbp
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140017580
mov r8d, eax
mov rdx, rbx
mov rcx, r14
call fcn.14000b2f0
nop
mov dword [rsp + 0x20], 1
movdqa xmm0, xmmword [0x140031600]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
xor r8d, r8d
lea rdx, [0x14002dece]
lea rcx, [rsp + 0x48]
call fcn.14000a970
nop
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x14002dc20]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140017736
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
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
cmovo rax, rbp
mov rcx, rax
call fcn.140027fd4
mov rsi, rax
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
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, 0x209
cmp rcx, rax
jae 0x140017691
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
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]
inc rax
add rax, rbx
je 0x14001769b
sub rax, 1
mov word [rsi + rax*2], di
jne 0x140017691
mov rdx, qword [rsp + 0x40]
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 0x1400176cb
mov rdi, rbp
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x1400176c1
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.14000b2f0
mov rcx, qword [r14]
sub rcx, 0x18
call fcn.14000b250
lea rbx, [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140017704
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140017722
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140027f5e.0]
mov rcx, rsi
call fcn.140027c70
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140017776
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017771
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017771
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027c70
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140027890
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140001280
int3