Function at 0x100013c6
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
push esi
mov esi, eax
lea eax, [ebp - 4]
call fcn.10004bd6
xor ebx, ebx
cmp esi, ebx
je 0x10001585
mov ecx, dword [ebp + 8]
mov eax, 0x10011340
call fcn.10001307
test eax, eax
jne 0x10001585
lea eax, [ebp - 4]
push eax
push 0x1001288c
push 1
push ebx
push 0x10011330
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10001585
cmp dword [esi], ebx
mov eax, esi
push edi
mov dword [ebp - 8], eax
jne 0x10001598
cmp dword [ebp + 0xc], ebx
jne 0x10001584
push 0x40
lea eax, [ebp - 0x198]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x10016a2c]
push str.CLSID_
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x118]
push eax
call esi
push str.Required_Categories
lea eax, [ebp - 0x118]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x118]
push eax
mov edi, SysReAllocString
push edi
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
call fcn.100016ac
test eax, eax
jne 0x100014e5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], eax
je 0x100014cd
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], ebx
cmp dword [ebp - 8], ebx
jne 0x100014e5
cmp dword [ebp + 0xc], ebx
jne 0x100014e5
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x118]
push eax
call esi
push str.Implemented_Categories
lea eax, [ebp - 0x118]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x118]
push eax
push edi
lea eax, [ebp + 8]
call fcn.100016ac
test eax, eax
jne 0x1000156f
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp + 8], ebx
mov esi, eax
je 0x10001558
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], ebx
cmp esi, ebx
jne 0x1000156f
cmp dword [ebp + 0xc], ebx
jne 0x1000156f
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 8], ebx
je 0x1000157d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
lea eax, [ebp - 4]
call fcn.100035c0
pop esi
mov eax, ebx
pop ebx
leave
ret 8
mov eax, dword [ebp - 8]
cmp dword [ebp + 0xc], ebx
mov esi, dword [eax + 4]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
je 0x100015cb
cmp dword [eax], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
jne 0x100015c0
call dword [ecx + 0x14]
jmp 0x100015c3
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x100015de
mov ebx, eax
jmp 0x10001584
cmp dword [eax], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
jne 0x100015db
call dword [ecx + 0x18]
jmp 0x100015de
call dword [ecx + 0x20]
add dword [ebp - 8], 8
mov eax, dword [ebp - 8]
cmp dword [eax], ebx
jne 0x10001595
jmp 0x10001427