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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1924
call fcn.004f23a0
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x191c], eax
lea eax, [ebp - 0x1914]
push eax
push 0x208
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x1924], ecx
mov dword [ebp - 0x190c], edx
mov dword [ebp - 0x1914], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4d5d57
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
push 0x800
lea ecx, [ebp - 0x1904]
push ebx
push ecx
call fcn.004e8ba0
push 0xfe
lea eax, [ebp - 0x102]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x104], dx
call fcn.004e8ba0
push 0x80
lea ecx, [ebp - 0x104]
push ebx
push ecx
mov dword [ebp - 0x1910], ebx
call fcn.004e8ba0
mov eax, dword [ebp - 0x1914]
add esp, 0x24
push 0x80
lea edx, [ebp - 0x104]
push edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4d6014
push esi
push edi
push 9
lea ecx, [ebp - 0x104]
push str.Office14.
push ecx
call fcn.004e6cdf
add esp, 0xc
test eax, eax
jne 0x4d5f67
movzx ecx, word [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov word [ebp + eax - 0x1904], cx
add eax, 2
cmp cx, bx
jne 0x4d5de1
lea eax, [ebp - 0x104]
mov esi, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d5e00
lea edi, [ebp - 0x1904]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4d5e16
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x1908]
push edx
push 0x201
mov ecx, eax
push ebx
lea eax, [ebp - 0x1904]
push eax
and ecx, 3
push reloc.WS2_32.dll_bind
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x1908], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d5f67
push 0xffe
lea edx, [ebp - 0x1102]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x1920], 1
mov word [ebp - 0x1104], cx
call fcn.004e8ba0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x1918]
push eax
mov eax, dword [ebp - 0x1908]
lea ecx, [ebp - 0x1104]
push ecx
lea edx, [ebp - 0x1920]
push edx
push ebx
push str.ProductID
mov edi, 0x1000
push eax
mov dword [ebp - 0x1918], edi
call esi
mov edx, dword [ebp - 0x1924]
lea ecx, [ebp - 0x1104]
push ecx
push edx
call fcn.004f2bd4
add esp, 8
test eax, eax
je 0x4d5fac
lea eax, [ebp - 0x1918]
push eax
mov eax, dword [ebp - 0x1908]
lea ecx, [ebp - 0x1104]
push ecx
lea edx, [ebp - 0x1920]
push edx
push ebx
push str.ProductCodes
push eax
mov dword [ebp - 0x1920], 7
mov dword [ebp - 0x1918], edi
call esi
mov eax, dword [ebp - 0x1918]
shr eax, 1
xor ecx, ecx
dec eax
je 0x4d5f3c
lea esp, [esp]
cmp word [ebp + ecx*2 - 0x1104], bx
jne 0x4d5f37
mov edx, 1
mov word [ebp + ecx*2 - 0x1104], dx
inc ecx
cmp ecx, eax
jb 0x4d5f20
mov eax, dword [ebp - 0x190c]
push eax
lea ecx, [ebp - 0x1104]
push ecx
call fcn.004e571a
add esp, 8
test eax, eax
jne 0x4d5fdd
mov edx, dword [ebp - 0x1908]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x1910]
push 0x80
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.004e8ba0
mov edx, dword [ebp - 0x1910]
mov eax, dword [ebp - 0x1914]
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x104]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4d5dc3
jmp 0x4d6012
mov edx, dword [ebp - 0x191c]
mov eax, dword [ebp - 0x1908]
lea ecx, [ebp - 0x190c]
push ecx
push edx
push ebx
push ebx
push str.DisplayName
push eax
mov dword [ebp - 0x190c], 0x200
call esi
mov ecx, dword [ebp - 0x1908]
push ecx
jmp 0x4d600c
mov eax, dword [ebp - 0x191c]
mov ecx, dword [ebp - 0x1908]
lea edx, [ebp - 0x190c]
push edx
push eax
push ebx
push ebx
push str.DisplayName
push ecx
mov dword [ebp - 0x190c], 0x200
call esi
mov edx, dword [ebp - 0x1908]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0x1914]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x191c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d6030
mov ecx, dword [ebp - 4]
sub eax, edx
xor ecx, ebp
sar eax, 1
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret