Function at 0x402db4
Capabilities:
Delete file
Read .ini file

Disassembly:
mov eax, 0x404950
call fcn.004043c0
sub esp, 0x298
push ebx
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov ecx, esi
call fcn.004030d3
cmp eax, 0xffffffff
je 0x402e7c
push 0x24
push 0x407ca8
push 0x407c6c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402e70
push 0x407c54
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
push dword [ebp - 0x10]
push str.AmyMainFrame
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
cmp eax, edi
je 0x402e45
push edi
push edi
push 0x52c
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x3c
jl 0x402e0c
cmp ebx, 0x3c
jne 0x402e62
mov ecx, esi
call sub.MFC42.DLL_CDialog::OnCancel
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x4030c4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
jmp 0x402e7e
mov ecx, esi
call sub.MFC42.DLL_CDialog::OnCancel
jmp 0x4030c4
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
call sub.MFC42.DLL_CString::CString_2
push edi
lea eax, [ebp - 0x10]
push str.FILE_d
push eax
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edi, str.update.ini
lea eax, [esi + 0x100]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esi + 0x64]
push eax
lea eax, [ebp - 0x120]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x104
push eax
push 0x407ea4
push dword [ebp - 0x10]
push ecx
call ebx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 1
pop ecx
jb 0x402f96
push ecx
lea eax, [ebp - 0x120]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
call fcn.004031df
test eax, eax
jne 0x402f33
push 0x407b80
lea ecx, [esi + 0x78]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
push 0
mov ecx, esi
call sub.MFC42.DLL_CDialog::EndDialog
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
inc dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push str.FILE_d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esi + 0x100]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esi + 0x64]
push eax
lea eax, [ebp - 0x120]
push 0x104
push eax
push 0x407ea4
push dword [ebp - 0x10]
push ecx
jmp 0x402ed9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 0x407b80
lea ecx, [esi + 0x78]
call sub.MFC42.DLL_CWnd::SetWindowTextA
push 0x407c30
lea ecx, [esi + 0xf8]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esi + 0x100]
push edi
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
push dword [eax]
lea eax, [ebp - 0x1a0]
push 0x80
push eax
push 0x407a74
push str.VERSION
push dword [esi + 0x64]
call ebx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x1a0]
push eax
push 0x407a70
push str.currVersion
call fcn.00401f18
add esp, 0xc
xor ebx, ebx
mov ecx, esi
push ebx
call sub.MFC42.DLL_CWnd::UpdateData
lea eax, [esi + 0x100]
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator_1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
cmp dword [esi + 0x128], ebx
je 0x403077
push 0x24
push 0x407ca8
push 0x407c08
mov dword [0x407e9c], ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x403081
mov ecx, esi
mov dword [esi + 0x128], ebx
call fcn.00402c50
jmp 0x403081
mov dword [0x407e9c], 1
push 0x104
lea eax, [ebp - 0x2a4]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [esi + 0x64]
lea eax, [ebp - 0x2a4]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x2a4]
push str..exe
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x2a4]
mov ecx, esi
push eax
call fcn.00402d46
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret