Function at 0x401db0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4098fe
push eax
mov eax, 0x7880
mov dword fs:[0], esp
call fcn.00409000
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 0x401e8d
lea ecx, [esp + 0x78a0]
lea edx, [esp + 0x14]
push ecx
push 0x40f210
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.00409260
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 0x40242f
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 0x4023b2
cmp byte [esp + 0x5c], 0x33
jne 0x4023b2
cmp byte [esp + 0x5d], 0x46
jne 0x4023b2
mov ecx, ebp
call fcn.00401d50
mov eax, dword [esp + 0x70]
xor esi, esi
xor edi, edi
test eax, eax
jle 0x401f2b
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.00403620
mov eax, dword [esp + 0x70]
inc edi
cmp edi, eax
jl 0x401ee8
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.0040923c
call fcn.00408c40
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 0x40205b
push esi
push esi
push 0x40f144
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x38]
mov byte [esp + 0x7898], 6
call fcn.00409260
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.00409260
lea ecx, [esp + 0x28]
mov byte [esp + 0x7898], 1
call fcn.00409260
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 0x40242f
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.00409218
mov eax, dword [esp + 0x70]
mov byte [esp + 0x7898], 0xa
cmp eax, esi
jle 0x402264
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 0x40f200
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.0040923c
call fcn.00408c40
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 0x402194
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 0x4021c6
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 0x402257
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edx, dword [eax + esi*4]
mov eax, dword [edx]
mov dword [esp + 0x14], eax
jmp 0x4021da
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x402235
cmp ebx, eax
jge 0x4021e6
mov edi, eax
sub edi, ebx
cmp edi, 0x7800
jle 0x4021f3
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 0x40230c
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 0x4021d6
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 0x4020b2
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFile::Close
mov ecx, ebp
call fcn.00401d50
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.00409260
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.00409260
lea ecx, [esp + 0x28]
mov byte [esp + 0x7898], 1
call fcn.00409260
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 0x40242f
push 0
push 0
push 0x40f110
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.00409260
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.00409260
lea ecx, [esp + 0x28]
mov byte [esp + 0x7898], 1
call fcn.00409260
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 0x40242f
lea ecx, [esp + 0x78a0]
lea edx, [esp + 0x14]
push ecx
push 0x40f1cc
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.00409260
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