Function at 0x10009522
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x1006b490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], ebx
cmp esi, ebx
je 0x100098b3
push 0x1005a6ec
push eax
call fcn.10006dc3
pop ecx
pop ecx
test eax, eax
jne 0x100098b3
lea eax, [ebp - 0x120]
push eax
push 0x10057618
push 1
push ebx
push 0x1005a70c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100098a3
mov eax, esi
mov dword [ebp - 0x118], eax
cmp dword [esi], ebx
jne 0x10009622
cmp dword [ebp + 0x10], ebx
jne 0x100098a3
push 0x40
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
push eax
call fcn.10006e0d
add esp, 0xc
test eax, eax
js 0x100098a3
mov esi, dword [ebp - 0x118]
cmp esi, 0x400
jg 0x100096a6
push esi
call fcn.10007ada
pop ecx
test al, al
je 0x100096a6
mov eax, esi
call fcn.10027f50
mov eax, esp
jmp 0x100096b2
mov eax, dword [ebp - 0x118]
mov esi, dword [eax + 4]
lea edi, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x10], ebx
je 0x10009676
cmp dword [eax], 1
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
push eax
jne 0x10009656
call dword [ecx + 0x14]
jmp 0x10009659
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x1000968c
mov eax, dword [ebp - 0x120]
cmp eax, ebx
je 0x1000966f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x100098b5
cmp dword [eax], 1
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
push eax
jne 0x10009689
call dword [ecx + 0x18]
jmp 0x1000968c
call dword [ecx + 0x20]
add dword [ebp - 0x118], 8
mov eax, dword [ebp - 0x118]
cmp dword [eax], ebx
jne 0x1000961c
jmp 0x1000959b
push esi
lea ecx, [ebp - 0x11c]
call fcn.10008980
push 3
push esi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.10006ef3
mov dword [ebp - 0x130], eax
cmp eax, ebx
je 0x10009882
push str.CLSID_
mov esi, 0x80
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.10027acd
push eax
call fcn.10006f6f
push dword [ebp - 0x130]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.10027bf9
push eax
call fcn.10006f6f
push str.Required_Categories
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.10027bf9
push eax
call fcn.10006f6f
add esp, 0x30
push 0x20019
lea eax, [ebp - 0x84]
mov edi, SysReAllocStringLen
push eax
push edi
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x118], ebx
call fcn.1000113d
test eax, eax
jne 0x100097bc
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x134], eax
call fcn.100010ba
cmp dword [ebp - 0x134], ebx
jne 0x100097bc
cmp dword [ebp - 0x118], ebx
jne 0x100097bc
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x140]
call fcn.10005690
push str.CLSID_
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.10027acd
push eax
call fcn.10006f6f
push dword [ebp - 0x130]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.10027bf9
push eax
call fcn.10006f6f
push str.Implemented_Categories
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.10027bf9
push eax
call fcn.10006f6f
add esp, 0x30
push 0x20019
lea eax, [ebp - 0x84]
push eax
push edi
lea ecx, [ebp - 0x12c]
call fcn.1000113d
test eax, eax
jne 0x1000986c
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.100010ba
cmp esi, ebx
jne 0x1000986c
cmp dword [ebp - 0x118], ebx
jne 0x1000986c
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x140]
call fcn.10005690
lea ecx, [ebp - 0x12c]
call fcn.100010ba
lea ecx, [ebp - 0x140]
call fcn.100010ba
cmp dword [ebp - 0x11c], ebx
je 0x100098a3
mov eax, dword [ebp - 0x11c]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x11c], esi
call fcn.10025a7c
pop ecx
cmp esi, ebx
jne 0x1000988a
mov eax, dword [ebp - 0x120]
cmp eax, ebx
je 0x100098b3
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 - 4]
xor ecx, ebp
call fcn.1002523b
leave
ret 0xc