Function at 0x4dab30
Capabilities:
Check os version
Connect to wmi namespace via wbemlocator
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf28
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0xef4]
push ecx
push 0x20219
push 0
push str.SOFTWAREMicrosoftOffice16.0Registration
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xf10], eax
mov dword [ebp - 0xef4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4db490
push 0x208
call fcn.004e5379
add esp, 4
push 0x208
mov dword [ebp - 0xef8], eax
call fcn.004e5379
add esp, 4
mov ebx, eax
push 0x208
mov dword [ebp - 0xef0], ebx
call fcn.004e5379
add esp, 4
push 0x7ff
xor esi, esi
lea edx, [ebp - 0xdc3]
mov edi, 0x104
push esi
push edx
mov dword [ebp - 0xeec], eax
mov dword [ebp - 0xf0c], edi
mov dword [ebp - 0xf04], edi
mov dword [ebp - 0xefc], 0x800
mov byte [ebp - 0xdc4], 0
call fcn.004e8ba0
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x5c2]
push ecx
mov word [ebp - 0x5c4], ax
call fcn.004e8ba0
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x28a]
push eax
mov word [ebp - 0x28c], dx
call fcn.004e8ba0
add esp, 0xc
nop
mov eax, dword [ebp - 0xeec]
lea ecx, [ebp - 0xf1c]
push ecx
lea edx, [ebp - 0xf04]
push edx
mov edx, dword [ebp - 0xef4]
push eax
push 0
lea ecx, [ebp - 0xf0c]
push ecx
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4db1be
push ebx
mov dword [ebp - 0xee8], eax
mov eax, dword [ebp - 0xef8]
push str.SOFTWAREMicrosoftOffice16.0Registration_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0xef8]
add esp, 0xc
lea ecx, [ebp - 0xee8]
push ecx
push 0x20219
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4dad64
lea eax, [ebp - 0xefc]
push eax
mov eax, dword [ebp - 0xee8]
lea ecx, [ebp - 0xdc4]
push ecx
lea edx, [ebp - 0xf08]
push edx
push 0
push 0x54d5bc
push eax
mov dword [ebp - 0xf08], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4dad51
push 0xff
push eax
lea ecx, [ebp - 0x3c3]
push ecx
mov dword [ebp - 0xf00], 0x100
mov byte [ebp - 0x3c4], al
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0xf00]
push edx
mov edx, dword [ebp - 0xee8]
lea eax, [ebp - 0x3c4]
push eax
lea ecx, [ebp - 0xf08]
push ecx
push 0
push str.ProductID
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4dad51
mov ecx, dword [ebp - 0xef0]
lea eax, [ebp - 0x3c4]
push eax
lea ebx, [ebp - 0x5c4]
call fcn.004dbbe0
add esp, 4
test eax, eax
jne 0x4dadb2
mov ecx, dword [ebp - 0xee8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xef0]
mov edx, dword [ebp - 0xef8]
push 0x208
push 0
push edx
call fcn.004e8ba0
add esp, 0xc
push 0x208
push 0
push ebx
call fcn.004e8ba0
mov eax, dword [ebp - 0xeec]
add esp, 0xc
push 0x208
push 0
push eax
call fcn.004e8ba0
add esp, 0xc
mov dword [ebp - 0xf0c], edi
mov dword [ebp - 0xf04], edi
inc esi
jmp 0x4dac30
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0xee8]
push ecx
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dadf7
jmp 0x4dade0
movzx ecx, word [eax + str.Access]
mov word [ebp + eax - 0x28c], cx
add eax, 2
test cx, cx
jne 0x4dade0
lea edx, [ebp - 0xee8]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dae51
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dae20
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dae20
mov ecx, dword [str._Excel]
mov edx, dword [0x54e474]
mov dword [eax], ecx
mov ecx, dword [0x54e478]
mov dword [eax + 4], edx
mov dx, word [0x54e47c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [ebp - 0xee8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0GrooveInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4daeb6
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dae75
mov ecx, dword [str._SharePoint]
mov edx, dword [0x54e4e8]
mov dword [eax], ecx
mov ecx, dword [0x54e4ec]
mov dword [eax + 4], edx
mov edx, dword [0x54e4f0]
mov dword [eax + 8], ecx
mov ecx, dword [0x54e4f4]
mov dword [eax + 0xc], edx
mov edx, dword [0x54e4f8]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0xee8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4daf18
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4daee0
mov ecx, dword [str._InfoPath]
mov edx, dword [0x54e500]
mov dword [eax], ecx
mov ecx, dword [0x54e504]
mov dword [eax + 4], edx
mov edx, dword [0x54e508]
mov dword [eax + 8], ecx
mov ecx, dword [0x54e50c]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
lea edx, [ebp - 0xee8]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4daf7a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4daf40
mov ecx, dword [str._OneNote]
mov edx, dword [0x54e514]
mov dword [eax], ecx
mov ecx, dword [0x54e518]
mov dword [eax + 4], edx
mov edx, dword [0x54e51c]
mov dword [eax + 8], ecx
mov cx, word [0x54e520]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0xee8]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dafda
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dafa0
mov ecx, dword [str._Outlook]
mov edx, dword [0x54e528]
mov dword [eax], ecx
mov ecx, dword [0x54e52c]
mov dword [eax + 4], edx
mov edx, dword [0x54e530]
mov dword [eax + 8], ecx
mov cx, word [0x54e534]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0xee8]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4db041
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db000
mov ecx, dword [str._PowerPoint]
mov edx, dword [0x54e53c]
mov dword [eax], ecx
mov ecx, dword [0x54e540]
mov dword [eax + 4], edx
mov edx, dword [0x54e544]
mov dword [eax + 8], ecx
mov ecx, dword [0x54e548]
mov dword [eax + 0xc], edx
mov edx, dword [0x54e54c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0xee8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4db09f
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db065
mov ecx, dword [str._Project]
mov edx, dword [0x54e554]
mov dword [eax], ecx
mov ecx, dword [0x54e558]
mov dword [eax + 4], edx
mov edx, dword [0x54e55c]
mov dword [eax + 8], ecx
mov cx, word [0x54e560]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0xee8]
push edx
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4db106
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db0c3
mov ecx, dword [str._Publisher]
mov edx, dword [0x54e568]
mov dword [eax], ecx
mov ecx, dword [0x54e56c]
mov dword [eax + 4], edx
mov edx, dword [0x54e570]
mov dword [eax + 8], ecx
mov ecx, dword [0x54e574]
mov dword [eax + 0xc], edx
mov dx, word [0x54e578]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [ebp - 0xee8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4db161
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db130
mov ecx, dword [str._Visio]
mov edx, dword [0x54e580]
mov dword [eax], ecx
mov ecx, dword [0x54e584]
mov dword [eax + 4], edx
mov dx, word [0x54e588]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [ebp - 0xee8]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftOffice16.0WordInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4db1ab
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db185
mov ecx, dword [str._Word]
mov edx, dword [0x550344]
mov dword [eax], ecx
mov ecx, dword [0x550348]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xee8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xef0]
mov eax, dword [ebp - 0xef4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xef8]
push ecx
call fcn.004e4fab
add esp, 4
push ebx
call fcn.004e4fab
mov edx, dword [ebp - 0xeec]
add esp, 4
push edx
call fcn.004e4fab
lea eax, [ebp - 0x5c4]
add esp, 4
lea edx, [eax + 2]
jmp 0x4db200
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4db200
sub eax, edx
sar eax, 1
je 0x4db490
cmp dword [ebp - 0xefc], 0x800
je 0x4db490
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x8a]
push ecx
mov word [ebp - 0x8c], ax
call fcn.004e8ba0
mov ecx, 0xc
mov esi, str.BCDFGHJKMPQRTVWXY2346789
lea edi, [ebp - 0x2c0]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
push 0x38
lea edx, [ebp - 0x44]
push 0
push edx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x48], 0
call fcn.004e8ba0
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
movzx ecx, byte [ebp + eax - 0xa9c]
mov dword [ebp + eax*4 - 0x48], ecx
inc eax
cmp eax, 0xf
jl 0x4db270
mov edi, 0x1d
lea ebx, [ebp - 0x54]
lea ebx, [ebx]
mov eax, 0xaaaaaaab
mul edi
shr edx, 2
lea edx, [edx + edx*2]
add edx, edx
mov eax, edi
sub eax, edx
jne 0x4db2af
mov ecx, 0x2d
mov word [ebx], cx
jmp 0x4db2f5
xor ecx, ecx
mov esi, 0xe
jmp 0x4db2c0
shl ecx, 8
or ecx, dword [ebp + esi*4 - 0x48]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
add edx, edx
add edx, edx
add edx, edx
mov dword [ebp + esi*4 - 0x48], eax
sub ecx, edx
dec esi
jns 0x4db2c0
mov ax, word [ebp + ecx*2 - 0x2c0]
mov word [ebx], ax
dec edi
sub ebx, 2
test edi, edi
jg 0x4db290
push 0xff
lea ecx, [ebp - 0x3c3]
push 0
push ecx
mov dword [ebp - 0xf00], 0x100
mov byte [ebp - 0x3c4], 0
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0xef4]
push edx
push 0x20219
push 0
push str.SOFTWAREMicrosoftOffice16.0CommonProductVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4db388
lea eax, [ebp - 0xf00]
push eax
mov eax, dword [ebp - 0xef4]
lea ecx, [ebp - 0x3c4]
push ecx
lea edx, [ebp - 0xf08]
push edx
push 0
push str.LastProduct
push eax
mov dword [ebp - 0xf08], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xef4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4db3a7
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + str.16.0]
mov word [ebp + eax - 0x3c4], cx
add eax, 2
test cx, cx
jne 0x4db390
mov ebx, 0x11c
push ebx
xor edi, edi
lea edx, [ebp - 0xee4]
push edi
push edx
call fcn.004e8ba0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xee4]
push eax
mov dword [ebp - 0xee4], ebx
call esi
cmp dword [ebp - 0xee0], 6
jb 0x4db449
push ebx
lea ecx, [ebp - 0xee4]
push edi
push ecx
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0xee4]
push edx
mov dword [ebp - 0xee4], ebx
call esi
cmp dword [ebp - 0xee0], 6
jb 0x4db40f
call fcn.004dd3e0
test eax, eax
jne 0x4db449
push ebx
lea eax, [ebp - 0xee4]
push edi
push eax
call fcn.004e8ba0
add esp, 0xc
lea ecx, [ebp - 0xee4]
push ecx
mov dword [ebp - 0xee4], ebx
call esi
cmp dword [ebp - 0xee0], 0xa
jne 0x4db49d
cmp dword [ebp - 0xedc], edi
jne 0x4db49d
cmp byte [ebp - 0xdca], 1
jne 0x4db49d
lea edx, [ebp - 0x28c]
push edx
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0xf10]
lea ecx, [ebp - 0x3c4]
push ecx
lea edx, [ebp - 0x5c4]
push edx
push str._s_t_s_t_s_t_s_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edi, edi
mov ebx, 0x11c
push ebx
lea ecx, [ebp - 0xee4]
push edi
push ecx
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0xee4]
push edx
mov dword [ebp - 0xee4], ebx
call esi
cmp dword [ebp - 0xee0], 6
jb 0x4dbbc3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xef4]
push eax
push 0x20219
push edi
push str.SOFTWAREMicrosoftOffice16.0ClickToRunStore
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dbbc3
push 0x1fe
lea edx, [ebp - 0x5c2]
xor ecx, ecx
push edi
push edx
mov dword [ebp - 0xf00], 0x100
mov dword [ebp - 0xf04], 1
mov word [ebp - 0x5c4], cx
call fcn.004e8ba0
add esp, 0xc
lea eax, [ebp - 0xf00]
push eax
mov eax, dword [ebp - 0xef4]
lea ecx, [ebp - 0x5c4]
push ecx
lea edx, [ebp - 0xf04]
push edx
push edi
push str.ProductReleaseIds
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4dbbb6
push 0x3e
lea edx, [ebp - 0x4a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x4c], cx
call fcn.004e8ba0
add esp, 0xc
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x568461], 0
je 0x4dbbc3
lea eax, [ebp - 0xef0]
push eax
push 0x5020f8
push 1
push edi
push 0x5021c8
mov dword [ebp - 0xef0], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4db631
mov eax, dword [ebp - 0xef0]
lea edx, [ebp - 0xeec]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
mov dword [ebp - 0xeec], edi
mov ecx, dword [eax]
push str.ROOTCIMV2
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4db623
mov eax, dword [ebp - 0xeec]
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0xeec]
js 0x4db61b
lea edx, [ebp - 0xef8]
push edx
push edi
push 0x30
push str.SELECT__FROM_OfficeSoftwareProtectionProduct
mov dword [ebp - 0xef8], edi
mov ecx, dword [eax]
push 0x52550c
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jns 0x4db64a
mov eax, dword [ebp - 0xeec]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xef0]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xef8]
mov dword [ebp - 0xefc], edi
cmp eax, edi
je 0x4db6ef
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax]
lea edx, [ebp - 0xefc]
push edx
lea edx, [ebp - 0xf0c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0xefc], edi
je 0x4db6e9
mov eax, dword [ebp - 0xf0c]
mov ecx, dword [eax]
push edi
push edi
lea edx, [ebp - 0xf24]
push edx
push edi
push str.PartialProductKey
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4db6b1
cmp word [ebp - 0xf24], 1
jne 0x4db6c6
lea ecx, [ebp - 0xf24]
push ecx
call esi
mov eax, dword [ebp - 0xef8]
cmp eax, edi
jne 0x4db664
jmp 0x4db6ef
mov eax, dword [ebp - 0xf1c]
lea edx, [ebp - 0x4c]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, di
jne 0x4db6d1
lea edx, [ebp - 0xf24]
push edx
call esi
mov eax, dword [ebp - 0xef8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xeec]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xef0]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x4c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4db720
sub eax, edx
sar eax, 1
je 0x4dbbb6
lea eax, [ebp - 0xee8]
push eax
push 0x20219
push edi
push str.SOFTWAREMicrosoftOffice16.0
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xee8], edi
call ebx
push 0x1fe
lea edx, [ebp - 0x28a]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x28c], cx
call fcn.004e8ba0
add esp, 0xc
lea eax, [ebp - 0xee8]
push eax
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0WordInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4db7a7
lea esp, [esp]
movzx ecx, word [eax + str.Word]
mov word [ebp + eax - 0x28c], cx
add eax, 2
cmp cx, di
jne 0x4db790
lea ecx, [ebp - 0xee8]
push ecx
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4db7ff
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4db7d0
mov edx, dword [str._Access]
mov ecx, dword [0x54e464]
mov dword [eax], edx
mov edx, dword [0x54e468]
mov dword [eax + 4], ecx
mov ecx, dword [0x54e46c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea edx, [ebp - 0xee8]
push edx
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4db853
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4db822
mov ecx, dword [str._Excel]
mov edx, dword [0x54e474]
mov dword [eax], ecx
mov ecx, dword [0x54e478]
mov dword [eax + 4], edx
mov dx, word [0x54e47c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [ebp - 0xee8]
push eax
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0GrooveInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4db8b7
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4db876
mov ecx, dword [str._SharePoint]
mov edx, dword [0x54e4e8]
mov dword [eax], ecx
mov ecx, dword [0x54e4ec]
mov dword [eax + 4], edx
mov edx, dword [0x54e4f0]
mov dword [eax + 8], ecx
mov ecx, dword [0x54e4f4]
mov dword [eax + 0xc], edx
mov edx, dword [0x54e4f8]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0xee8]
push eax
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4db918
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4db8e0
mov ecx, dword [str._InfoPath]
mov edx, dword [0x54e500]
mov dword [eax], ecx
mov ecx, dword [0x54e504]
mov dword [eax + 4], edx
mov edx, dword [0x54e508]
mov dword [eax + 8], ecx
mov ecx, dword [0x54e50c]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
lea edx, [ebp - 0xee8]
push edx
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4db97a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4db940
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4db940
mov ecx, dword [str._OneNote]
mov edx, dword [0x54e514]
mov dword [eax], ecx
mov ecx, dword [0x54e518]
mov dword [eax + 4], edx
mov edx, dword [0x54e51c]
mov dword [eax + 8], ecx
mov cx, word [0x54e520]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0xee8]
push edx
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4db9da
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4db9a0
mov ecx, dword [str._Outlook]
mov edx, dword [0x54e528]
mov dword [eax], ecx
mov ecx, dword [0x54e52c]
mov dword [eax + 4], edx
mov edx, dword [0x54e530]
mov dword [eax + 8], ecx
mov cx, word [0x54e534]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0xee8]
push edx
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dba41
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dba00
mov ecx, dword [str._PowerPoint]
mov edx, dword [0x54e53c]
mov dword [eax], ecx
mov ecx, dword [0x54e540]
mov dword [eax + 4], edx
mov edx, dword [0x54e544]
mov dword [eax + 8], ecx
mov ecx, dword [0x54e548]
mov dword [eax + 0xc], edx
mov edx, dword [0x54e54c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0xee8]
push eax
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dba9e
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dba64
mov ecx, dword [str._Project]
mov edx, dword [0x54e554]
mov dword [eax], ecx
mov ecx, dword [0x54e558]
mov dword [eax + 4], edx
mov edx, dword [0x54e55c]
mov dword [eax + 8], ecx
mov cx, word [0x54e560]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0xee8]
push edx
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dbb04
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dbac1
mov ecx, dword [str._Publisher]
mov edx, dword [0x54e568]
mov dword [eax], ecx
mov ecx, dword [0x54e56c]
mov dword [eax + 4], edx
mov edx, dword [0x54e570]
mov dword [eax + 8], ecx
mov ecx, dword [0x54e574]
mov dword [eax + 0xc], edx
mov dx, word [0x54e578]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [ebp - 0xee8]
push eax
push 1
push edi
push str.SOFTWAREMicrosoftOffice16.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dbb61
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dbb30
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dbb30
mov ecx, dword [str._Visio]
mov edx, dword [0x54e580]
mov dword [eax], ecx
mov ecx, dword [0x54e584]
mov dword [eax + 4], edx
mov dx, word [0x54e588]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [ebp - 0x28c]
push eax
mov eax, dword [ebp - 0xf10]
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x5c4]
push edx
push str.Microsoft_Office__s_2016_t_t_s_t_s_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0xee8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x14
push ecx
call esi
mov edx, dword [ebp - 0xef4]
push edx
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xef4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret