Function at 0x4da000
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 0x20219
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 0x4da93a
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 0x4da68e
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 0x4da234
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 0x4da221
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 0x4da221
mov ecx, dword [ebp - 0xef0]
lea eax, [ebp - 0x3c4]
push eax
lea ebx, [ebp - 0x5c4]
call fcn.004db080
add esp, 4
test eax, eax
jne 0x4da282
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 0x4da100
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 0x4da2c7
jmp 0x4da2b0
movzx ecx, word [eax + str.Access]
mov word [ebp + eax - 0x28c], cx
add eax, 2
test cx, cx
jne 0x4da2b0
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 0x4da321
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4da2f0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da2f0
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 1
push 0
push str.SOFTWAREMicrosoftOffice16.0GrooveInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da386
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da345
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 1
push 0
push str.SOFTWAREMicrosoftOffice16.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da3e8
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da3b0
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 1
push 0
push str.SOFTWAREMicrosoftOffice16.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da44a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da410
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 1
push 0
push str.SOFTWAREMicrosoftOffice16.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da4aa
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da470
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 1
push 0
push str.SOFTWAREMicrosoftOffice16.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da511
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da4d0
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 1
push 0
push str.SOFTWAREMicrosoftOffice16.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da56f
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da535
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 1
push 0
push str.SOFTWAREMicrosoftOffice16.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da5d6
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da593
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 1
push 0
push str.SOFTWAREMicrosoftOffice16.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da631
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da600
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 1
push 0
push str.SOFTWAREMicrosoftOffice16.0WordInstallRoot
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x4da67b
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4da655
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]
jmp 0x4da6d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4da6d0
sub eax, edx
sar eax, 1
je 0x4da932
cmp dword [ebp - 0xefc], 0x800
je 0x4da932
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
lea ecx, [ecx]
movzx ecx, byte [ebp + eax - 0xa9c]
mov dword [ebp + eax*4 - 0x48], ecx
inc eax
cmp eax, 0xf
jl 0x4da740
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 0x4da77f
mov ecx, 0x2d
mov word [ebx], cx
jmp 0x4da7c5
xor ecx, ecx
mov esi, 0xe
jmp 0x4da790
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 0x4da790
mov ax, word [ebp + ecx*2 - 0x2c0]
mov word [ebx], ax
dec edi
sub ebx, 2
test edi, edi
jg 0x4da760
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 0x20219
push 0
push str.SOFTWAREMicrosoftOffice16.0CommonProductVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4da858
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 0x4da877
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 0x4da860
mov ebx, 0x11c
push ebx
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], ebx
call esi
mov edi, 6
cmp dword [ebp - 0xee0], edi
jb 0x4da8eb
push ebx
lea ecx, [ebp - 0xee4]
push 0
push ecx
call fcn.004e7d90
add esp, 0xc
lea edx, [ebp - 0xee4]
push edx
mov dword [ebp - 0xee4], ebx
call esi
cmp dword [ebp - 0xee0], edi
jb 0x4da8e2
call fcn.004dc840
test eax, eax
jne 0x4da8eb
call fcn.004bc280
test eax, eax
je 0x4da932
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 0x4db063
lea ecx, [ebp - 0xef4]
push ecx
push 0x20219
push ebx
push str.SOFTWAREMicrosoftOffice16.0ClickToRunStore
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4db063
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 0x4db056
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 0x4db063
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 0x4daad4
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 0x4daac6
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 0x4daabe
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 0x4daaed
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 0x4dab92
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 0x4dab8c
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 0x4dab54
cmp word [ebp - 0xf24], 1
jne 0x4dab69
lea ecx, [ebp - 0xf24]
push ecx
call esi
mov eax, dword [ebp - 0xef8]
cmp eax, ebx
jne 0x4dab07
jmp 0x4dab92
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 0x4dab74
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 0x4dabc2
sub eax, edx
sar eax, 1
je 0x4db056
lea eax, [ebp - 0xee8]
push eax
push 0x20219
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0WordInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dac47
mov edi, edi
movzx ecx, word [eax + str.Word]
mov word [ebp + eax - 0x28c], cx
add eax, 2
cmp cx, bx
jne 0x4dac30
lea ecx, [ebp - 0xee8]
push ecx
push 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dac9f
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dac70
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dacf3
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dacc2
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0GrooveInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dad57
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dad16
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dadb8
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dad80
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dae1a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dade0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dade0
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dae7a
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dae40
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4daee1
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4daea0
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4daf3e
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4daf04
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4dafa4
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4daf61
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 1
push ebx
push str.SOFTWAREMicrosoftOffice16.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4db001
lea eax, [ebp - 0x28c]
add eax, 0xfffffffe
jmp 0x4dafd0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4dafd0
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