Function at 0x1000ad80
Capabilities:
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x10042a82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0xc
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], ebx
call fcn.1003ba7d
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
cmp esi, ebx
mov dword [esp + 0x140], ebx
je 0x1000adf6
push str.SELECT__FROM_Win32_DiskDriveToDiskPartition
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.1002d09c
cmp eax, ebx
mov dword [esi], eax
jne 0x1000adf2
mov eax, str.SELECT__FROM_Win32_DiskDriveToDiskPartition
test eax, eax
je 0x1000adf2
push 0x8007000e
call fcn.1002d1e1
mov ebp, esi
jmp 0x1000adf8
xor ebp, ebp
cmp ebp, ebx
mov dword [esp + 0x140], 0xffffffff
mov dword [esp + 0x34], ebp
jne 0x1000ae15
push 0x8007000e
call fcn.1002d1e1
cmp ebp, ebx
mov dword [esp + 0x140], 1
je 0x1000ae29
mov esi, dword [ebp]
jmp 0x1000ae2b
xor esi, esi
push 0xc
call fcn.1003ba7d
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
cmp edi, ebx
mov byte [esp + 0x140], 2
je 0x1000ae76
push 0x10051798
mov dword [edi + 4], ebx
mov dword [edi + 8], 1
call fcn.1002d09c
cmp eax, ebx
mov dword [edi], eax
jne 0x1000ae78
mov ecx, 0x10051798
test ecx, ecx
je 0x1000ae78
push 0x8007000e
call fcn.1002d1e1
jmp 0x1000ae78
xor edi, edi
cmp edi, ebx
mov byte [esp + 0x140], 1
mov dword [esp + 0x20], edi
jne 0x1000ae92
push 0x8007000e
call fcn.1002d1e1
cmp edi, ebx
mov byte [esp + 0x140], 3
je 0x1000aea2
mov eax, dword [edi]
jmp 0x1000aea4
xor eax, eax
mov ebx, dword [esp + 0x148]
lea ecx, [esp + 0x14]
push ecx
push 0
mov edx, dword [ebx]
push 0x30
push esi
push eax
push ebx
call dword [edx + 0x50]
test edi, edi
mov esi, eax
mov byte [esp + 0x140], 1
je 0x1000aee8
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000aee8
mov ecx, edi
call fcn.10001990
push edi
call fcn.1003baa6
add esp, 4
test ebp, ebp
mov dword [esp + 0x140], 0xffffffff
je 0x1000af15
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000af15
mov ecx, ebp
call fcn.10001990
push ebp
call fcn.1003baa6
add esp, 4
test esi, esi
jge 0x1000af29
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
mov eax, 1
jmp 0x1000b0d8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x1000b0c0
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push 0xffffffffffffffff
push eax
call dword [edx + 0x10]
test eax, eax
jge 0x1000af5a
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000b0b2
mov edx, dword [esp + 0x14c]
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x1000b0a4
mov eax, ebx
mov ebx, dword [ebx]
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x1000b09c
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x28]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.Dependent
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x24], 1
je 0x1000b091
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x2c]
push eax
call fcn.1000a9f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x22
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 + 0x40]
push ecx
call fcn.10021d70
lea edx, [ebp + 0x6d]
push eax
push edx
call fcn.10021b60
add esp, 0x14
test eax, eax
je 0x1000b091
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x36a]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
push 0
push str.Antecedent
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
cmp word [esp + 0x24], 1
je 0x1000b091
mov eax, dword [esp + 0x2c]
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 + 0x26b]
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 + 0x24]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jne 0x1000af78
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1000af3d
jmp 0x1000b0c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000b0c0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000b0d6
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x1000b0d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret