Function at 0x4d5570
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, 0x1818
call fcn.004f18a0
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 - 0x17f0]
push ecx
push 0x20219
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftOffice14.0Registration
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x1810], eax
mov dword [ebp - 0x17f0], ebx
call edi
test eax, eax
jne 0x4d5ed1
push 0x1fe
lea eax, [ebp - 0x7ea]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x7ec], dx
call fcn.004e7d90
push 0x7ff
lea ecx, [ebp - 0x17eb]
push ebx
push ecx
mov byte [ebp - 0x17ec], bl
call fcn.004e7d90
push 0x7fe
lea eax, [ebp - 0xfea]
xor edx, edx
push ebx
push eax
mov word [ebp - 0xfec], dx
call fcn.004e7d90
push 0xfe
lea edx, [ebp - 0x23a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x23c], cx
call fcn.004e7d90
push 0x80
lea eax, [ebp - 0x23c]
push ebx
push eax
mov dword [ebp - 0x1800], ebx
call fcn.004e7d90
mov edx, dword [ebp - 0x17f0]
add esp, 0x3c
push 0x80
lea ecx, [ebp - 0x23c]
push ecx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4d5818
jmp 0x4d5670
xor eax, eax
jmp 0x4d5680
movzx ecx, word [eax + str.SOFTWAREMicrosoftOffice14.0Registration_]
mov word [ebp + eax - 0xfec], cx
add eax, 2
cmp cx, bx
jne 0x4d5680
lea eax, [ebp - 0x23c]
mov esi, eax
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d56a0
lea edi, [ebp - 0xfec]
sub eax, esi
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4d56b6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x17f8]
push eax
and ecx, 3
push 0x201
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [ebp - 0xfec]
push ecx
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x17f8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d57c5
lea edx, [ebp - 0x17f4]
push edx
mov edx, dword [ebp - 0x17f8]
lea eax, [ebp - 0x17ec]
push eax
lea ecx, [ebp - 0x17fc]
push ecx
push ebx
push str.DigitalProductId
push edx
mov dword [ebp - 0x17fc], 3
mov dword [ebp - 0x17f4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d57b8
push 0x1fe
lea ecx, [ebp - 0x53a]
push ebx
push ecx
mov dword [ebp - 0x1804], 0x200
mov word [ebp - 0x53c], ax
call fcn.004e7d90
add esp, 0xc
lea edx, [ebp - 0x1804]
push edx
mov edx, dword [ebp - 0x17f8]
lea eax, [ebp - 0x53c]
push eax
lea ecx, [ebp - 0x17fc]
push ecx
push ebx
push str.ProductID
push edx
mov dword [ebp - 0x17fc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d57b8
lea eax, [ebp - 0x7ec]
push eax
lea edx, [ebp - 0x23c]
lea ecx, [ebp - 0x53c]
call fcn.004d5210
add esp, 4
test eax, eax
jne 0x4d580b
mov ecx, dword [ebp - 0x17f8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x1800]
push 0x80
lea edx, [ebp - 0x23c]
push ebx
inc esi
push edx
mov dword [ebp - 0x1800], esi
call fcn.004e7d90
mov ecx, dword [ebp - 0x17f0]
add esp, 0xc
push 0x80
lea eax, [ebp - 0x23c]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4d5670
jmp 0x4d5818
mov edx, dword [ebp - 0x17f8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x17f0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x7ec]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d5830
sub eax, edx
sar eax, 1
je 0x4d6696
mov ecx, 6
mov esi, 0x52b9b4
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.004e7d90
add esp, 0xc
xor eax, eax
movzx edx, byte [ebp + eax - 0x14c4]
mov dword [ebp + eax*4 - 0x88], edx
inc eax
cmp eax, 0xf
jl 0x4d5890
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 0x4d58cc
mov byte [ebx + edi - 0x1d], 0x2d
jmp 0x4d5918
xor ecx, ecx
mov esi, 0xe
jmp 0x4d58e0
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 0x4d58e0
mov al, byte [ebp + ecx - 0x4c]
mov byte [ebx + edi - 0x1d], al
dec edi
test edi, edi
jg 0x4d58b0
xor ecx, ecx
push 0xaa
push ecx
lea edx, [ebp - 0x5ea]
push edx
mov word [ebp - 0x5ec], cx
call fcn.004e7d90
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 - 0x5ec]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x28]
push edx
push 0
push 0
call esi
xor eax, eax
push 0xaa
push eax
lea ecx, [ebp - 0x13a]
push ecx
mov dword [ebp - 0x1804], 0x56
mov word [ebp - 0x13c], ax
call fcn.004e7d90
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [ebp - 0x17f0]
push edx
push 0x20219
push 0
push str.SOFTWAREMicrosoftOffice14.0CommonProductVersion
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d59f5
lea eax, [ebp - 0x1804]
push eax
mov eax, dword [ebp - 0x17f0]
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x17fc]
push edx
push 0
push str.LastProduct
push eax
mov dword [ebp - 0x17fc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x17f0]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
jmp 0x4d59fb
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x43a]
push eax
mov word [ebp - 0x43c], dx
call fcn.004e7d90
add esp, 0xc
lea ecx, [ebp - 0x17f0]
push ecx
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5a7a
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5a40
mov edx, dword [str.Access]
mov ecx, dword [0x52a3e8]
mov dword [eax], edx
mov edx, dword [0x52a3ec]
mov dword [eax + 4], ecx
mov cx, word [0x52a3f0]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x17f0]
push edx
mov word [eax + 0xc], cx
call esi
lea eax, [ebp - 0x17f0]
push eax
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5ad9
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5aa1
mov ecx, dword [str.__Excel]
mov edx, dword [0x52bb10]
mov dword [eax], ecx
mov ecx, dword [0x52bb14]
mov dword [eax + 4], edx
mov edx, dword [0x52bb18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x17f0]
push eax
call esi
lea ecx, [ebp - 0x17f0]
push ecx
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0SharePointInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5b2d
lea edi, [ebp - 0x43c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4d5b00
mov edx, dword [ebp - 0x17f0]
mov ecx, 6
mov esi, str.__SharePoint
rep movsd dword es:[edi], dword [esi]
push edx
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x17f0]
push eax
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5ba0
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5b54
mov ecx, dword [str.__InfoPath]
mov edx, dword [0x52bc14]
mov dword [eax], ecx
mov ecx, dword [0x52bc18]
mov dword [eax + 4], edx
mov edx, dword [0x52bc1c]
mov dword [eax + 8], ecx
mov ecx, dword [0x52bc20]
mov dword [eax + 0xc], edx
mov dx, word [0x52bc24]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
mov eax, dword [ebp - 0x17f0]
push eax
call esi
lea ecx, [ebp - 0x17f0]
push ecx
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5c11
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
jmp 0x4d5bd0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5bd0
mov edx, dword [str.__OneNote]
mov ecx, dword [0x52bc94]
mov dword [eax], edx
mov edx, dword [0x52bc98]
mov dword [eax + 4], ecx
mov ecx, dword [0x52bc9c]
mov dword [eax + 8], edx
mov edx, dword [0x52bca0]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x17f0]
push eax
call esi
lea ecx, [ebp - 0x17f0]
push ecx
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5c81
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
jmp 0x4d5c40
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5c40
mov edx, dword [str.__Outlook]
mov ecx, dword [0x52bd14]
mov dword [eax], edx
mov edx, dword [0x52bd18]
mov dword [eax + 4], ecx
mov ecx, dword [0x52bd1c]
mov dword [eax + 8], edx
mov edx, dword [0x52bd20]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x17f0]
push eax
call esi
lea ecx, [ebp - 0x17f0]
push ecx
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5ce8
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
jmp 0x4d5cb0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5cb0
mov edx, dword [str.__Excel]
mov ecx, dword [0x52bb10]
mov dword [eax], edx
mov edx, dword [0x52bb14]
mov dword [eax + 4], ecx
mov ecx, dword [0x52bb18]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x17f0]
push edx
mov dword [eax + 0xc], ecx
call esi
lea eax, [ebp - 0x17f0]
push eax
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5d51
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5d10
mov ecx, dword [str.__Project]
mov edx, dword [0x52be04]
mov dword [eax], ecx
mov ecx, dword [0x52be08]
mov dword [eax + 4], edx
mov edx, dword [0x52be0c]
mov dword [eax + 8], ecx
mov ecx, dword [0x52be10]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x17f0]
push edx
mov dword [eax + 0x10], ecx
call esi
lea eax, [ebp - 0x17f0]
push eax
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5dca
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
jmp 0x4d5d80
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5d80
mov ecx, dword [str.__Publisher]
mov edx, dword [0x52be88]
mov dword [eax], ecx
mov ecx, dword [0x52be8c]
mov dword [eax + 4], edx
mov edx, dword [0x52be90]
mov dword [eax + 8], ecx
mov ecx, dword [0x52be94]
mov dword [eax + 0xc], edx
mov edx, dword [0x52be98]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x17f0]
push eax
call esi
lea ecx, [ebp - 0x17f0]
push ecx
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5e29
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5df1
mov edx, dword [str.__Visio]
mov ecx, dword [0x52bf08]
mov dword [eax], edx
mov edx, dword [0x52bf0c]
mov dword [eax + 4], ecx
mov ecx, dword [0x52bf10]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x17f0]
push edx
mov dword [eax + 0xc], ecx
call esi
lea eax, [ebp - 0x17f0]
push eax
push 0x201
push 0
push str.SOFTWAREMicrosoftOffice14.0WordInstallRoot
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x4d5e8a
lea eax, [ebp - 0x43c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4d5e50
mov ecx, dword [str.__Word]
mov edx, dword [0x52bf7c]
mov dword [eax], ecx
mov ecx, dword [0x52bf80]
mov dword [eax + 4], edx
mov dx, word [0x52bf84]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov eax, dword [ebp - 0x17f0]
push eax
call esi
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x5ec]
push edx
mov edx, dword [ebp - 0x1810]
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x7ec]
push ecx
push str._s_x86_t_s_t_s_t_s_t
push edx
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
lea eax, [ebp - 0x17f0]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftOffice14.0ClickToRunStore
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d6696
push 0x1fe
lea edx, [ebp - 0x7ea]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x1804], 0x200
mov dword [ebp - 0x1814], 1
mov word [ebp - 0x7ec], cx
call fcn.004e7d90
add esp, 0xc
lea eax, [ebp - 0x1804]
push eax
mov eax, dword [ebp - 0x17f0]
lea ecx, [ebp - 0x7ec]
push ecx
lea edx, [ebp - 0x1814]
push edx
push ebx
push str.ProductReleaseIds
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d6689
push 0x3e
lea edx, [ebp - 0x8a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x8c], cx
call fcn.004e7d90
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x53b5fd], bl
jne 0x4d5fa5
push str.GetOffice2010x86Info
xor edx, edx
mov ecx, str.Function_Fail
call fcn.004a5a90
add esp, 4
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
lea eax, [ebp - 0x17f8]
push eax
push 0x502118
push 1
push ebx
push 0x5021e8
mov dword [ebp - 0x17f8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4d605a
mov eax, dword [ebp - 0x17f8]
lea edx, [ebp - 0x1800]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x1800], ebx
mov ecx, dword [eax]
push 0x52619c
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4d604c
mov eax, dword [ebp - 0x1800]
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 - 0x1800]
js 0x4d6044
lea edx, [ebp - 0x17fc]
push edx
push ebx
push 0x30
push str.SELECT__FROM_OfficeSoftwareProtectionProduct_WHERE_PartialProductKey___NULL
mov dword [ebp - 0x17fc], ebx
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jns 0x4d6073
mov eax, dword [ebp - 0x1800]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x17f8]
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 - 0x17fc]
mov dword [ebp - 0x17f4], ebx
cmp eax, ebx
je 0x4d610f
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ecx]
mov ecx, dword [eax]
lea edx, [ebp - 0x17f4]
push edx
lea edx, [ebp - 0x180c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x17f4], ebx
je 0x4d6109
mov eax, dword [ebp - 0x180c]
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 0x4d60d7
cmp word [ebp - 0x44], 1
jne 0x4d60e9
lea ecx, [ebp - 0x44]
push ecx
call esi
mov eax, dword [ebp - 0x17fc]
cmp eax, ebx
jne 0x4d6090
jmp 0x4d610f
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x8c]
sub edx, eax
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x4d60f4
lea edx, [ebp - 0x44]
push edx
call esi
mov eax, dword [ebp - 0x17fc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1800]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x17f8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [ebp - 0x8c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4d6140
sub eax, edx
sar eax, 1
je 0x4d6689
lea eax, [ebp - 0x17f4]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftOffice14.0
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x17f4], ebx
call edi
push 0x1fe
lea edx, [ebp - 0x33a]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x33c], cx
call fcn.004e7d90
add esp, 0xc
lea eax, [ebp - 0x17f4]
push eax
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0WordInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d61c7
nop
movzx ecx, word [eax + str.Word]
mov word [ebp + eax - 0x33c], cx
add eax, 2
cmp cx, bx
jne 0x4d61b0
lea ecx, [ebp - 0x17f4]
push ecx
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0AccessInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d621f
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d61f0
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 - 0x17f4]
push edx
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0ExcelInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d6276
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d6245
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 - 0x17f4]
push eax
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0GrooveInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d62e1
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d62a0
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 - 0x17f4]
push eax
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0InfoPathInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d6348
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
jmp 0x4d6310
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d6310
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 - 0x17f4]
push edx
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice4.0OneNoteInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d63aa
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d6370
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 - 0x17f4]
push edx
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0OutlookInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d640a
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d63d0
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 - 0x17f4]
push edx
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0PowerPointInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d6471
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d6430
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 - 0x17f4]
push eax
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0ProjectInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d64da
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
jmp 0x4d64a0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d64a0
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 - 0x17f4]
push edx
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0PublisherInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d6543
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d6500
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 - 0x17f4]
push eax
push 0x201
push ebx
push str.SOFTWAREMicrosoftOffice14.0VisioInstallRoot
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d65a1
lea eax, [ebp - 0x33c]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x4d6570
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
mov eax, dword [ebp - 0x17f4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x17f0]
push ecx
call esi
push 0xaa
lea eax, [ebp - 0x13a]
xor edx, edx
push ebx
push eax
mov dword [ebp - 0x180c], 0x56
mov word [ebp - 0x13c], dx
call fcn.004e7d90
add esp, 0xc
lea ecx, [ebp - 0x17f0]
push ecx
push 0x20219
push ebx
push str.SOFTWAREMicrosoftOffice14.0CommonProductVersion
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4d6639
lea edx, [ebp - 0x180c]
push edx
mov edx, dword [ebp - 0x17f0]
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x1808]
push ecx
push ebx
push str.LastProduct
push edx
mov dword [ebp - 0x1808], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x17f0]
push eax
call esi
lea ecx, [ebp - 0x33c]
push ecx
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ebp - 0x1810]
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x7ec]
push ecx
push str.Microsoft_Office__s_2010_x86_t_s_t_s_t_s_t
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x17f0]
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.004e3946
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x17f0]
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.004e3946
mov esp, ebp
pop ebp
ret