Function at 0x4dbf70
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 0x20119
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 0x4dc8f0
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 0x4dc629
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 0x20119
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4dc1a4
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 0x4dc191
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 0x4dc191
mov ecx, dword [ebp - 0xef0]
lea eax, [ebp - 0x3c4]
push eax
lea ebx, [ebp - 0x5c4]
call fcn.004dd060
add esp, 4
test eax, eax
jne 0x4dc1f2
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 0x4dc070
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0xee8]
push ecx
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc237
jmp 0x4dc220
movzx ecx, word [eax + str.Access]
mov word [ebp + eax - 0x28c], cx
add eax, 2
test cx, cx
jne 0x4dc220
lea edx, [ebp - 0xee8]
push edx
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc291
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc260
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 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0GrooveInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc301
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dc2c0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc2c0
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 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc368
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dc330
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc330
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 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc3ca
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc390
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 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc42b
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc3f1
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 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc493
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc452
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 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc4fa
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc4c0
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 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc564
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc521
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 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc5c1
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dc590
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc590
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 0x101
push 0
push str.SOFTWAREMicrosoftOffice16.0WordInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4dc616
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dc5f0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dc5f0
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]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dc666
sub eax, edx
sar eax, 1
je 0x4dc8f0
cmp dword [ebp - 0xefc], 0x800
je 0x4dc8f0
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
movzx ecx, byte [ebp + eax - 0xa9c]
mov dword [ebp + eax*4 - 0x48], ecx
inc eax
cmp eax, 0xf
jl 0x4dc6d3
mov edi, 0x1d
lea ebx, [ebp - 0x54]
lea ecx, [ecx]
mov eax, 0xaaaaaaab
mul edi
shr edx, 2
lea edx, [edx + edx*2]
add edx, edx
mov eax, edi
sub eax, edx
jne 0x4dc70f
mov ecx, 0x2d
mov word [ebx], cx
jmp 0x4dc755
xor ecx, ecx
mov esi, 0xe
jmp 0x4dc720
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 0x4dc720
mov ax, word [ebp + ecx*2 - 0x2c0]
mov word [ebx], ax
dec edi
sub ebx, 2
test edi, edi
jg 0x4dc6f0
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 0x20119
push 0
push str.SOFTWAREMicrosoftOffice16.0CommonProductVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4dc7e8
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 0x4dc807
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 0x4dc7f0
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 0x4dc8a9
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 0x4dc86f
call fcn.004dd3e0
test eax, eax
jne 0x4dc8a9
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 0x4dc8fd
cmp dword [ebp - 0xedc], edi
jne 0x4dc8fd
cmp byte [ebp - 0xdca], 1
jne 0x4dc8fd
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 0x4dd043
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xef4]
push eax
push 0x20119
push edi
push str.SOFTWAREMicrosoftOffice16.0ClickToRunStore
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dd043
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 0x4dd036
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 0x4dd043
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 0x4dca91
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 0x4dca83
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 0x4dca7b
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 0x4dcaaa
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 0x4dcb4f
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 0x4dcb49
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 0x4dcb11
cmp word [ebp - 0xf24], 1
jne 0x4dcb26
lea ecx, [ebp - 0xf24]
push ecx
call esi
mov eax, dword [ebp - 0xef8]
cmp eax, edi
jne 0x4dcac4
jmp 0x4dcb4f
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 0x4dcb31
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 0x4dcb80
sub eax, edx
sar eax, 1
je 0x4dd036
lea eax, [ebp - 0xee8]
push eax
push 0x20119
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0WordInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dcc07
nop
movzx ecx, word [eax + str.Word]
mov word [ebp + eax - 0x28c], cx
add eax, 2
cmp cx, di
jne 0x4dcbf0
lea ecx, [ebp - 0xee8]
push ecx
push 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dcc5f
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dcc30
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dccb6
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dcc85
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0GrooveInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dcd21
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dcce0
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dcd88
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dcd50
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dcd50
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dcdea
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dcdb0
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dce4a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dce10
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dceb1
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dce70
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dcf1a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dcee0
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dcee0
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dcf83
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dcf40
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 0x101
push edi
push str.SOFTWAREMicrosoftOffice16.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4dcfe1
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x4dcfb0
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