Function at 0x4089c0
Capabilities:
Accept command line arguments
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41d9b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x138], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_3
push str.SilentUpgrade_Tool:
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_CString::Find
mov edx, eax
cmp edx, 0xffffffff
je 0x408c63
mov edi, str.SilentUpgrade_Tool:
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
mov eax, dword [eax - 8]
dec ecx
add ecx, edx
sub eax, ecx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
push 1
push ecx
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x144], 2
call fcn.00409a80
add esp, 4
call fcn.00408cb0
add esp, 8
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push str.bbx_s.backup
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 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 edx, [esp + 0x2c]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x10]
push 0x5c
mov byte [esp + 0x13c], 3
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
sub esi, eax
lea edx, [esp + 0x14]
dec esi
lea ecx, [esp + 0x10]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 3
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call sub.MFC42.DLL_operator
push ecx
lea eax, [esp + 0x144]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x140], 5
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x24]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x148], 6
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x144], 5
call fcn.004095b0
add esp, 0xc
cmp eax, ebx
je 0x408c30
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
push ecx
call fcn.00409a80
add esp, 4
push str.bbx_s.backup
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x144], 7
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x408c8c
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x140]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x12c
ret