Function at 0x1400a2000
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Create directory
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x2a8]
sub rsp, 0x390
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400ee0e8]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rsi, rdx
mov dword [rsp + 0x28], 0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x60]
call fcn.1400572a0
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rbp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [rsp + 0x44], 0x64647542
mov dword [rsp + 0x40], 0x656c6449
mov word [rsp + 0x48], 0x79
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1400a20a6
xor edx, edx
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x170]
call fcn.1400572a0
mov r8d, 0x104
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400572a0
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14005b000
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
call fcn.14000c5a0
mov rcx, rax
test rax, rax
jne 0x1400a2123
mov ecx, 0x80004005
call fcn.14000c2c0
int3
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea r14, [0x1400de840]
cmp rax, r14
jne 0x1400a2140
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
jmp 0x1400a2142
call rdx
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x1400a2182
movzx edi, cx
mov ecx, edi
call fcn.14000c170
test rax, rax
je 0x1400a21ac
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14000bc70
jmp 0x1400a21ac
lea rcx, [rsp + 0x50]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400a2190
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14000bdc0
nop
lea r8, str..log
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14000cb80
mov rdx, qword [rax]
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a220c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x1400a2208
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400a220c
call r8
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400a2246
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x1400a2243
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400a2246
call r8
lea rdx, [rbp + 0x60]
mov rcx, rsi
call fcn.14000bac0
mov rax, rsi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1400518f0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret