Function at 0x4e53b4
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e5658
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41aff4]
call fcn.00403d10
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push 0x20119
push 0
push 0x4e5668
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4e5613
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x4e560a
mov edx, dword [ebp - 0x28]
inc edx
lea eax, [ebp - 4]
call fcn.00405360
cmp dword [ebp - 0x20], 0
je 0x4e560a
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jb 0x4e560a
inc esi
xor edi, edi
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.004050d0
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyExA
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 4]
mov edx, 0x4e56a4
call fcn.00404f58
mov eax, dword [ebp - 0x40]
call fcn.004050d0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4e5602
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x4e55f9
mov edx, dword [ebp - 0x30]
inc edx
lea eax, [ebp - 8]
call fcn.00405360
cmp dword [ebp - 0x2c], 0
je 0x4e5561
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [ebp - 0x2c]
dec eax
test eax, eax
jb 0x4e5561
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x1c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
call fcn.004050d0
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 8]
call fcn.004050d0
mov edx, eax
lea eax, [ebp - 0x44]
call fcn.00404e38
mov edx, dword [ebp - 0x44]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x4e5514
mov edx, 0x4e56e4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
je 0x4e55f9
mov edx, 0x4e56f8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
je 0x4e55f9
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0
push 0x4e5708
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4e55f9
cmp dword [ebp - 0x34], 1
jne 0x4e55f9
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x38]
call fcn.00405360
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004050d0
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x4e5708
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0xc]
call fcn.004050d0
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00404e38
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4ef268]
mov eax, dword [eax]
mov edx, 0x4e571c
call fcn.004d7a8c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc edi
dec esi
jne 0x4e545f
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
call fcn.00403d40
mov eax, dword [0x4ef268]
mov eax, dword [eax]
mov ecx, 0x4e5730
mov edx, 0x4e571c
call fcn.004d7a8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e565f
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404c64
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c64
ret