Function at 0x100221d0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x10040e98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 2
push ebx
push 3
push 6
push ebx
push ebx
or ebp, 0xffffffff
push ebp
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jne 0x1002243b
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 0x10047620
push 1
push ebx
push 0x100476f0
mov dword [esp + 0x58], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x1002242b
cmp eax, ebx
je 0x1002242b
mov dword [esp + 0x1c], ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov byte [esp + 0x60], 1
mov ecx, dword [eax]
push str.ROOTcimv2
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x10022425
cmp eax, ebx
je 0x10022425
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_DiskDrive
mov byte [esp + 0x54], 2
mov ecx, dword [eax]
push 0x10048bd8
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x1002241e
cmp eax, ebx
je 0x1002241e
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [esp + 0x44], 4
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x20], ebx
je 0x100222e8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push ebp
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x100223cf
cmp dword [esp + 0x20], ebx
je 0x100223cf
cmp dword [esp + 0x10], ebx
je 0x100223cf
lea ecx, [esp + 0x24]
push ecx
call esi
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push str.Model
push eax
call edx
test eax, eax
jne 0x100222d0
cmp word [esp + 0x24], 8
jne 0x100222d0
mov edx, dword [esp + 0x2c]
cmp edx, ebx
je 0x100222d0
mov eax, dword [esp + 0x4c]
push eax
call fcn.10001f60
lea ecx, [esp + 0x24]
push ecx
call esi
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1002237b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10022390
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100223a4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100223b8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
lea eax, [esp + 0x24]
push eax
call esi
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100223eb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10022400
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10022414
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebp
mov eax, dword [esp + 0x14]
jmp 0x1002242f
mov byte [esp + 0x44], 1
jmp 0x100223f4
mov byte [esp + 0x44], bl
jmp 0x10022408
mov dword [esp + 0x44], ebp
cmp eax, ebx
je 0x1002243b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4