Function at 0x4d9b60
Capabilities:
Connect to wmi namespace via wbemlocator
Query or enumerate registry key
Query or enumerate registry value
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x17a8
call fcn.004f23a0
mov eax, dword [0x5552b0]
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 - 0x1780]
push ecx
push 0x20119
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftOffice15.0Registration
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x17a0], eax
mov dword [ebp - 0x1780], ebx
call edi
test eax, eax
jne 0x4da337
push 0x1fe
lea eax, [ebp - 0x77a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x77c], dx
call fcn.004e8ba0
add esp, 0xc
push 0x7ff
lea ecx, [ebp - 0x177b]
push ebx
push ecx
mov byte [ebp - 0x177c], bl
call fcn.004e8ba0
add esp, 0xc
push 0x7fe
lea eax, [ebp - 0xf7a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0xf7c], dx
call fcn.004e8ba0
add esp, 0xc
push 0xfe
lea edx, [ebp - 0x27a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x27c], cx
call fcn.004e8ba0
add esp, 0xc
push 0x80
lea eax, [ebp - 0x27c]
push ebx
push eax
mov dword [ebp - 0x1790], ebx
call fcn.004e8ba0
mov edx, dword [ebp - 0x1780]
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x27c]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4d9e0c
xor eax, eax
jmp 0x4d9c70
movzx ecx, word [eax + str.SOFTWAREMicrosoftOffice15.0Registration_]
mov word [ebp + eax - 0xf7c], cx
add eax, 2
cmp cx, bx
jne 0x4d9c70
lea eax, [ebp - 0x27c]
mov esi, eax
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d9c90
lea edi, [ebp - 0xf7c]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4d9ca6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x1788]
push eax
and ecx, 3
push 0x101
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [ebp - 0xf7c]
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x1788], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d9db9
lea edx, [ebp - 0x1784]
push edx
mov edx, dword [ebp - 0x1788]
lea eax, [ebp - 0x177c]
push eax
lea ecx, [ebp - 0x178c]
push ecx
push ebx
push str.DigitalProductId
push edx
mov dword [ebp - 0x178c], 3
mov dword [ebp - 0x1784], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d9dac
push 0x1fe
lea ecx, [ebp - 0x57a]
push ebx
push ecx
mov dword [ebp - 0x1794], 0x200
mov word [ebp - 0x57c], ax
call fcn.004e8ba0
add esp, 0xc
lea edx, [ebp - 0x1794]
push edx
mov edx, dword [ebp - 0x1788]
lea eax, [ebp - 0x57c]
push eax
lea ecx, [ebp - 0x178c]
push ecx
push ebx
push str.ProductID
push edx
mov dword [ebp - 0x178c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d9dac
lea eax, [ebp - 0x77c]
push eax
lea edx, [ebp - 0x27c]
lea ecx, [ebp - 0x57c]
call fcn.004d97f0
add esp, 4
test eax, eax
jne 0x4d9dff
mov ecx, dword [ebp - 0x1788]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x1790]
push 0x80
lea edx, [ebp - 0x27c]
push ebx
inc esi
push edx
mov dword [ebp - 0x1790], esi
call fcn.004e8ba0
mov ecx, dword [ebp - 0x1780]
add esp, 0xc
push 0x80
lea eax, [ebp - 0x27c]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4d9c64
jmp 0x4d9e0c
mov edx, dword [ebp - 0x1788]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1780]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x77c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d9e22
sub eax, edx
sar eax, 1
je 0x4dab06
mov ecx, 6
mov esi, 0x54edcc
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x38
lea ecx, [ebp - 0x84]
push ebx
push ecx
mov byte [ebp - 0x28], bl
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x88], ebx
call fcn.004e8ba0
add esp, 0xc
xor eax, eax
jmp 0x4d9e90
movzx edx, byte [ebp + eax - 0x1454]
mov dword [ebp + eax*4 - 0x88], edx
inc eax
cmp eax, 0xf
jl 0x4d9e90
mov edi, 0x1d
lea ebx, [ebp - 0xc]
lea ecx, [ecx]
mov eax, 0xaaaaaaab
mul edi
shr edx, 2
lea eax, [edx + edx*2]
add eax, eax
mov ecx, edi
sub ecx, eax
jne 0x4d9ecc
mov byte [ebx + edi - 0x1d], 0x2d
jmp 0x4d9f18
xor ecx, ecx
mov esi, 0xe
jmp 0x4d9ee0
shl ecx, 8
or ecx, dword [ebp + esi*4 - 0x88]
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 - 0x88], eax
sub ecx, edx
dec esi
jns 0x4d9ee0
mov al, byte [ebp + ecx - 0x4c]
mov byte [ebx + edi - 0x1d], al
dec edi
test edi, edi
jg 0x4d9eb0
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x152]
push edx
mov word [ebp - 0x154], cx
call fcn.004e8ba0
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
push 0
push 0
call esi
push eax
lea ecx, [ebp - 0x154]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x28]
push edx
push 0
push 0
call esi
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0xca]
push ecx
mov dword [ebp - 0x1794], 0x40
mov word [ebp - 0xcc], ax
call fcn.004e8ba0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [ebp - 0x1780]
push edx
push 0x20119
push 0
push str.SOFTWAREMicrosoftOffice15.0CommonProductVersion
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4d9fef
lea eax, [ebp - 0x1794]
push eax
mov eax, dword [ebp - 0x1780]
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x178c]
push edx
push 0
push str.LastProduct
push eax
mov dword [ebp - 0x178c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x1780]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call edi
jmp 0x4da00e
xor eax, eax
movzx ecx, word [eax + str.15.0]
mov word [ebp + eax - 0xcc], cx
add eax, 2
test cx, cx
jne 0x4d9ff1
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x47a]
push eax
mov word [ebp - 0x47c], dx
call fcn.004e8ba0
add esp, 0xc
lea ecx, [ebp - 0x1780]
push ecx
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da070
lea ebx, [ebx]
movzx ecx, word [eax + str.Access]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da050
mov edx, dword [ebp - 0x1780]
push edx
call edi
lea eax, [ebp - 0x1780]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da0b0
mov edi, edi
movzx ecx, word [eax + str.Excel]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da090
mov ecx, dword [ebp - 0x1780]
push ecx
call edi
lea edx, [ebp - 0x1780]
push edx
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0SharePointInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da0f0
mov edi, edi
movzx ecx, word [eax + str.SharePoint]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da0d0
mov eax, dword [ebp - 0x1780]
push eax
call edi
lea ecx, [ebp - 0x1780]
push ecx
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da130
mov edi, edi
movzx ecx, word [eax + str.InfoPath]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da110
mov edx, dword [ebp - 0x1780]
push edx
call edi
lea eax, [ebp - 0x1780]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da170
mov edi, edi
movzx ecx, word [eax + str.OneNote]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da150
mov ecx, dword [ebp - 0x1780]
push ecx
call edi
lea edx, [ebp - 0x1780]
push edx
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da1b0
mov edi, edi
movzx ecx, word [eax + str.Outlook]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da190
mov eax, dword [ebp - 0x1780]
push eax
call edi
lea ecx, [ebp - 0x1780]
push ecx
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da1f0
mov edi, edi
movzx ecx, word [eax + str.Excel]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da1d0
mov edx, dword [ebp - 0x1780]
push edx
call edi
lea eax, [ebp - 0x1780]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da230
mov edi, edi
movzx ecx, word [eax + str.Project]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da210
mov ecx, dword [ebp - 0x1780]
push ecx
call edi
lea edx, [ebp - 0x1780]
push edx
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da270
mov edi, edi
movzx ecx, word [eax + str.Publisher]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da250
mov eax, dword [ebp - 0x1780]
push eax
call edi
lea ecx, [ebp - 0x1780]
push ecx
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da2b0
mov edi, edi
movzx ecx, word [eax + str.Visio]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da290
mov edx, dword [ebp - 0x1780]
push edx
call edi
lea eax, [ebp - 0x1780]
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftOffice15.0WordInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da2f0
mov edi, edi
movzx ecx, word [eax + str.Word]
mov word [ebp + eax - 0x47c], cx
add eax, 2
test cx, cx
jne 0x4da2d0
mov ecx, dword [ebp - 0x1780]
push ecx
call edi
lea edx, [ebp - 0x47c]
push edx
lea eax, [ebp - 0x154]
push eax
mov eax, dword [ebp - 0x17a0]
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x77c]
push edx
push str._s_x64_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
lea ecx, [ebp - 0x1780]
push ecx
push 0x20119
push ebx
push str.SOFTWAREMicrosoftOffice15.0ClickToRunStore
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dab06
push 0x1fe
lea eax, [ebp - 0x77a]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x1794], 0x200
mov dword [ebp - 0x17a4], 1
mov word [ebp - 0x77c], dx
call fcn.004e8ba0
add esp, 0xc
lea ecx, [ebp - 0x1794]
push ecx
mov ecx, dword [ebp - 0x1780]
lea edx, [ebp - 0x77c]
push edx
lea eax, [ebp - 0x17a4]
push eax
push ebx
push str.ProductReleaseIds
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4daaf9
push 0x3e
lea eax, [ebp - 0x8a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x8c], dx
call fcn.004e8ba0
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x568461], bl
jne 0x4da40b
push str.GetOffice2013x64Info
xor edx, edx
mov ecx, str.Function_Fail
call fcn.004a3f00
add esp, 4
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
lea ecx, [ebp - 0x1788]
push ecx
push 0x5020f8
push 1
push ebx
push 0x5021c8
mov dword [ebp - 0x1788], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4da4c0
mov eax, dword [ebp - 0x1788]
lea ecx, [ebp - 0x1790]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x1790], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push str.ROOTCIMV2
push eax
call edx
test eax, eax
js 0x4da4b2
mov eax, dword [ebp - 0x1790]
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 - 0x1790]
js 0x4da4aa
lea edx, [ebp - 0x178c]
push edx
push ebx
push 0x30
push str.SELECT__FROM_OfficeSoftwareProtectionProduct_WHERE_PartialProductKey___NULL
mov dword [ebp - 0x178c], ebx
mov ecx, dword [eax]
push 0x52550c
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jns 0x4da4d9
mov eax, dword [ebp - 0x1790]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1788]
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 - 0x178c]
mov dword [ebp - 0x1784], ebx
cmp eax, ebx
je 0x4da57b
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [eax]
lea edx, [ebp - 0x1784]
push edx
lea edx, [ebp - 0x179c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x1784], ebx
je 0x4da575
mov eax, dword [ebp - 0x179c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x44]
push edx
push ebx
push str.PartialProductKey
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4da53a
cmp word [ebp - 0x44], 1
jne 0x4da54c
lea ecx, [ebp - 0x44]
push ecx
call esi
mov eax, dword [ebp - 0x178c]
cmp eax, ebx
jne 0x4da4f3
jmp 0x4da57b
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x8c]
sub edx, eax
jmp 0x4da560
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4da560
lea edx, [ebp - 0x44]
push edx
call esi
mov eax, dword [ebp - 0x178c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1790]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1788]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x8c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4da5b0
sub eax, edx
sar eax, 1
je 0x4daaf9
lea eax, [ebp - 0x1784]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftOffice15.0
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x1784], ebx
call edi
push 0x1fe
lea edx, [ebp - 0x37a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x37c], cx
call fcn.004e8ba0
add esp, 0xc
lea eax, [ebp - 0x1784]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0WordInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da637
nop
movzx ecx, word [eax + str.Word]
mov word [ebp + eax - 0x37c], cx
add eax, 2
cmp cx, bx
jne 0x4da620
lea ecx, [ebp - 0x1784]
push ecx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da68f
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da660
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 - 0x1784]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da6e6
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da6b5
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 - 0x1784]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0GrooveInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da751
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da710
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 - 0x1784]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da7b8
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
jmp 0x4da780
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da780
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 - 0x1784]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da81a
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da7e0
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 - 0x1784]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da87a
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da840
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 - 0x1784]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da8e1
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da8a0
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 - 0x1784]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da94a
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
jmp 0x4da910
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da910
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 - 0x1784]
push edx
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4da9b3
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da970
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 - 0x1784]
push eax
push 0x101
push ebx
push str.SOFTWAREMicrosoftOffice15.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4daa11
lea eax, [ebp - 0x37c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4da9e0
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
mov eax, dword [ebp - 0x1784]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x1780]
push ecx
call esi
push 0xaa
lea eax, [ebp - 0x17a]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x179c], 0x56
mov word [ebp - 0x17c], dx
call fcn.004e8ba0
add esp, 0xc
lea ecx, [ebp - 0x1780]
push ecx
push 0x20119
push ebx
push str.SOFTWAREMicrosoftOffice15.0CommonProductVersion
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4daaa9
lea edx, [ebp - 0x179c]
push edx
mov edx, dword [ebp - 0x1780]
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x1798]
push ecx
push ebx
push str.LastProduct
push edx
mov dword [ebp - 0x1798], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x1780]
push eax
call esi
lea ecx, [ebp - 0x37c]
push ecx
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ebp - 0x17a0]
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x77c]
push ecx
push str.Microsoft_Office__s_2013_x64_t_s_t_s_t_s_t
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x1780]
add esp, 0x18
push eax
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 ecx, dword [ebp - 0x1780]
push ecx
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