Function at 0x405ca0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570b31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c4
mov eax, dword [0x5c58d0]
push ebx
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x68c9b4]
push esi
push edi
mov edi, dword [ebp + 8]
mov byte [eax + 0x2a], bl
mov ecx, dword [edi + 0xcc]
cmp dword [ecx - 0xc], ebx
mov dword [ebp - 0x10], esp
jle 0x4065e9
push 1
lea edx, [ebp - 0x1d0]
push edx
mov dword [ebp - 0x6c], ebx
call fcn.0045a7b0
mov dword [ebp - 4], ebx
call fcn.00558d20
mov byte [ebp - 4], 1
mov eax, dword [edi + 0xcc]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.0045ae70
mov edx, dword [edi + 0x20]
mov ecx, dword [ebp - 0x158]
push ebx
push 0x5c5f8c
push 0x5c59c0
push ebx
push edx
mov dword [ebp - 0x6c], ecx
call sub.MSVCR71.dll___RTDynamicCast
mov eax, dword [eax + 0x8b0]
mov ecx, dword [eax]
add esp, 0x14
cmp ecx, ebx
jne 0x405da5
xor esi, esi
lea ebx, [ebx]
cmp esi, 5
jge 0x405da5
mov eax, dword [edi + 0x20]
push 0
push 0x5c5f8c
push 0x5c59c0
push 0
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov eax, dword [edi + 0xcc]
add esp, 0x14
call fcn.00559030
test al, al
jne 0x405f6e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
jmp 0x405d50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x120]
test ecx, ecx
je 0x405dc9
mov eax, dword [ebp - 0x11c]
sub eax, ecx
sar eax, 2
test eax, eax
jne 0x405e74
lea esi, [ebp - 0x58]
lea eax, [ebp - 0x1d0]
call fcn.00401f10
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
or ebx, 1
test eax, eax
mov dword [ebp - 0x5c], ebx
jne 0x405e74
lea esi, [ebp - 0x74]
lea eax, [ebp - 0x1d0]
call fcn.00401f30
mov dword [ebp - 4], 4
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
or ebx, 2
test eax, eax
mov dword [ebp - 0x5c], ebx
jne 0x405e74
lea esi, [ebp - 0x78]
lea eax, [ebp - 0x1d0]
call fcn.00401f50
mov dword [ebp - 4], 5
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
or ebx, 4
test ecx, ecx
mov dword [ebp - 0x5c], ebx
jne 0x405e74
lea esi, [ebp - 0x70]
lea eax, [ebp - 0x1d0]
call fcn.00401f70
mov dword [ebp - 4], 6
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
or ebx, 8
test eax, eax
mov dword [ebp - 0x5c], ebx
jne 0x405e74
lea esi, [ebp - 0x54]
lea eax, [ebp - 0x1d0]
call fcn.00401f90
mov edx, dword [eax]
mov eax, dword [edx - 0xc]
or ebx, 0x10
test eax, eax
je 0x405e81
cmp dword [ebp - 0x150], 1
jg 0x405e81
mov al, 1
jmp 0x405e83
xor al, al
test bl, 0x10
mov ecx, dword [0x68c9b4]
mov byte [ecx + 0x2a], al
je 0x405e9d
lea ecx, [ebp - 0x54]
and ebx, 0xffffffef
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test bl, 8
je 0x405eae
lea ecx, [ebp - 0x70]
and ebx, 0xfffffff7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test bl, 4
je 0x405ebf
lea ecx, [ebp - 0x78]
and ebx, 0xfffffffb
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test bl, 2
je 0x405ed0
lea ecx, [ebp - 0x74]
and ebx, 0xfffffffd
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test bl, 1
mov dword [ebp - 4], 0
je 0x405ee5
lea ecx, [ebp - 0x58]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea esi, [ebp - 0x78]
lea eax, [ebp - 0x1d0]
mov byte [ebp - 0x54], 0
call fcn.00401f10
mov ebx, eax
lea esi, [ebp - 0x74]
lea eax, [ebp - 0x1d0]
mov byte [ebp - 4], 7
call fcn.00401f30
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x120]
test ecx, ecx
jne 0x405f1e
mov dword [ebp - 0x58], ecx
jmp 0x405f2c
mov edx, dword [ebp - 0x11c]
sub edx, ecx
sar edx, 2
mov dword [ebp - 0x58], edx
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], edx
lea edx, [ebp - 0x54]
push edx
push 0
push eax
mov dword [ebp - 0x58], ecx
push 0
mov ecx, edi
call fcn.004027b0
mov esi, eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x5c], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test esi, esi
jne 0x405f93
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a9b0
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP71.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
xor eax, eax
jmp 0x406663
mov eax, dword [ebp - 0x150]
mov ebx, 1
cmp eax, ebx
jg 0x405fbb
mov ecx, dword [ebp - 0x54]
push ecx
push 0
push esi
xor ecx, ecx
lea edx, [ebp - 0x1d0]
call fcn.00453420
jmp 0x406517
push str.CovEd
lea ecx, [ebp - 0x6c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
mov byte [ebp - 4], 9
call fcn.004084f0
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], 0
push 0xffffffffffffffff
push 3
push 0x5338
mov byte [ebp - 4], 0xa
call sub.MFC71.DLL_AfxMessageBox_1
sub eax, 6
je 0x406065
dec eax
je 0x406015
push 0
push 0
push esi
xor ecx, ecx
lea edx, [ebp - 0x1d0]
call fcn.00453420
lea eax, [ebp - 0x68]
call fcn.00408020
jmp 0x40650a
mov ebx, dword [ebp - 0x148]
mov eax, dword [ebx]
cmp eax, ebx
mov dword [ebp - 0x54], eax
je 0x4060a8
mov esi, dword [ebp - 0x64]
lea edx, [ebp - 0x54]
mov edi, eax
call fcn.004088e0
mov edx, dword [esi + 4]
lea eax, [edi + 0xc]
lea edi, [esi + 4]
push eax
push edx
push esi
call fcn.004087c0
mov ecx, 1
lea edx, [ebp - 0x68]
mov esi, eax
call fcn.004087f0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jne 0x406028
jmp 0x4060a8
cmp dword [ebp - 0x150], ebx
mov dword [ebp - 0x54], ebx
jl 0x4060a8
mov eax, dword [ebp - 0x64]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [ebp - 0x54]
push ecx
push edx
push eax
call fcn.004087c0
mov ecx, 1
lea edx, [ebp - 0x68]
mov esi, eax
call fcn.004087f0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [ebp - 0x150]
inc ebx
cmp ebx, eax
mov dword [ebp - 0x54], ebx
jle 0x406070
call fcn.004084f0
mov dword [ebp - 0x80], eax
xor eax, eax
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x60], eax
mov dword [ebp - 0x54], eax
jbe 0x40614f
mov ebx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 0x94]
test edx, edx
mov ecx, dword [ebp - 0x80]
jne 0x4060dc
xor eax, eax
jmp 0x4060e7
mov eax, dword [eax + 0x98]
sub eax, edx
sar eax, 2
cmp dword [ebp - 0x54], eax
jge 0x40614f
mov eax, dword [ebx]
add eax, 8
push eax
mov eax, dword [ecx + 4]
lea edi, [ecx + 4]
push eax
push ecx
call fcn.004087c0
mov ecx, 1
lea edx, [ebp - 0x84]
mov esi, eax
call fcn.004087f0
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [ebx]
cmp eax, ebx
je 0x40613d
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebp - 0x60]
add esp, 4
dec eax
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x60]
inc ecx
test eax, eax
mov dword [ebp - 0x54], ecx
ja 0x4060c8
mov eax, dword [ebp - 0x60]
xor ebx, ebx
cmp eax, ebx
jle 0x40644a
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x50], vtable.CMemoryOutputStream.0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xcc], vtable.CNeroCoverEditorFile.0
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 4], 0xd
mov ecx, dword [0x68c9b4]
mov eax, dword [ecx + 4]
mov bl, byte [0x68c9ec]
push eax
lea edi, [ebp - 0xcc]
lea esi, [ebp - 0x50]
mov byte [0x68c9ec], 1
call fcn.004601e0
lea esi, [ebp - 0x30]
lea eax, [ebp - 0x50]
mov byte [0x68c9ec], bl
call fcn.004019f0
mov byte [ebp - 4], 0xe
jmp 0x4061e0
push 0x57e144
lea ecx, [ebp - 0x54]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_8]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xf
mov edx, dword [eax + 0xac]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax + 0xac]
xor edi, edi
push edi
push 0x5c5f34
push 0x5c5f50
lea ecx, [ecx + eax + 0xac]
push edi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [edx + 4]
push eax
call sub.MSVCR71.dll___RTDynamicCast
add esp, 0x14
lea ecx, [ebp - 0x54]
mov ebx, eax
mov byte [ebp - 4], 0xe
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
cmp ebx, edi
je 0x4063fb
push edi
push 3
push edi
mov ecx, ebx
mov dword [ebx + 0xcc], edi
call sub.MFC71.DLL_CDocument::UpdateAllViews
lea ecx, [ebx + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Empty_1]
cmp dword [ebx + 0xcc], 1
jne 0x406270
inc dword [0x68ca2c]
jmp 0x406276
inc dword [0x68ca28]
mov esi, ebx
call fcn.00454d70
push edi
push 1
push edi
mov ecx, ebx
mov dword [ebx + 0x48], edi
call sub.MFC71.DLL_CDocument::UpdateAllViews
mov dword [ebp - 0xb0], vtable.CNeroCoverEditorFile.0
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], edi
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x90], 0x77190912
mov dword [ebp - 0x94], vtable.CMemoryInputStream.0
jb 0x4062e2
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], ecx
jmp 0x4062eb
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x8c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
mov edx, dword [ecx + 4]
mov edi, dword [edx + eax + 0xb0]
lea eax, [ebp - 0xb0]
push eax
lea esi, [ebp - 0x94]
call fcn.00460260
push 0
push 2
push 0
mov ecx, ebx
call sub.MFC71.DLL_CDocument::UpdateAllViews
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax + 0xec]
mov esi, dword [eax + 8]
mov ecx, dword [esi + 4]
add eax, 4
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x58]
push eax
push ecx
push esi
mov dword [ebp - 0x58], ebx
call fcn.00420820
mov edx, dword [ebp - 0x70]
mov ecx, 1
mov edi, eax
call fcn.00420850
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov eax, dword [ebp - 0x60]
xor esi, esi
test eax, eax
jbe 0x4063e0
mov edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x94]
test ecx, ecx
jne 0x406387
xor eax, eax
jmp 0x406392
mov eax, dword [eax + 0x98]
sub eax, ecx
sar eax, 2
cmp esi, eax
jge 0x4063e0
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 0
push 0
mov dword [ebp - 0x154], edx
push ebx
mov ecx, esi
lea edx, [ebp - 0x1d0]
call fcn.00453420
mov eax, dword [edi]
cmp eax, edi
je 0x4063d8
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebp - 0x60]
add esp, 4
dec eax
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
inc esi
test eax, eax
ja 0x406376
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x60]
test eax, eax
mov dword [ebp - 0xb0], vtable.CSerializable.0
jg 0x4061e0
xor edi, edi
call sub.MFC71.DLL_AfxGetThread
cmp eax, edi
je 0x40640d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40640f
xor eax, eax
mov eax, dword [eax + 0x20]
push edi
push 0xe132
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xcc], vtable.CSerializable.0
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor ebx, ebx
cmp dword [ebp - 0x7c], ebx
mov esi, dword [ebp - 0x80]
jbe 0x4064bc
mov edi, dword [ebp - 0x5c]
mov ecx, dword [edi + 0x94]
test ecx, ecx
jne 0x406463
xor eax, eax
jmp 0x40646e
mov eax, dword [edi + 0x98]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jge 0x4064bc
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push 0
push 0
mov dword [ebp - 0x154], ecx
push edi
mov ecx, ebx
lea edx, [ebp - 0x1d0]
call fcn.00453420
mov eax, dword [esi]
cmp eax, esi
je 0x4064b4
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebp - 0x7c]
add esp, 4
dec eax
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
inc ebx
test eax, eax
ja 0x406455
mov eax, dword [esi]
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
je 0x4064d8
mov edi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x4064c7
push esi
call sub.MFC71.DLL_operator_delete_1
mov esi, dword [ebp - 0x64]
mov eax, dword [esi]
add esp, 4
cmp eax, esi
mov dword [esi], esi
mov dword [esi + 4], esi
je 0x406501
nop
mov edi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
cmp edi, esi
mov eax, edi
jne 0x4064f0
push esi
call sub.MFC71.DLL_operator_delete_1
add esp, 4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov al, byte [ebp - 0x104]
test al, al
je 0x4065b5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xcc]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea esi, [ebp - 0x58]
lea eax, [ebp - 0x1d0]
call fcn.00401ef0
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
test edx, edx
mov ecx, esi
setne bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test bl, bl
je 0x406576
lea esi, [ebp - 0x58]
lea eax, [ebp - 0x1d0]
call fcn.00401ed0
mov eax, dword [eax]
push eax
call edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea esi, [ebp - 0x58]
lea eax, [ebp - 0x1d0]
call fcn.00401ef0
mov edx, dword [eax]
mov ecx, dword [edx - 0xc]
test ecx, ecx
mov ecx, esi
setne bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
test bl, bl
je 0x4065b5
lea esi, [ebp - 0x58]
lea eax, [ebp - 0x1d0]
call fcn.00401ef0
mov eax, dword [eax]
push eax
call edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov ecx, dword [ebp + 8]
push 0x57e144
add ecx, 0xcc
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_6]
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a9b0
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP71.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
jmp 0x406660
mov eax, dword [edi + 0x20]
push ebx
push 0x5c5f8c
push 0x5c59c0
push ebx
push eax
call sub.MSVCR71.dll___RTDynamicCast
mov ecx, dword [eax + 0x8b0]
mov eax, dword [ecx]
add esp, 0x14
cmp eax, ebx
jne 0x40664e
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov edx, dword [edi + 0x20]
push 0
push 0x5c5f8c
push 0x5c59c0
push 0
push edx
call sub.MSVCR71.dll___RTDynamicCast
add esp, 0x14
mov eax, 0x57e570
call fcn.00559030
test al, al
jne 0x405f8c
push 0x3e8
call ebx
inc esi
cmp esi, 5
jl 0x406615
push 0
push 0
push 0
push 1
mov ecx, edi
call fcn.004027b0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0054939e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4