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

Disassembly:
push 0xffffffffffffffff
push 0x41d947
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push ebp
push esi
push edi
push ecx
lea eax, [esp + 0x16c]
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov dword [esp + 0x168], ebx
call sub.MFC42.DLL_CString::CString_1
call fcn.004089c0
add esp, 4
cmp eax, ebx
je 0x408536
lea ecx, [esp + 0x168]
mov dword [esp + 0x160], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x408998
lea ecx, [esp + 0x40]
call fcn.0041c964
lea ecx, [esp + 0x3c]
mov byte [esp + 0x160], 1
push ecx
call fcn.00409a80
add esp, 4
push str.delfileconfig.dat
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0x16c], 2
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x160], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
push ebx
push ebx
push eax
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CStdioFile::Open
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4085ed
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 5
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x4085d3
mov edx, dword [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x4085ba
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
push ecx
call ebp
lea edx, [esp + 0x18]
push edx
call fcn.00409a80
add esp, 4
lea eax, [esp + 0x18]
push str.UpgradeBackup_
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x16c], 6
call sub.MFC42.DLL_operator_2
push str.bbx_s.backup
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x16c], 7
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x38]
mov byte [esp + 0x160], 9
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push str.UpgradeBackup_
lea ecx, [esp + 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov edx, dword [esp + 0x2c]
mov byte [esp + 0x160], 0xa
push edx
push ebx
push 0x427c40
push str.SUpgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x40890f
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x54]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
push 0x5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 0xb
mov esi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea ecx, [esp + 0x28]
dec esi
push esi
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 0xc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x160], 0xb
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_operator
push ebx
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x168], 0xd
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x408896
lea edx, [esp + 0x168]
lea ecx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call sub.MFC42.DLL_CString::CString_1
push 0x427978
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0xe
call fcn.0040615c
push str.SilentUpgrade_Tool:
lea ecx, [esp + 0x14]
call fcn.0040615c
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_2
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x2c]
lea edx, [esp + 0x24]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
mov byte [esp + 0x170], 0xf
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x16c], 0xe
call fcn.004095b0
add esp, 0xc
cmp eax, ebx
je 0x408883
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x160], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x160], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x168]
mov dword [esp + 0x160], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x408998
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0xd
call sub.MFC42.DLL_CString::CString
jmp 0x4088eb
push ebx
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00408cb0
add esp, 8
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push str.bbx_s.backup
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00411f00
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 0xa
call sub.MFC42.DLL_CString::CString
jmp 0x408928
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00411f00
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x160], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x160], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x160], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x168]
mov dword [esp + 0x160], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x154
ret