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

Disassembly:
mov eax, 0x402e54
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.004027aa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 8]
push str..
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
je 0x4023bd
push ebx
push eax
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, ebx
je 0x4023bd
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x34], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4023b4
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x54]
push 0x10
lea ecx, [ebp - 0x54]
call dword [eax + 0x40]
cmp eax, ebx
je 0x40233a
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 8]
push 0x5c
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 6
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
push 0x20
push dword [ebp - 0x10]
call esi
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.004028be
mov ecx, edi
call fcn.004021e9
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
jmp 0x4023a3
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 8]
push 0x5c
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 9
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
push 0x20
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x34], ebx
jne 0x402267
lea ecx, [ebp - 0x54]
call sub.MFC42.DLL_CFileFind::Close
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4023d6
xor esi, esi
jmp 0x4023d9
push 1
pop esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4