Function at 0x407450
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x427de8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x433a70]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
push str.CScrubber::DeleteRegistryKey
lea ecx, [esp + 0x20]
call fcn.00401130
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
xor eax, eax
push esi
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push str.key:__s___subkey:__s
push eax
call fcn.00401460
mov ebp, dword [esp + 0x44]
add esp, 0x10
push esi
push ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edi, eax
sub eax, 0
je 0x407711
sub eax, 2
je 0x407598
sub eax, 3
je 0x4074f9
lea ecx, [esp + 0x1c]
push str.Error_deleting_registry_key
push ecx
call fcn.00401460
add esp, 8
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], edi
call fcn.004013d0
jmp 0x407711
call fcn.004096a0
cmp eax, 5
je 0x407525
call fcn.004096a0
cmp eax, 6
je 0x407525
call fcn.004096a0
cmp eax, 7
je 0x407525
call fcn.004096a0
cmp eax, 8
jne 0x407711
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407530
sub eax, edx
mov edx, eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407542
sub eax, edi
lea edx, [eax + edx + 2]
push edx
call fcn.00409b95
mov edi, eax
add esp, 4
test edi, edi
je 0x407711
push esi
push ebx
push 0x429e84
push edi
call fcn.00413df0
mov ecx, dword [esp + 0x24]
add esp, 0x10
push 0
push edi
push 4
call fcn.00406c60
push esi
push ebp
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push edi
call fcn.00409b90
add esp, 4
jmp 0x407711
push 0x5c
push esi
call fcn.00414609
push eax
mov byte [eax], 0
call fcn.00413daf
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
mov ebx, eax
lea eax, [esp + 0x3c]
push eax
push 0xf003f
push 0
push esi
push ebp
call edi
test eax, eax
jne 0x4075fb
mov ecx, dword [esp + 0x3c]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4075f1
mov edx, dword [esp + 0x38]
push ebx
push esi
push edx
lea eax, [esp + 0x28]
push str.Deleted_value__s_s_s
push eax
call fcn.00401460
add esp, 0x14
mov ecx, dword [esp + 0x3c]
push ecx
jmp 0x40770b
call fcn.004096a0
cmp eax, 5
je 0x407627
call fcn.004096a0
cmp eax, 6
je 0x407627
call fcn.004096a0
cmp eax, 7
je 0x407627
call fcn.004096a0
cmp eax, 8
jne 0x407711
lea edx, [esp + 0x3c]
push edx
push 0x20019
push 0
push esi
push ebp
call edi
test eax, eax
jne 0x407711
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407651
sub eax, edx
mov ebp, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407663
sub eax, edx
mov edx, eax
mov eax, ebx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407675
sub eax, edi
add eax, edx
lea ecx, [eax + ebp + 2]
push ecx
call fcn.00409b95
mov edi, eax
add esp, 4
test edi, edi
je 0x4076c1
mov edx, dword [esp + 0x38]
push ebx
push esi
push edx
push str._s_s_s
push edi
call fcn.00413df0
mov ecx, dword [esp + 0x28]
add esp, 0x14
push 0
push edi
push 4
call fcn.00406c60
push edi
call fcn.00409b90
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
push 0xf003f
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407711
mov edx, dword [esp + 0x3c]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x407706
mov eax, dword [esp + 0x38]
push ebx
push esi
push eax
lea ecx, [esp + 0x28]
push str.Deleted_value__s_s_s
push ecx
call fcn.00401460
add esp, 0x14
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004012e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc