Function at 0x5027b60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x210
lea ebp, [esp - 4]
mov eax, dword [0x509ddfc]
xor eax, ebp
mov dword [ebp + 0x210], eax
push 0x2c
mov eax, 0x50733d4
call fcn.050702c4
mov edi, dword [ebp + 0x21c]
mov esi, dword [ebp + 0x220]
mov ecx, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], esi
call fcn.050144f6
test al, al
je 0x5027d98
mov ecx, edi
call fcn.05014609
push str.____ACE_MicrosoftICMMicrosoft_ICM
push edi
call fcn.05067fe5
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0506ab75
push dword [ebp - 0x10]
xor ebx, ebx
push ebx
mov edi, 0x69636d32
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.05025ceb
add esp, 0x10
push eax
mov ecx, esi
call fcn.05025dd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.05067b42
mov eax, dword [esi + 8]
mov esi, 0x94
push esi
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x174]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp + 0x174]
push eax
mov dword [ebp + 0x174], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 0x184], 2
mov eax, str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMICMatchers
je 0x5027c32
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionICMICMatchers
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5027d98
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5027d8f
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
jbe 0x5027d8f
mov ebx, 0x104
push 5
pop esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x104]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x2c], esi
push dword [ebp - 0x14]
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x5027d80
cmp dword [ebp - 0x30], 1
jne 0x5027d80
lea eax, [ebp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x5027d80
push 0x507b3f8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
lea ecx, [ebp]
push ecx
push esi
call eax
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x5027d77
movsx esi, byte [ebp + 0x208]
movsx eax, byte [ebp + 0x209]
shl esi, 8
or esi, eax
movsx eax, byte [ebp + 0x20a]
shl esi, 8
or esi, eax
movsx eax, byte [ebp + 0x20b]
shl esi, 8
or esi, eax
push 0x4d534654
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call fcn.05067c83
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
call fcn.0506ab75
push dword [ebp - 0x20]
mov dword [ebp - 4], 1
push esi
push edi
push dword [ebp - 0x18]
call fcn.05025ceb
mov ecx, dword [ebp - 0x34]
add esp, 0x10
push dword [ebp - 0x38]
push eax
call fcn.05025deb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.05067b42
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jb 0x5027c83
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.05070186
add ebp, 0x214
leave
ret