Function at 0x40aea0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40e088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [esp + 0x54]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x4c], 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
jne 0x40af09
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x40b1bd
call esi
cmp eax, 3
je 0x40b1bd
test bl, 0x10
je 0x40b119
lea ecx, [esp + 0x28]
call fcn.0040bef0
push str..
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 2
call fcn.0040c26e
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40b0a2
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 5
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40b093
mov eax, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [eax + 0x40]
test eax, eax
je 0x40afcb
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.0040aea0
jmp 0x40b093
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0x80
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call esi
test eax, eax
jne 0x40b093
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x413624
push ecx
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x12
push edx
call sub.MFC42.DLL_AfxMessageBox
sub eax, 3
je 0x40b0cd
dec eax
jne 0x40b085
mov eax, dword [esp + 0x10]
push eax
call esi
test eax, eax
jne 0x40b085
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x4135f4
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x11
push eax
call sub.MFC42.DLL_AfxMessageBox
dec eax
je 0x40b085
dec eax
je 0x40b0cd
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40af54
or edi, 0xffffffff
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov byte [esp + 0x4c], 1
lea ecx, [esp + 0x28]
jne 0x40b10f
call sub.MFC42.DLL_CFileFind::CFileFind
jmp 0x40b1bd
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40b20a
call sub.MFC42.DLL_CFileFind::CFileFind
jmp 0x40b1ea
mov edx, dword [esp + 0x54]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
test eax, eax
jne 0x40b1ea
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x18]
push ecx
push str.delete__s_Failed_
push edx
mov byte [esp + 0x58], 6
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
push 0x12
push eax
call sub.MFC42.DLL_AfxMessageBox
sub eax, 3
je 0x40b1af
dec eax
jne 0x40b1dc
mov ecx, dword [esp + 0x10]
push ecx
call esi
test eax, eax
jne 0x40b1dc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0x4135f4
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0x11
push ecx
call sub.MFC42.DLL_AfxMessageBox
dec eax
je 0x40b1dc
dec eax
jne 0x40b1dc
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], edi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40b20a
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], edi
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 4