Function at 0x408160
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x414fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x6c]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x44], ebx
jne 0x408217
push 0x2f
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x408217
push 0x3a
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x408217
push 0x2a
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x408217
push 0x3f
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x408217
push 0x22
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x408217
push 0x3c
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x408217
push 0x3e
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x408217
push 0x7c
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
mov dword [esp + 0x28], 1
je 0x40821b
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x4c]
call sub.MFC42u.DLL_CString::MakeUpper
lea ecx, [esp + 0x1c]
call fcn.00413970
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.00413970
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call fcn.00413970
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 3
call fcn.00413970
mov dword [esp + 0x10], ebx
push 0x5c
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 5
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4087f8
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x24]
push eax
push 0x41b704
push ecx
call sub.MFC42u.DLL_operator_1
mov edx, dword [esp + 0x24]
push ebx
push ebx
push ebx
push ebx
lea ebp, [edi + 0x7c]
push edx
push ebx
push 1
mov ecx, ebp
mov byte [esp + 0x60], 6
call sub.MFC42u.DLL_CListCtrl::InsertItem
push 0x5c
lea ecx, [esp + 0x50]
call sub.MFC42u.DLL_CString::Find
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 7
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 6
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x4c]
inc eax
push eax
push edx
call sub.MFC42u.DLL_CString::Mid
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 8
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 6
call sub.MFC42u.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x4083a3
mov eax, dword [esp + 0x18]
push 0x5c
lea ecx, [esp + 0x1c]
mov esi, dword [eax - 8]
call sub.MFC42u.DLL_CString::ReverseFind
sub esi, eax
lea ecx, [esp + 0x30]
dec esi
push esi
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Right
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 9
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 6
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [edx - 8]
mov esi, dword [ecx - 8]
sub eax, esi
lea edx, [esp + 0x30]
dec eax
lea ecx, [esp + 0x18]
push eax
push ebx
push edx
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 0xa
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 6
call sub.MFC42u.DLL_CString::CString
jmp 0x4083bf
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42u.DLL_CString::operator
push 0x41f9bc
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
push str.HKEY_CLASSES_ROOT
push ecx
call esi
add esp, 8
cmp eax, ebx
je 0x408653
mov edx, dword [esp + 0x1c]
push str.HKCR
push edx
call esi
add esp, 8
cmp eax, ebx
je 0x408653
mov eax, dword [esp + 0x1c]
push str.HKEY_CURRENT_USER
push eax
call esi
add esp, 8
cmp eax, ebx
je 0x4085ba
mov ecx, dword [esp + 0x1c]
push str.HKCU
push ecx
call esi
add esp, 8
cmp eax, ebx
je 0x4085ba
mov edx, dword [esp + 0x1c]
push str.HKEY_LOCAL_MACHINE
push edx
call esi
add esp, 8
cmp eax, ebx
je 0x408521
mov eax, dword [esp + 0x1c]
push str.HKLM
push eax
call esi
add esp, 8
cmp eax, ebx
je 0x408521
mov ecx, dword [esp + 0x1c]
push str.HKEY_USERS
push ecx
call esi
add esp, 8
cmp eax, ebx
je 0x4084f1
mov edx, dword [esp + 0x1c]
push 0x41baf4
push edx
call esi
add esp, 8
cmp eax, ebx
je 0x4084f1
mov eax, dword [esp + 0x1c]
push str.HKEY_CURRENT_CONFIG
push eax
call esi
add esp, 8
cmp eax, ebx
je 0x4084c1
mov ecx, dword [esp + 0x1c]
push str.HKCC
push ecx
call esi
add esp, 8
cmp eax, ebx
je 0x4084c1
push 0x41be48
push 1
push ebx
mov ecx, ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 5
call sub.MFC42u.DLL_CString::CString
jmp 0x40879b
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push 0xf003f
push ebx
push eax
push 0x80000005
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4086e4
mov ecx, dword [esp + 0x2c]
jmp 0x4086e0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push 0xf003f
push ebx
push eax
push 0x80000003
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4086e4
mov ecx, dword [esp + 0x2c]
jmp 0x4086e0
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
push edx
push 0xf003f
push ebx
push eax
push 0x80000002
call esi
cmp eax, ebx
jne 0x40854f
mov ecx, dword [esp + 0x2c]
jmp 0x4086e0
lea edx, [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push str.MACHINE_
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0xd
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 6
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov ecx, edi
call fcn.0040d430
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push 0xf003f
push ebx
push eax
push 0x80000002
mov dword [esp + 0x40], ebx
call esi
cmp eax, ebx
jne 0x4086e4
mov ecx, dword [esp + 0x2c]
jmp 0x4086e0
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
push edx
push 0xf003f
push ebx
push eax
push 0x80000001
call esi
cmp eax, ebx
jne 0x4085e8
mov ecx, dword [esp + 0x2c]
jmp 0x4086e0
lea edx, [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push str.CURRENT_USER_
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0xc
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 6
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov ecx, edi
call fcn.0040d430
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push 0xf003f
push ebx
push eax
push 0x80000001
mov dword [esp + 0x40], ebx
call esi
cmp eax, ebx
jne 0x4086e4
mov ecx, dword [esp + 0x2c]
jmp 0x4086e0
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
push edx
push 0xf003f
push ebx
push eax
push 0x80000000
call esi
cmp eax, ebx
jne 0x40867e
mov ecx, dword [esp + 0x2c]
jmp 0x4086e0
lea edx, [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push str.MACHINESOFTWAREClasses_
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0xb
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 6
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push 1
push ecx
mov ecx, edi
call fcn.0040d430
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push 0xf003f
push ebx
push eax
push 0x80000000
mov dword [esp + 0x40], ebx
call esi
cmp eax, ebx
jne 0x4086e4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x28], ebx
je 0x408749
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00413b2c
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x50], 0xe
call fcn.00413b2c
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x54], 0xf
call fcn.00413b2c
push ecx
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x58], 0x10
call fcn.00413b2c
mov ecx, edi
mov byte [esp + 0x54], 6
call fcn.00406250
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
jne 0x408764
push 0x41b91c
jmp 0x408769
push 0x41b924
push 1
push ebx
mov ecx, ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x408786
push edi
call esi
mov dword [esp + 0x10], ebx
mov edi, ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 5
call sub.MFC42u.DLL_CString::CString
cmp edi, ebx
je 0x40879b
push edi
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4
mov edx, dword [esp + 0x4c]
cmp dword [edx - 8], 0x26
jne 0x408977
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x30]
push eax
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks_
push ecx
call sub.MFC42u.DLL_operator_1
lea edx, [esp + 0x4c]
lea eax, [esp + 0x24]
push edx
push 0x41bf7c
push eax
mov byte [esp + 0x50], 0x11
call sub.MFC42u.DLL_operator_1
mov ecx, dword [esp + 0x24]
push ebx
push ebx
push ebx
push ebx
lea esi, [edi + 0x7c]
push ecx
push ebx
push 1
mov ecx, esi
mov byte [esp + 0x60], 0x12
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x2c]
push edx
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000002
mov dword [esp + 0x40], ebx
call ebp
cmp eax, ebx
jne 0x40887d
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x10], ebp
jmp 0x4088b6
push 1
push str.MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
mov ecx, edi
call fcn.0040d430
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
push 0x80000002
call ebp
cmp eax, ebx
jne 0x4088b2
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x10]
cmp dword [esp + 0x28], ebx
je 0x40891b
push ecx
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.00413b2c
push ecx
mov byte [esp + 0x4c], 0x13
mov ecx, esp
mov dword [esp + 0x34], esp
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellExecuteHooks
call sub.MFC42u.DLL_CString::CString_1
push ecx
mov byte [esp + 0x50], 0x14
mov ecx, esp
mov dword [esp + 0x34], esp
push str.HKEY_LOCAL_MACHINE
call sub.MFC42u.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
mov byte [esp + 0x58], 0x15
call fcn.00413b2c
mov ecx, edi
mov byte [esp + 0x54], 0x12
call fcn.00406250
mov ecx, dword [esp + 0x4c]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
jne 0x408932
push 0x41b91c
jmp 0x408937
push 0x41b924
push 1
push ebx
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, ebx
je 0x408952
push ebp
call esi
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 0x11
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 5
call sub.MFC42u.DLL_CString::CString
mov edi, dword [esp + 0x10]
jmp 0x408794
lea edx, [esp + 0x4c]
lea eax, [esp + 0x30]
push edx
push 0x41b704
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 0x16
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0x44], 5
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x4c]
push ebx
push ebx
push ebx
push ebx
add edi, 0x7c
push ecx
push ebx
push 1
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::InsertItem
push 0x41be48
push 1
push ebx
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
jmp 0x40879b