Function at 0x10002d12
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x138
mov eax, dword [0x100184c0]
xor eax, ebp
mov dword [ebp + 0xb4], eax
mov eax, dword [ebp + 0xc0]
push ebx
push esi
mov esi, dword [ebp + 0xc4]
xor ebx, ebx
push edi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ebx
cmp esi, ebx
je 0x10002fd6
push 0x10013860
push eax
call fcn.10001215
pop ecx
pop ecx
test eax, eax
jne 0x10002fd6
lea eax, [ebp - 0x64]
push eax
push 0x10013648
push 1
push ebx
push 0x10013880
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10002fc9
mov eax, esi
mov dword [ebp - 0x60], eax
cmp dword [esi], ebx
jne 0x10002df4
cmp dword [ebp + 0xc8], ebx
jne 0x10002fc9
push 0x40
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
call fcn.1000125a
add esp, 0xc
test eax, eax
jl 0x10002fc1
mov esi, dword [ebp - 0x60]
cmp esi, 0x400
jg 0x10002e5f
push esi
call fcn.10002289
pop ecx
test al, al
je 0x10002e5f
mov eax, esi
call fcn.10007f30
mov eax, esp
jmp 0x10002e68
mov eax, dword [ebp - 0x60]
mov esi, dword [eax + 4]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x68]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0xc8], ebx
je 0x10002e3c
cmp dword [eax], 1
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
jne 0x10002e1f
call dword [ecx + 0x14]
jmp 0x10002e22
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x10002e4f
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x10002e35
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x10002fd8
cmp dword [eax], 1
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
push eax
jne 0x10002e4c
call dword [ecx + 0x18]
jmp 0x10002e4f
call dword [ecx + 0x20]
add dword [ebp - 0x60], 8
mov eax, dword [ebp - 0x60]
cmp dword [eax], ebx
jne 0x10002df1
jmp 0x10002d89
push esi
lea ecx, [ebp - 0x74]
call fcn.100024e5
push 3
push esi
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.1000133c
mov dword [ebp - 0x68], eax
cmp eax, ebx
je 0x10002fc1
push str.CLSID_
mov esi, 0x80
lea eax, [ebp + 0x34]
push esi
push eax
call fcn.10007986
push eax
call fcn.100013b8
push dword [ebp - 0x68]
lea eax, [ebp + 0x34]
push esi
push eax
call fcn.10007ac1
push eax
call fcn.100013b8
push str.Required_Categories
lea eax, [ebp + 0x34]
push esi
push eax
call fcn.10007ac1
push eax
call fcn.100013b8
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x34]
mov edi, SysReAllocString
push eax
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x60], ebx
call fcn.100015a3
test eax, eax
jne 0x10002f26
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
call fcn.1000153a
cmp dword [ebp - 0x78], ebx
jne 0x10002f26
cmp dword [ebp - 0x60], ebx
jne 0x10002f26
lea eax, [ebp + 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.CLSID_
lea eax, [ebp + 0x34]
push esi
push eax
call fcn.10007986
push eax
call fcn.100013b8
push dword [ebp - 0x68]
lea eax, [ebp + 0x34]
push esi
push eax
call fcn.10007ac1
push eax
call fcn.100013b8
push str.Implemented_Categories
lea eax, [ebp + 0x34]
push esi
push eax
call fcn.10007ac1
push eax
call fcn.100013b8
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x34]
push eax
push edi
lea ecx, [ebp - 0x70]
call fcn.100015a3
test eax, eax
jne 0x10002fb1
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.1000153a
cmp esi, ebx
jne 0x10002fb1
cmp dword [ebp - 0x60], ebx
jne 0x10002fb1
lea eax, [ebp + 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x70]
call fcn.1000153a
lea ecx, [ebp - 0x80]
call fcn.1000153a
lea ecx, [ebp - 0x74]
call fcn.10001b3b
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x10002fd6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xb4]
xor ecx, ebp
call fcn.10005c1b
add ebp, 0xb8
leave
ret 0xc