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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c28
call fcn.004f23a0
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push 0x3fe
mov dword [ebp - 0x1c24], eax
lea eax, [ebp - 0x402]
xor edx, edx
push esi
push eax
mov dword [ebp - 0x1c28], ecx
mov dword [ebp - 0x1c14], esi
mov word [ebp - 0x404], dx
call fcn.004e8ba0
push 0x7fe
lea edx, [ebp - 0xc02]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0xc04], cx
call fcn.004e8ba0
add esp, 0x18
lea eax, [ebp - 0x1c20]
push eax
push 8
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4dbf42
mov dword [ebp - 0x1c0c], esi
push edi
mov edx, dword [ebp - 0x1c0c]
mov eax, dword [ebp - 0x1c20]
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4dbf1f
lea esp, [esp]
movzx ecx, word [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov word [ebp + eax - 0xc04], cx
add eax, 2
test cx, cx
jne 0x4dbca0
lea eax, [ebp - 0x404]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dbcc0
lea edi, [ebp - 0xc04]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4dbcd6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 9
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x404]
push str.Office16.
push ecx
call fcn.004e6cdf
add esp, 0xc
test eax, eax
je 0x4dbd17
inc dword [ebp - 0x1c0c]
jmp 0x4dbc71
lea edx, [ebp - 0x1c10]
push edx
push 1
push 0
lea eax, [ebp - 0xc04]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4dbf0c
xor ecx, ecx
push 0xffe
push ecx
lea edx, [ebp - 0x1c02]
mov edi, 0x800
push edx
mov dword [ebp - 0x1c18], edi
mov dword [ebp - 0x1c1c], 1
mov word [ebp - 0x1c04], cx
call fcn.004e8ba0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x1c18]
push eax
mov eax, dword [ebp - 0x1c10]
lea ecx, [ebp - 0x1c04]
push ecx
lea edx, [ebp - 0x1c1c]
push edx
push 0
push str.ProductID
push eax
call esi
mov edx, dword [ebp - 0x1c24]
lea ecx, [ebp - 0x1c04]
push ecx
push edx
call fcn.004f2bd4
add esp, 8
test eax, eax
jne 0x4dbe1e
mov ecx, dword [ebp - 0x1c10]
lea eax, [ebp - 0x1c08]
push eax
push ebx
push 0
push 0
push str.DisplayName
push ecx
mov dword [ebp - 0x1c08], 0x100
call esi
push str.Office
push ebx
call fcn.004e571a
add esp, 8
test eax, eax
jne 0x4dbef5
push str.office
push ebx
call fcn.004e571a
add esp, 8
test eax, eax
jne 0x4dbef5
mov edx, dword [ebp - 0x1c08]
lea eax, [edx + edx]
push eax
push 0
push ebx
call fcn.004e8ba0
add esp, 0xc
jmp 0x4dbeff
lea ecx, [ebp - 0x1c18]
push ecx
mov ecx, dword [ebp - 0x1c10]
lea edx, [ebp - 0x1c04]
push edx
lea eax, [ebp - 0x1c1c]
push eax
push 0
push str.ProductCodes
push ecx
mov dword [ebp - 0x1c1c], 7
mov dword [ebp - 0x1c18], edi
call esi
mov ecx, dword [ebp - 0x1c18]
xor eax, eax
dec ecx
je 0x4dbe7d
mov edi, edi
cmp word [ebp + eax*2 - 0x1c04], 0
jne 0x4dbe78
mov edx, 1
mov word [ebp + eax*2 - 0x1c04], dx
inc eax
cmp eax, ecx
jb 0x4dbe60
mov eax, dword [ebp - 0x1c28]
push eax
lea ecx, [ebp - 0x1c04]
push ecx
call fcn.004e571a
add esp, 8
test eax, eax
je 0x4dbeff
mov eax, dword [ebp - 0x1c10]
lea edx, [ebp - 0x1c08]
push edx
push ebx
push 0
push 0
push str.DisplayName
push eax
mov dword [ebp - 0x1c08], 0x100
call esi
push str.Office
push ebx
call fcn.004e571a
add esp, 8
test eax, eax
jne 0x4dbef5
push str.office
push ebx
call fcn.004e571a
add esp, 8
test eax, eax
jne 0x4dbef5
mov ecx, dword [ebp - 0x1c08]
lea edx, [ecx + ecx]
push edx
push eax
push ebx
call fcn.004e8ba0
add esp, 0xc
jmp 0x4dbeff
mov dword [ebp - 0x1c14], 1
mov eax, dword [ebp - 0x1c10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x1c0c]
cmp dword [ebp - 0x1c14], 0
je 0x4dbc71
mov ecx, dword [ebp - 0x1c20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c14]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e4746
mov esp, ebp
pop ebp
ret