Function at 0x4c5510
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x118], edi
cmp ebx, edi
je 0x4c5888
mov eax, dword [esi]
cmp eax, dword [0x5c1518]
jne 0x4c556b
mov ecx, dword [esi + 4]
cmp ecx, dword [0x5c151c]
jne 0x4c556b
mov edx, dword [esi + 8]
cmp edx, dword [0x5c1520]
jne 0x4c556b
mov eax, dword [esi + 0xc]
cmp eax, dword [0x5c1524]
je 0x4c5888
lea ecx, [ebp - 0x118]
push ecx
push 0x5baa7c
push 1
push edi
push 0x5c3388
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4c55a4
mov eax, dword [ebp - 0x118]
cmp eax, edi
je 0x4c5888
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x4c5888
cmp dword [ebx], edi
je 0x4c5621
jmp 0x4c55b0
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x114], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x110], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10c], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x108], edx
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
push edx
push 1
push esi
push eax
cmp dword [ebp + 0x10], edi
je 0x4c560b
cmp dword [ebx], 1
jne 0x4c55f8
mov eax, dword [ecx + 0x14]
jmp 0x4c55fb
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
test edi, edi
js 0x4c5694
xor edi, edi
jmp 0x4c561a
cmp dword [ebx], 1
jne 0x4c5615
mov eax, dword [ecx + 0x18]
jmp 0x4c5618
mov eax, dword [ecx + 0x20]
call eax
add ebx, 8
cmp dword [ebx], edi
jne 0x4c55b0
cmp dword [ebp + 0x10], edi
jne 0x4c5876
push 0x40
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0x104]
push ecx
mov dword [ebp - 0x12c], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
lea edx, [ebp - 0x11c]
push edx
mov dword [ebp - 0x11c], eax
call fcn.00403dcd
add esp, 0xc
test eax, eax
js 0x4c586b
mov esi, dword [ebp - 0x11c]
cmp esi, 0x400
jg 0x4c56ad
push esi
call fcn.00405669
add esp, 4
test al, al
je 0x4c56ad
mov eax, esi
call fcn.00541840
mov eax, esp
jmp 0x4c56b9
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x4c56a6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x4c588a
push esi
lea ecx, [ebp - 0x12c]
call fcn.004073a1
push 3
push esi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.00408d41
mov esi, eax
cmp esi, edi
je 0x4c586b
push str.CLSID_
lea edx, [ebp - 0x84]
push 0x80
push edx
call fcn.0040853a
push esi
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.00401965
push str.Required_Categories
lea ecx, [ebp - 0x84]
push 0x80
push ecx
call fcn.00401965
add esp, 0x24
push 0x20019
lea edx, [ebp - 0x84]
push edx
push accept
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x138], accept
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], edi
call fcn.00403d5f
test eax, eax
jne 0x4c57ab
mov ecx, dword [ebp - 0x128]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x128]
mov ebx, eax
call fcn.00403c6a
cmp ebx, edi
jne 0x4c57ab
cmp dword [ebp - 0x11c], edi
jne 0x4c57ab
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x138]
call fcn.00401c62
push str.CLSID_
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0040853a
push esi
lea ecx, [ebp - 0x84]
push 0x80
push ecx
call fcn.00401965
push str.Implemented_Categories
lea edx, [ebp - 0x84]
push 0x80
push edx
call fcn.00401965
add esp, 0x24
push 0x20019
lea eax, [ebp - 0x84]
push eax
push accept
lea ecx, [ebp - 0x128]
call fcn.00403d5f
test eax, eax
jne 0x4c5855
mov edx, dword [ebp - 0x128]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x11c]
push ecx
push edi
push edi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x128]
mov esi, eax
call fcn.00403c6a
cmp esi, edi
jne 0x4c5855
cmp dword [ebp - 0x11c], edi
jne 0x4c5855
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x138]
call fcn.00401c62
lea ecx, [ebp - 0x128]
call fcn.00403cc4
lea ecx, [ebp - 0x138]
call fcn.00403cc4
lea ecx, [ebp - 0x12c]
call fcn.00407e9b
mov eax, dword [ebp - 0x118]
cmp eax, edi
je 0x4c5888
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
lea esp, [ebp - 0x144]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret 0xc