Function at 0x1000aa40
Capabilities:
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x10042a46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0xc
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], ebp
call fcn.1003ba7d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
cmp esi, ebp
mov dword [esp + 0x40], ebp
je 0x1000aab0
push str.SELECT__FROM_Win32_LogicalDiskToPartition
mov dword [esi + 4], ebp
mov dword [esi + 8], 1
call fcn.1002d09c
cmp eax, ebp
mov dword [esi], eax
jne 0x1000aaac
mov eax, str.SELECT__FROM_Win32_LogicalDiskToPartition
test eax, eax
je 0x1000aaac
push 0x8007000e
call fcn.1002d1e1
mov edi, esi
jmp 0x1000aab2
xor edi, edi
cmp edi, ebp
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x20], edi
jne 0x1000aacc
push 0x8007000e
call fcn.1002d1e1
cmp edi, ebp
mov dword [esp + 0x40], 1
je 0x1000aadc
mov esi, dword [edi]
jmp 0x1000aade
xor esi, esi
push 0xc
call fcn.1003ba7d
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
cmp ebx, ebp
mov byte [esp + 0x40], 2
je 0x1000ab26
push 0x10051798
mov dword [ebx + 4], ebp
mov dword [ebx + 8], 1
call fcn.1002d09c
cmp eax, ebp
mov dword [ebx], eax
jne 0x1000ab28
mov ecx, 0x10051798
test ecx, ecx
je 0x1000ab28
push 0x8007000e
call fcn.1002d1e1
jmp 0x1000ab28
xor ebx, ebx
cmp ebx, ebp
mov byte [esp + 0x40], 1
mov dword [esp + 0x24], ebx
jne 0x1000ab3f
push 0x8007000e
call fcn.1002d1e1
cmp ebx, ebp
mov byte [esp + 0x40], 3
je 0x1000ab4c
mov eax, dword [ebx]
jmp 0x1000ab4e
xor eax, eax
mov ebp, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
push 0
mov edx, dword [ebp]
push 0x30
push esi
push eax
push ebp
call dword [edx + 0x50]
test ebx, ebx
mov esi, eax
mov byte [esp + 0x40], 1
je 0x1000ab8d
lea edx, [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000ab8d
mov ecx, ebx
call fcn.10001990
push ebx
call fcn.1003baa6
add esp, 4
test edi, edi
mov dword [esp + 0x40], 0xffffffff
je 0x1000abb7
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1000abb7
mov ecx, edi
call fcn.10001990
push edi
call fcn.1003baa6
add esp, 4
xor ecx, ecx
cmp esi, ecx
jge 0x1000abdc
mov ecx, dword [ebp]
push ebp
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 + 0x14]
mov dword [esp + 0x18], ecx
cmp eax, ecx
mov dword [esp + 0x1c], ecx
je 0x1000ad62
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
mov esi, 1
push ecx
push esi
push 0xffffffffffffffff
push eax
call dword [edx + 0x10]
test eax, eax
jge 0x1000ac11
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000ad3e
mov edx, dword [esp + 0x4c]
mov ebx, dword [edx + 4]
test ebx, ebx
je 0x1000ad30
mov eax, ebx
mov ebx, dword [ebx]
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x1000ad28
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x2c]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.Dependent
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x28], si
je 0x1000ad1d
mov eax, dword [esp + 0x30]
push ebp
push eax
call fcn.1000a9f0
add esp, 4
push eax
call fcn.10021b60
add esp, 8
test eax, eax
je 0x1000ad1d
cmp word [esp + 0x28], si
je 0x1000acc8
mov ecx, dword [esp + 0x30]
push ecx
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 + 0x16c]
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, 1
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x2c]
push 0
mov ecx, dword [eax]
push edx
push 0
push str.Antecedent
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x28], si
je 0x1000ad1d
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 + 0x6d]
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, 1
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
jne 0x1000ac2c
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x1000abf0
jmp 0x1000ad4c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000ad4c
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000ad62
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x1000ad62
mov ecx, dword [eax]
push eax
call dword [ecx + 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