Function at 0x40f290
Capabilities:
Check if file exists
Delete file
Get common file path
Persist via app paths registry key
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x432aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x43f090]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43f090]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths360CleanSpeedup.exe
mov dword [esp + 0x2b8], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40f401
mov ebp, dword [esp + 0x18]
lea esi, [esp + 0x14]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
call fcn.00402d20
push 0x14
push str.360CleanSpeedup.exe
mov edx, esi
push edx
mov byte [esp + 0x2a4], 1
call fcn.00404850
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x40f35e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [esp + 0x20]
call fcn.00402d20
lea edi, [esp + 0x14]
mov byte [esp + 0x298], 2
call fcn.00403de0
mov byte [esp + 0x298], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f3a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x40f3cb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push str.Path
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp ebp, ebx
je 0x40f3da
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebx
add esi, 0xfffffff0
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x298], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40f401
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40f533
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, ebx
je 0x40f441
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
cmp eax, ebx
jne 0x40f533
lea esi, [esp + 0x14]
call fcn.00402d20
push 0xe
push str.360CSTray.exe
mov eax, esi
push eax
mov byte [esp + 0x2a4], 3
call fcn.00404850
mov edx, dword [0x4418c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4418c4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x298], 4
mov ecx, dword [esp + 0x14]
push ecx
push str.__s___start
lea edi, [esp + 0x20]
call fcn.00403fc0
mov esi, dword [esp + 0x20]
xor eax, eax
add esp, 8
cmp esi, ebx
setne al
cmp eax, ebx
je 0x40f4d5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebx
push str.360CSTray
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp ebp, ebx
je 0x40f4e4
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebx
add esi, 0xfffffff0
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x298], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f50c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x298], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f533
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall360CleanMaster
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40f7bd
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, ebx
je 0x40f573
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
cmp eax, ebx
jne 0x40f7bd
lea esi, [esp + 0x1c]
call fcn.00402d20
push 0x14
push str.360CleanSpeedup.exe
mov eax, esi
push eax
mov byte [esp + 0x2a4], 5
call fcn.00404850
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x40f5d6
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push ebx
push str.DisplayIcon
push ebp
call esi
jmp 0x40f5dc
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4388c0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push 0x4388c0
push 1
push ebx
push str.DisplayName
push ebp
call esi
push 0x206
lea ecx, [esp + 0x8a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x90], ax
call fcn.00420660
add esp, 0xc
push 0x104
lea edx, [esp + 0x88]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4e
lea ecx, [esp + 0x3a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x40], ax
call fcn.00420660
lea edx, [esp + 0x40]
push edx
lea edi, [esp + 0x94]
call fcn.00404120
add esp, 0x10
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x38]
push edx
push 1
push ebx
push str.DisplayVersion
push ebp
call esi
lea esi, [esp + 0x20]
call fcn.00402d20
lea edi, [esp + 0x1c]
mov byte [esp + 0x298], 6
call fcn.00403de0
mov byte [esp + 0x298], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x40f6e5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push str.InstallLocation
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x439590
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push 0x439590
push 1
push ebx
push str.Publisher
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea esi, [esp + 0x20]
call fcn.00402d20
lea edi, [esp + 0x1c]
mov byte [esp + 0x298], 7
call fcn.00403de0
mov byte [esp + 0x298], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f74b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xe
push str.Uninstall.exe
lea ecx, [esp + 0x24]
push ecx
call fcn.00404850
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp esi, ebx
setne al
cmp eax, ebx
je 0x40f787
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push ebx
push str.UninstallString
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp ebp, ebx
je 0x40f796
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x28], ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x298], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4418c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4418c4
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov bl, 8
lea esi, [esp + 0x20]
mov byte [esp + 0x298], bl
call fcn.00402d20
lea edi, [esp + 0x1c]
mov byte [esp + 0x298], 9
call fcn.00403de0
mov byte [esp + 0x298], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f81e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x1c]
call fcn.00403d40
push 0x14
push str.360CleanSpeedup.exe
mov ecx, ebx
push ecx
call fcn.00404850
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x8e]
push eax
mov word [esp + 0x90], dx
call fcn.00420660
add esp, 0xc
push 0
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edx, dword [0x4418c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4418c4
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x84]
mov byte [esp + 0x298], 0xa
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40f893
sub eax, ecx
sar eax, 1
lea ecx, [esp + 0x84]
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.004029a0
lea ebx, [esp + 0x14]
call fcn.00403d40
push 0x17
push 0x4395f4
mov edx, ebx
push edx
call fcn.00404850
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f8fa
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push ebp
push 0x1005
push SysStringLen
call edi
jmp 0x40f900
mov edi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, dword [0x4418c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4418c4
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x84]
mov byte [esp + 0x298], 0xb
lea edx, [eax + 2]
jmp 0x40f930
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f930
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x84]
mov ebx, eax
push ecx
lea eax, [esp + 0x28]
call fcn.004029a0
lea ebx, [esp + 0x24]
call fcn.00403d40
push 0xc
push 0x439624
mov edx, ebx
push edx
call fcn.00404850
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0040fd10
lea eax, [esi - 0x10]
mov byte [esp + 0x298], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f99c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x298], 8
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9c1
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x8e]
push ecx
mov word [esp + 0x90], ax
call fcn.00420660
add esp, 0xc
push 0
push 0x17
lea edx, [esp + 0x8c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x4418c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4418c4
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x84]
mov byte [esp + 0x298], 0xc
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40fa20
sub eax, ecx
sar eax, 1
lea ecx, [esp + 0x84]
mov ebx, eax
push ecx
lea eax, [esp + 0x28]
call fcn.004029a0
lea ebx, [esp + 0x24]
call fcn.00403d40
push 0x10
push 0x439640
mov edx, ebx
push edx
call fcn.00404850
mov ebp, dword [esp + 0x24]
push ebp
call fcn.004030b0
add esp, 4
push 0
push ebp
push 0x1005
push reloc.OLEAUT32.dll_SysReAllocString
call edi
add ebp, 0xfffffff0
mov eax, ebp
call fcn.004049c0
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x17
push 0x4395f4
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x2a4], 0xd
call fcn.00404850
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fac5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
push 0x1005
push SysStringLen
call edi
mov eax, ebp
call fcn.004049c0
add eax, 0x10
mov dword [esp + 0x18], eax
push 0xc
push 0x439624
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x2a4], 0xe
call fcn.00404850
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push esi
call fcn.0040fd10
push 0
push esi
push 0x1005
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea esi, [esp + 0x30]
call fcn.00402d20
mov ebx, esi
mov byte [esp + 0x298], 0xf
call fcn.00403d40
push 0xe
push str.Uninstall.exe
mov edx, esi
push edx
call fcn.00404850
lea eax, [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.00403de0
push 0x19
push 0x439664
mov eax, edi
push eax
call fcn.00404850
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb75
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push 0x1005
push SysStringLen
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, ebp
call fcn.004049c0
add eax, 0x10
mov dword [esp + 0x20], eax
push 0xe
push 0x439698
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x2a4], 0x10
call fcn.00404850
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x30]
push esi
mov ecx, ebx
call fcn.0040fd10
push 0
push esi
push 0x1005
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [esi - 0x10]
mov byte [esp + 0x298], 0xf
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fbe3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x298], 0xe
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc07
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov byte [esp + 0x298], 0xd
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x298], 0xc
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fc53
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [esp + 0x298], 8
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40fc75
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push 0x74
push 0x100
call esi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push eax
call edi
push 0
push 0x74
push 0x101
call esi
push eax
call edi
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov byte [esp + 0x298], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fcd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40fce8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0041e5bb
add esp, 0x288
ret