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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4741ec
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x4ae44c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ebx
mov esi, ecx
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], 0
call fcn.0040bff0
mov ecx, dword [edi]
mov edx, dword [ebp - 0x81c]
mov esi, dword [esi + 0x194]
add esp, 4
push 0x4859cc
push ecx
mov ecx, dword [ebx]
push str.ValueName:_t_
push str.__r_n_t_t_t_t
mov dword [ebp - 0x820], eax
mov eax, dword [edx]
push eax
push str.Key:_t_t_
push str.__r_n_t_t_t_t
push ecx
push str.Class:_t_t_
push str._r_n_t_t_t_t
neg esi
sbb esi, esi
push str.DeleteRegistryItem:_Begin:
push str.sssssssssss
and esi, 0x100
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x34
mov ecx, edi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::GetManager]
push eax
push 0x48a564
lea ecx, [ebp - 0x824]
call dword [0x48256c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x824]
call dword [sym.imp.mfc100u.dll_]
push eax
mov ecx, edi
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
setne byte [ebp - 0x811]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x824]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
mov edx, dword [ebx]
push 0x4859cc
push edx
push str.About_to_open_registry_key_in_class__
push 0x484c3c
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x14
or esi, 0x2001f
cmp byte [ebp - 0x811], 0
je 0x426dab
mov ebx, dword [ebp - 0x81c]
lea eax, [ebp - 0x818]
push eax
push esi
push 0
mov ecx, ebx
call dword [sym.imp.mfc100u.dll_]
mov ecx, dword [ebp - 0x820]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x426dca
mov eax, dword [ebp - 0x820]
lea edx, [ebp - 0x818]
push edx
push esi
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [ebp - 0x81c]
mov esi, eax
test esi, esi
jne 0x426ea0
mov ecx, dword [ebx]
push 0x4859cc
push ecx
cmp byte [ebp - 0x811], al
je 0x426e33
mov edx, dword [edi]
push str.__of_registry_key__
push edx
push str.About_to_delete_value__
push 0x484eac
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x1c
mov ecx, edi
call dword [sym.imp.mfc100u.dll_]
push eax
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x426e27
push str.Registry_key_value_deleted_successfully_r_n
jmp 0x426e78
cmp esi, 2
jne 0x426e8b
push str.Registry_key_value_was_not_found_r_n
jmp 0x426e78
push str.About_to_delete_registry_key__
push 0x484c3c
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x14
mov ecx, ebx
call dword [sym.imp.mfc100u.dll_]
mov edx, dword [ebp - 0x818]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x426e6e
push str.Registry_key_deleted_successfully_r_n
jmp 0x426e78
cmp esi, 2
jne 0x426e8b
push str.Registry_key_was_not_found_r_n
push 0x484d84
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0xc
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x426f20
cmp esi, 2
je 0x426f20
test esi, esi
jle 0x426eb7
and esi, 0xffff
or esi, 0x80070000
test esi, esi
je 0x426f20
push 0x800
lea ecx, [ebp - 0x810]
push 0
push ecx
xor bl, bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x800
lea edx, [ebp - 0x810]
push edx
push 0x400
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x483b88
lea eax, [ebp - 0x810]
push eax
push 0x485024
push esi
push str.Error_while_performing_action_on_registry_key:
push 0x489638
call fcn.00459000
push eax
call fcn.0045a050
add esp, 0x1c
mov al, bl
jmp 0x426f22
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b17c
mov esp, ebp
pop ebp
ret 0xc