Function at 0x4e4c90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
call fcn.00527e8a
mov esi, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
add eax, 4
and al, 0xfc
call fcn.005113b0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, esp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20]
push ecx
push 0x23
push edx
call fcn.004e4c50
lea edx, [ebp - 0x20]
mov edi, eax
push edx
push 0x23
push 0
call fcn.004e4c50
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 0x23
push 0
call fcn.004e4c50
add esp, 0x24
mov ebx, eax
test esi, esi
je 0x4e4d36
mov al, byte [esi]
test al, al
je 0x4e4d36
cmp al, 0x7b
jne 0x4e4e51
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [ebp - 0x10]
push ecx
push str.CLSID
push SysReAllocString
call esi
test eax, eax
jne 0x4e4f54
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push edi
push eax
call esi
test eax, eax
je 0x4e4d6b
mov ecx, dword [ebp - 0x10]
jmp 0x4e4f4d
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x130]
push edx
push eax
push str.InprocServer32
push ecx
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4e4e3a
lea edx, [ebp - 0x130]
lea ecx, [ebp + 8]
push edx
call fcn.00527f6d
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.004e5710
mov ecx, dword [ebp + 8]
push str.ole32.dll
push ecx
call fcn.0050ffa9
add esp, 0xc
test eax, eax
je 0x4e4e2b
mov edx, dword [ebp + 8]
push str.oleprx32.dll
push edx
call fcn.0050ffa9
add esp, 8
test eax, eax
je 0x4e4e2b
mov eax, dword [ebp + 8]
push str.ole2pr32.dll
push eax
call fcn.0050ffa9
add esp, 8
test eax, eax
je 0x4e4e2b
mov ecx, dword [ebp + 8]
push str.olecnv32.dll
push ecx
call fcn.0050ffa9
add esp, 8
test eax, eax
je 0x4e4e2b
mov edx, dword [ebp + 8]
push str.oleaut32.dll
push edx
call fcn.0050ffa9
add esp, 8
test eax, eax
je 0x4e4e2b
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x130]
push eax
call fcn.00528088
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00527eff
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 0x10]
push edx
call esi
jmp 0x4e4f54
push str.TypeLib_
lea ecx, [ebp - 0x24]
call fcn.00527f6d
push edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
call fcn.00528194
push 0x58948c
lea ecx, [ebp - 0x10]
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.00528194
push esi
lea edx, [ebp - 0x14]
push eax
push edx
mov byte [ebp - 4], 3
call fcn.00528194
push 0x58948c
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
call fcn.00528194
push ebx
lea ecx, [ebp + 8]
push eax
push ecx
mov byte [ebp - 4], 5
call fcn.00528194
mov eax, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
lea ecx, [ebp + 8]
sete bl
call fcn.00527eff
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00527eff
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00527eff
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00527eff
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00527eff
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00527eff
test bl, bl
je 0x4e4f54
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x234]
push eax
push ecx
push str.win32
push edx
mov dword [ebp - 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x4e4f4a
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x234]
push eax
call fcn.00528088
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x240]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret