Function at 0x1000b100
Capabilities:
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x10042ab6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0xc
mov byte [esp + 0x17], 0
mov dword [esp + 0x1c], edi
call fcn.1003ba7d
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
cmp esi, edi
mov dword [esp + 0xa4], edi
je 0x1000b176
push str.SELECT__FROM_Win32_DiskDrive
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call fcn.1002d09c
cmp eax, edi
mov dword [esi], eax
jne 0x1000b172
mov eax, str.SELECT__FROM_Win32_DiskDrive
test eax, eax
je 0x1000b172
push 0x8007000e
call fcn.1002d1e1
mov ebp, esi
jmp 0x1000b178
xor ebp, ebp
cmp ebp, edi
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0x34], ebp
jne 0x1000b195
push 0x8007000e
call fcn.1002d1e1
cmp ebp, edi
mov dword [esp + 0xa4], 1
je 0x1000b1a9
mov ebx, dword [ebp]
jmp 0x1000b1ab
xor ebx, ebx
push 0xc
call fcn.1003ba7d
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
cmp esi, edi
mov byte [esp + 0xa4], 2
je 0x1000b1f6
push 0x10051798
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call fcn.1002d09c
cmp eax, edi
mov dword [esi], eax
jne 0x1000b1f8
mov ecx, 0x10051798
test ecx, ecx
je 0x1000b1f8
push 0x8007000e
call fcn.1002d1e1
jmp 0x1000b1f8
xor esi, esi
cmp esi, edi
mov byte [esp + 0xa4], 1
mov dword [esp + 0x30], esi
jne 0x1000b212
push 0x8007000e
call fcn.1002d1e1
cmp esi, edi
mov byte [esp + 0xa4], 3
je 0x1000b222
mov eax, dword [esi]
jmp 0x1000b224
xor eax, eax
mov edi, dword [esp + 0xac]
lea ecx, [esp + 0x18]
push ecx
push 0
mov edx, dword [edi]
push 0x30
push ebx
push eax
push edi
call dword [edx + 0x50]
test esi, esi
mov ebx, eax
mov byte [esp + 0xa4], 1
je 0x1000b27e
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000b27e
mov eax, dword [esi]
test eax, eax
je 0x1000b265
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x1000b275
push eax
call fcn.1003baa6
add esp, 4
push esi
call fcn.1003baa6
add esp, 4
test ebp, ebp
mov dword [esp + 0xa4], 0xffffffff
je 0x1000b2c2
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000b2c2
mov eax, dword [ebp]
test eax, eax
je 0x1000b2a9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 4]
test eax, eax
je 0x1000b2b9
push eax
call fcn.1003baa6
add esp, 4
push ebp
call fcn.1003baa6
add esp, 4
test ebx, ebx
jge 0x1000b2d6
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov eax, 1
jmp 0x1000b4f6
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x1000b4de
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push 0xffffffffffffffff
push eax
call dword [edx + 0x10]
test eax, eax
jge 0x1000b307
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000b4d0
mov edx, dword [esp + 0xb0]
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x1000b4c2
mov eax, ebx
mov ebx, dword [ebx]
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x1000b4ba
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x24]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.DeviceID
push eax
call dword [ecx + 0x10]
mov eax, dword [esp + 0x28]
push 0x5c
push eax
call fcn.1000a9f0
add esp, 4
push eax
call fcn.10021e30
lea ecx, [ebp + 0x26b]
push eax
push ecx
call fcn.10021b60
add esp, 0x10
test eax, eax
je 0x1000b4af
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push 0
mov edx, dword [eax]
push ecx
push 0
push str.Model
push eax
call dword [edx + 0x10]
cmp word [esp + 0x20], 1
je 0x1000b3da
mov edx, dword [esp + 0x28]
push edx
call fcn.1000a9f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x469]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x24]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.Index
push eax
call dword [ecx + 0x10]
mov al, byte [esp + 0x28]
push 0
mov byte [ebp + 0x4ff], al
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x24]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.PnPDeviceID
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x20], 1
je 0x1000b4af
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.1000a9f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x64
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + eax + 0x38], 0x26
jne 0x1000b47a
mov byte [esp + eax + 0x38], 0
cmp byte [esp + eax + 0x38], 0x5c
je 0x1000b488
dec eax
test eax, eax
jg 0x1000b46e
jmp 0x1000b4af
lea edi, [esp + eax + 0x39]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x4cd]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jne 0x1000b325
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1000b2ea
jmp 0x1000b4de
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000b4de
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000b4f4
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x1000b4f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret