Function at 0x401d4d
Capabilities:
Accept command line arguments
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x416ff2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x164c
call fcn.00415920
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x1648], eax
push ebx
push esi
push edi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x1660]
mov dword fs:[0], eax
mov eax, dword [sym.imp.MSVCR90.dll___argc]
cmp dword [eax], 1
mov ebx, ecx
jle 0x401da9
push 0x1000
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x1c]
call dword [0x41a924]
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1668], esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeLower]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Trim]
push 0x20
push 0x2d
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
push 0x20
push 0x2f
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace]
push esi
push str._shutdown
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
mov edi, 0x4209a0
test eax, eax
jge 0x401e38
push esi
push str._autofix
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
test eax, eax
jge 0x401e38
push esi
push str._schedule
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Find]
test eax, eax
jl 0x401f24
mov eax, dword [sym.imp.MSVCR90.dll___wargv]
mov eax, dword [eax]
push dword [eax + 8]
lea esi, [ebx + 0x138]
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x401f24
push edi
push 0x41b488
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace_1]
push edi
push 0x41b48c
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace_1]
push edi
push 0x41b490
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace_1]
mov ecx, esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeUpper]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ASOHelper.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CSystweakApp::GetRegAppPath_void_]
pop ecx
lea eax, [esp + 0x14]
mov byte [esp + 0x1668], 1
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], SysStringLen
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__]
push 1
mov byte [esp + 0x166c], 2
push dword [esp + 0x14]
lea ecx, [esp + 0x30]
push SysReAllocString
mov dword [esp + 0x38], 0x2001f
call dword [sym.imp.ASOHelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_]
test eax, eax
je 0x401ef6
mov esi, dword [esi]
push 0
push esi
push 0x41b494
lea ecx, [esp + 0x34]
call dword [sym.imp.ASOHelper.dll_public:_int___thiscall_CRegistry::WriteString_wchar_t_const___wchar_t_const___bool_]
lea ecx, [esp + 0x28]
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CRegistry::Close_void_]
lea ecx, [esp + 0x28]
mov byte [esp + 0x1668], 1
call dword [sym.imp.ASOHelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1668], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push str.DiskDefrag
mov ecx, ebx
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CSystweakApp::SetDefaultINISectionName_wchar_t_const__]
push edi
push str.IDS_G_APP_DISKOPT_NAME
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x42dce0
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_wchar_t_const___wchar_t_const__]
mov byte [esp + 0x1668], 3
mov ecx, dword [sym.imp.ASOHelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____CSystweakApp::m_LocalizedProgramName]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1668], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, ebx
call dword [sym.imp.ASOHelper.dll_public_virtual:_int___thiscall_CSystweakApp::InitInstance_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call dword [0x41a85c]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x166c], 4
call dword [sym.imp.ASOHelper.dll_void___cdecl_ReturnSystweakRegKey_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_____]
lea ecx, [esp + 0x14]
mov dword [esp], str.OneClickCure
call dword [0x41a924]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x1670], 5
call dword [sym.imp.ASOHelper.dll_enum_PCO_ERROR_CODES___cdecl_STPathAppend_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
pop ecx
pop ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x1668], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov esi, str.Disk_Optimizer
push esi
lea ecx, [esp + 0x14]
call dword [0x41a924]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x1670], 6
call dword [sym.imp.ASOHelper.dll_enum_PCO_ERROR_CODES___cdecl_STPathAppend_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const__]
pop ecx
pop ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x1668], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
cmp dword [esp + 0x14], 0
jne 0x40212c
lea eax, [esp + 0x14]
mov esi, SysReAllocString
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], esi
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__]
push 0
mov byte [esp + 0x166c], 7
push dword [esp + 0x24]
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x38], 0x20019
call dword [sym.imp.ASOHelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_]
test eax, eax
je 0x402115
lea ecx, [esp + 0x10]
call dword [0x41a85c]
lea eax, [esp + 0x1c]
mov byte [esp + 0x1668], 8
mov esi, dword [sym.imp.ASOHelper.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CSystweakApp::GetAppProgramName_void_]
push eax
call esi
pop ecx
mov ebx, eax
push edi
push str.IDS_SPC_OPTIMWIZARD_EXISTS
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x42dce0
mov byte [esp + 0x1674], 9
call dword [sym.imp.ASOHelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CSystweakApp::LoadStringW_wchar_t_const___wchar_t_const__]
mov byte [esp + 0x1668], 0xa
push dword [ebx]
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1668], 8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea eax, [esp + 0x1c]
push eax
call esi
mov eax, dword [eax]
pop ecx
push 0x40
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x28]
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CRegistry::Close_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x28]
mov byte [esp + 0x1668], 4
call dword [sym.imp.ASOHelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_]
jmp 0x402387
call dword [sym.imp.ASOHelper.dll_public:_static_bool___cdecl_CSystweakApp::IsRegisteredVersion_void_]
mov byte [ebx + 0x1b0], al
call dword [sym.imp.ASOHelper.dll_public:_static_bool___cdecl_CSystweakApp::IsExpired_void_]
test al, al
je 0x402166
mov eax, dword [sym.imp.ASOHelper.dll_bool_CSystweakApp::bAutoFix]
mov byte [eax], 0
mov eax, dword [sym.imp.ASOHelper.dll_bool_CSystweakApp::bShutDown]
mov byte [eax], 0
mov eax, dword [sym.imp.ASOHelper.dll_bool_CSystweakApp::bRunFromSchedule]
lea ecx, [ebx + 0x138]
mov byte [eax], 0
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ASOHelper.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CSystweakApp::GetAppDataAppPath_void_]
pop ecx
lea ecx, [ebx + 0x124]
push eax
mov byte [esp + 0x166c], 0xb
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1668], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
call dword [0x41a924]
lea eax, [ebx + 0x128]
push eax
call dword [sym.imp.ASOHelper.dll_bool___cdecl_CreateAllUsersAppDataFolder_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____]
mov eax, dword [sym.imp.MSVCR90.dll___wargv]
mov eax, dword [eax]
pop ecx
pop ecx
push dword [eax + 4]
lea ecx, [esp + 0x28]
call dword [0x41a924]
push 0x100
push 0
push 0x42df48
mov byte [esp + 0x1674], 0xc
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
push 0x41b488
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace_1]
push edi
push 0x41b48c
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace_1]
push edi
push 0x41b490
lea ecx, [esp + 0x2c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Replace_1]
push str.runhiddenScan
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x402230
mov byte [ebx + 0x1a9], 1
mov eax, dword [sym.imp.ASOHelper.dll_bool_CSystweakApp::bRunFromSchedule]
cmp byte [eax], 0
je 0x402252
mov ecx, dword [ebx + 0x138]
lea eax, [ebx + 0x1ab]
mov byte [eax], 1
cmp dword [ecx - 0xc], 0
jne 0x402252
mov byte [eax], 0
cmp byte [ebx + 0x1a9], 0
jne 0x40226a
push dword [esp + 0x20]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea eax, [esp + 0x44]
push eax
call fcn.0040158e
push ebx
lea esi, [esp + 0x48]
mov byte [esp + 0x166c], 0xd
call fcn.00401b1e
lea esi, [ebx + 0x130]
push esi
push 0
push 0x41ac3c
push edi
push str.ncacn_np
push 0
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
test eax, eax
jne 0x4022c1
push 0x42dc30
push dword [esi]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
test eax, eax
jne 0x4022c1
mov dword [ebx + 0x12c], 1
lea esi, [ebx + 0x184]
call fcn.00410c56
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ASOHelper.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CSystweakApp::GetAppDataAppPath_void_]
pop ecx
push eax
lea ecx, [ebx + 0x124]
mov byte [esp + 0x166c], 0xe
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1668], 0xd
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebx + 0x13c], eax
lea eax, [esp + 0x10c]
push eax
call fcn.00402b99
lea eax, [esp + 0x10c]
mov byte [esp + 0x1668], 0xf
mov dword [ebx + 0x20], eax
add ebx, 0x16c
mov dword [0x42dc40], eax
mov dword [ebx], eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x110]
call dword [sym.imp.ASOHelper.dll_public:_void___thiscall_CDlgBaseAppDlg::IntializeMainAppDlg_struct_MAINAPPDLGINIT__]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0x154]
lea ecx, [esp + 0x10c]
mov byte [esp + 0x1668], 0xd
call fcn.00402c82
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x166c], 0xc
call fcn.004023c1
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
xor eax, eax
mov ecx, dword [esp + 0x1660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1648]
xor ecx, esp
call fcn.00414f74
mov esp, ebp
pop ebp
ret