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

Disassembly:
mov eax, 0x504ee24
call fcn.05040548
sub esp, 0x234
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.05007eb6
test al, al
je 0x5029c67
mov ecx, esi
call fcn.05007f9a
push str.____ACE_MicrosoftICMMicrosoft_ICM
push esi
call fcn.0500d938
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0500f2cd
push dword [ebp - 0x10]
xor ebx, ebx
mov edi, 0x69636d32
mov dword [ebp - 4], ebx
push ebx
push edi
push esi
call fcn.0500fd55
mov esi, dword [ebp + 0xc]
add esp, 0x10
mov ecx, esi
push eax
call fcn.0500fe6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0500d982
mov eax, dword [esi + 8]
mov esi, 0x94
mov dword [ebp - 0x38], eax
push esi
lea eax, [ebp - 0xcc]
push ebx
push eax
call fcn.05040640
add esp, 0xc
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xbc], 2
mov eax, str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMICMatchers
je 0x5029b0a
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 0x5029c67
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5029c5e
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
jbe 0x5029c5e
mov ebx, 0x104
push 5
lea eax, [ebp - 0x2c]
pop esi
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x30], esi
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x5029c4f
cmp dword [ebp - 0x34], 1
jne 0x5029c4f
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x5029c4f
push str.CMGetInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x240]
push ebx
push ecx
push esi
call eax
push eax
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x5029c46
movsx esi, byte [ebp - 0x20]
movsx eax, byte [ebp - 0x1f]
shl esi, 8
or esi, eax
push 0x4d534654
movsx eax, byte [ebp - 0x1e]
shl esi, 8
or esi, eax
movsx eax, byte [ebp - 0x1d]
shl esi, 8
or esi, eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
call fcn.0500d817
add esp, 0xc
lea ecx, [ebp - 0x24]
push eax
call fcn.0500f2cd
push dword [ebp - 0x24]
mov dword [ebp - 4], 1
push esi
push edi
push dword [ebp + 8]
call fcn.0500fd55
mov ecx, dword [ebp + 0xc]
add esp, 0x10
push dword [ebp - 0x38]
push eax
call fcn.0500fe8d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0500d982
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jb 0x5029b5b
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret