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

Disassembly:
push 0xa8
mov eax, 0x4b783f
call fcn.00495a70
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
mov dword [ebp - 0xa8], ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [ebp - 0xac], ebx
lea eax, [ebp - 0xac]
push eax
push 0x4d9718
xor edi, edi
inc edi
push edi
push ebx
push 0x4d97e8
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40b65a
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x40b99e
mov dword [ebp - 0xb4], ebx
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
lea edx, [ebp - 0xb4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x40b697
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x40b98b
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0xb4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jl 0x40b686
mov dword [ebp - 0xb0], ebx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax]
lea edx, [ebp - 0xb0]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_DiskDrive
push 0x4c5904
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x50]
cmp eax, ebx
jge 0x40b6f0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
jmp 0x40b977
push 0xf
pop eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0xb0], ebx
je 0x40b850
mov dword [ebp - 0xa4], ebx
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push edi
push 0xffffffffffffffff
push dword [ebp - 0xb0]
mov dword [ebp - 0xa8], ebx
mov eax, dword [eax]
mov byte [ebp - 4], 6
call dword [eax + 0x10]
cmp eax, ebx
jl 0x40b834
cmp dword [ebp - 0xa8], ebx
je 0x40b834
push str.SerialNumber
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409a14
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.00409745
push ebx
push edi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00408711
cmp dword [ebp - 0x3c], ebx
jne 0x40b7c5
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x40b7b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xb0], ebx
jne 0x40b71d
jmp 0x40b848
push str.Model
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409a14
add esp, 0xc
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 8
call fcn.00409745
push ebx
push edi
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.00408711
push str.FirmwareRevision
push dword [ebp - 0xa4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409a14
add esp, 0xc
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.00409745
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.00408711
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x40b848
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x3c], ebx
jne 0x40b873
push 0xf
pop eax
push ebx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ebx
push edi
lea ecx, [ebp - 0x4c]
mov byte [esi], bl
call fcn.00408711
push ebx
push edi
lea ecx, [ebp - 0x68]
call fcn.00408711
push ebx
push edi
jmp 0x40b96c
push 0x1e
lea eax, [ebp - 0x30]
push 0x20
push eax
call fcn.00495b20
mov eax, dword [ebp - 0x74]
add esp, 0xc
push 4
pop edi
cmp eax, ebx
je 0x40b8ca
mov dword [ebp - 0xa8], eax
cmp eax, edi
mov dword [ebp - 0xa4], edi
lea eax, [ebp - 0xa8]
jl 0x40b8a9
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x70], 0x10
mov ecx, dword [ebp - 0x84]
jae 0x40b8bb
lea ecx, [ebp - 0x84]
push dword [eax]
lea eax, [ebp - 0x30]
push ecx
push eax
call fcn.00495100
add esp, 0xc
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x40b908
mov dword [ebp - 0xa8], eax
cmp eax, edi
mov dword [ebp - 0xa4], edi
lea eax, [ebp - 0xa8]
jl 0x40b8ed
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x68]
jae 0x40b8f9
lea ecx, [ebp - 0x68]
push dword [eax]
lea eax, [ebp - 0x2c]
push ecx
push eax
call fcn.00495100
add esp, 0xc
mov eax, dword [ebp - 0x3c]
push 0x14
pop ecx
mov dword [ebp - 0xa8], eax
cmp eax, ecx
mov dword [ebp - 0xa4], ecx
lea eax, [ebp - 0xa8]
jl 0x40b92a
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x38], 0x10
mov ecx, dword [ebp - 0x4c]
jae 0x40b936
lea ecx, [ebp - 0x4c]
push dword [eax]
lea eax, [ebp - 0x28]
push ecx
push eax
call fcn.00495100
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
mov byte [ebp - 0x14], bl
call fcn.004096f4
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00408711
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00408711
push ebx
push 1
lea ecx, [ebp - 0x84]
call fcn.00408711
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40b98b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40b99e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xac]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40b9b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
call fcn.00495af3
ret