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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], edi
cmp esi, edi
je 0x10012e3e
mov eax, 0x1002d4dc
call fcn.100116c4
test eax, eax
jne 0x10012e3e
lea eax, [ebp - 0x124]
push eax
push 0x100322a0
push 1
push edi
push 0x1002d4fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x10012b35
mov eax, dword [ebp - 0x124]
cmp eax, edi
jmp 0x10012e36
mov ebx, esi
cmp dword [esi], edi
je 0x10012ba5
cmp dword [ebp + 8], 0
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 0x124]
lea edi, [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x11c]
push edx
movsd dword es:[edi], dword [esi]
push 1
push dword [ebp - 0x120]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
je 0x10012b90
cmp dword [ebx], 1
jne 0x10012b70
call dword [ecx + 0x14]
jmp 0x10012b73
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x10012b9d
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x10012b89
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x10012e40
cmp dword [ebx], 1
jne 0x10012b9a
call dword [ecx + 0x18]
jmp 0x10012b9d
call dword [ecx + 0x20]
add ebx, 8
cmp dword [ebx], 0
jne 0x10012b3b
cmp dword [ebp + 8], 0
jne 0x10012e2e
push 0x40
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.ole32.dll_StringFromGUID2]
and dword [ebp - 0x128], 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
push 0
mov eax, edi
cdq
push 2
push edx
push eax
mov dword [ebp - 0x120], edi
call fcn.10026c50
test edx, edx
jg 0x10012c13
jl 0x10012bfc
cmp eax, 0x7fffffff
ja 0x10012c13
push edx
push eax
lea ecx, [ebp - 0x120]
call fcn.10012205
mov edi, dword [ebp - 0x120]
pop ecx
pop ecx
jmp 0x10012c18
mov eax, 0x80070057
test eax, eax
jl 0x10012e2e
cmp edi, 0x400
jg 0x10012c3e
push edi
call fcn.10012257
pop ecx
test al, al
je 0x10012c3e
mov eax, edi
call fcn.100278d0
mov eax, esp
jmp 0x10012c4b
mov eax, edi
lea esi, [ebp - 0x128]
call fcn.100122c3
push 3
push edi
lea ecx, [ebp - 0x10c]
push ecx
mov esi, eax
call fcn.10012224
mov dword [ebp - 0x134], eax
test eax, eax
je 0x10012e0c
push str.CLSID_
mov edi, 0x80
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.10018f00
add esp, 0xc
push eax
call fcn.10010587
pop ecx
push dword [ebp - 0x134]
lea eax, [ebp - 0x8c]
push eax
call fcn.10012aae
push str.Required_Categories
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.10018f68
add esp, 0x14
push eax
call fcn.10010587
mov dword [esp], 0x20019
lea eax, [ebp - 0x8c]
xor esi, esi
push eax
mov ebx, SysReAllocString
push ebx
lea eax, [ebp - 0x130]
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x120], esi
call fcn.100017b0
test eax, eax
jne 0x10012d4b
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x120]
push eax
push esi
push esi
push esi
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea esi, [ebp - 0x130]
mov dword [ebp - 0x138], eax
call fcn.100017e3
cmp dword [ebp - 0x138], 0
jne 0x10012d49
cmp dword [ebp - 0x120], 0
jne 0x10012d49
lea eax, [ebp - 0x8c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor esi, esi
push str.CLSID_
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.10018f00
add esp, 0xc
push eax
call fcn.10010587
pop ecx
push dword [ebp - 0x134]
lea eax, [ebp - 0x8c]
push eax
call fcn.10012aae
push str.Implemented_Categories
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.10018f68
add esp, 0x14
push eax
call fcn.10010587
mov dword [esp], 0x20019
lea eax, [ebp - 0x8c]
push eax
push ebx
lea eax, [ebp - 0x130]
call fcn.100017b0
test eax, eax
jne 0x10012df6
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x120]
push eax
push esi
push esi
push esi
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea esi, [ebp - 0x130]
mov edi, eax
call fcn.100017e3
test edi, edi
jne 0x10012df6
cmp dword [ebp - 0x120], edi
jne 0x10012df6
lea eax, [ebp - 0x8c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea esi, [ebp - 0x130]
call fcn.100017e3
lea esi, [ebp - 0x140]
call fcn.100017e3
cmp dword [ebp - 0x128], 0
je 0x10012e2e
mov eax, dword [ebp - 0x128]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x128], esi
call fcn.1001881d
pop ecx
test esi, esi
jne 0x10012e15
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x10012e3e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x14c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10016165
leave
ret 4