Function at 0x4db080
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.004f18a0
mov eax, dword [0x5322a8]
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.004e7d90
push 0x7fe
lea edx, [ebp - 0xc02]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0xc04], cx
call fcn.004e7d90
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 0x4db3e2
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 0x4db3bf
lea esp, [esp]
movzx ecx, word [eax + str.SoftwareMicrosoftWindowsCurrentVersionUninstall_]
mov word [ebp + eax - 0xc04], cx
add eax, 2
test cx, cx
jne 0x4db140
lea eax, [ebp - 0x404]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4db160
lea edi, [ebp - 0xc04]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4db176
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.004e5e02
add esp, 0xc
test eax, eax
je 0x4db1b7
inc dword [ebp - 0x1c0c]
jmp 0x4db111
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 0x4db3ac
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.004e7d90
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.004f20d4
add esp, 8
test eax, eax
jne 0x4db2be
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], pe_nt_image_headers32
call esi
push str.Office
push ebx
call fcn.004e49bf
add esp, 8
test eax, eax
jne 0x4db395
push str.office
push ebx
call fcn.004e49bf
add esp, 8
test eax, eax
jne 0x4db395
mov edx, dword [ebp - 0x1c08]
lea eax, [edx + edx]
push eax
push 0
push ebx
call fcn.004e7d90
add esp, 0xc
jmp 0x4db39f
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 0x4db31d
mov edi, edi
cmp word [ebp + eax*2 - 0x1c04], 0
jne 0x4db318
mov edx, 1
mov word [ebp + eax*2 - 0x1c04], dx
inc eax
cmp eax, ecx
jb 0x4db300
mov eax, dword [ebp - 0x1c28]
push eax
lea ecx, [ebp - 0x1c04]
push ecx
call fcn.004e49bf
add esp, 8
test eax, eax
je 0x4db39f
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], pe_nt_image_headers32
call esi
push str.Office
push ebx
call fcn.004e49bf
add esp, 8
test eax, eax
jne 0x4db395
push str.office
push ebx
call fcn.004e49bf
add esp, 8
test eax, eax
jne 0x4db395
mov ecx, dword [ebp - 0x1c08]
lea edx, [ecx + ecx]
push edx
push eax
push ebx
call fcn.004e7d90
add esp, 0xc
jmp 0x4db39f
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 0x4db111
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.004e3946
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e3946
mov esp, ebp
pop ebp
ret