Function at 0x4024c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x406b06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 4]
mov dword [esp + 0x170], 0
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x178]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x174], 1
call fcn.00406918
push str..
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 4]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x402574
lea ecx, [esp + 4]
mov byte [esp + 0x170], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp]
mov dword [esp + 0x170], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
add esp, 0x174
ret
push ebx
mov ebx, dword [esp + 0x180]
push ebp
mov ebp, dword [esp + 0x188]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, 5
push 1
push 0
push 0
lea eax, [esp + 0x28]
push 0
push eax
call edi
test eax, eax
je 0x4025ba
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
dec esi
jne 0x402591
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea eax, [esp + 0x64]
push 0x4091ac
push eax
call esi
add esp, 8
test eax, eax
je 0x4026ae
lea ecx, [esp + 0x64]
push 0x4091a8
push ecx
call esi
add esp, 8
test eax, eax
je 0x4026ae
test ebx, ebx
jne 0x402610
lea edx, [esp + 0x64]
push str.desktop.ini
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4026ae
mov esi, dword [esp + 0x188]
lea ecx, [esp + 0x10]
push esi
call fcn.00406918
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea eax, [esp + 0x64]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x402657
mov edx, dword [esp + 0x10]
and al, 0xfe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x38], 0x10
je 0x40267a
mov eax, dword [esp + 0x10]
push ebp
push ebx
push eax
call fcn.004024c0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4026ae
test ebp, ebp
je 0x4026a3
lea edx, [esp + 0x64]
push str.index.dat
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x4026a3
lea eax, [esp + 0x64]
push eax
push esi
call fcn.00402370
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40258c
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x180], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x180], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret