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

Disassembly:
mov eax, 0x56670090
call fcn.566541a0
sub esp, 0x118
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], eax
call fcn.5666be85
mov esi, eax
cmp esi, ebx
jmp 0x566629f8
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiA]
push 0x5663163c
push edi
mov dword [ebp - 0x1c], 1
call esi
mov ebx, eax
neg ebx
push 0x56631650
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x5666265f
test ebx, ebx
je 0x566626e5
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
mov esi, eax
test esi, esi
jl 0x56662a41
cmp dword [ebp + 0x10], 0
je 0x566626e5
and dword [ebp + 8], 0
push 0x5c
push edi
call fcn.5666079a
test eax, eax
pop ecx
pop ecx
jne 0x56662a05
mov ecx, dword [ebp - 0x10]
push edi
call fcn.56660b29
test eax, eax
je 0x566626ae
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.5666be85
and dword [ebp + 8], 0
test ebx, ebx
je 0x566626dd
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
mov esi, eax
test esi, esi
jl 0x56662a39
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
lea ecx, [ebp + 8]
mov esi, eax
call fcn.56660258
jmp 0x56662874
lea ecx, [ebp + 8]
call fcn.56660258
push 0x56631644
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x5666270b
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], eax
push edi
call fcn.5666be85
mov esi, eax
test esi, esi
jl 0x56662a41
push 0x5663165c
push edi
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x566627e2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x124]
push eax
call fcn.5666be85
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x56662a41
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
mov esi, eax
cmp esi, ebx
jl 0x56662a41
cmp byte [edi], 0x3d
jne 0x56662a0d
cmp dword [ebp + 0x10], ebx
je 0x56662789
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp + 8]
push eax
call fcn.5666be85
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.56660258
cmp esi, ebx
jmp 0x56662876
cmp dword [ebp + 0x14], ebx
jne 0x566627d4
cmp dword [ebp - 0x1c], ebx
je 0x566627d4
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.5666be85
cmp eax, ebx
jne 0x56662a30
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x566627cc
cmp eax, 2
jne 0x56662a30
lea ecx, [ebp + 8]
call fcn.56660258
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
jmp 0x56662626
push 0x5c
push edi
call fcn.5666079a
test eax, eax
pop ecx
pop ecx
jne 0x56662a0d
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x56662881
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.5666be85
test eax, eax
je 0x56662847
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.5666be85
test eax, eax
je 0x56662847
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.5666be85
mov esi, eax
cmp esi, ebx
jne 0x56662a14
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
mov esi, eax
test esi, esi
jl 0x56662a41
cmp byte [edi], 0x3d
jne 0x566629bd
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.5666be85
mov esi, eax
test esi, esi
jl 0x56662a41
jmp 0x566629bd
cmp dword [ebp + 0x14], esi
jne 0x5666289b
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.5666be85
mov ebx, eax
jmp 0x5666289e
push 2
pop ebx
cmp ebx, esi
je 0x566628a9
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x18], esi
jne 0x566628bb
mov eax, 0x104
call fcn.56654200
mov dword [ebp - 0x18], esp
push 0x104
push edi
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_lstrcpynA]
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
mov esi, eax
test esi, esi
jl 0x56662a41
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
mov esi, eax
test esi, esi
jl 0x56662a41
cmp byte [edi], 0x7b
jne 0x56662929
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp - 0x14]
push edi
call fcn.566625f6
mov esi, eax
test esi, esi
jge 0x56662916
cmp dword [ebp + 0x14], 0
je 0x56662a41
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
mov esi, eax
test esi, esi
jl 0x56662a41
cmp ebx, 2
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x14], eax
je 0x566629fa
test ebx, ebx
je 0x56662952
test eax, eax
jne 0x566629fa
push ebx
call fcn.566601a1
pop ecx
mov esi, eax
jmp 0x56662a41
test eax, eax
je 0x5666298b
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.5666be85
test eax, eax
je 0x5666298b
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
call fcn.56660b29
test eax, eax
je 0x566629fa
cmp dword [ebp - 0x1c], 0
je 0x566629fa
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.5666be85
jmp 0x566629fa
lea ecx, [ebp - 0x14]
call fcn.56660258
mov ebx, eax
test ebx, ebx
jne 0x56662a1f
cmp dword [ebp - 0x1c], eax
je 0x566629fa
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and dword [ebp + 8], ebx
test eax, eax
jne 0x56662a30
lea ecx, [ebp + 8]
call fcn.56660258
cmp dword [ebp + 0x10], 0
je 0x566629fa
cmp byte [edi], 0x7b
jne 0x566629fa
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
cmp eax, 1
jne 0x566629fa
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push edi
call fcn.566625f6
mov esi, eax
test esi, esi
jl 0x56662a41
mov ecx, dword [ebp - 0x10]
push edi
call fcn.5666be85
mov esi, eax
test esi, esi
jl 0x56662a41
cmp byte [edi], 0x7d
jne 0x5666262f
jmp 0x56662a41
lea ecx, [ebp + 8]
call fcn.56660258
mov esi, 0x80020009
jmp 0x56662a41
lea ecx, [ebp - 0x14]
call fcn.56660258
push esi
jmp 0x56662a28
lea ecx, [ebp - 0x14]
call fcn.56660258
push ebx
call fcn.566601a1
pop ecx
jmp 0x56662a4b
push eax
call fcn.566601a1
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.56660258
lea ecx, [ebp - 0x14]
call fcn.56660258
mov eax, esi
lea esp, [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10