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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10025c16
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x10030050]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x10030050]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], esi
mov edx, dword [ebp + 0x14]
mov eax, ebx
mov dword [esp + 0x258], esi
mov dword [esp + 0x30], edx
call fcn.10006360
mov edi, eax
cmp edi, esi
jl 0x10006aae
cmp byte [ebx], 0x7d
je 0x10006aac
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push ebx
mov dword [esp + 0x1c], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
add esi, 1
call edi
test eax, eax
je 0x10006543
test esi, esi
je 0x10006646
mov ecx, dword [esp + 0x20]
mov eax, ebx
call fcn.10006360
mov edi, eax
test edi, edi
jl 0x10006a9d
cmp dword [ebp + 0x10], 0
je 0x10006646
mov cl, byte [ebx]
test cl, cl
mov dword [esp + 0x1c], 0
mov eax, ebx
je 0x1000658e
cmp cl, 0x5c
je 0x10006586
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10006572
jmp 0x1000658e
test eax, eax
jne 0x10006a34
mov edi, 0x1002bca4
mov eax, dword [edi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x100065c6
add edi, 4
cmp edi, 0x1002bcd4
jl 0x10006593
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
push ebx
lea ecx, [esp + 0x20]
call fcn.10007250
mov dword [esp + 0x1c], 0
test esi, esi
je 0x10006646
mov esi, dword [esp + 0x20]
mov eax, ebx
mov ecx, esi
call fcn.10006360
mov edi, eax
test edi, edi
jl 0x10006a4d
mov edi, ebx
mov ecx, esi
call fcn.100071a0
mov edi, eax
test edi, edi
jl 0x10006a4d
cmp byte [ebx], 0x7b
jne 0x100069c7
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x100069c7
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
push 0
push edx
push eax
push ebx
mov ecx, esi
call fcn.10006490
mov edi, eax
test edi, edi
jl 0x10006a9d
mov eax, ebx
mov ecx, esi
call fcn.10006360
mov edi, eax
test edi, edi
jl 0x10006a9d
jmp 0x100069c7
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000666f
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, ebx
call fcn.10006360
mov edi, eax
test edi, edi
jl 0x10006a9d
push 0x10028f88
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10006780
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x13c]
call fcn.10006360
mov edi, eax
test edi, edi
jl 0x10006a9d
mov ecx, dword [esp + 0x20]
mov eax, ebx
call fcn.10006360
mov edi, eax
test edi, edi
jl 0x10006a9d
cmp byte [ebx], 0x3d
jne 0x10006a3d
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10006705
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.10006b30
mov edi, eax
cmp edi, esi
mov dword [esp + 0x14], esi
jl 0x10006a53
mov byte [esp + 0x258], 0
jmp 0x100065f4
cmp dword [ebp + 0x14], esi
jne 0x10006766
cmp dword [esp + 0x14], esi
je 0x10006766
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push 0x20006
push esi
push esi
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x10006a8d
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x13c]
push ecx
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1000675b
cmp eax, 2
jne 0x10006a8d
test esi, esi
je 0x10006766
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov edi, ebx
call fcn.100071a0
mov edi, eax
test edi, edi
jl 0x10006a9d
jmp 0x100069c7
mov cl, byte [ebx]
test cl, cl
mov eax, ebx
je 0x100067a4
cmp cl, 0x5c
je 0x1000679c
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10006788
jmp 0x100067a4
test eax, eax
jne 0x10006a3d
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x10006881
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push edi
push ebx
push eax
mov dword [esp + 0x28], edi
call esi
cmp eax, edi
jne 0x100067ed
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, edi
je 0x100067e1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x10006842
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push ebx
push eax
mov dword [esp + 0x28], 0
call esi
test eax, eax
jne 0x10006828
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1000681c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x10006842
mov edx, dword [esp + 0x24]
push edx
mov edx, ebx
lea esi, [esp + 0x1c]
call fcn.10006ae0
mov edi, eax
test edi, edi
jne 0x10006a67
mov esi, dword [esp + 0x20]
mov eax, ebx
mov ecx, esi
call fcn.10006360
mov edi, eax
test edi, edi
jl 0x10006a9d
cmp byte [ebx], 0x3d
jne 0x100065f4
push 0
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
mov edx, esi
call fcn.10006b30
mov edi, eax
test edi, edi
jl 0x10006a9d
jmp 0x100065f4
cmp dword [ebp + 0x14], edi
jne 0x10006983
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push edi
push ebx
push edx
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x100068c2
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, edi
je 0x100068ba
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x100068d1
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x3c]
push 0x104
push edx
call fcn.100129dd
push eax
call fcn.10005640
mov esi, dword [esp + 0x34]
add esp, 0x14
mov eax, ebx
mov ecx, esi
call fcn.10006360
mov edi, eax
test edi, edi
jl 0x10006a9d
mov edi, ebx
mov ecx, esi
call fcn.100071a0
mov edi, eax
test edi, edi
jl 0x10006a9d
cmp byte [ebx], 0x7b
jne 0x1000695d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x1000695d
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push 0
push ecx
push ebx
mov ecx, esi
call fcn.10006490
mov edi, eax
test edi, edi
jge 0x1000694a
cmp dword [ebp + 0x14], 0
je 0x10006a9d
mov eax, ebx
mov ecx, esi
call fcn.10006360
mov edi, eax
test edi, edi
jl 0x10006a9d
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x14], eax
je 0x100069c7
test ecx, ecx
je 0x10006990
test eax, eax
jne 0x100069c7
mov eax, ecx
call fcn.100073e0
mov edi, eax
jmp 0x10006a9d
mov dword [esp + 0x1c], 2
jmp 0x100068ca
test eax, eax
mov esi, dword [esp + 0x18]
je 0x100069d5
mov ecx, esi
call fcn.100073a0
test eax, eax
je 0x100069d5
lea ebx, [esp + 0x34]
call fcn.10007210
test eax, eax
je 0x100069c3
cmp dword [esp + 0x14], 0
je 0x100069c3
mov edx, ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.10007250
mov ebx, dword [esp + 0x28]
cmp byte [ebx], 0x7d
jne 0x10006510
jmp 0x10006a9d
mov ecx, esi
call fcn.100073a0
test esi, esi
mov dword [esp + 0x1c], eax
je 0x100069ff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 0
jne 0x10006a79
cmp dword [esp + 0x14], 0
je 0x100069c7
cmp dword [esp + 0x1c], 0
jne 0x100069c7
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
mov dword [esp + 0x14], 0
jne 0x10006a8d
lea esi, [esp + 0x14]
call fcn.100083f0
jmp 0x100069c7
lea esi, [esp + 0x1c]
call fcn.100083f0
lea esi, [esp + 0x18]
call fcn.100083f0
mov eax, 0x80020009
jmp 0x10006aae
lea esi, [esp + 0x1c]
jmp 0x10006a98
lea esi, [esp + 0x14]
call fcn.100083f0
lea esi, [esp + 0x18]
call fcn.100083f0
jmp 0x10006aac
lea esi, [esp + 0x18]
call fcn.100083f0
mov eax, edi
call fcn.100073e0
jmp 0x10006aae
lea esi, [esp + 0x18]
call fcn.100083f0
mov eax, dword [esp + 0x2c]
call fcn.100073e0
jmp 0x10006aae
call fcn.100073e0
mov edi, eax
lea esi, [esp + 0x14]
call fcn.100083f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10006aac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.10012810
mov esp, ebp
pop ebp
ret 0x10