Function at 0x1000ba10
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069fe9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
push eax
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x1000bad5
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.10008cb0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x1000bab0
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10008690
xor eax, eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
push 0x100814e8
push 1
push 0
push 0x1007f740
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x1000bb28
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.10008cb0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000ba97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1000ba97
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push str.ROOTCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x1000bb81
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.10008cb0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000bb78
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 6
jmp 0x1000bcfa
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x1000bbc8
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.10008cb0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000bbbf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 8
jmp 0x1000bcfa
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x10]
push edx
push 0
push 0x30
mov ecx, dword [eax]
push str.SELECT__FROM_Win32_DiskDrive
push 0x100813d4
push eax
call dword [ecx + 0x50]
test eax, eax
jns 0x1000bc2f
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.10008cb0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000bc15
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000bc26
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xc
jmp 0x1000bcfa
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x1c]
push edx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x1000bcb1
cmp dword [ebp - 0x24], 0
jbe 0x1000bcb1
xor eax, eax
lea edx, [ebp - 0x38]
push 0
push 0
mov word [ebp - 0x38], ax
xorps xmm0, xmm0
mov dword [ebp - 0x2e], eax
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0x20]
push edx
push 0
movq qword [ebp - 0x36], xmm0
mov ecx, dword [eax]
push str.SerialNumber
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x1000bcb1
mov eax, dword [ebp - 0x30]
mov ecx, 0x1007fd14
test eax, eax
cmovne ecx, eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.1000c410
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.10008cb0
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x1000bcd4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000bce5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000bcf6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000bd07
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.100086f0
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret