Function at 0x4dc840
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5322a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3e
xor ebx, ebx
lea ecx, [ebp - 0x46]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x48], ax
call fcn.004e7d90
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x53b5fd], bl
je 0x4dc917
lea edx, [ebp - 0x4c]
push edx
push 0x502118
mov edi, 1
push edi
push ebx
push 0x5021e8
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4dc911
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x50]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x50], ebx
mov ecx, dword [eax]
push 0x52619c
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4dc906
mov eax, dword [ebp - 0x50]
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 - 0x50]
js 0x4dc8fe
lea edx, [ebp - 0x54]
push edx
push ebx
push 0x30
push str.SELECT__FROM_OfficeSoftwareProtectionProduct
mov dword [ebp - 0x54], ebx
mov ecx, dword [eax]
push 0x526208
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jns 0x4dc92a
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x4c]
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 - 4]
xor ecx, ebp
call fcn.004e3946
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], ebx
cmp eax, ebx
je 0x4dca39
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, edi
mov ecx, dword [eax]
lea edx, [ebp - 0x58]
push edx
lea edx, [ebp - 0x5c]
push edx
push edi
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x58], ebx
je 0x4dca36
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x70]
push edx
push ebx
push str.PartialProductKey
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4dca1d
cmp word [ebp - 0x70], di
je 0x4dca1d
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x48]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4dc990
lea ecx, [ebp - 0x70]
push ecx
call esi
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [ebp - 0x70]
push ecx
push ebx
push str.Name
push eax
call edx
test eax, eax
jne 0x4dca09
cmp word [ebp - 0x70], di
je 0x4dca09
mov eax, dword [ebp - 0x68]
push 9
push str.Office_16
push eax
call fcn.004e4207
add esp, 0xc
test eax, eax
je 0x4dca30
lea eax, [ebp - 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4dc9e3
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [ebp - 0x48]
push ebx
push edx
call fcn.004e7d90
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
jmp 0x4dca21
lea eax, [ebp - 0x48]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4dca10
jmp 0x4dc9ee
lea ecx, [ebp - 0x70]
push ecx
call esi
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jne 0x4dc940
jmp 0x4dca39
lea edx, [ebp - 0x70]
push edx
call esi
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4dca63
mov ecx, dword [ebp - 4]
pop edi
sub eax, edx
pop esi
xor ecx, ebp
sar eax, 1
pop ebx
call fcn.004e3946
mov esp, ebp
pop ebp
ret