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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41699b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x162c
call fcn.004152d0
mov eax, dword [0x42b028]
xor eax, esp
mov dword [esp + 0x1628], eax
push ebx
push esi
push edi
mov eax, dword [0x42b028]
xor eax, esp
push eax
lea eax, [esp + 0x1640]
mov dword fs:[0], eax
mov eax, dword [sym.imp.MSVCR90.dll___argc]
cmp dword [eax], 1
mov ebx, ecx
jle 0x401d8c
push 0x1000
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x1c]
call dword [0x419724]
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1648], 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, 0x41f998
test eax, eax
jge 0x401e1b
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 0x401e1b
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 0x401f07
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 0x401f07
push edi
push 0x41a464
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 0x41a468
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 0x41a46c
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.K9PCUhelper.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CMainApp::GetRegAppPath_void_]
pop ecx
lea eax, [esp + 0x14]
mov byte [esp + 0x1648], 1
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], SysStringLen
call dword [sym.imp.K9PCUhelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__]
push 1
mov byte [esp + 0x164c], 2
push dword [esp + 0x14]
lea ecx, [esp + 0x30]
push SysReAllocString
mov dword [esp + 0x38], 0x2001f
call dword [sym.imp.K9PCUhelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_]
test eax, eax
je 0x401ed9
mov esi, dword [esi]
push 0
push esi
push 0x41a470
lea ecx, [esp + 0x34]
call dword [sym.imp.K9PCUhelper.dll_public:_int___thiscall_CRegistry::WriteString_wchar_t_const___wchar_t_const___bool_]
lea ecx, [esp + 0x28]
call dword [sym.imp.K9PCUhelper.dll_public:_void___thiscall_CRegistry::Close_void_]
lea ecx, [esp + 0x28]
mov byte [esp + 0x1648], 1
call dword [sym.imp.K9PCUhelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1648], 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.K9PCUhelper.dll_public:_void___thiscall_CMainApp::SetDefaultINISectionName_wchar_t_const__]
push edi
push str.IDS_G_APP_DISKOPT_NAME
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x42bc88
call dword [sym.imp.K9PCUhelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CMainApp::LoadStringW_wchar_t_const___wchar_t_const__]
mov byte [esp + 0x1648], 3
mov ecx, dword [sym.imp.K9PCUhelper.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t____CMainApp::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 + 0x1648], 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.K9PCUhelper.dll_public_virtual:_int___thiscall_CMainApp::InitInstance_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call dword [0x419844]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x164c], 4
call dword [sym.imp.K9PCUhelper.dll_void___cdecl_ReturnAppRegKey_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 [0x419724]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x1650], 5
call dword [sym.imp.K9PCUhelper.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 + 0x1648], 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 [0x419724]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x1650], 6
call dword [sym.imp.K9PCUhelper.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 + 0x1648], 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 0x40210f
lea eax, [esp + 0x14]
mov esi, SysReAllocString
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], esi
call dword [sym.imp.K9PCUhelper.dll_public:_void___thiscall_CRegistry::constructor_struct_HKEY____const_const__]
push 0
mov byte [esp + 0x164c], 7
push dword [esp + 0x24]
lea ecx, [esp + 0x30]
push esi
mov dword [esp + 0x38], 0x20019
call dword [sym.imp.K9PCUhelper.dll_public:_int___thiscall_CRegistry::Open_struct_HKEY_____wchar_t_const___bool_]
test eax, eax
je 0x4020f8
lea ecx, [esp + 0x10]
call dword [0x419844]
lea eax, [esp + 0x1c]
mov byte [esp + 0x1648], 8
mov ebx, dword [sym.imp.K9PCUhelper.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CMainApp::GetAppProgramName_void_]
push eax
call ebx
pop ecx
mov esi, eax
push edi
push str.IDS_SPC_OPTIMWIZARD_EXISTS
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x42bc88
mov byte [esp + 0x1654], 9
call dword [sym.imp.K9PCUhelper.dll_public:_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______thiscall_CMainApp::LoadStringW_wchar_t_const___wchar_t_const__]
mov byte [esp + 0x1648], 0xa
push dword [esi]
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 + 0x1648], 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 ebx
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.K9PCUhelper.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 + 0x1648], 4
call dword [sym.imp.K9PCUhelper.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_]
jmp 0x40236a
call dword [sym.imp.K9PCUhelper.dll_public:_static_bool___cdecl_CMainApp::IsRegisteredVersion_void_]
mov byte [ebx + 0x19c], al
call dword [sym.imp.K9PCUhelper.dll_public:_static_bool___cdecl_CMainApp::IsExpired_void_]
test al, al
je 0x402149
mov eax, dword [sym.imp.K9PCUhelper.dll_bool_CMainApp::bAutoFix]
mov byte [eax], 0
mov eax, dword [sym.imp.K9PCUhelper.dll_bool_CMainApp::bShutDown]
mov byte [eax], 0
mov eax, dword [sym.imp.K9PCUhelper.dll_bool_CMainApp::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.K9PCUhelper.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CMainApp::GetAppDataAppPath_void_]
pop ecx
lea ecx, [ebx + 0x124]
push eax
mov byte [esp + 0x164c], 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 + 0x1648], 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 [0x419724]
lea eax, [ebx + 0x128]
push eax
call dword [sym.imp.K9PCUhelper.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 [0x419724]
push 0x100
push 0
push 0x42bea8
mov byte [esp + 0x1654], 0xc
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
push 0x41a464
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 0x41a468
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 0x41a46c
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 0x402213
mov byte [ebx + 0x195], 1
mov eax, dword [sym.imp.K9PCUhelper.dll_bool_CMainApp::bRunFromSchedule]
cmp byte [eax], 0
je 0x402235
mov ecx, dword [ebx + 0x138]
lea eax, [ebx + 0x197]
mov byte [eax], 1
cmp dword [ecx - 0xc], 0
jne 0x402235
mov byte [eax], 0
cmp byte [ebx + 0x195], 0
jne 0x40224d
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 + 0x164c], 0xd
call fcn.00401b01
lea esi, [ebx + 0x130]
push esi
push 0
push 0x419bec
push edi
push str.ncacn_np
push 0
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
test eax, eax
jne 0x4022a4
push 0x42bbe0
push dword [esi]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
test eax, eax
jne 0x4022a4
mov dword [ebx + 0x12c], 1
lea esi, [ebx + 0x170]
call fcn.00410bcc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.K9PCUhelper.dll_public:_static_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_CMainApp::GetAppDataAppPath_void_]
pop ecx
push eax
lea ecx, [ebx + 0x124]
mov byte [esp + 0x164c], 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 + 0x1648], 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 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebx + 0x13c], eax
lea eax, [esp + 0x10c]
push eax
call fcn.00402b5d
lea eax, [esp + 0x10c]
mov byte [esp + 0x1648], 0xf
mov dword [ebx + 0x20], eax
add ebx, 0x158
mov dword [0x42bbf0], eax
mov dword [ebx], eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x110]
call dword [sym.imp.K9PCUhelper.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 + 0x1648], 0xd
call fcn.00402c46
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x164c], 0xc
call fcn.004023a4
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 + 0x1640]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1628]
xor ecx, esp
call fcn.00414918
mov esp, ebp
pop ebp
ret