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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x102d4a48]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
push 0x50
lea eax, [esp + 0x4c]
mov dword [esp + 0x24], 0
push 0
push eax
mov dword [esp + 0x28], 0
call fcn.1008c9e0
add esp, 0xc
mov dword [esp + 0x24], 0
xor edx, edx
mov dword [esp + 0x18], 0
xor ebx, ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], edx
push edx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea eax, [esp + 0x38]
push eax
setns byte [esp + 0x1b]
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x20]
push eax
push 0x102b4164
push 1
push ebx
push 0x102b4174
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
js 0x10067939
cmp dword [esp + 0x20], ebx
je 0x10067939
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.._rootcimv2
call esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x10067933
push str.Win32_PNPEntity
call esi
mov dword [esp + 0x34], eax
test eax, eax
je 0x10067933
push str.DeviceID
call esi
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x10067931
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
mov ecx, dword [edx]
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x34]
push edx
call dword [ecx + 0xc]
test eax, eax
js 0x1006792d
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1006792d
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x38]
push ebx
mov eax, dword [ecx]
push ebx
push edx
push ecx
call dword [eax + 0x48]
test eax, eax
js 0x1006792d
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1006792d
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x4c]
push edx
push 0x14
push 0x2710
push ecx
call dword [eax + 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
js 0x1006790d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1006790d
xor esi, esi
test eax, eax
je 0x100678ea
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0x48]
lea edx, [esp + 0x38]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push edi
push ecx
call dword [eax + 0x10]
test eax, eax
js 0x100678c2
cmp word [esp + 0x38], 8
jne 0x100678c2
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100678c2
push 0x102b40f8
push eax
call fcn.1008c3cf
add esp, 8
test eax, eax
je 0x100678c2
push str.VID_
push dword [esp + 0x44]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0
call fcn.1008c3cf
add esp, 8
test eax, eax
je 0x10067874
lea ecx, [esp + 0x28]
push ecx
push str.VID__4X
push eax
call fcn.100671a0
mov ecx, dword [esp + 0x34]
xor edx, edx
add esp, 0xc
cmp eax, 1
cmovne ecx, edx
mov dword [esp + 0x28], ecx
push str.PID_
push dword [esp + 0x44]
call fcn.1008c3cf
add esp, 8
test eax, eax
je 0x100678aa
lea ecx, [esp + 0x30]
push ecx
push str.PID__4X
push eax
call fcn.100671a0
mov ecx, dword [esp + 0x3c]
xor edx, edx
add esp, 0xc
cmp eax, 1
cmovne ecx, edx
jmp 0x100678ae
mov ecx, dword [esp + 0x30]
movzx eax, word [esp + 0x28]
movzx ecx, cx
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp + 8]
cmp ecx, dword [eax]
je 0x10067926
lea eax, [esp + 0x38]
push eax
call ebx
mov ecx, dword [esp + esi*4 + 0x48]
test ecx, ecx
je 0x100678df
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + esi*4 + 0x48], 0
inc esi
cmp esi, dword [esp + 0x2c]
jb 0x100677e0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x4c]
push edx
mov eax, dword [ecx]
push 0x14
push 0x2710
push ecx
call dword [eax + 0x10]
test eax, eax
jns 0x100677c1
xor edi, edi
lea eax, [esp + 0x38]
push eax
call ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1006794e
mov edi, 1
jmp 0x1006790f
mov ebx, edi
jmp 0x10067933
mov ebx, eax
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
je 0x10067951
push eax
call esi
test ebx, ebx
je 0x10067958
push ebx
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10067963
push eax
call esi
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x48]
test ecx, ecx
je 0x1006797b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + esi*4 + 0x48], 0
inc esi
cmp esi, 0x14
jb 0x10067965
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10067997
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x100679ad
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100679c3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x24], 0
cmp byte [esp + 0x17], 0
je 0x100679d0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x9c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008a9cb
mov esp, ebp
pop ebp
ret 4