Function at 0x14006c400
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 rbx, rdx
mov r8d, dword [0x1401f3194]
mov rdx, qword [0x1401f3188]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r14d, r14d
mov r9, qword [0x1401f3188]
test r9, r9
je 0x14006c46a
mov edx, dword [0x1401f3194]
mov rcx, r9
call fcn.14003c814
mov rdx, rax
mov dword [0x1401f3190], eax
mov r9, qword [0x1401f3188]
jmp 0x14006c473
mov edx, r14d
mov dword [0x1401f3190], edx
mov r10, qword [0x1401f33a8]
test r10, r10
je 0x14006c51c
mov eax, dword [0x1401f33b4]
cmp edx, eax
jb 0x14006c490
lea edx, [rax - 1]
lea eax, [rdx + rdx]
mov r8d, eax
mov ecx, eax
shr rcx, 2
mov rdi, r10
mov rsi, r9
rep movsd dword [rdi], dword [rsi]
mov ecx, eax
and ecx, 3
je 0x14006c4b9
and r8, 0xfffffffffffffffc
lea rsi, [r8 + r9]
lea rdi, [r8 + r10]
rep movsb byte [rdi], byte [rsi]
mov dword [0x1401f33b0], edx
mov ecx, edx
mov rax, qword [0x1401f33a8]
mov word [rax + rcx*2], r14w
mov rcx, qword [0x1401f33a8]
test rcx, rcx
je 0x14006c51c
cmp dword [0x1401f33b0], r14d
jbe 0x14006c51c
mov edx, 0x5c
call fcn.140031060
test rax, rax
je 0x14006c51c
mov rcx, qword [0x1401f33a8]
sub rax, rcx
sar rax, 1
test eax, eax
jle 0x14006c51c
test rcx, rcx
je 0x14006c51c
cmp eax, dword [0x1401f33b0]
jae 0x14006c51c
mov dword [0x1401f33b0], eax
mov eax, eax
mov word [rcx + rax*2], r14w
lea rcx, [0x143e6b690]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
call fcn.14000e4e0
test al, al
je 0x14006c539
xor al, al
jmp 0x14006ca77
call fcn.14000de60
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
lea rcx, [0x140229250]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [0x140229278]
test rdi, rdi
je 0x14006c570
nop
cmp dword [rdi], esi
je 0x14006c5c5
mov rdi, qword [rdi + 0x118]
test rdi, rdi
jne 0x14006c560
lea rdx, [0x1401ae572]
mov ecx, 0x120
call fcn.14002ec68
mov rdi, rax
test rax, rax
je 0x14006c5e1
mov dword [rax], esi
mov qword [rax + 0x108], r14
mov qword [rax + 0x110], r14
mov rdx, qword [0x140229278]
mov qword [rax + 0x118], rdx
mov qword [0x140229278], rax
mov dword [rbp + 0x480], 0x8000
lea rcx, [rbp + 0x480]
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
lea rcx, [rdi + 4]
mov r9, 0xffffffffffffffff
lea r8, str.main
mov edx, 0x80
call fcn.14003c5c8
lea rcx, [0x140229250]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x14006cb00]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
lea rcx, [0x14006cb40]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14006caf0]
call fcn.140040c9c
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, [0x1401b7690]
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 0x14006c6be
mov edx, dword [rbp + 0x254]
mov rcx, r8
call fcn.14003c814
mov dword [rbp + 0x250], eax
mov r8, qword [rbp + 0x248]
jmp 0x14006c6c5
mov dword [rbp + 0x250], r14d
lea rdx, str._sMetaQuotes
lea rcx, [rbp + 0x20]
call fcn.1400038c0
call fcn.14000b2f0
test eax, eax
jne 0x14006c6f4
mov rcx, qword [rbp + 0x28]
call fcn.14000cff0
test al, al
jne 0x14006c6f4
mov rcx, qword [rbp + 0x28]
call fcn.14000ce30
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 0x14006c716
test al, 0x10
jne 0x14006c72c
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.1400038c0
call fcn.14000b2f0
test eax, eax
jne 0x14006c762
mov rcx, qword [rbp + 0x28]
call fcn.14000cff0
test al, al
jne 0x14006c762
mov rcx, qword [rbp + 0x28]
call fcn.14000ce30
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 0x14006c784
test al, 0x10
jne 0x14006c79a
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]
lea rdx, str.core.exe
lea rcx, [0x14021c8c0]
call fcn.140003290
mov byte [rsp + 0x20], 1
lea r9, [0x1401c0ee8]
lea r8, str.acoaoprbuhxvkfywgweedlovptddahwozl
lea rdx, [0x1401c0f68]
call fcn.14005ac20
call fcn.140064790
call fcn.1400614f0
movzx eax, byte [0x140229239]
test al, al
jne 0x14006c85f
mov rcx, qword [0x140225658]
test rcx, rcx
je 0x14006c821
mov dword [rbp + 0x480], r14d
lea rdx, [rbp + 0x480]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rbp + 0x480], 0x103
je 0x14006c85f
mov rcx, qword [0x140225658]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140225658], 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, [0x14021bdf0]
lea r8, [0x14000cc40]
mov edx, 0x400000
xor ecx, ecx
call fcn.14003e77c
mov qword [0x140225658], rax
mov rdx, r14
test rbx, rbx
je 0x14006c86f
cmp word [rbx], r14w
cmovne rdx, rbx
call fcn.140071450
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, [0x1401b76b8]
mov qword [rsp + 0x70], rax
lea rcx, [0x1401f35f0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x1401f35e8]
cmp ecx, dword [0x1401f35d8]
jae 0x14006c928
imul ecx, dword [0x1401f35e0]
mov rax, qword [0x1401f35d0]
mov rbx, qword [rcx + rax]
test rbx, rbx
je 0x14006c928
cmp qword [rsp + 0x78], 0
je 0x14006c928
mov edx, dword [rbp - 0x7c]
mov rcx, rbx
call fcn.14003c814
mov rdx, rax
mov eax, dword [rbp - 0x7c]
cmp edx, eax
jb 0x14006c8eb
lea edx, [rax - 1]
lea r8d, [rdx + rdx]
mov rax, qword [rsp + 0x78]
mov ecx, r8d
shr rcx, 2
mov rdi, rax
mov rsi, rbx
rep movsd dword [rdi], dword [rsi]
mov ecx, r8d
and ecx, 3
je 0x14006c919
and r8, 0xfffffffffffffffc
lea rsi, [rbx + r8]
lea rdi, [rax + r8]
rep movsb byte [rdi], byte [rsi]
mov dword [rbp - 0x80], edx
mov edx, edx
mov rax, qword [rsp + 0x78]
mov word [rax + rdx*2], r14w
lea rcx, [0x1401f35f0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [rbp - 0x80]
cmp esi, 1
jb 0x14006c99b
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14006c99b
cmp word [rcx], 0
je 0x14006c99b
mov edi, r14d
lea rbx, str.Abkhaz
nop word [rax + rax]
mov eax, edi
mov rdx, qword [rbx + rax*8]
test rcx, rcx
je 0x14006c97f
test rdx, rdx
je 0x14006c97f
call fcn.14003e940
mov esi, dword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
jmp 0x14006c988
mov eax, r14d
cmp esi, 1
setae al
test eax, eax
je 0x14006ca8f
add edi, 2
cmp edi, 0x17a
jb 0x14006c960
lea rax, [0x1401b7738]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r14d
lea rdi, [0x1401b6c10]
lea rcx, [0x14021b240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x3f
lea rax, [0x14021bc24]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [0x14021bc63], 0
lea rcx, [0x14021b240]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x140092290]
lea rcx, [0x14021b240]
call fcn.1400646d0
cmp qword [0x143e6b688], 0
jne 0x14006ca4e
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, [0x143e6b688]
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.14000c580
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, [rdi + 1]
mov rdi, qword [rbx + rax*8]
lea rax, [0x1401b7738]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r14d
lea rcx, [0x14021b240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rdi, rdi
jne 0x14006c9c4
lea r9, [rdi - 1]
lea r8, [0x1401b99f4]
lea edx, [rdi + 0x40]
lea rcx, [0x14021bc24]
call fcn.14003ff6c
jmp 0x14006c9fc