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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb08
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ebx, ecx
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [ebp - 0xada]
push edx
mov dword [ebp - 0xb04], ebx
mov dword [ebp - 0xb08], eax
mov word [ebp - 0xadc], cx
call fcn.004e7d90
push 0x400
mov dword [ebp - 0xae8], 0
call fcn.004e4240
mov esi, eax
push 0x800
mov dword [ebp - 0xaf0], esi
call fcn.004e4240
mov edi, eax
push 0x208
mov dword [ebp - 0xaf4], edi
call fcn.004e4240
push 0x400
push 0
push esi
mov dword [ebp - 0xaf8], eax
mov dword [ebp - 0xae0], 0
call fcn.004e7d90
add esp, 0x24
push 0x400
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4ad61d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, edi
sub esi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
mov dword [ebp - 0xb00], esi
jmp 0x4ad166
mov esi, dword [ebp - 0xb00]
push 0x800
push 0
push edi
mov dword [ebp - 0xae4], 0
call fcn.004e7d90
add esp, 0xc
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x4ad185
mov eax, dword [ebp - 0xaf0]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ad1a0
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4ad1b0
mov ecx, eax
shr ecx, 2
mov esi, edx
mov edx, dword [ebp - 0xaf4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0xae4]
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
push ecx
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ad5d9
mov edx, dword [ebp - 0xae4]
mov dword [ebp - 0xafc], eax
lea eax, [ebp - 0xae0]
push eax
lea ecx, [ebp - 0xafc]
push ecx
push 0
push 0
push str.SystemComponent
push edx
mov dword [ebp - 0xae0], 4
call ebx
test eax, eax
jne 0x4ad24c
mov eax, 1
cmp dword [ebp - 0xafc], eax
jne 0x4ad24c
add dword [ebp - 0xae8], eax
mov eax, dword [ebp - 0xae4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ad5df
mov esi, dword [ebp - 0xaf8]
mov edi, 0x208
push edi
push 0
push esi
mov dword [ebp - 0xae0], edi
call fcn.004e7d90
mov edx, dword [ebp - 0xae4]
add esp, 0xc
lea ecx, [ebp - 0xae0]
push ecx
push esi
push 0
push 0
push str.ParentDisplayName
push edx
call ebx
test eax, eax
jne 0x4ad5cc
lea edx, [ebp - 0x4d4]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4ad295
push edi
push 0
push esi
mov dword [ebp - 0xae0], edi
call fcn.004e7d90
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x2ca]
push ecx
mov word [ebp - 0x2cc], ax
call fcn.004e7d90
mov ecx, dword [ebp - 0xae4]
add esp, 0x18
lea edx, [ebp - 0xae0]
push edx
lea eax, [ebp - 0x2cc]
push eax
push 0
push 0
push str.DisplayName
push ecx
call ebx
lea eax, [ebp - 0x2cc]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ad300
sub eax, edx
sar eax, 1
jne 0x4ad329
mov edx, dword [ebp - 0xae4]
inc dword [ebp - 0xae8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ad5df
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x82]
push ecx
mov word [ebp - 0x84], ax
call fcn.004e7d90
mov ecx, dword [ebp - 0xae4]
add esp, 0xc
lea edx, [ebp - 0xae0]
push edx
lea eax, [ebp - 0x84]
push eax
push 0
push 0
push str.DisplayVersion
mov esi, 0x40
push ecx
mov dword [ebp - 0xae0], esi
call ebx
xor edx, edx
push 0x3e
push edx
lea eax, [ebp - 0xc2]
push eax
mov word [ebp - 0xc4], dx
call fcn.004e7d90
mov eax, dword [ebp - 0xae4]
add esp, 0xc
lea ecx, [ebp - 0xae0]
push ecx
lea edx, [ebp - 0xc4]
push edx
push 0
push 0
push str.Publisher
push eax
mov dword [ebp - 0xae0], esi
call ebx
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x6da]
push edx
mov word [ebp - 0x6dc], cx
call fcn.004e7d90
mov edx, dword [ebp - 0xae4]
add esp, 0xc
lea eax, [ebp - 0xae0]
push eax
lea ecx, [ebp - 0x6dc]
push ecx
push 0
push 0
push str.HelpLink
push edx
mov dword [ebp - 0xae0], edi
call ebx
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x42]
push ecx
mov word [ebp - 0x44], ax
call fcn.004e7d90
mov ecx, dword [ebp - 0xae4]
add esp, 0xc
lea edx, [ebp - 0xae0]
push edx
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push str.InstallDate
push ecx
mov dword [ebp - 0xae0], esi
call ebx
cmp eax, 2
jne 0x4ad4d3
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x4d2]
push eax
mov word [ebp - 0x4d4], dx
call fcn.004e7d90
mov eax, dword [ebp - 0xae4]
add esp, 0xc
lea ecx, [ebp - 0xae0]
push ecx
lea edx, [ebp - 0x4d4]
push edx
push 0
push 0
push str.RegistryLocation
push eax
mov dword [ebp - 0xae0], edi
call ebx
test eax, eax
jne 0x4ad4d3
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xaec]
push ecx
push edx
push eax
mov dword [ebp - 0xaec], eax
lea eax, [ebp - 0x4ae]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ad4d3
lea ecx, [ebp - 0xae0]
push ecx
lea edx, [ebp - 0x44]
push edx
push eax
push eax
mov eax, dword [ebp - 0xaec]
push str.InstalledDate
push eax
mov dword [ebp - 0xae0], esi
call ebx
mov ecx, dword [ebp - 0xaec]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x400
lea edx, [ebp - 0xadc]
push 0
push edx
call fcn.004e7d90
lea eax, [ebp - 0x44]
push 0x5262b8
push eax
call fcn.004e49bf
add esp, 0x14
test eax, eax
jne 0x4ad543
lea eax, [ebp - 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ad501
sub eax, edx
sar eax, 1
je 0x4ad543
lea ecx, [ebp - 0x6dc]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x2cc]
push edx
lea eax, [ebp - 0xadc]
push str._s_t_t_.4s__.2s__.2s_t_t_s_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
jmp 0x4ad56a
lea ecx, [ebp - 0x6dc]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0xadc]
push 0x5262bc
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0xadc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ad573
sub eax, edx
sar eax, 1
mov edx, 1
mov word [ebp + eax*2 - 0xadc], dx
lea eax, [ebp - 0xadc]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4ad597
mov edi, dword [ebp - 0xb08]
sub eax, edx
add edi, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4ad5b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0xae4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xae8]
mov esi, dword [ebp - 0xaf0]
push 0x400
push 0
push esi
call fcn.004e7d90
mov ecx, dword [ebp - 0xae8]
mov edx, dword [ebp - 0xb04]
add esp, 0xc
push 0x400
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [ebp - 0xaf4]
test eax, eax
je 0x4ad160
push esi
call fcn.004e424b
push edi
call fcn.004e424b
mov eax, dword [ebp - 0xaf8]
push eax
call fcn.004e424b
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret