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

Disassembly:
mov eax, 0x487a12
call fcn.0046cde8
sub esp, 0x424
mov eax, dword [0x492bc0]
and dword [ebp - 0x428], 0
push ebx
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x424], ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x430], eax
jmp 0x46597d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x407108
push edi
mov dword [ebp - 0x42c], 1
call esi
mov ebx, eax
neg ebx
push 0x40712c
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x465564
test ebx, ebx
je 0x4655f6
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00463184
mov esi, eax
test esi, esi
jl 0x4659d7
cmp dword [ebp + 0x10], 0
je 0x4655f6
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.00463114
test eax, eax
pop ecx
pop ecx
jne 0x465995
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00463288
test eax, eax
je 0x4655b9
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0046394b
and dword [ebp + 8], 0
test ebx, ebx
je 0x4655ee
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00463184
mov esi, eax
test esi, esi
jl 0x4659cf
mov ecx, dword [ebp - 0x424]
push edi
call fcn.004632e9
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00462e3b
jmp 0x4657b8
lea ecx, [ebp + 8]
call fcn.00462e3b
push 0x407118
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x465622
mov ecx, dword [ebp - 0x424]
and dword [ebp - 0x42c], eax
push edi
call fcn.00463184
mov esi, eax
test esi, esi
jl 0x4659d7
push 0x407144
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x465715
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
call fcn.00463184
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x4659d7
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00463184
mov esi, eax
cmp esi, ebx
jl 0x4659d7
cmp word [edi], 0x3d
jne 0x46599d
cmp dword [ebp + 0x10], ebx
je 0x4656b2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x424]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.004651ed
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
lea ecx, [ebp + 8]
jl 0x4659d2
mov byte [ebp - 4], bl
jmp 0x46593d
cmp dword [ebp + 0x14], ebx
jne 0x465700
cmp dword [ebp - 0x42c], ebx
je 0x465700
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.00462ea0
cmp eax, ebx
jne 0x4659c6
lea eax, [ebp - 0x420]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4656f8
cmp eax, 2
jne 0x4659c6
lea ecx, [ebp + 8]
call fcn.00462e3b
mov ecx, dword [ebp - 0x424]
push edi
call fcn.004632e9
mov esi, eax
cmp esi, ebx
jmp 0x465987
push 0x5c
push edi
call fcn.00463114
test eax, eax
pop ecx
pop ecx
jne 0x46599d
cmp dword [ebp + 0x10], eax
je 0x4657c5
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.00462ea0
test eax, eax
je 0x465781
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.00462ea0
test eax, eax
je 0x465781
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.00462e52
mov esi, eax
cmp esi, ebx
jne 0x4659a4
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00463184
mov esi, eax
test esi, esi
jl 0x4659d7
cmp word [edi], 0x3d
jne 0x465942
mov ecx, dword [ebp - 0x424]
push edi
push 0
lea eax, [ebp - 0x428]
push eax
call fcn.004651ed
mov esi, eax
test esi, esi
jl 0x4659d7
jmp 0x465942
cmp dword [ebp + 0x14], 0
jne 0x4657e3
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.00462ea0
mov ebx, eax
jmp 0x4657e6
push 2
pop ebx
test ebx, ebx
je 0x4657f1
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00463184
mov esi, eax
test esi, esi
jl 0x4659d7
mov ecx, dword [ebp - 0x424]
push edi
call fcn.004632e9
mov esi, eax
test esi, esi
jl 0x4659d7
cmp word [edi], 0x7b
jne 0x46587f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x46587f
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x424]
push 0
push dword [ebp - 0x428]
push edi
call fcn.004654f4
mov esi, eax
test esi, esi
jge 0x465869
cmp dword [ebp + 0x14], 0
je 0x4659d7
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00463184
mov esi, eax
test esi, esi
jl 0x4659d7
cmp ebx, 2
mov eax, dword [ebp - 0x430]
mov dword [ebp + 0x14], eax
je 0x465989
test ebx, ebx
je 0x4658ab
test eax, eax
jne 0x465989
push ebx
call fcn.00462d86
pop ecx
mov esi, eax
jmp 0x4659d7
test eax, eax
je 0x465902
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
call fcn.004632b4
test eax, eax
je 0x465902
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push eax
call fcn.00463288
test eax, eax
je 0x465989
cmp dword [ebp - 0x42c], 0
je 0x465989
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.0046394b
jmp 0x465989
lea ecx, [ebp - 0x428]
call fcn.00462e3b
mov ebx, eax
test ebx, ebx
jne 0x4659b2
cmp dword [ebp - 0x42c], eax
je 0x465989
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp + 8], ebx
test eax, eax
jne 0x4659c6
lea ecx, [ebp + 8]
call fcn.00462e3b
cmp dword [ebp + 0x10], 0
je 0x465989
cmp word [edi], 0x7b
jne 0x465989
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x465989
mov ecx, dword [ebp - 0x424]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x428]
push edi
call fcn.004654f4
mov esi, eax
test esi, esi
jl 0x4659d7
mov ecx, dword [ebp - 0x424]
push edi
call fcn.00463184
mov esi, eax
test esi, esi
jl 0x4659d7
cmp word [edi], 0x7d
jne 0x465531
jmp 0x4659d7
lea ecx, [ebp + 8]
call fcn.00462e3b
mov esi, 0x80020009
jmp 0x4659d7
lea ecx, [ebp - 0x428]
call fcn.00462e3b
push esi
jmp 0x4659be
lea ecx, [ebp - 0x428]
call fcn.00462e3b
push ebx
call fcn.00462d86
pop ecx
jmp 0x4659e4
push eax
call fcn.00462d86
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00462e3b
lea ecx, [ebp - 0x428]
call fcn.00462e3b
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0046cd1e
leave
ret 0x10