Function at 0x40a6f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40e4c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
movsx eax, word [esp + 0x154]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x15c]
push edi
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
push 0
lea edx, [esp + 0x14]
push 0x4136b0
lea eax, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x168], 0
call fcn.00403370
push 0
lea ecx, [esp + 0x24]
push 0x4136b0
lea edx, [esp + 0x48]
push ecx
push edx
mov byte [esp + 0x178], 1
call fcn.00403370
push 0
lea eax, [esp + 0x34]
push 0x4136b0
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x188], 2
call fcn.00403370
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x34
lea ecx, [esp + 0x14]
mov ebp, eax
call sub.MFC42.DLL_CString::CString
push 0
lea edx, [esp + 0x14]
push 0x4136b0
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00403370
push 0
lea ecx, [esp + 0x24]
push 0x4136b0
lea edx, [esp + 0x44]
push ecx
push edx
mov byte [esp + 0x178], 3
call fcn.00403370
push 0
lea eax, [esp + 0x34]
push 0x4136b0
lea ecx, [esp + 0x60]
push eax
push ecx
mov byte [esp + 0x188], 4
call fcn.00403370
push 0
lea edx, [esp + 0x44]
push 0x4136b0
lea eax, [esp + 0x5c]
push edx
push eax
mov byte [esp + 0x198], 5
call fcn.00403370
add esp, 0x40
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 6
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x158], 7
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
lea ecx, [esp + 0x54]
push 0
mov eax, dword [eax + 0x90]
lea edx, [esp + 0x44]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0x50]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x18]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 5
push 0x3e9
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
push 0x400
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
push 0x3ff
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
push 0x401
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
push 0x403
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
push 0x404
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov al, byte [esi + 0x184]
mov bl, 8
test al, al
mov byte [esp + 0x158], bl
jmp 0x40a93a
lea eax, [esp + 0x28]
lea ecx, [esp + 0x20]
push eax
push str.Upgrading_to
push ecx
call sub.MFC42.DLL_operator_1
push str._Version
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x164], 0xa
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x15c], 0xb
call fcn.0040ce50
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 0xa
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x158], bl
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
push 0x3ea
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
lea ecx, [esp + 0x24]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_operator
lea edi, [esi + 0x84]
push eax
mov ecx, edi
mov byte [esp + 0x15c], 0xc
call fcn.0040ce50
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], bl
call sub.MFC42.DLL_CString::CString
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x34]
push 1
push edx
mov edx, dword [esp + 0x38]
push eax
push ebp
push edx
lea ecx, [esi + 0x94]
push 4
call fcn.00401490
test eax, eax
jne 0x40aa36
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x40aab8
mov al, byte [esi + 0x184]
push 0
test al, al
push 0
jmp 0x40aaae
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x164], 0xd
call sub.MFC42.DLL_CString::CString_3
push ecx
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
mov byte [esp + 0x168], 0xe
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x94]
mov byte [esp + 0x164], bl
call fcn.00402090
test eax, eax
jne 0x40aad6
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x40aab8
mov al, byte [esi + 0x184]
push 0
test al, al
push 0
jmp 0x40aaae
push str.Failed_to_upgrade._Try_again_later.
call sub.MFC42.DLL_AfxMessageBox_1
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40ab7a
lea ecx, [esp + 0x44]
call fcn.00403190
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x15c], 0xf
call fcn.004031d0
push 0xa
lea ecx, [esp + 0x28]
push 0x7404
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator
push str.__auto
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x16c], 0x10
call sub.MFC42.DLL_operator_2
push ecx
lea ecx, [esp + 0x24]
mov edx, esp
mov dword [esp + 0x4c], esp
push ecx
push eax
push edx
mov byte [esp + 0x170], 0x11
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x50]
call fcn.00403290
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x158], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x158], bl
call fcn.00403250
lea ecx, [esp + 0x1c]
mov byte [esp + 0x158], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x158], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x158], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x158], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x158], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x158], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x158], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x158], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x158], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14c
ret 8