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

Disassembly:
push 0xffffffffffffffff
push 0x43c900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], 0
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4130b9
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x5c]
push 0x448edc
lea edx, [esp + 0x18]
push ecx
push edx
mov byte [esp + 0x60], 1
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 2
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0
mov byte [esp + 0x58], 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x413094
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov ebp, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x448ed8
push eax
mov byte [esp + 0x5c], 4
call edi
add esp, 8
test eax, eax
je 0x412fdc
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::GetFileName
mov eax, dword [eax]
push 0x448ed4
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x412fde
mov bl, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x41308c
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
push 0x10
lea ecx, [esp + 0x34]
call dword [eax + 0x40]
test eax, eax
je 0x413066
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov ecx, dword [esp + 0x24]
call fcn.00412ee0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
jmp 0x41308c
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x28]
mov esi, eax
call sub.MFC42.DLL_CString::CString
test esi, esi
je 0x4130e4
test ebp, ebp
jne 0x412f80
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0
call fcn.0043ae52
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push 0x448eb8
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x28]
lea ecx, [esp + 0x30]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0
call fcn.0043ae52
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4130cf