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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [ebp + 0x14]
and dword [ebp - 8], 0
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
call fcn.10009299
mov esi, eax
test esi, esi
jl 0x10009b0b
push ebx
jmp 0x10009ad9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [ebp - 0x10], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x100096f9
test ebx, ebx
je 0x100097a3
mov ecx, dword [ebp - 4]
push edi
call fcn.10009299
mov esi, eax
test esi, esi
jl 0x10009b0a
cmp dword [ebp + 0x10], 0
je 0x100097a3
and dword [ebp + 8], 0
mov cl, byte [edi]
mov eax, edi
jmp 0x1000972e
cmp cl, 0x5c
je 0x10009734
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10009720
jmp 0x1000973c
test eax, eax
jne 0x10009ae4
mov esi, 0x1000b364
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000976c
add esi, 4
cmp esi, 0x1000b394
jl 0x10009741
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.10001491
and dword [ebp + 8], 0
test ebx, ebx
je 0x1000979b
mov ecx, dword [ebp - 4]
push edi
call fcn.10009299
mov esi, eax
test esi, esi
jl 0x10009b02
mov ecx, dword [ebp - 4]
push edi
call fcn.10009b63
lea ecx, [ebp + 8]
mov esi, eax
call fcn.10001233
jmp 0x1000993e
lea ecx, [ebp + 8]
call fcn.10001233
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100097c9
mov ecx, dword [ebp - 4]
and dword [ebp - 0x10], eax
push edi
call fcn.10009299
mov esi, eax
test esi, esi
jl 0x10009b0a
push 0x1000b454
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100098a6
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x21c]
push eax
call fcn.10009299
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x10009b0a
mov ecx, dword [ebp - 4]
push edi
call fcn.10009299
mov esi, eax
cmp esi, ebx
jl 0x10009b0a
cmp byte [edi], 0x3d
jne 0x10009aec
cmp dword [ebp + 0x10], ebx
je 0x10009849
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10009bb3
lea ecx, [ebp - 0xc]
mov esi, eax
mov dword [ebp - 0xc], ebx
call fcn.10001233
cmp esi, ebx
jmp 0x10009940
cmp dword [ebp + 0x14], ebx
jne 0x10009894
cmp dword [ebp - 0x10], ebx
je 0x10009894
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.10001298
cmp eax, ebx
jne 0x10009af9
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x1000988c
cmp eax, 2
jne 0x10009af9
lea ecx, [ebp + 8]
call fcn.10001233
mov ecx, dword [ebp - 4]
push edi
call fcn.10009b63
mov esi, eax
cmp esi, ebx
jmp 0x10009ad7
mov cl, byte [edi]
mov eax, edi
jmp 0x100098ba
cmp cl, 0x5c
je 0x100098c0
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x100098ac
jmp 0x100098c8
cmp eax, esi
jne 0x10009aec
cmp dword [ebp + 0x10], esi
je 0x1000994b
mov ebx, 0x2001f
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.10001298
test eax, eax
je 0x10009911
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.10001298
test eax, eax
je 0x10009911
push esi
push esi
push ebx
push esi
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.1000124a
cmp eax, esi
jne 0x10009af3
mov ecx, dword [ebp - 4]
push edi
call fcn.10009299
mov esi, eax
test esi, esi
jl 0x10009b0a
cmp byte [edi], 0x3d
jne 0x10009a9c
mov ecx, dword [ebp - 4]
push edi
push 0
lea eax, [ebp - 8]
push eax
call fcn.10009bb3
mov esi, eax
test esi, esi
jl 0x10009b0a
jmp 0x10009a9c
cmp dword [ebp + 0x14], esi
jne 0x10009966
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.10001298
mov dword [ebp + 8], eax
jmp 0x1000996d
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x10009979
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [ebp - 4]
push edi
mov ecx, ebx
call fcn.10009299
mov esi, eax
test esi, esi
jl 0x10009b0a
push edi
mov ecx, ebx
call fcn.10009b63
mov esi, eax
test esi, esi
jl 0x10009b0a
cmp byte [edi], 0x7b
jne 0x100099ea
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 8]
push edi
call fcn.10009698
mov esi, eax
test esi, esi
jge 0x100099d8
cmp dword [ebp + 0x14], 0
je 0x10009b0a
push edi
mov ecx, ebx
call fcn.10009299
mov esi, eax
test esi, esi
jl 0x10009b0a
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x14], eax
je 0x10009ad9
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x10009a19
cmp eax, ebx
jne 0x10009ad9
push dword [ebp + 8]
call fcn.10009b1b
pop ecx
mov esi, eax
jmp 0x10009b0a
cmp dword [ebp - 0x14], ebx
je 0x10009a6b
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.10009b2e
test eax, eax
je 0x10009a6b
mov ebx, 0x1000b364
push dword [ebx]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10009ad9
add ebx, 4
cmp ebx, 0x1000b394
jl 0x10009a32
cmp dword [ebp - 0x10], 0
je 0x10009ad9
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 8]
call fcn.10001491
jmp 0x10009ad9
lea ecx, [ebp - 8]
call fcn.10001233
cmp eax, ebx
jne 0x10009af3
cmp dword [ebp - 0x10], ebx
je 0x10009ad9
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and dword [ebp + 8], 0
test eax, eax
jne 0x10009af9
lea ecx, [ebp + 8]
call fcn.10001233
cmp dword [ebp + 0x10], 0
je 0x10009ad9
cmp byte [edi], 0x7b
jne 0x10009ad9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x10009ad9
mov ecx, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
push edi
call fcn.10009698
mov esi, eax
test esi, esi
jl 0x10009b0a
mov ecx, dword [ebp - 4]
push edi
call fcn.10009299
mov esi, eax
test esi, esi
jl 0x10009b0a
cmp byte [edi], 0x7d
jne 0x100096c9
jmp 0x10009b0a
lea ecx, [ebp + 8]
call fcn.10001233
mov esi, 0x80020009
jmp 0x10009b0a
push eax
jmp 0x10009a0c
push eax
call fcn.10009b1b
pop ecx
mov esi, eax
lea ecx, [ebp + 8]
call fcn.10001233
pop ebx
lea ecx, [ebp - 8]
call fcn.10001233
pop edi
mov eax, esi
pop esi
leave
ret 0x10