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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x3b8], rbx
mov r12, rdx
mov dword [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x50]
call fcn.14009c0b0
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rbp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [rsp + 0x24], 0x64647542
mov dword [rsp + 0x20], 0x656c6449
mov word [rsp + 0x28], 0x79
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14011e4af
xor edx, edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x160]
call fcn.14009c0b0
mov r8d, 0x104
lea rdx, [rbp + 0x160]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x40]
call fcn.14009c0b0
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1400a9d80
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
call fcn.140020290
mov rcx, rax
test rax, rax
jne 0x14011e52c
mov ecx, 0x80004005
call fcn.14001fe40
int3
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea r13, vtable.ATL::CAtlStringMgr.0
cmp rax, r13
jne 0x14011e549
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
jmp 0x14011e54b
call rdx
lea rbx, [rax + 0x18]
mov qword [rbp + 0x2b0], rbx
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14011e596
movzx ebx, cx
mov ecx, ebx
call fcn.14001fc80
test rax, rax
je 0x14011e636
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp + 0x2b0]
call fcn.14001f520
jmp 0x14011e636
lea rax, [rsp + 0x40]
mov rdi, rsi
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x14011e5a0
test edi, edi
jne 0x14011e5bb
lea rcx, [rbp + 0x2b0]
call fcn.14001f980
jmp 0x14011e636
mov r15d, dword [rbx - 0x10]
lea r14, [rsp + 0x40]
sub r14, rbx
test edi, edi
jns 0x14011e5d6
mov ecx, 0x80070057
call fcn.14001fe40
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14011e5fc
mov edx, edi
lea rcx, [rbp + 0x2b0]
call fcn.14001f8b0
mov rbx, qword [rbp + 0x2b0]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp r14, r15
ja 0x14011e616
lea r8, [r14 + rbx]
mov r9d, edi
call fcn.14001f910
jmp 0x14011e623
movsxd r9, edi
lea r8, [rsp + 0x40]
call fcn.140020380
cmp edi, dword [rbx - 0xc]
jg 0x14011e6e9
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov byte [rax + rbx], 0
lea r8, str..log
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x2c0]
call fcn.140020c60
mov rdx, qword [rax]
lea rcx, [rbp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov rdx, qword [rbp + 0x2c0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14011e69c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r13
jne 0x14011e698
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14011e69c
call r8
nop
mov rdx, qword [rbp + 0x2b0]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14011e6d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r13
jne 0x14011e6d5
mov rcx, qword [rcx + 8]
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14011e6d8
call r8
lea rdx, [rbp + 0x50]
mov rcx, r12
call fcn.14001f150
mov rax, r12
jmp 0x14011e6f4
mov ecx, 0x80070057
call fcn.14001fe40
nop
mov rbx, qword [rsp + 0x3b8]
add rsp, 0x370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret