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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c24
call fcn.004f18a0
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1c18], eax
lea eax, [ebp - 0x1c10]
push eax
push 0x208
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x1c24], ecx
mov dword [ebp - 0x1c0c], edx
mov dword [ebp - 0x1c10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4d3f87
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
push 0x200
lea ecx, [ebp - 0x404]
push ebx
push ecx
mov dword [ebp - 0x1c20], ebx
call fcn.004e7d90
mov eax, dword [ebp - 0x1c10]
add esp, 0xc
push 0x200
lea edx, [ebp - 0x404]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4d4205
push esi
push edi
xor eax, eax
jmp 0x4d3fd0
movzx ecx, word [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov word [ebp + eax - 0x1c04], cx
add eax, 2
cmp cx, bx
jne 0x4d3fd0
lea eax, [ebp - 0x404]
mov esi, eax
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d3ff0
lea edi, [ebp - 0x1c04]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4d4006
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c08]
push ecx
push 0x201
push ebx
lea edx, [ebp - 0x1c04]
push edx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x1c08], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d4157
push 0xffe
lea ecx, [ebp - 0x1402]
push ebx
push ecx
mov dword [ebp - 0x1c1c], 1
mov word [ebp - 0x1404], ax
call fcn.004e7d90
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [ebp - 0x1c14]
push edx
mov edx, dword [ebp - 0x1c08]
lea eax, [ebp - 0x1404]
push eax
lea ecx, [ebp - 0x1c1c]
push ecx
push ebx
push str.ProductID
mov edi, 0x1000
push edx
mov dword [ebp - 0x1c14], edi
call esi
mov ecx, dword [ebp - 0x1c24]
lea eax, [ebp - 0x1404]
push eax
push ecx
call fcn.004f20d4
add esp, 8
test eax, eax
je 0x4d419d
lea edx, [ebp - 0x1c14]
push edx
mov edx, dword [ebp - 0x1c08]
lea eax, [ebp - 0x1404]
push eax
lea ecx, [ebp - 0x1c1c]
push ecx
push ebx
push str.ProductCodes
push edx
mov dword [ebp - 0x1c1c], 7
mov dword [ebp - 0x1c14], edi
call esi
mov eax, dword [ebp - 0x1c14]
shr eax, 1
xor ecx, ecx
dec eax
je 0x4d412c
jmp 0x4d4110
cmp word [ebp + ecx*2 - 0x1404], bx
jne 0x4d4127
mov edx, 1
mov word [ebp + ecx*2 - 0x1404], dx
inc ecx
cmp ecx, eax
jb 0x4d4110
mov eax, dword [ebp - 0x1c0c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
call fcn.004e49bf
add esp, 8
test eax, eax
jne 0x4d41ce
mov edx, dword [ebp - 0x1c08]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x1c20]
push 0x200
lea eax, [ebp - 0x404]
push ebx
inc esi
push eax
mov dword [ebp - 0x1c20], esi
call fcn.004e7d90
mov edx, dword [ebp - 0x1c10]
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4d3fc6
jmp 0x4d4203
mov ecx, dword [ebp - 0x1c18]
mov edx, dword [ebp - 0x1c08]
lea eax, [ebp - 0x1c0c]
push eax
push ecx
push ebx
push ebx
push str.DisplayName
push edx
mov dword [ebp - 0x1c0c], 0x200
call esi
mov eax, dword [ebp - 0x1c08]
push eax
jmp 0x4d41fd
mov edx, dword [ebp - 0x1c18]
mov eax, dword [ebp - 0x1c08]
lea ecx, [ebp - 0x1c0c]
push ecx
push edx
push ebx
push ebx
push str.DisplayName
push eax
mov dword [ebp - 0x1c0c], 0x200
call esi
mov ecx, dword [ebp - 0x1c08]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov edx, dword [ebp - 0x1c10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c18]
lea edx, [eax + 2]
jmp 0x4d4220
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d4220
mov ecx, dword [ebp - 4]
sub eax, edx
xor ecx, ebp
sar eax, 1
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret