Function at 0x40b790
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41366c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_4
push 0
mov dword [esp + 0x250], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x40bb53
lea eax, [esp + 0x18]
push eax
push 0x415330
push 1
push 0
push 0x415320
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40bb39
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0x415340
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jne 0x40bb39
mov ecx, dword [esp + 0x254]
lea eax, [esp + 0x3c]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push 0
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x14]
test eax, eax
jne 0x40bb39
mov edx, dword [esp + 0x18]
mov ebx, 2
push ebx
push eax
mov edi, dword [edx]
push 0x400
push 0x400
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [edi + 0xc]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
call fcn.0041230a
lea edx, [esp + 0x14]
push str.oem.ini
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x258], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x254], 3
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x10]
mov edi, eax
mov byte [esp + 0x24c], bl
call sub.MFC42.DLL_CString::CString
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
je 0x40ba63
push 0x10000000
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
lea edx, [esp + 0x1c]
push str.oem.ini
push edx
push ecx
call sub.MFC42.DLL_operator_1
mov ecx, esi
call fcn.00409380
lea eax, [esp + 0x14]
push str.oem.ini
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x10]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
push str.oem.ini
lea eax, [esp + 0x14]
push edx
push eax
and ebx, 0xfffffffe
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push ebx
push eax
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push str.oem.ini
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esi + 0x44]
push eax
push ecx
push str.homepage
push str.main
call edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push str.oem.ini
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esi + 0x44]
push eax
push ecx
push str.wzUrl
push str.main
call edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
push str.oem.ini
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
push str.0::
push str.search
push str.main
call edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push str.oem.ini
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 1
push eax
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push 0x80000000
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
lea ecx, [esp + 0x1c]
push str.oem.ini
push ecx
push eax
call sub.MFC42.DLL_operator_1
mov ecx, esi
call fcn.00409380
push 0x10000000
push ecx
mov edx, esp
mov dword [esp + 0x18], esp
lea eax, [esp + 0x1c]
push str.TheWorld.ini
push eax
push edx
call sub.MFC42.DLL_operator_1
mov ecx, esi
call fcn.00409380
lea ecx, [esp + 0x14]
push str.TheWorld.ini
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0x10]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push str.TheWorld.ini
lea ecx, [esp + 0x14]
push eax
push ecx
and ebx, 0xfffffffe
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push ebx
push eax
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
push str.TheWorld.ini
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov esi, dword [esi + 0x44]
push eax
push esi
push str.Home
push str.Browser
call edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push str.TheWorld.ini
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 1
push eax
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret 4