Function at 0x14006aef0
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x460]
sub rsp, 0x560
mov rsi, rdx
mov r8d, dword [0x1401f2194]
mov rdx, qword [0x1401f2188]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r14d, r14d
mov rcx, qword [0x1401f2188]
test rcx, rcx
je 0x14006af57
mov edx, dword [0x1401f2194]
call fcn.14003c464
mov rdi, rax
mov dword [0x1401f2190], eax
mov rcx, qword [0x1401f2188]
jmp 0x14006af61
mov edi, r14d
mov dword [0x1401f2190], r14d
mov r9, qword [0x1401f23a8]
test r9, r9
je 0x14006aff3
mov eax, dword [0x1401f23b4]
cmp edi, eax
jb 0x14006af7e
lea edi, [rax - 1]
mov eax, edi
lea rbx, [rax + rax]
mov r8, rbx
mov rdx, rcx
mov rcx, r9
call fcn.14014cbf0
mov dword [0x1401f23b0], edi
mov rax, qword [0x1401f23a8]
mov word [rbx + rax], r14w
mov rcx, qword [0x1401f23a8]
test rcx, rcx
je 0x14006aff3
cmp dword [0x1401f23b0], r14d
jbe 0x14006aff3
mov edx, 0x5c
call fcn.140030cb0
test rax, rax
je 0x14006aff3
mov rcx, qword [0x1401f23a8]
sub rax, rcx
sar rax, 1
test eax, eax
jle 0x14006aff3
test rcx, rcx
je 0x14006aff3
cmp eax, dword [0x1401f23b0]
jae 0x14006aff3
mov dword [0x1401f23b0], eax
mov eax, eax
mov word [rcx + rax*2], r14w
lea rcx, [0x143e6a360]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
call fcn.14000e640
test al, al
je 0x14006b010
xor al, al
jmp 0x14006b4f7
call fcn.14000dfa0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
lea rcx, [0x140227f20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140227f48]
test rbx, rbx
je 0x14006b046
cmp dword [rbx], edi
je 0x14006b09b
mov rbx, qword [rbx + 0x118]
test rbx, rbx
jne 0x14006b036
lea rdx, [0x14014fdc0]
mov ecx, 0x120
call fcn.14002e8b8
mov rbx, rax
test rax, rax
je 0x14006b0b7
mov dword [rax], edi
mov qword [rax + 0x108], r14
mov qword [rax + 0x110], r14
mov rdx, qword [0x140227f48]
mov qword [rax + 0x118], rdx
mov qword [0x140227f48], rax
mov dword [rbp + 0x480], 0x8000
lea rcx, [rbp + 0x480]
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
lea rcx, [rbx + 4]
mov r9, 0xffffffffffffffff
lea r8, str.main
mov edx, 0x80
call fcn.14003c218
lea rcx, [0x140227f20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x14006b580]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
lea rcx, [0x14006b5c0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14006b570]
call fcn.1400408ec
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rax, [rbp + 0x258]
mov qword [rbp + 0x248], rax
mov dword [rbp + 0x250], r14d
mov dword [rbp + 0x254], 0x104
mov word [rbp + 0x258], r14w
lea rcx, [0x1401b6698]
mov qword [rbp + 0x240], rcx
lea rax, [rbp + 0x38]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x30], r14d
mov dword [rbp + 0x34], 0x104
mov word [rbp + 0x38], r14w
mov qword [rbp + 0x20], rcx
lea rax, [rbp + 0x258]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r8, qword [rbp + 0x248]
test r8, r8
je 0x14006b194
mov edx, dword [rbp + 0x254]
mov rcx, r8
call fcn.14003c464
mov dword [rbp + 0x250], eax
mov r8, qword [rbp + 0x248]
jmp 0x14006b19b
mov dword [rbp + 0x250], r14d
lea rdx, str._sMetaQuotes
lea rcx, [rbp + 0x20]
call fcn.140003670
call fcn.14000b4c0
test eax, eax
jne 0x14006b1ca
mov rcx, qword [rbp + 0x28]
call fcn.14000d130
test al, al
jne 0x14006b1ca
mov rcx, qword [rbp + 0x28]
call fcn.14000cf70
mov edx, 0x80
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006b1ec
test al, 0x10
jne 0x14006b202
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov r8, qword [rbp + 0x248]
lea rdx, str._sMetaQuotesWebInstall
lea rcx, [rbp + 0x20]
call fcn.140003670
call fcn.14000b4c0
test eax, eax
jne 0x14006b238
mov rcx, qword [rbp + 0x28]
call fcn.14000d130
test al, al
jne 0x14006b238
mov rcx, qword [rbp + 0x28]
call fcn.14000cf70
mov edx, 0x80
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006b25a
test al, 0x10
jne 0x14006b270
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp qword [0x14021b618], 0
je 0x14006b2cb
mov edx, dword [0x14021b624]
lea rcx, str.core.exe
call fcn.14003c464
mov r8d, dword [0x14021b624]
lea ecx, [r8 - 1]
cmp eax, r8d
cmovb ecx, eax
mov ebx, ecx
lea rdi, [rcx + rcx]
mov r8, rdi
lea rdx, str.core.exe
mov rcx, qword [0x14021b618]
call fcn.14014cbf0
mov dword [0x14021b620], ebx
mov rax, qword [0x14021b618]
mov word [rdi + rax], r14w
mov byte [rsp + 0x20], 1
lea r9, [0x1401c0048]
lea r8, str.acoaoprbuhxvkfywgweedlovptddahwozl
lea rdx, [0x1401c00c8]
call fcn.14005a700
call fcn.1400638f0
call fcn.140060df0
movzx eax, byte [0x140227f09]
test al, al
jne 0x14006b37d
mov rcx, qword [0x1402243a8]
test rcx, rcx
je 0x14006b33f
mov dword [rbp + 0x480], r14d
lea rdx, [rbp + 0x480]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rbp + 0x480], 0x103
je 0x14006b37d
mov rcx, qword [0x1402243a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1402243a8], r14
mov eax, r14d
mov dword [rbp + 0x480], eax
lea rax, [rbp + 0x480]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
lea r9, [0x14021ad60]
lea r8, [0x14000cd80]
mov edx, 0x400000
xor ecx, ecx
call fcn.14003e3cc
mov qword [0x1402243a8], rax
mov rdx, r14
test rsi, rsi
je 0x14006b38d
cmp word [rsi], r14w
cmovne rdx, rsi
call fcn.14006feb0
lea rax, [rbp - 0x78]
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], r14d
mov dword [rbp - 0x7c], 0x40
mov word [rbp - 0x78], r14w
lea rax, [0x1401b6660]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
call fcn.14006f500
mov r8d, dword [rbp - 0x80]
cmp r8d, 1
jb 0x14006b422
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14006b422
cmp word [rcx], 0
je 0x14006b422
mov ebx, r14d
lea rdi, str.Abkhaz
mov eax, ebx
mov rdx, qword [rdi + rax*8]
test rcx, rcx
je 0x14006b405
test rdx, rdx
je 0x14006b405
call fcn.14003e590
mov r8d, dword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
jmp 0x14006b40f
mov eax, r14d
cmp r8d, 1
setae al
test eax, eax
je 0x14006b50f
add ebx, 2
cmp ebx, 0x17a
jb 0x14006b3e5
lea rax, [0x1401b6738]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r14d
lea rbx, [0x1401b5c10]
lea rcx, [0x14021a1b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3f
lea rax, [0x14021ab94]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [0x14021a1b0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x1400913c0]
lea rcx, [0x14021a1b0]
call fcn.140063830
cmp qword [0x143e6a358], 0
jne 0x14006b4ce
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], r14
lea r8, [rbp + 0x10]
lea rdx, [rsp + 0x50]
lea rcx, [0x143e6a358]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
mov dword [rbp + 0x490], 8
mov dword [rbp + 0x494], 4
lea rcx, [rbp + 0x490]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.14000c6c0
nop
mov al, 1
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea eax, [rbx + 1]
mov rbx, qword [rdi + rax*8]
lea rax, [0x1401b6738]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r14d
lea rcx, [0x14021a1b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
jne 0x14006b44b
lea r9, [rbx - 1]
lea r8, [0x1401b89e4]
lea edx, [rbx + 0x40]
lea rcx, [0x14021ab94]
call fcn.14003fbbc
jmp 0x14006b47c