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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
call fcn.100028f6
mov esi, eax
cmp esi, ebx
jge 0x1000308e
cmp dword [ebp - 4], ebx
jmp 0x1000309b
push dword [0x10006824]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
call esi
push dword [0x1000681c]
mov ebx, eax
neg ebx
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x10002c89
test ebx, ebx
je 0x10002d48
mov ecx, dword [ebp - 8]
push edi
call fcn.100028f6
mov esi, eax
test esi, esi
jl 0x10003097
cmp dword [ebp + 0x10], 0
je 0x10002d48
and dword [ebp + 8], 0
mov cl, byte [edi]
mov eax, edi
jmp 0x10002cc2
cmp cl, 0x5c
je 0x100030b5
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10002cb0
mov esi, section..data
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10002cf6
add esi, 4
cmp esi, str.TYPELIB
jl 0x10002ccb
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.10003136
and dword [ebp + 8], 0
test ebx, ebx
je 0x10002d39
mov ecx, dword [ebp - 8]
push edi
call fcn.100028f6
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x100030cd
mov ecx, dword [ebp - 8]
push edi
call fcn.10003505
mov esi, eax
cmp esi, ebx
jl 0x100030cd
cmp dword [ebp + 8], ebx
je 0x10003051
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003051
cmp dword [ebp + 8], 0
je 0x10002d48
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x10006820]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10002d6f
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], eax
push edi
call fcn.100028f6
mov esi, eax
test esi, esi
jl 0x10003097
push dword [0x10006818]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10002e13
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x11c]
push eax
call fcn.100028f6
mov esi, eax
test esi, esi
jl 0x10003097
mov ecx, dword [ebp - 8]
push edi
call fcn.100028f6
mov esi, eax
test esi, esi
jl 0x10003097
cmp byte [edi], 0x3d
jne 0x100030dd
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10002dec
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x11c]
push edi
push eax
lea eax, [ebp + 8]
push eax
call fcn.100031fa
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x10002c56
jmp 0x10003051
cmp dword [ebp + 0x14], ebx
jne 0x10002e01
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 8]
push edi
call fcn.10003505
mov esi, eax
cmp esi, ebx
jmp 0x1000308c
mov cl, byte [edi]
mov eax, edi
jmp 0x10002e2b
cmp cl, 0x5c
je 0x100030dd
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x10002e19
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x10002ed5
mov esi, 0xf003f
lea ecx, [ebp - 4]
push esi
push edi
push dword [ebp + 0xc]
call fcn.100030f8
test eax, eax
je 0x10002ea5
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.100030f8
test eax, eax
je 0x10002ea5
lea eax, [ebp - 0x18]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x100030e3
xor eax, eax
cmp dword [ebp - 4], ebx
je 0x10002e97
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 4], ecx
jne 0x100030e3
mov ecx, dword [ebp - 8]
push edi
call fcn.100028f6
mov esi, eax
test esi, esi
jl 0x10003097
cmp byte [edi], 0x3d
jne 0x10003051
mov ecx, dword [ebp - 8]
push edi
lea eax, [ebp - 4]
push 0
push eax
call fcn.100031fa
jmp 0x1000304b
cmp dword [ebp + 0x14], ebx
jne 0x10002ef6
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.100030f8
test eax, eax
je 0x10002ef6
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0xc], ebx
jne 0x10002f08
mov eax, 0x104
call fcn.100041d0
mov dword [ebp - 0xc], esp
push 0x104
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x14], ebx
jne 0x10002f3e
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.1000345b
test eax, eax
jne 0x10002f3e
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.10003490
test eax, eax
je 0x10003009
mov ecx, dword [ebp - 8]
push edi
call fcn.100028f6
mov esi, eax
test esi, esi
jl 0x10003097
mov ecx, dword [ebp - 8]
push edi
call fcn.10003505
mov esi, eax
test esi, esi
jl 0x10003097
cmp byte [edi], 0x7b
jne 0x10002fb1
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push 0
push dword [ebp - 4]
push edi
call fcn.10002c1f
mov esi, eax
test esi, esi
jl 0x10003097
cmp dword [ebp + 0x14], 0
je 0x10002fbb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push edi
mov dword [ebp + 0x14], eax
call fcn.100028f6
mov esi, eax
test esi, esi
jl 0x10003097
mov ecx, dword [ebp - 8]
push edi
call fcn.10003505
jmp 0x10003088
cmp dword [ebp + 0x14], 0
jne 0x1000308e
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.1000345b
test eax, eax
je 0x10002ffd
mov esi, section..data
push dword [esi]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000307f
add esi, 4
cmp esi, str.TYPELIB
jl 0x10002fcf
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.10003136
jmp 0x1000307f
cmp dword [ebp + 0x14], 0
jne 0x1000308e
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x10003022
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x100030f1
cmp dword [ebp - 0x10], ebx
je 0x10003033
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 8]
push edi
call fcn.100028f6
mov esi, eax
test esi, esi
jl 0x10003097
mov ecx, dword [ebp - 8]
push edi
call fcn.10003505
mov esi, eax
test esi, esi
jl 0x10003097
cmp dword [ebp + 0x10], 0
je 0x1000308e
cmp byte [edi], 0x7b
jne 0x1000308e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x1000308e
push 0
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call fcn.10002c1f
mov esi, eax
test esi, esi
jl 0x10003097
mov ecx, dword [ebp - 8]
push edi
call fcn.100028f6
mov esi, eax
test esi, esi
jl 0x10003097
cmp byte [edi], 0x7d
jne 0x10002c5e
cmp dword [ebp - 4], 0
je 0x100030a6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x128]
pop edi
pop esi
pop ebx
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x100030c8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 4], esi
jmp 0x100030e6
cmp dword [ebp + 8], ebx
je 0x10003097
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10003097
cmp dword [ebp - 4], 0
jmp 0x100030e6
cmp dword [ebp - 4], ebx
je 0x100030f1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x100030a8