Function at 0x4022d0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x402fd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x60], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x68]
push str..
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x6c], 2
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4024f3
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 4
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4024e7
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
push eax
mov byte [esp + 0x64], bl
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x3c]
push 0x10
lea ecx, [esp + 0x40]
call dword [edx + 0x40]
test eax, eax
je 0x40245d
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x68]
push 0x5c
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x6c], 6
call sub.MFC42.DLL_operator_2
lea edx, [esp + 0x18]
mov byte [esp + 0x60], 7
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x60], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 6
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0x20
push ecx
call esi
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00402a20
mov ecx, ebp
call fcn.004022d0
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x10]
jmp 0x4024d4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x68]
push 0x5c
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x6c], 9
call sub.MFC42.DLL_operator_2
lea edx, [esp + 0x18]
mov byte [esp + 0x60], 0xa
push edx
push eax
lea eax, [esp + 0x34]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 9
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
push 0x20
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call edi
mov byte [esp + 0x60], bl
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x402369
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov byte [esp + 0x60], 1
lea ecx, [esp + 0x1c]
jne 0x40253c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 0
call fcn.004029ea
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402565
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 0
call fcn.004029ea
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 4