Function at 0x4048c0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x405ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], 0
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x60]
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call sub.MFC42.DLL_CFileFind::FindFile
push ecx
lea edx, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.00404b70
test esi, esi
mov dword [esp + 0x2c], eax
je 0x404b29
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 3
call fcn.00404e56
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x10]
push 0x5c
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea edx, [esp + 0x20]
dec esi
lea ecx, [esp + 0x10]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 3
call fcn.00404e56
mov eax, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x38]
call dword [eax + 0x40]
test eax, eax
je 0x404ac7
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x404b05
lea ecx, [esp + 0x10]
push 0x408288
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.MFC42.DLL_operator
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x60], 6
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.004048c0
lea ecx, [esp + 0x24]
push 1
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x408440
push eax
call edi
add esp, 8
test eax, eax
je 0x404a94
mov edx, dword [esp + 0x14]
push str.RECYCLER
push edx
call edi
add esp, 8
test eax, eax
setne al
test al, al
je 0x404a94
mov eax, dword [esp + 0x14]
push str.SYSTEM_VOLUME_INFORMATION
push eax
call edi
add esp, 8
test eax, eax
setne al
test al, al
je 0x404a94
mov ecx, dword [esp + 0x14]
push str.RECYCLED
push ecx
call edi
add esp, 8
test eax, eax
setne al
test al, al
je 0x404a94
mov bl, 1
jmp 0x404a96
xor bl, bl
lea ecx, [esp + 0x24]
call fcn.00404e56
test bl, bl
je 0x404ab3
mov edx, dword [esp + 0x10]
push 0x80
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call fcn.00404e56
mov ebx, dword [esp + 0x28]
jmp 0x404b05
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x404b05
mov eax, dword [esp + 0x14]
push str.PAGEFILE.SYS
push eax
call edi
add esp, 8
test eax, eax
je 0x404b05
mov ecx, dword [esp + 0x14]
push str.DESKTOP.INI
push ecx
call edi
add esp, 8
test eax, eax
je 0x404b05
mov edx, dword [esp + 0x10]
push 0x80
push edx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 2
call fcn.00404e56
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 1
call fcn.00404e56
test ebp, ebp
jne 0x404934
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0
call fcn.0040502a
lea ecx, [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
call fcn.00404e56
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 4