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

Disassembly:
push 0x840
mov eax, 0x10080221
call fcn.1006a107
mov eax, dword [ebp + 8]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push ebx
mov esi, ecx
mov dword [ebp - 0x824], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jge 0x100417a8
push 2
pop eax
jmp 0x10041add
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x828]
push eax
push 0x1008f9b4
push 1
push ebx
push 0x1008fa84
mov dword [ebp - 0x828], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x100417e5
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x100417a0
push esi
lea edi, [ebp - 0x834]
mov dword [ebp - 0x820], ebx
call fcn.10041143
mov dword [ebp - 4], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x10041804
mov eax, dword [eax]
jmp 0x10041806
xor eax, eax
mov ecx, dword [ebp - 0x828]
mov edx, dword [ecx]
lea esi, [ebp - 0x820]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [edx + 0xc]
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x834]
mov esi, eax
call fcn.100411a3
cmp esi, ebx
jge 0x10041843
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100417dd
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x820]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x1004186b
mov eax, dword [ebp - 0x820]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10041835
push str.Select__from
mov edi, 0x400
lea eax, [ebp - 0x814]
push edi
push eax
mov dword [ebp - 0x81c], ebx
call fcn.10060b10
add esp, 0xc
push dword [ebp - 0x824]
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.10060a93
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
lea edi, [ebp - 0x834]
call fcn.10041143
mov esi, eax
lea edi, [ebp - 0x824]
mov dword [ebp - 4], 1
call fcn.100410eb
mov byte [ebp - 4], 2
mov ecx, dword [esi]
cmp ecx, ebx
je 0x100418d5
mov ecx, dword [ecx]
jmp 0x100418d7
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x100418e1
mov edx, dword [eax]
jmp 0x100418e3
xor edx, edx
mov eax, dword [ebp - 0x820]
mov esi, dword [eax]
lea edi, [ebp - 0x81c]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
call dword [esi + 0x50]
lea edi, [ebp - 0x824]
mov esi, eax
call fcn.100411a3
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x834]
call fcn.100411a3
cmp esi, ebx
jl 0x1004185d
mov dword [ebp - 0x838], ebx
cmp dword [ebp - 0x81c], ebx
je 0x10041a9f
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x81c]
mov eax, dword [eax]
lea ecx, [ebp - 0x838]
push ecx
lea ecx, [ebp - 0x830]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x81c]
mov byte [ebp - 0x815], bl
call dword [eax + 0x10]
test eax, eax
jl 0x10041a9f
cmp dword [ebp - 0x838], ebx
je 0x10041a9f
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x84c]
push edx
push ebx
push 0x100a506c
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jne 0x100419f0
push 8
call fcn.1005fc55
pop ecx
mov dword [ebp - 0x824], eax
mov dword [ebp - 4], 3
cmp eax, ebx
je 0x100419b5
mov esi, eax
call fcn.1002d074
jmp 0x100419b7
xor eax, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x844]
mov dword [ebp - 0x824], eax
push eax
call fcn.1002d1b3
mov esi, dword [ebp - 0x83c]
lea ebx, [ebp - 0x824]
call fcn.10041ae5
lea eax, [ebp - 0x84c]
push eax
mov byte [ebp - 0x815], 1
call edi
xor ebx, ebx
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x84c]
push edx
push ebx
push str.productState
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x10041a3e
cmp byte [ebp - 0x815], bl
je 0x10041a33
test dword [ebp - 0x844], 0x1000
je 0x10041a27
push 1
jmp 0x10041a28
push ebx
push dword [ebp - 0x82c]
call fcn.10041b35
lea eax, [ebp - 0x84c]
push eax
call edi
jmp 0x10041a87
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x84c]
push edx
push ebx
push str.enabled
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x10041a72
cmp byte [ebp - 0x815], bl
je 0x10041a87
cmp word [ebp - 0x844], 0xffff
je 0x10041a7a
push ebx
jmp 0x10041a7c
cmp byte [ebp - 0x815], bl
je 0x10041a87
push 1
push dword [ebp - 0x82c]
call fcn.10041b35
mov eax, dword [ebp - 0x830]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x81c], ebx
jne 0x10041937
mov eax, dword [ebp - 0x820]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x828]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x81c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x83c]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
and eax, 0xfffffffc
neg eax
sbb eax, eax
inc eax
call fcn.1006a18a
ret 0xc