Function at 0x4490f9
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 0x44915d
mov ecx, dword [0x491ebc]
test ecx, ecx
je 0x44915d
cmp eax, dword [0x491ec0]
jae 0x44915d
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 0x449200
test al, 0x10
je 0x449200
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.0040f6bd
test al, al
jne 0x449224
mov ecx, dword [esp + 0x34]
call fcn.0040f25a
jmp 0x449224
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 0x449318
test al, 0x10
je 0x449318
push esi
push dword [esp + 0x38]
call edi
mov ecx, dword [esp + 0x34]
call fcn.0040f6bd
test al, al
jne 0x449275
mov ecx, dword [esp + 0x34]
call fcn.0040f25a
xor ebp, ebp
sub esp, 0x20
call fcn.0040efec
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.0043fb38
sub esp, 0xc
call fcn.004450c5
sub esp, 0x10
call fcn.00443daf
cmp byte [0x4c6f19], 0
jne 0x4492f2
mov edi, 0x4c366c
mov ecx, edi
call fcn.00403ba4
test al, al
jne 0x4492f2
push 0x400000
push esi
push 0x40eb05
mov ecx, edi
call fcn.00403b43
push 0x449429
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0x44944c
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
test ebx, ebx
je 0x449337
xor eax, eax
cmp word [ebx], bp
cmovne eax, ebx
jmp 0x449339
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 0x449277
mov eax, ebp
push ecx
push eax
call fcn.0044b9a2
call fcn.0044bad5
push eax
call fcn.00443d61
push 0x45e26a
mov ecx, 0x4b9590
call fcn.00445033
cmp dword [0x4c74e8], 0
jne 0x44938c
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 0x4493e7
mov eax, dword [esi]
test eax, eax
je 0x4493e5
mov eax, dword [eax + 0x1c]
push 1
call eax
mov ecx, dword [0x4926a4]
add esi, ebx
cmp esi, ecx
jb 0x4493d2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x4ba058], eax
mov dword [0x4ba05c], ebp
call fcn.0041b0ac
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