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

Disassembly:
push 0xffffffffffffffff
push 0x4866df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x4ce19c]
push ebx
mov ebx, dword [esp + 0x24c]
push ebp
push esi
push edi
push ebx
mov dword [esp + 0x248], eax
call fcn.004579e0
add esp, 4
test eax, eax
je 0x459292
push ebx
push str._s
lea eax, [esp + 0x44]
push 0x208
push eax
call fcn.00403fa3
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.004752e0
push 0
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x258], 0
call sub.MFC71U.DLL_CDHtmlEventSink::FindDHtmlEventEntry
lea ecx, [esp + 0x10]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x250], 1
je 0x459235
lea ecx, [esp + 0x14]
call sub.MFC71U.DLL_COleControlContainer::FindItem
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
mov ebp, eax
call sub.MFC71U.DLL_CFile::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x254], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
call sub.MFC71U.DLL_CDockBar::IsDockBar
test eax, eax
jne 0x459226
mov eax, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x18]
call dword [eax + 0x40]
test eax, eax
jne 0x459149
mov edx, dword [esp + 0x14]
push 2
lea ecx, [esp + 0x18]
call dword [edx + 0x40]
test eax, eax
jne 0x459149
mov eax, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x18]
call dword [eax + 0x40]
test eax, eax
je 0x45919a
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC71U.DLL_CFile::GetFilePath
mov eax, dword [eax]
push 0x80
push eax
call edi
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [esp + 0x30]
inc bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x45919a
call esi
cmp eax, 2
je 0x45919a
call esi
cmp eax, 3
je 0x45919a
call esi
push eax
push str.RRDeleteDirectory___SetFileAttributes___failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0xc
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x40]
test eax, eax
je 0x4591d9
push 0x400
lea ecx, [esp + 0x18]
call sub.MFC71U.DLL_CDocTemplate::MatchDocType
test eax, eax
je 0x4591ca
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x459226
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00459020
add esp, 4
jmp 0x459226
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x459226
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.DeleteFile
mov byte [esp + 0x25c], 3
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push 0
mov byte [esp + 0x25c], 1
call fcn.00458010
add esp, 0xc
test ebp, ebp
jne 0x4590c7
mov ebx, dword [esp + 0x258]
lea ecx, [esp + 0x14]
call sub.MFC71U.DLL_CFile::Close
push 0x80
push ebx
call edi
test eax, eax
jne 0x45926d
call esi
cmp eax, 2
je 0x45926d
call esi
cmp eax, 3
je 0x45926d
call esi
push eax
push str.RRDeleteDirectory___SetFileAttributes___failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x14]
mov dword [esp + 0x250], 0xffffffff
call sub.MFC71U.DLL_CFileDialog::CFileDialog
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x244]
call fcn.00475533
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret