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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402698
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
call fcn.00401510
test eax, eax
je 0x4012c4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret
push str.UpgradeBackup_
lea eax, [esp + 0x1c]
push 0x405130
push eax
call sub.MFC42.DLL_operator_1
push str.bbx_s.backup
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
push str.UpgradeBackup_
lea edx, [esp + 8]
push 0x405130
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [esp + 0x10]
mov byte [esp + 0x2c], 3
push eax
push 0
push 0x405078
push str.SUpgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x4014bf
lea ecx, [esp + 4]
push 0x40505c
lea edx, [esp + 0x10]
push ecx
push edx
call sub.MFC42.DLL_operator_1
mov bl, 4
push 0
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x40143d
push str.SilentUpgrade_jdbbx:
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_1
push 0x405130
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::operator
push ecx
lea eax, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x3c], 6
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x38], 5
call fcn.00401c80
add esp, 0xc
test eax, eax
je 0x40142e
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret
lea ecx, [esp + 8]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
jmp 0x4014af
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x405130
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x38], 7
call sub.MFC42.DLL_CString::CString_2
mov byte [esp + 0x34], bl
call fcn.00401f70
add esp, 8
lea eax, [esp + 0x1c]
push str.bbx_s.backup
push 0x405130
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004023d0
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString
jmp 0x4014d8
push ecx
lea eax, [esp + 8]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.004023d0
add esp, 4
lea ecx, [esp + 4]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret