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

Disassembly:
sub esp, 0x454
push ebx
push ebp
push esi
push edi
push dword [0x491cac]
xor ebp, ebp
mov ebx, edx
push dword [0x491ca4]
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x491ca0
mov ecx, esi
call fcn.00403f78
push esi
mov esi, 0x491eb8
mov ecx, esi
call fcn.004038d7
push 0x5c
mov ecx, esi
call fcn.004045d8
test eax, eax
jle 0x449216
mov ecx, dword [0x491ebc]
test ecx, ecx
je 0x449216
cmp eax, dword [0x491ec0]
jae 0x449216
xor edx, edx
mov dword [0x491ec0], eax
mov word [ecx + eax*2], dx
push 0x4c74f0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 6
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea ecx, [esp + 0x248]
call fcn.00403638
lea ecx, [esp + 0x30]
call fcn.00403638
push dword [esp + 0x24c]
push ebp
push ebp
push 0x1a
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x248]
call fcn.00403f78
push dword [esp + 0x24c]
lea eax, [esp + 0x34]
push str._sMetaQuotes
push eax
call fcn.004011fb
add esp, 0xc
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x4492b9
test al, 0x10
je 0x4492b9
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, 0x80
push esi
push dword [esp + 0x38]
call edi
mov ecx, dword [esp + 0x34]
call fcn.0040f69c
test al, al
jne 0x4492dd
mov ecx, dword [esp + 0x34]
call fcn.0040f239
jmp 0x4492dd
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, 0x80
push esi
push dword [esp + 0x38]
call edi
push dword [esp + 0x34]
call ebp
push 0
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [esp + 0x24c]
lea eax, [esp + 0x34]
push str._sMetaQuotesWebInstall
push eax
call fcn.004011fb
add esp, 0xc
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4493d1
test al, 0x10
je 0x4493d1
push esi
push dword [esp + 0x38]
call edi
mov ecx, dword [esp + 0x34]
call fcn.0040f69c
test al, al
jne 0x44932e
mov ecx, dword [esp + 0x34]
call fcn.0040f239
xor ebp, ebp
sub esp, 0x20
call fcn.0040efcb
push ecx
push str.main
push ecx
mov esi, 0x4ba0a0
mov ecx, esi
call fcn.00403799
push str.core.exe
mov ecx, 0x4ba91c
call fcn.0040349c
push 1
push 0x471080
push str.acoaoprbuhxvkfywgweedlovptddahwozl
push 0x4710f8
call fcn.0043fb28
sub esp, 0xc
call fcn.0044514e
sub esp, 0x10
call fcn.00443e38
cmp byte [0x4c6f19], 0
jne 0x4493ab
mov edi, 0x4c366c
mov ecx, edi
call fcn.00403ba4
test al, al
jne 0x4493ab
push 0x400000
push esi
push 0x40eae4
mov ecx, edi
call fcn.00403b43
push 0x4494e2
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0x449505
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test ebx, ebx
je 0x4493f0
xor eax, eax
cmp word [ebx], bp
cmovne eax, ebx
jmp 0x4493f2
push esi
push dword [esp + 0x38]
call edi
push dword [esp + 0x34]
call ebp
xor ebp, ebp
push ebp
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x449330
mov eax, ebp
push ecx
push eax
call fcn.0044ba5b
call fcn.0044bb8e
push eax
call fcn.00443dea
push 0x45e323
mov ecx, 0x4b9590
call fcn.004450bc
cmp dword [0x4c74e8], 0
jne 0x449445
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 1
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ebp
push eax
push 0x4c74e8
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
pop ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 8
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [0x4926a4]
mov esi, 0x471a2c
mov edi, 0x4c74d8
mov dword [0x4ba054], ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [0x4926a0]
jmp 0x4494a0
mov eax, dword [esi]
test eax, eax
je 0x44949e
mov eax, dword [eax + 0x1c]
push 1
call eax
mov ecx, dword [0x4926a4]
add esi, ebx
cmp esi, ecx
jb 0x44948b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x4ba058], eax
mov dword [0x4ba05c], ebp
call fcn.0041b08c
pop ecx
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov dword [0x4ba05c], eax
mov dword [0x4ba060], ebp
call fcn.0040e342
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x454
ret