Function at 0x402420
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40a9be
push eax
mov eax, 0x7880
mov dword fs:[0], esp
call fcn.0040a010
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov esi, 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x7898], esi
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x78a0]
push 0
push 0x8000
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x78a4], 2
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x4024fd
lea ecx, [esp + 0x78a0]
lea edx, [esp + 0x14]
push ecx
push 0x410250
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x78a4], 3
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x14]
mov byte [esp + 0x7898], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x7898], 1
call fcn.0040a270
lea ecx, [esp + 0x78a0]
mov byte [esp + 0x7898], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78a4]
mov dword [esp + 0x7898], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x402a9f
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x58], 0
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
push 0x1c
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Read
cmp dword [esp + 0x58], esi
jne 0x402a22
cmp byte [esp + 0x5c], 0x33
jne 0x402a22
cmp byte [esp + 0x5d], 0x46
jne 0x402a22
mov ecx, ebp
call fcn.004023c0
mov eax, dword [esp + 0x70]
xor esi, esi
xor edi, edi
test eax, eax
jle 0x40259b
lea ebx, [ebp + 4]
push 0x108
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], eax
push 0x108
push eax
call sub.MFC42.DLL_CFile::Read
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 8]
mov edx, dword [ecx]
mov ecx, ebx
add esi, edx
lea edx, [esp + 0x24]
push edx
push 1
push eax
call fcn.00403d00
mov eax, dword [esp + 0x70]
inc edi
cmp edi, eax
jl 0x402558
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x10]
mov byte [esp + 0x7898], 5
call sub.MFC42.DLL_CString::CString_1
xor esi, esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x7898], 6
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CFile::CFile
lea eax, [esp + 0x78a4]
push str.install.log
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x78a4], 7
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x789c], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x7898], 7
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x78a8]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0040a24c
call fcn.00409c50
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x38]
push esi
push 0x9001
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x4026cb
push esi
push esi
push 0x410180
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x38]
mov byte [esp + 0x7898], 6
call fcn.0040a270
lea ecx, [esp + 0x10]
mov byte [esp + 0x7898], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x7898], 2
call fcn.0040a270
lea ecx, [esp + 0x28]
mov byte [esp + 0x7898], 1
call fcn.0040a270
lea ecx, [esp + 0x78a0]
mov byte [esp + 0x7898], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78a4]
mov dword [esp + 0x7898], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 3
jmp 0x402a9f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x78ac]
and ecx, 0xffff
mov byte [esp + 0x7898], 9
mov eax, dword [edx + 0x20]
shl ecx, 0x10
push ecx
push esi
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x74]
call fcn.0040a228
mov eax, dword [esp + 0x70]
mov byte [esp + 0x7898], 0xa
cmp eax, esi
jle 0x4028d4
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x78a4]
push ecx
mov edx, dword [eax + esi*4]
lea eax, [esp + 0x1c]
add edx, 4
push edx
push 0x410240
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
mov ecx, dword [esp + 0x78ac]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov eax, dword [ebp + 8]
mov edx, dword [eax + esi*4]
lea eax, [esp + 0x10]
add edx, 4
push edx
push str._FILE___s_r_n
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFile::Write
mov eax, dword [ebp + 8]
lea edx, [esp + 0x78a4]
mov ecx, dword [eax + esi*4]
lea eax, [esp + 0x1c]
add ecx, 4
push ecx
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x789c], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7898], 0xa
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0040a24c
call fcn.00409c50
mov eax, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x74]
push 0
push eax
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x402804
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x10]
push 0
push 0x9001
push edx
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x402836
mov eax, dword [ebp + 8]
push 1
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Seek
jmp 0x4028c7
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [eax + esi*4]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
jmp 0x40284a
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4028a5
cmp ebx, eax
jge 0x402856
mov edi, eax
sub edi, ebx
cmp edi, 0x7800
jle 0x402863
mov edi, 0x7800
lea eax, [esp + 0x90]
push edi
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFile::Read
mov edi, eax
test edi, edi
jl 0x40297c
lea ecx, [esp + 0x90]
push edi
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::Write
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add ebx, edi
add ecx, edi
cmp ebx, eax
mov dword [esp + 0x20], ecx
jl 0x402846
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CFile::Close
mov edx, dword [esp + 0x78ac]
push 0
push esi
push 0x402
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x70]
inc esi
cmp esi, eax
jl 0x402722
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFile::Close
mov ecx, ebp
call fcn.004023c0
lea ecx, [esp + 0x74]
mov byte [esp + 0x7898], 9
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x18]
mov byte [esp + 0x7898], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x7898], 6
call fcn.0040a270
lea ecx, [esp + 0x10]
mov byte [esp + 0x7898], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x7898], 2
call fcn.0040a270
lea ecx, [esp + 0x28]
mov byte [esp + 0x7898], 1
call fcn.0040a270
lea ecx, [esp + 0x78a0]
mov byte [esp + 0x7898], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78a4]
mov dword [esp + 0x7898], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402a9f
push 0
push 0
push 0x41014c
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x74]
mov byte [esp + 0x7898], 9
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x18]
mov byte [esp + 0x7898], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x7898], 6
call fcn.0040a270
lea ecx, [esp + 0x10]
mov byte [esp + 0x7898], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x7898], 2
call fcn.0040a270
lea ecx, [esp + 0x28]
mov byte [esp + 0x7898], 1
call fcn.0040a270
lea ecx, [esp + 0x78a0]
mov byte [esp + 0x7898], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78a4]
mov dword [esp + 0x7898], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 4
jmp 0x402a9f
lea ecx, [esp + 0x78a0]
lea edx, [esp + 0x14]
push ecx
push 0x41020c
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0
push eax
mov byte [esp + 0x78a4], 4
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x14]
mov byte [esp + 0x7898], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x7898], 1
call fcn.0040a270
lea ecx, [esp + 0x78a0]
mov byte [esp + 0x7898], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78a4]
mov dword [esp + 0x7898], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 2
mov ecx, dword [esp + 0x7890]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x788c
ret 0x10