Function at 0x1000a510
Capabilities:
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x10042a16
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
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 + 0x20], esi
cmp esi, edi
mov dword [esp + 0x40], edi
je 0x1000a580
push str.SELECT__FROM_Win32_LogicalDisk
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call fcn.1002d09c
cmp eax, edi
mov dword [esi], eax
jne 0x1000a57c
mov eax, str.SELECT__FROM_Win32_LogicalDisk
test eax, eax
je 0x1000a57c
push 0x8007000e
call fcn.1002d1e1
mov ebp, esi
jmp 0x1000a582
xor ebp, ebp
cmp ebp, edi
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x20], ebp
jne 0x1000a59c
push 0x8007000e
call fcn.1002d1e1
cmp ebp, edi
mov dword [esp + 0x40], 1
je 0x1000a5ad
mov ebx, dword [ebp]
jmp 0x1000a5af
xor ebx, ebx
push 0xc
call fcn.1003ba7d
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, edi
mov byte [esp + 0x40], 2
je 0x1000a5f7
push 0x10051798
mov dword [esi + 4], edi
mov dword [esi + 8], 1
call fcn.1002d09c
cmp eax, edi
mov dword [esi], eax
jne 0x1000a5f9
mov ecx, 0x10051798
test ecx, ecx
je 0x1000a5f9
push 0x8007000e
call fcn.1002d1e1
jmp 0x1000a5f9
xor esi, esi
cmp esi, edi
mov byte [esp + 0x40], 1
mov dword [esp + 0x24], esi
jne 0x1000a610
push 0x8007000e
call fcn.1002d1e1
cmp esi, edi
mov byte [esp + 0x40], 3
je 0x1000a61d
mov eax, dword [esi]
jmp 0x1000a61f
xor eax, eax
mov edi, dword [esp + 0x48]
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 + 0x40], 1
je 0x1000a673
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000a673
mov eax, dword [esi]
test eax, eax
je 0x1000a65a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x1000a66a
push eax
call fcn.1003baa6
add esp, 4
push esi
call fcn.1003baa6
add esp, 4
test ebp, ebp
mov dword [esp + 0x40], 0xffffffff
je 0x1000a6b4
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000a6b4
mov eax, dword [ebp]
test eax, eax
je 0x1000a69b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 4]
test eax, eax
je 0x1000a6ab
push eax
call fcn.1003baa6
add esp, 4
push ebp
call fcn.1003baa6
add esp, 4
test ebx, ebx
jge 0x1000a6d6
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x1000a9c4
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
mov ebx, 1
push ecx
push ebx
push 0xffffffffffffffff
push eax
call dword [edx + 0x10]
test eax, eax
jge 0x1000a70a
mov byte [esp + 0x13], bl
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000a9b6
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x2c]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.DriveType
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x30], 2
jne 0x1000a99d
push 0x600
call fcn.1003ba7d
mov ebp, eax
add esp, 4
mov ecx, 0x180
xor eax, eax
mov edi, ebp
push 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push 0
push edx
mov ecx, dword [eax]
push 0
push str.DeviceID
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x28], bx
je 0x1000a7ad
mov eax, dword [esp + 0x30]
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
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x2c]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.VolumeName
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x28], bx
je 0x1000a7fd
mov eax, dword [esp + 0x30]
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, [ebp + 3]
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 al, byte [ebp + 3]
lea ebx, [ebp + 3]
test al, al
jne 0x1000a855
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x2c]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.Description
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x28], 1
je 0x1000a855
mov eax, dword [esp + 0x30]
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
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x2c]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.DriveType
push eax
call dword [ecx + 0x10]
mov al, byte [esp + 0x30]
push 0
mov byte [ebp + 0x44], al
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.Size
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x28], 1
je 0x1000a8c7
mov eax, dword [esp + 0x30]
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, [ebp + 0x45]
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 + 0x2c]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.FreeSpace
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x28], 1
je 0x1000a918
mov eax, dword [esp + 0x30]
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, [ebp + 0x59]
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 esi, 0x1005171c
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000a947
test cl, cl
je 0x1000a943
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000a947
add eax, 2
add esi, 2
test cl, cl
jne 0x1000a91f
xor eax, eax
jmp 0x1000a94c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000a994
mov esi, 0x10051718
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1000a97f
test cl, cl
je 0x1000a97b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1000a97f
add eax, 2
add esi, 2
test cl, cl
jne 0x1000a957
xor eax, eax
jmp 0x1000a984
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000a994
mov ecx, dword [esp + 0x4c]
push ebp
call fcn.1003a81f
jmp 0x1000a99d
push ebp
call fcn.1003baa6
add esp, 4
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1000a6ea
jmp 0x1000a9c4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000a9c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000a9da
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x1000a9da
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret