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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50ecf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
and dword [esp + 4], 0
push ebx
push esi
push edi
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
and dword [esp + 0x444], 0
mov dword [esp + 0x20], eax
mov eax, ebx
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c4d
cmp word [ebx], 0x7d
je 0x465c4b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [esp + 0x1c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x465834
test edi, edi
je 0x465901
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c3a
cmp dword [ebp + 0x10], 0
je 0x465901
push 0x5c
mov eax, ebx
call fcn.00465527
test eax, eax
pop ecx
jne 0x465cfe
push ebx
call fcn.00466202
test eax, eax
je 0x465880
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.0046622e
test edi, edi
je 0x465901
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c3a
mov ecx, dword [esp + 0x18]
mov edi, ebx
call fcn.004661b9
mov esi, eax
test esi, esi
jl 0x465c3a
cmp word [ebx], 0x7b
jne 0x4658f2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4658f2
mov ecx, dword [esp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push ebx
call fcn.004657a9
mov esi, eax
test esi, esi
jl 0x465c3a
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c3a
cmp word [ebx], 0x7d
jne 0x465803
jmp 0x465c3a
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46592a
and dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c3a
push 0x540334
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x465a22
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x230]
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c3a
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c3a
cmp word [ebx], 0x3d
jne 0x465cfe
cmp dword [ebp + 0x10], edi
je 0x4659bb
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x444], 1
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x234]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x24]
call fcn.00465d66
mov esi, eax
cmp esi, edi
jl 0x465d19
mov byte [esp + 0x444], 0
jmp 0x4658ae
cmp dword [ebp + 0x14], edi
jne 0x465a12
cmp dword [esp + 0x14], edi
je 0x465a12
lea eax, [esp + 0x14]
push eax
push 0x20006
push edi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x465c33
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x465a07
cmp eax, 2
jne 0x465d22
test edi, edi
je 0x465a12
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov edi, ebx
call fcn.004661b9
jmp 0x4658e8
push 0x5c
mov eax, ebx
call fcn.00465527
test eax, eax
pop ecx
jne 0x465d3d
cmp dword [ebp + 0x10], edi
je 0x465b33
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push edi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x28], edi
call esi
cmp eax, edi
jne 0x465a80
xor eax, eax
cmp dword [esp + 0x10], edi
je 0x465a6e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
je 0x465afe
jmp 0x465a84
mov edi, dword [esp + 0x10]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call esi
xor esi, esi
test eax, eax
jne 0x465ab8
cmp edi, esi
je 0x465aac
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
je 0x465afe
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x465d43
xor eax, eax
cmp edi, esi
je 0x465aee
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], edi
jne 0x465d43
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c3a
cmp word [ebx], 0x3d
jne 0x4658ae
push ebx
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
call fcn.00465d66
jmp 0x4658a4
cmp dword [ebp + 0x14], edi
jne 0x465b75
lea eax, [esp + 0x1c]
push eax
push 0x20019
push edi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x465b6f
xor eax, eax
cmp dword [esp + 0x10], edi
je 0x465b67
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jmp 0x465b7d
mov dword [esp + 0x1c], 2
cmp dword [esp + 0x1c], edi
je 0x465b8a
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x30]
push 0x104
push eax
call fcn.004f3e92
push eax
call fcn.00405dd6
mov ecx, dword [esp + 0x2c]
add esp, 0x14
mov eax, ebx
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c3a
mov ecx, dword [esp + 0x18]
mov edi, ebx
call fcn.004661b9
mov esi, eax
test esi, esi
jl 0x465c3a
cmp word [ebx], 0x7b
jne 0x465c0d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x465c0d
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0x18]
push ebx
call fcn.004657a9
mov esi, eax
test esi, esi
jge 0x465bfc
cmp dword [ebp + 0x14], 0
je 0x465c3a
mov ecx, dword [esp + 0x18]
mov eax, ebx
call fcn.00465698
mov esi, eax
test esi, esi
jl 0x465c3a
cmp dword [esp + 0x1c], 2
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x14], eax
je 0x4658f2
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x465c64
cmp dword [esp + 0x20], edi
jne 0x4658f2
call fcn.0046634c
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x465c4b
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x20], edi
je 0x465ca6
push dword [esp + 0x10]
call fcn.00466317
test eax, eax
je 0x465ca6
lea eax, [esp + 0x28]
push eax
call fcn.00466202
test eax, eax
je 0x4658f2
cmp dword [esp + 0x14], edi
je 0x4658f2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0046622e
jmp 0x4658f2
push dword [esp + 0x10]
call fcn.00466317
cmp dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
je 0x465ccf
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [esp + 0x10], edi
jne 0x465d5c
cmp dword [esp + 0x14], edi
je 0x4658f2
cmp dword [esp + 0x1c], edi
jne 0x4658f2
lea eax, [esp + 0x28]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x465c33
jmp 0x4658f2
cmp dword [esp + 0x10], 0
je 0x465d0f
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x465c4d
cmp dword [esp + 0x10], edi
jmp 0x465c3f
call fcn.0046634c
test edi, edi
mov esi, eax
je 0x465c3a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x465c3a
cmp dword [esp + 0x10], edi
jmp 0x465d03
call fcn.0046634c
cmp edi, esi
mov ebx, eax
je 0x465d55
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x465c4d
call fcn.0046634c
jmp 0x465c4d