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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], 0
mov ebx, dword [ebp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x48568b
test ebx, ebx
jle 0x48568b
mov byte [edi + ebx - 1], 0
mov byte [edi], 0
mov ecx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall]
lea eax, [ebp - 0x1c]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4856db
test edi, edi
je 0x4859fa
test ebx, ebx
jle 0x4859fa
mov edx, dword [0x4fcce4]
push ebx
push edi
push eax
push 0x44
push edx
call fcn.004752f0
add esp, 0x14
mov eax, 0x80000000
lea esp, [ebp - 0x248]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x138]
push 0x104
push eax
push 0
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x4859c9
mov eax, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall]
lea edx, [ebp - 0x138]
push edx
push eax
lea ecx, [ebp - 0x23c]
push 0x4df9ac
push ecx
call fcn.00467d68
add esp, 0x10
lea edx, [ebp - 8]
lea eax, [ebp - 0x23c]
push edx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
je 0x485777
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4857c9
test ebx, ebx
jle 0x4857c9
mov edx, dword [0x4fcce4]
push ebx
push edi
push esi
push 0x53
push edx
call fcn.004752f0
mov eax, dword [ebp - 4]
add esp, 0x14
inc eax
mov dword [ebp - 4], eax
jmp 0x4859a5
push 0
lea eax, [ebp - 0xc]
push 0
lea ecx, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, eax
test esi, esi
je 0x4857d1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4857c9
test ebx, ebx
jle 0x4857c9
mov edx, dword [0x4fcce4]
push ebx
push edi
push esi
push 0x71
push edx
call fcn.004752f0
add esp, 0x14
inc dword [ebp - 4]
jmp 0x4859a5
mov edi, dword [ebp - 0x10]
inc edi
mov eax, edi
mov dword [ebp - 0x10], edi
add eax, 3
and al, 0xfc
call fcn.00467540
mov eax, dword [ebp - 0xc]
mov ebx, esp
inc eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], eax
add eax, 3
and al, 0xfc
call fcn.00467540
mov ecx, dword [ebp - 0x34]
mov esi, esp
mov eax, 1
mov dword [ebp - 0x2c], esi
test ecx, ecx
mov dword [ebp - 0x24], eax
je 0x48598e
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], ecx
push esi
push eax
lea ecx, [ebp - 0x14]
push 0
push ecx
push ebx
push 0
push edx
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x485955
push str.DisplayName
push ebx
call fcn.00473dd0
add esp, 8
test eax, eax
jne 0x48591d
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x48591d
mov al, byte [ebp + 0x13]
sub esp, 0x10
mov ebx, esp
xor edx, edx
mov edi, esi
or ecx, 0xffffffff
mov byte [ebx], al
xor eax, eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebp - 0x28], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0xfffffffd
mov dword [ebp - 0x28], edi
jbe 0x48589d
call fcn.00463c83
xor edx, edx
mov ecx, dword [ebx + 4]
cmp ecx, edx
je 0x4858c3
mov al, byte [ecx - 1]
test al, al
je 0x4858c3
cmp al, 0xff
je 0x4858c3
cmp edi, edx
jne 0x4858e7
dec al
mov byte [ecx - 1], al
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
jmp 0x485912
cmp edi, edx
jne 0x4858d2
push 1
mov ecx, ebx
call fcn.00403b70
jmp 0x485912
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x4858de
cmp eax, edi
jae 0x4858ef
push 1
mov ecx, ebx
call fcn.00403b70
push edi
mov ecx, ebx
call fcn.004054e0
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
mov eax, dword [ebp - 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov esi, dword [ebp - 0x2c]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov ecx, dword [ebp + 8]
call fcn.00480f60
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, ecx
inc ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], edx
push ecx
lea edx, [ebp - 0x24]
push esi
push edx
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x14]
push 0
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x485842
cmp eax, 0x103
je 0x48598e
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x485998
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x485998
push eax
push ecx
mov ecx, dword [0x4fcce4]
push 0
push 0x96
push ecx
call fcn.004752f0
add esp, 0x14
jmp 0x485998
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x138]
push 0x104
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
je 0x485704
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
je 0x485a0c
test edi, edi
je 0x4859fa
test ebx, ebx
jle 0x4859fa
mov ecx, dword [0x4fcce4]
push ebx
push edi
push esi
push 0xaa
push ecx
call fcn.004752f0
add esp, 0x14
mov eax, 0x80000000
lea esp, [ebp - 0x248]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esp, [ebp - 0x248]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret