Function at 0x10005302
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
xor ebx, ebx
mov esi, eax
cmp esi, ebx
push edi
mov dword [ebp - 4], ebx
je 0x1000551b
mov ecx, dword [ebp + 8]
mov eax, 0x1001d438
call fcn.10001000
test eax, eax
jne 0x1000551b
lea eax, [ebp - 4]
push eax
push 0x1001fb2c
push 1
push ebx
push 0x1001d458
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1000550e
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp - 8], eax
jne 0x10005527
cmp dword [ebp + 0xc], ebx
jne 0x1000550e
push 0x40
lea eax, [ebp - 0x1a0]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x100222e0]
push str.CLSID_
mov esi, 0x80
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.10008508
push eax
call fcn.10001069
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.10003c80
push str.Required_Categories
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.1000848e
push eax
call fcn.10001069
add esp, 0x28
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x120]
push eax
mov edi, SysReAllocStringLen
push edi
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1000543b
mov eax, dword [ebp - 8]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp + 0xc]
push ecx
push ebx
push ebx
push ebx
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
je 0x10005423
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], ebx
cmp dword [ebp - 0xc], ebx
jne 0x1000543b
cmp dword [ebp + 0xc], ebx
jne 0x1000543b
lea eax, [ebp - 0x120]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.10008508
push eax
call fcn.10001069
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.10003c80
push str.Implemented_Categories
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.1000848e
push eax
call fcn.10001069
add esp, 0x28
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x120]
push eax
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100054f9
xor eax, eax
cmp dword [ebp + 8], ebx
je 0x100054b0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 8], ecx
jne 0x100054f9
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 ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp + 8], ebx
mov esi, eax
je 0x100054e2
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], ebx
cmp esi, ebx
jne 0x100054f9
cmp dword [ebp + 0xc], ebx
jne 0x100054f9
lea eax, [ebp - 0x120]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 8], ebx
je 0x10005507
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1000551b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp - 8]
cmp dword [ebp + 0xc], ebx
mov esi, dword [eax + 4]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
je 0x10005569
cmp dword [eax], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
jne 0x1000554f
call dword [ecx + 0x14]
jmp 0x10005552
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x1000557c
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10005565
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x1000551d
cmp dword [eax], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
jne 0x10005579
call dword [ecx + 0x18]
jmp 0x1000557c
call dword [ecx + 0x20]
add dword [ebp - 8], 8
mov eax, dword [ebp - 8]
cmp dword [eax], ebx
jne 0x10005524
jmp 0x1000535e