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

Disassembly:
push 0xffffffffffffffff
push 0x405d86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x10000000
push ecx
lea eax, [esp + 0x244]
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
mov dword [esp + 0x240], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403ef0
mov ecx, dword [esp + 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 0x23c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and al, 0xfe
push eax
push edx
call ebp
lea eax, [esp + 0x23c]
lea ecx, [esp + 0x18]
push eax
xor edi, edi
call sub.MFC42.DLL_CString::CString_1
push edi
mov byte [esp + 0x238], 2
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
je 0x402616
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x23c]
mov byte [esp + 0x234], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x240]
mov dword [esp + 0x234], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4027d0
lea ecx, [esp + 0x10]
push ecx
push 0x407268
push ebx
push 0
push 0x407258
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40274c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x407278
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jne 0x40274c
mov eax, dword [esp + 0x23c]
lea edx, [esp + 0x24]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push 2
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x40274c
mov eax, dword [esp + 0x10]
push 2
push 0
push 0x400
mov ebx, dword [eax]
push 0x400
lea ecx, [esp + 0x24c]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [ebx + 0xc]
mov edx, dword [esp + 0x23c]
lea ecx, [esp + 0x23c]
mov eax, dword [edx - 8]
push eax
push 0x5c
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x240]
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x240]
mov byte [esp + 0x238], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x234], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x23c]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x23c]
push str.IEXPLORE.EXE
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40274c
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x28]
push eax
push ecx
mov edx, dword [ecx]
mov edi, 1
call dword [edx + 0x2c]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x23c]
push 1
push eax
call ebp
push 0x80000000
push ecx
lea edx, [esp + 0x244]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.00403ef0
lea ecx, [esp + 0x18]
mov byte [esp + 0x234], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x23c]
mov byte [esp + 0x234], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x240]
mov dword [esp + 0x234], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, edi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x228
ret 8