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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009aa12
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
push 0x100a2610
push 1
push ebx
push 0x100a26e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x1003058b
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x1c]
push str.ROOTCIMV2
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, ebx
jne 0x100302ee
push 0x8007000e
call fcn.10002030
mov byte [ebp - 4], 4
mov edx, dword [edi]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0x80
push ebx
push ebx
push ebx
push esi
push edi
mov ecx, dword [edx + 0xc]
call ecx
mov edi, eax
mov byte [ebp - 4], 3
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
jge 0x10030337
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
call fcn.1005ee00
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
jmp 0x1003067f
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jl 0x1003031a
mov ecx, dword [ebp + 8]
push ecx
lea edi, [ebp - 0x28]
call fcn.10031ee0
mov byte [ebp - 4], 5
mov edx, edi
push edx
mov edx, 0x100ac8a0
call fcn.100036d0
lea eax, [ebp - 0x20]
push eax
call fcn.1000ffe0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x28]
push ecx
push str.ASSOCIATORS_OF_Win32_LogicalDisk.DeviceID_s_where_ResultClass__Win32_DiskPartition
lea edi, [ebp - 0x20]
call fcn.10012130
add esp, 8
lea edx, [ebp - 0x14]
push edx
call fcn.1002bcf0
mov byte [ebp - 4], 7
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x100303c5
xor esi, esi
mov dword [ebp + 8], esi
mov byte [ebp - 4], 8
call fcn.10032220
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x100303df
push 0x8007000e
call fcn.10002030
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
jne 0x100303a9
push 0x8007000e
call fcn.10002030
mov byte [ebp - 4], 9
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x30
push esi
push edi
push ebx
mov edx, dword [eax + 0x50]
call edx
mov ebx, eax
mov byte [ebp - 4], 8
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
mov byte [ebp - 4], 7
push esi
call edi
xor esi, esi
cmp ebx, esi
jl 0x10030642
lea eax, [ebp - 0x2c]
push eax
call fcn.1000ffe0
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x14], esi
je 0x100304c6
mov bl, 0xc
mov dword [ebp + 8], esi
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp + 8]
push edx
push 1
push 0x7d0
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x24], esi
je 0x100304b9
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push esi
push esi
lea ecx, [ebp - 0x40]
push ecx
push esi
push str.DeviceID
push eax
mov edx, dword [edx + 0x10]
call edx
cmp eax, esi
jl 0x10030481
cmp word [ebp - 0x40], 8
je 0x10030495
mov byte [ebp - 4], 0xa
lea eax, [ebp + 8]
push eax
call fcn.1005ee00
cmp dword [ebp - 0x14], esi
jne 0x10030430
jmp 0x100304c6
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.1001b7a0
mov byte [ebp - 4], 0xd
lea edi, [ebp - 0x2c]
call fcn.10003590
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
call fcn.100025b0
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 8]
push ecx
call fcn.1005ee00
mov edx, dword [ebp - 0x2c]
push edx
push str.ASSOCIATORS_OF_Win32_DiskPartition.DeviceID_s_where_ResultClass__Win32_DiskDrive
lea edi, [ebp - 0x20]
call fcn.10012130
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x100304ec
mov dword [ebp - 0x14], esi
mov ecx, dword [eax]
push eax
mov edx, dword [ecx + 8]
call edx
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
lea esi, [ebp + 8]
call fcn.1001f880
mov ebx, eax
mov byte [ebp - 4], 0xe
call fcn.10032220
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
jne 0x10030518
push 0x8007000e
call fcn.10002030
mov byte [ebp - 4], 0xf
mov eax, dword [ebx]
mov ecx, dword [edi]
lea edx, [ebp - 0x14]
push edx
push 0
push 0x30
push eax
push esi
push edi
mov eax, dword [ecx + 0x50]
call eax
mov edi, eax
mov byte [ebp - 4], 0xe
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp + 8]
push ecx
call esi
test edi, edi
jge 0x1003059b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.100025b0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x14]
push edx
call fcn.1005ee00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.100025b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.100025b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
call fcn.1005ee00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
push ecx
jmp 0x1003067f
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x14], 0
je 0x10030636
lea edx, [ebp + 8]
push edx
call fcn.1002bcf0
mov ebx, 0x10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp + 8]
push edx
push 1
push 0x7d0
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x24], 0
jne 0x100305e7
mov byte [ebp - 4], 0xa
lea ecx, [ebp + 8]
push ecx
jmp 0x10030631
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x40]
push edx
push 0
push str.Model
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x10030629
cmp word [ebp - 0x40], 8
jne 0x10030629
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x40]
push ecx
mov edi, dword [ebp + 0xc]
call fcn.100320c0
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 0xa
lea edx, [ebp + 8]
push edx
call fcn.1005ee00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.100025b0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x14]
push eax
call fcn.1005ee00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.100025b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.100025b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push ecx
call fcn.1005ee00
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x1c]
push edx
call fcn.1005ee00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8