Function at 0x10031040
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x1009a962
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x50], 1
lea eax, [esp + 0x1c]
push eax
push 0x100a2610
push 1
push ebp
push 0x100a26e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jl 0x100313f8
mov dword [esp + 0x18], ebp
mov byte [esp + 0x50], 3
mov edi, dword [esp + 0x1c]
push str.ROOTCIMV2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x30], esi
cmp esi, ebp
jne 0x100310c1
push 0x8007000e
call fcn.10002030
mov byte [esp + 0x50], 4
mov edx, dword [edi]
mov ecx, dword [edx + 0xc]
lea eax, [esp + 0x18]
push eax
push ebp
push ebp
push 0x80
push ebp
push ebp
push ebp
push esi
push edi
call ecx
mov edi, eax
mov byte [esp + 0x50], 3
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push esi
call ebx
cmp edi, ebp
jge 0x1003111a
mov byte [esp + 0x50], 1
lea edx, [esp + 0x18]
push edx
call fcn.1005ee00
mov dword [esp + 0x50], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call fcn.1005ee00
xor eax, eax
jmp 0x10031512
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push 3
push 3
push ebp
push ebp
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebp
jl 0x100310f2
mov ecx, dword [esp + 0x58]
push ecx
lea edi, [esp + 0x2c]
call fcn.10031ee0
mov byte [esp + 0x50], 5
mov edx, edi
push edx
mov edx, 0x100ac8a0
call fcn.100036d0
lea eax, [esp + 0x20]
push eax
call fcn.1000ffe0
mov byte [esp + 0x50], 6
mov ecx, dword [esp + 0x28]
push ecx
push str.ASSOCIATORS_OF_Win32_LogicalDisk.DeviceID_s_where_ResultClass__Win32_DiskPartition
lea edi, [esp + 0x28]
call fcn.10012130
add esp, 8
lea edx, [esp + 0x14]
push edx
call fcn.1002bcf0
mov byte [esp + 0x50], 7
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
test eax, eax
jne 0x100311b7
xor esi, esi
mov dword [esp + 0x58], esi
mov byte [esp + 0x50], 8
call fcn.10032220
mov edi, eax
mov dword [esp + 0x30], edi
test edi, edi
jne 0x100311d2
push 0x8007000e
call fcn.10002030
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x58], esi
test esi, esi
jne 0x10031199
push 0x8007000e
call fcn.10002030
mov byte [esp + 0x50], 9
mov eax, dword [ebp]
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0x30
push esi
push edi
push ebp
call edx
mov ebp, eax
mov byte [esp + 0x50], 8
push edi
call ebx
mov byte [esp + 0x50], 7
push esi
call ebx
xor esi, esi
cmp ebp, esi
jge 0x10031256
mov byte [esp + 0x50], 6
lea eax, [esp + 0x14]
push eax
call fcn.1005ee00
mov byte [esp + 0x50], 5
lea ecx, [esp + 0x20]
call fcn.100025b0
mov byte [esp + 0x50], 3
lea ecx, [esp + 0x28]
call fcn.100025b0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x18]
push ecx
call fcn.1005ee00
mov dword [esp + 0x50], 0xffffffff
lea edx, [esp + 0x1c]
push edx
call fcn.1005ee00
xor eax, eax
jmp 0x10031512
lea eax, [esp + 0x2c]
push eax
call fcn.1000ffe0
mov byte [esp + 0x50], 0xa
mov dword [esp + 0x24], esi
cmp dword [esp + 0x14], esi
je 0x10031320
mov dword [esp + 0x58], esi
mov byte [esp + 0x50], 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x5c]
push edx
push 1
push 0x7d0
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x24], esi
je 0x10031311
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push esi
push esi
lea ecx, [esp + 0x3c]
push ecx
push esi
push str.DeviceID
push eax
call edx
cmp eax, esi
jl 0x100312cf
cmp word [esp + 0x34], 8
je 0x100312e6
mov byte [esp + 0x50], 0xa
lea eax, [esp + 0x58]
push eax
call fcn.1005ee00
cmp dword [esp + 0x14], esi
jne 0x10031273
jmp 0x10031320
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.1001b7a0
mov byte [esp + 0x50], 0xd
lea edi, [esp + 0x2c]
call fcn.10003590
mov byte [esp + 0x50], 0xc
lea ecx, [esp + 0x30]
call fcn.100025b0
mov byte [esp + 0x50], 0xa
lea ecx, [esp + 0x58]
push ecx
call fcn.1005ee00
mov edx, dword [esp + 0x2c]
push edx
push str.ASSOCIATORS_OF_Win32_DiskPartition.DeviceID_s_where_ResultClass__Win32_DiskDrive
lea edi, [esp + 0x28]
call fcn.10012130
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, esi
je 0x1003134a
mov dword [esp + 0x14], esi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x58]
call fcn.1001f880
mov ebp, eax
mov byte [esp + 0x50], 0xe
call fcn.10032220
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
jne 0x1003137b
push 0x8007000e
call fcn.10002030
mov byte [esp + 0x50], 0xf
mov eax, dword [ebp]
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
push 0
push 0x30
push eax
mov eax, dword [ecx + 0x50]
push esi
push edi
call eax
mov edi, eax
mov byte [esp + 0x50], 0xe
push esi
call ebx
mov byte [esp + 0x50], 0xa
mov ecx, dword [esp + 0x58]
push ecx
call ebx
test edi, edi
jge 0x10031411
mov byte [esp + 0x50], 7
lea ecx, [esp + 0x2c]
call fcn.100025b0
mov byte [esp + 0x50], 6
lea edx, [esp + 0x14]
push edx
call fcn.1005ee00
mov byte [esp + 0x50], 5
lea ecx, [esp + 0x20]
call fcn.100025b0
mov byte [esp + 0x50], 3
lea ecx, [esp + 0x28]
call fcn.100025b0
mov byte [esp + 0x50], 1
lea eax, [esp + 0x18]
push eax
call fcn.1005ee00
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
call fcn.1005ee00
xor eax, eax
jmp 0x10031512
cmp dword [esp + 0x14], 0
mov dword [esp + 0x24], 0
je 0x100314b3
lea edx, [esp + 0x58]
push edx
call fcn.1002bcf0
mov byte [esp + 0x50], 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x5c]
push edx
push 1
push 0x7d0
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x24], 0
jne 0x10031463
mov byte [esp + 0x50], 0xa
lea ecx, [esp + 0x58]
push ecx
jmp 0x100314ae
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
push 0
push 0
lea edx, [esp + 0x3c]
push edx
push 0
push str.Index
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x100314a4
cmp word [esp + 0x34], 3
jne 0x100314a4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x100314a4
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
mov byte [esp + 0x50], 0xa
lea edx, [esp + 0x58]
push edx
call fcn.1005ee00
mov byte [esp + 0x50], 7
lea ecx, [esp + 0x2c]
call fcn.100025b0
mov byte [esp + 0x50], 6
lea eax, [esp + 0x14]
push eax
call fcn.1005ee00
mov byte [esp + 0x50], 5
lea ecx, [esp + 0x20]
call fcn.100025b0
mov byte [esp + 0x50], 3
lea ecx, [esp + 0x28]
call fcn.100025b0
mov byte [esp + 0x50], 1
lea ecx, [esp + 0x18]
push ecx
call fcn.1005ee00
mov dword [esp + 0x50], 0xffffffff
lea edx, [esp + 0x1c]
push edx
call fcn.1005ee00
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 8