Function at 0x10006ea0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x124
push ebx
mov ebx, dword [ebp + 0x78]
push esi
push edi
mov dword [ebp + 0x68], 0
test ebx, ebx
je 0x10007193
mov edi, dword [ebp + 0x74]
mov eax, dword [edi]
cmp eax, dword [0x10043568]
jne 0x10006ef2
mov ecx, dword [edi + 4]
cmp ecx, dword [0x1004356c]
jne 0x10006ef2
mov edx, dword [edi + 8]
cmp edx, dword [0x10043570]
jne 0x10006ef2
mov eax, dword [edi + 0xc]
cmp eax, dword [0x10043574]
je 0x10007193
lea ecx, [ebp + 0x68]
push ecx
push 0x1003ba68
push 1
push 0
push 0x100435d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x10006f35
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x10007193
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
lea esp, [ebp - 0xc4]
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx], 0
je 0x10006fb6
cmp dword [ebp + 0x7c], 0
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov dword [ebp + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [ebp + 0x50], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x68]
mov dword [ebp + 0x54], edx
mov ecx, dword [eax]
lea edx, [ebp + 0x48]
push edx
push 1
push edi
push eax
je 0x10006f9f
cmp dword [ebx], 1
jne 0x10006f71
mov eax, dword [ecx + 0x14]
jmp 0x10006f74
mov eax, dword [ecx + 0x1c]
call eax
mov esi, eax
test esi, esi
jge 0x10006fae
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x10006f8b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
lea esp, [ebp - 0xc4]
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx], 1
jne 0x10006fa9
mov eax, dword [ecx + 0x18]
jmp 0x10006fac
mov eax, dword [ecx + 0x20]
call eax
add ebx, 8
cmp dword [ebx], 0
jne 0x10006f3a
cmp dword [ebp + 0x7c], 0
jne 0x10007184
push 0x40
lea eax, [ebp - 0xb8]
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0xb8]
push ecx
mov dword [ebp + 0x78], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
lea edx, [ebp + 0x7c]
push edx
mov dword [ebp + 0x7c], eax
call fcn.10002410
add esp, 0xc
test eax, eax
jl 0x1000717c
mov esi, dword [ebp + 0x7c]
cmp esi, 0x400
jg 0x10007022
push esi
call fcn.10003280
add esp, 4
test al, al
je 0x10007022
mov eax, esi
call fcn.10024d60
mov eax, esp
jmp 0x1000702b
push esi
lea ecx, [ebp + 0x78]
call fcn.100035c0
push 3
push esi
lea ecx, [ebp - 0xb8]
push ecx
push eax
call fcn.100024a0
mov esi, eax
test esi, esi
je 0x1000717c
push str.CLSID_
lea edx, [ebp - 0x38]
push 0x80
push edx
call fcn.10006a80
push esi
lea eax, [ebp - 0x38]
push 0x80
push eax
call fcn.10006aa0
push str.Required_Categories
lea ecx, [ebp - 0x38]
push 0x80
push ecx
call fcn.10006aa0
add esp, 0x24
push 0x20019
lea edx, [ebp - 0x38]
xor edi, edi
push edx
push SysReAllocStringLen
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x58], SysReAllocStringLen
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x7c], edi
call fcn.10002730
test eax, eax
jne 0x100070e3
mov ecx, dword [ebp + 0x60]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp + 0x7c]
push eax
push edi
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x60]
mov ebx, eax
call fcn.10002700
cmp ebx, edi
jne 0x100070e3
cmp dword [ebp + 0x7c], edi
jne 0x100070e3
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp + 0x58]
call fcn.100026a0
push str.CLSID_
lea eax, [ebp - 0x38]
push 0x80
push eax
call fcn.10006a80
push esi
lea ecx, [ebp - 0x38]
push 0x80
push ecx
call fcn.10006aa0
push str.Implemented_Categories
lea edx, [ebp - 0x38]
push 0x80
push edx
call fcn.10006aa0
add esp, 0x24
push 0x20019
lea eax, [ebp - 0x38]
push eax
push SysReAllocStringLen
lea ecx, [ebp + 0x60]
call fcn.10002730
test eax, eax
jne 0x1000716c
mov edx, dword [ebp + 0x60]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp + 0x7c]
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x60]
mov esi, eax
call fcn.10002700
cmp esi, edi
jne 0x1000716c
cmp dword [ebp + 0x7c], edi
jne 0x1000716c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0x58]
call fcn.100026a0
lea ecx, [ebp + 0x60]
call fcn.100033a0
lea ecx, [ebp + 0x58]
call fcn.100033a0
lea ecx, [ebp + 0x78]
call fcn.100031b0
mov eax, dword [ebp + 0x68]
test eax, eax
je 0x10007193
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
lea esp, [ebp - 0xc4]
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc