Function at 0x4db400
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 [0x5322a8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0xef4]
push ecx
push 0x20119
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftOffice16.0Registration
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xf10], eax
mov dword [ebp - 0xef4], ebx
call edi
test eax, eax
jne 0x4dbd5a
push 0x208
call fcn.004e4629
add esp, 4
push 0x208
mov dword [ebp - 0xef8], eax
call fcn.004e4629
add esp, 4
mov ebx, eax
push 0x208
mov dword [ebp - 0xef0], ebx
call fcn.004e4629
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.004e7d90
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x5c2]
push ecx
mov word [ebp - 0x5c4], ax
call fcn.004e7d90
add esp, 0xc
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp - 0x28a]
push eax
mov word [ebp - 0x28c], dx
call fcn.004e7d90
add esp, 0xc
mov edi, edi
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 0x4dbab9
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 0x4db634
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 0x52a1a4
push eax
mov dword [ebp - 0xf08], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4db621
push 0xff
push eax
lea ecx, [ebp - 0x3c3]
push ecx
mov dword [ebp - 0xf00], pe_nt_image_headers32
mov byte [ebp - 0x3c4], al
call fcn.004e7d90
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 0x4db621
mov ecx, dword [ebp - 0xef0]
lea eax, [ebp - 0x3c4]
push eax
lea ebx, [ebp - 0x5c4]
call fcn.004dc4c0
add esp, 4
test eax, eax
jne 0x4db682
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.004e7d90
add esp, 0xc
push 0x208
push 0
push ebx
call fcn.004e7d90
mov eax, dword [ebp - 0xeec]
add esp, 0xc
push 0x208
push 0
push eax
call fcn.004e7d90
add esp, 0xc
mov dword [ebp - 0xf0c], edi
mov dword [ebp - 0xf04], edi
inc esi
jmp 0x4db500
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 0x4db6c7
jmp 0x4db6b0
movzx ecx, word [eax + str.Access]
mov word [ebp + eax - 0x28c], cx
add eax, 2
test cx, cx
jne 0x4db6b0
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 0x4db721
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db6f0
mov ecx, dword [str._Excel]
mov edx, dword [0x52b05c]
mov dword [eax], ecx
mov ecx, dword [0x52b060]
mov dword [eax + 4], edx
mov dx, word [0x52b064]
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 0x4db791
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4db750
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db750
mov ecx, dword [str._SharePoint]
mov edx, dword [0x52b0d0]
mov dword [eax], ecx
mov ecx, dword [0x52b0d4]
mov dword [eax + 4], edx
mov edx, dword [0x52b0d8]
mov dword [eax + 8], ecx
mov ecx, dword [0x52b0dc]
mov dword [eax + 0xc], edx
mov edx, dword [0x52b0e0]
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 0x4db7f8
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4db7c0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db7c0
mov ecx, dword [str._InfoPath]
mov edx, dword [0x52b0e8]
mov dword [eax], ecx
mov ecx, dword [0x52b0ec]
mov dword [eax + 4], edx
mov edx, dword [0x52b0f0]
mov dword [eax + 8], ecx
mov ecx, dword [0x52b0f4]
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 0x4db85a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db820
mov ecx, dword [str._OneNote]
mov edx, dword [0x52b0fc]
mov dword [eax], ecx
mov ecx, dword [0x52b100]
mov dword [eax + 4], edx
mov edx, dword [0x52b104]
mov dword [eax + 8], ecx
mov cx, word [0x52b108]
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 0x4db8bb
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db881
mov ecx, dword [str._Outlook]
mov edx, dword [0x52b110]
mov dword [eax], ecx
mov ecx, dword [0x52b114]
mov dword [eax + 4], edx
mov edx, dword [0x52b118]
mov dword [eax + 8], ecx
mov cx, word [0x52b11c]
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 0x4db923
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db8e2
mov ecx, dword [str._PowerPoint]
mov edx, dword [0x52b124]
mov dword [eax], ecx
mov ecx, dword [0x52b128]
mov dword [eax + 4], edx
mov edx, dword [0x52b12c]
mov dword [eax + 8], ecx
mov ecx, dword [0x52b130]
mov dword [eax + 0xc], edx
mov edx, dword [0x52b134]
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 0x4db98a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db950
mov ecx, dword [str._Project]
mov edx, dword [0x52b13c]
mov dword [eax], ecx
mov ecx, dword [0x52b140]
mov dword [eax + 4], edx
mov edx, dword [0x52b144]
mov dword [eax + 8], ecx
mov cx, word [0x52b148]
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 0x4db9f4
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4db9b1
mov ecx, dword [str._Publisher]
mov edx, dword [0x52b150]
mov dword [eax], ecx
mov ecx, dword [0x52b154]
mov dword [eax + 4], edx
mov edx, dword [0x52b158]
mov dword [eax + 8], ecx
mov ecx, dword [0x52b15c]
mov dword [eax + 0xc], edx
mov dx, word [0x52b160]
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 0x4dba51
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dba20
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dba20
mov ecx, dword [str._Visio]
mov edx, dword [0x52b168]
mov dword [eax], ecx
mov ecx, dword [0x52b16c]
mov dword [eax + 4], edx
mov dx, word [0x52b170]
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 0x4dbaa6
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dba80
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4dba80
mov ecx, dword [str._Word]
mov edx, dword [0x52cf54]
mov dword [eax], ecx
mov ecx, dword [0x52cf58]
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.004e41ab
add esp, 4
push ebx
call fcn.004e41ab
mov edx, dword [ebp - 0xeec]
add esp, 4
push edx
call fcn.004e41ab
lea eax, [ebp - 0x5c4]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4dbaf6
sub eax, edx
sar eax, 1
je 0x4dbd52
cmp dword [ebp - 0xefc], 0x800
je 0x4dbd52
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x8a]
push ecx
mov word [ebp - 0x8c], ax
call fcn.004e7d90
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.004e7d90
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 0x4dbb63
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 0x4dbb9f
mov ecx, 0x2d
mov word [ebx], cx
jmp 0x4dbbe5
xor ecx, ecx
mov esi, 0xe
jmp 0x4dbbb0
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 0x4dbbb0
mov ax, word [ebp + ecx*2 - 0x2c0]
mov word [ebx], ax
dec edi
sub ebx, 2
test edi, edi
jg 0x4dbb80
push 0xff
lea ecx, [ebp - 0x3c3]
push 0
push ecx
mov dword [ebp - 0xf00], pe_nt_image_headers32
mov byte [ebp - 0x3c4], 0
call fcn.004e7d90
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 0x4dbc78
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 0x4dbc97
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 0x4dbc80
mov edi, 0x11c
push edi
lea edx, [ebp - 0xee4]
push 0
push edx
call fcn.004e7d90
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xee4]
push eax
mov dword [ebp - 0xee4], edi
call esi
mov ebx, 6
cmp dword [ebp - 0xee0], ebx
jb 0x4dbd0b
push edi
lea ecx, [ebp - 0xee4]
push 0
push ecx
call fcn.004e7d90
add esp, 0xc
lea edx, [ebp - 0xee4]
push edx
mov dword [ebp - 0xee4], edi
call esi
cmp dword [ebp - 0xee0], ebx
jb 0x4dbd02
call fcn.004dc840
test eax, eax
jne 0x4dbd0b
call fcn.004bc280
test eax, eax
je 0x4dbd52
lea eax, [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp - 0xf10]
lea edx, [ebp - 0x3c4]
push edx
lea eax, [ebp - 0x5c4]
push eax
push str._s_t_s_t_s_t_s
push ecx
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.004e3946
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
push 0x11c
lea edx, [ebp - 0xee4]
push ebx
push edx
call fcn.004e7d90
add esp, 0xc
lea eax, [ebp - 0xee4]
push eax
mov dword [ebp - 0xee4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0xee0], 6
jb 0x4dc4a3
lea ecx, [ebp - 0xef4]
push ecx
push 0x20119
push ebx
push str.SOFTWAREMicrosoftOffice16.0ClickToRunStore
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc4a3
push 0x1fe
lea eax, [ebp - 0x5c2]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0xf00], pe_nt_image_headers32
mov dword [ebp - 0xf04], 1
mov word [ebp - 0x5c4], dx
call fcn.004e7d90
add esp, 0xc
lea ecx, [ebp - 0xf00]
push ecx
mov ecx, dword [ebp - 0xef4]
lea edx, [ebp - 0x5c4]
push edx
lea eax, [ebp - 0xf04]
push eax
push ebx
push str.ProductReleaseIds
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4dc496
push 0x3e
lea eax, [ebp - 0x4a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x4c], dx
call fcn.004e7d90
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x53b5fd], 0
je 0x4dc4a3
lea ecx, [ebp - 0xef0]
push ecx
push 0x502118
push 1
push ebx
push 0x5021e8
mov dword [ebp - 0xef0], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4dbef4
mov eax, dword [ebp - 0xef0]
lea ecx, [ebp - 0xeec]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0xeec], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0x52619c
push eax
call edx
test eax, eax
js 0x4dbee6
mov eax, dword [ebp - 0xeec]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0xeec]
js 0x4dbede
lea edx, [ebp - 0xef8]
push edx
push ebx
push 0x30
push str.SELECT__FROM_OfficeSoftwareProtectionProduct
mov dword [ebp - 0xef8], ebx
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jns 0x4dbf0d
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.004e3946
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xef8]
mov dword [ebp - 0xefc], ebx
cmp eax, ebx
je 0x4dbfb2
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], ebx
je 0x4dbfac
mov eax, dword [ebp - 0xf0c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0xf24]
push edx
push ebx
push str.PartialProductKey
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4dbf74
cmp word [ebp - 0xf24], 1
jne 0x4dbf89
lea ecx, [ebp - 0xf24]
push ecx
call esi
mov eax, dword [ebp - 0xef8]
cmp eax, ebx
jne 0x4dbf27
jmp 0x4dbfb2
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, bx
jne 0x4dbf94
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]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4dbfe2
sub eax, edx
sar eax, 1
je 0x4dc496
lea eax, [ebp - 0xee8]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftOffice16.0
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xee8], ebx
call edi
push 0x1fe
lea edx, [ebp - 0x28a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x28c], cx
call fcn.004e7d90
add esp, 0xc
lea eax, [ebp - 0xee8]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0WordInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc068
movzx ecx, word [eax + str.Word]
mov word [ebp + eax - 0x28c], cx
add eax, 2
cmp cx, bx
jne 0x4dc051
lea ecx, [ebp - 0xee8]
push ecx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc0bf
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc090
mov edx, dword [str._Access]
mov ecx, dword [0x52b04c]
mov dword [eax], edx
mov edx, dword [0x52b050]
mov dword [eax + 4], ecx
mov ecx, dword [0x52b054]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
lea edx, [ebp - 0xee8]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc116
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc0e5
mov ecx, dword [str._Excel]
mov edx, dword [0x52b05c]
mov dword [eax], ecx
mov ecx, dword [0x52b060]
mov dword [eax + 4], edx
mov dx, word [0x52b064]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [ebp - 0xee8]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0GrooveInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc181
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc140
mov ecx, dword [str._SharePoint]
mov edx, dword [0x52b0d0]
mov dword [eax], ecx
mov ecx, dword [0x52b0d4]
mov dword [eax + 4], edx
mov edx, dword [0x52b0d8]
mov dword [eax + 8], ecx
mov ecx, dword [0x52b0dc]
mov dword [eax + 0xc], edx
mov edx, dword [0x52b0e0]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0xee8]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc1e8
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dc1b0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc1b0
mov ecx, dword [str._InfoPath]
mov edx, dword [0x52b0e8]
mov dword [eax], ecx
mov ecx, dword [0x52b0ec]
mov dword [eax + 4], edx
mov edx, dword [0x52b0f0]
mov dword [eax + 8], ecx
mov ecx, dword [0x52b0f4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
lea edx, [ebp - 0xee8]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc24a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc210
mov ecx, dword [str._OneNote]
mov edx, dword [0x52b0fc]
mov dword [eax], ecx
mov ecx, dword [0x52b100]
mov dword [eax + 4], edx
mov edx, dword [0x52b104]
mov dword [eax + 8], ecx
mov cx, word [0x52b108]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0xee8]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc2aa
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc270
mov ecx, dword [str._Outlook]
mov edx, dword [0x52b110]
mov dword [eax], ecx
mov ecx, dword [0x52b114]
mov dword [eax + 4], edx
mov edx, dword [0x52b118]
mov dword [eax + 8], ecx
mov cx, word [0x52b11c]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0xee8]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc311
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc2d0
mov ecx, dword [str._PowerPoint]
mov edx, dword [0x52b124]
mov dword [eax], ecx
mov ecx, dword [0x52b128]
mov dword [eax + 4], edx
mov edx, dword [0x52b12c]
mov dword [eax + 8], ecx
mov ecx, dword [0x52b130]
mov dword [eax + 0xc], edx
mov edx, dword [0x52b134]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0xee8]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc37a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dc340
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc340
mov ecx, dword [str._Project]
mov edx, dword [0x52b13c]
mov dword [eax], ecx
mov ecx, dword [0x52b140]
mov dword [eax + 4], edx
mov edx, dword [0x52b144]
mov dword [eax + 8], ecx
mov cx, word [0x52b148]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea edx, [ebp - 0xee8]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc3e3
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc3a0
mov ecx, dword [str._Publisher]
mov edx, dword [0x52b150]
mov dword [eax], ecx
mov ecx, dword [0x52b154]
mov dword [eax + 4], edx
mov edx, dword [0x52b158]
mov dword [eax + 8], ecx
mov ecx, dword [0x52b15c]
mov dword [eax + 0xc], edx
mov dx, word [0x52b160]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [ebp - 0xee8]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice16.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dc441
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dc410
mov ecx, dword [str._Visio]
mov edx, dword [0x52b168]
mov dword [eax], ecx
mov ecx, dword [0x52b16c]
mov dword [eax + 4], edx
mov dx, word [0x52b170]
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
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.004e3946
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.004e3946
mov esp, ebp
pop ebp
ret