Function at 0x10012179
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x1002a058]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor ebx, ebx
mov esi, edx
push edi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], ebx
cmp esi, ebx
je 0x10012545
mov eax, 0x1002048c
call fcn.1000d6a4
test eax, eax
jne 0x10012545
lea eax, [ebp - 0x128]
push eax
push 0x10023998
push 1
push ebx
push 0x1002054c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10012535
mov eax, esi
mov dword [ebp - 0x120], eax
cmp dword [esi], ebx
jne 0x1001226d
cmp dword [ebp + 8], ebx
jne 0x10012535
push 0x40
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x10c]
push eax
mov dword [ebp - 0x124], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x120]
inc eax
push ecx
mov dword [ebp - 0x120], eax
call fcn.10001b91
pop ecx
test eax, eax
js 0x10012535
mov edi, dword [ebp - 0x120]
cmp edi, 0x400
jg 0x100122f1
push edi
call fcn.10001bf4
pop ecx
test al, al
je 0x100122f1
mov eax, edi
call fcn.1001de70
mov eax, esp
jmp 0x100122fe
mov eax, dword [ebp - 0x120]
mov esi, dword [eax + 4]
lea edi, [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x124]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 8], ebx
je 0x100122c1
cmp dword [eax], 1
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax]
push eax
jne 0x100122a1
call dword [ecx + 0x14]
jmp 0x100122a4
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x100122d7
mov eax, dword [ebp - 0x128]
cmp eax, ebx
je 0x100122ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x10012547
cmp dword [eax], 1
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax]
push eax
jne 0x100122d4
call dword [ecx + 0x18]
jmp 0x100122d7
call dword [ecx + 0x20]
add dword [ebp - 0x120], 8
mov eax, dword [ebp - 0x120]
cmp dword [eax], ebx
jne 0x10012267
jmp 0x100121eb
mov eax, edi
lea esi, [ebp - 0x124]
call fcn.10001c60
push 3
push edi
lea ecx, [ebp - 0x10c]
push ecx
mov esi, eax
call fcn.10001555
mov dword [ebp - 0x138], eax
cmp eax, ebx
je 0x10012514
push str.CLSID_
mov esi, 0x80
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.10016517
add esp, 0xc
push eax
call fcn.10002194
pop ecx
push dword [ebp - 0x138]
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.10016576
add esp, 0xc
push eax
call fcn.10002194
mov dword [esp], str.Required_Categories
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.10016576
add esp, 0xc
push eax
call fcn.10002194
pop ecx
lea ecx, [ebp - 0x8c]
mov eax, SysReAllocStringLen
push ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x120], ebx
push eax
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov eax, 0x20019
lea ebx, [ebp - 0x134]
call fcn.100022b6
xor edi, edi
test eax, eax
jne 0x10012424
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x120]
push eax
push edi
push edi
push edi
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebx, eax
cmp dword [ebp - 0x134], edi
je 0x100123fe
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], edi
cmp ebx, edi
jne 0x10012424
cmp dword [ebp - 0x120], edi
jne 0x10012424
lea eax, [ebp - 0x8c]
push eax
lea edi, [ebp - 0x144]
call fcn.100024d7
xor edi, edi
push str.CLSID_
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.10016517
add esp, 0xc
push eax
call fcn.10002194
pop ecx
push dword [ebp - 0x138]
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.10016576
add esp, 0xc
push eax
call fcn.10002194
mov dword [esp], str.Implemented_Categories
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.10016576
add esp, 0xc
push eax
call fcn.10002194
pop ecx
lea eax, [ebp - 0x8c]
push eax
push SysReAllocStringLen
mov eax, 0x20019
lea ebx, [ebp - 0x134]
call fcn.100022b6
test eax, eax
jne 0x100124f3
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x120]
push eax
push edi
push edi
push edi
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
cmp dword [ebp - 0x134], edi
je 0x100124d3
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x134], edi
cmp esi, edi
jne 0x100124f3
cmp dword [ebp - 0x120], edi
jne 0x100124f3
lea eax, [ebp - 0x8c]
push eax
lea edi, [ebp - 0x144]
call fcn.100024d7
xor edi, edi
cmp dword [ebp - 0x134], edi
je 0x10012507
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [ebp - 0x124], ebx
je 0x10012535
mov eax, dword [ebp - 0x124]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x124], esi
call fcn.1001451e
pop ecx
cmp esi, ebx
jne 0x1001251c
mov eax, dword [ebp - 0x128]
cmp eax, ebx
je 0x10012545
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x154]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10014027
leave
ret 4