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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584288
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5fb61c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
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 0x5beb24
push 1
push ebx
push 0x5bebf4
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x4be657
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [ebp - 4], edi
jmp 0x4beb03
mov dword [ebp - 0xb0], ebx
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
lea edx, [ebp - 0xb0]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
push eax
mov eax, dword [ecx + 0xc]
mov byte [ebp - 4], 1
call eax
cmp eax, ebx
jge 0x4be6ae
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4be6a6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], edi
jmp 0x4beb03
mov eax, dword [ebp - 0xb0]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x4be6f2
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4be6a6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], edi
jmp 0x4beb03
mov dword [ebp - 0xb4], ebx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 0xb4]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_DiskDrive
push 0x5b2470
push eax
mov eax, dword [ecx + 0x50]
mov byte [ebp - 4], 2
call eax
cmp eax, ebx
jge 0x4be765
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4be744
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4be6a6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], edi
jmp 0x4beb03
mov ecx, 0xf
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x84], bl
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov eax, dword [ebp - 0xb4]
lea edi, [ecx + 1]
cmp eax, ebx
je 0x4be8ee
lea esp, [esp]
mov dword [ebp - 0xa4], ebx
lea edx, [ebp - 0xa8]
push edx
lea edx, [ebp - 0xa4]
push edx
push 1
mov dword [ebp - 0xa8], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
mov byte [ebp - 4], 6
call eax
cmp eax, ebx
jl 0x4be8ce
cmp dword [ebp - 0xa8], ebx
je 0x4be8ce
mov ecx, dword [ebp - 0xa4]
push str.SerialNumber
push ecx
lea edx, [ebp - 0xa0]
push edx
call fcn.004bdc60
add esp, 0xc
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.0042eb90
mov byte [ebp - 4], 6
cmp dword [ebp - 0x8c], edi
jb 0x4be821
mov eax, dword [ebp - 0xa0]
push eax
call int.0042bfd0
add esp, 4
mov eax, dword [ebp - 0xa4]
cmp dword [ebp - 0x3c], ebx
jne 0x4be84f
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4be83c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xb4]
cmp eax, ebx
jne 0x4be7a0
jmp 0x4be8e4
push str.Model
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.004bdc60
add esp, 0xc
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 8
call fcn.0042eb90
mov byte [ebp - 4], 6
cmp dword [ebp - 0x8c], edi
jb 0x4be88f
mov edx, dword [ebp - 0xa0]
push edx
call int.0042bfd0
add esp, 4
mov eax, dword [ebp - 0xa4]
push str.FirmwareRevision
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.004bdc60
add esp, 0xc
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.0042eb90
cmp dword [ebp - 0x8c], edi
jb 0x4be8ce
mov edx, dword [ebp - 0xa0]
push edx
call int.0042bfd0
add esp, 4
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4be8e4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x3c], ebx
jne 0x4be955
mov ecx, 0xf
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [ebp - 0x38], edi
jb 0x4be90c
mov eax, dword [ebp - 0x4c]
push eax
call int.0042bfd0
add esp, 4
mov ecx, 0xf
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], edi
jb 0x4be92b
mov ecx, dword [ebp - 0x68]
push ecx
call int.0042bfd0
add esp, 4
mov ecx, 0xf
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
cmp dword [ebp - 0x70], edi
jb 0x4be94d
mov edx, dword [ebp - 0x84]
push edx
call int.0042bfd0
add esp, 4
mov ecx, 0xf
mov dword [ebp - 0x70], ecx
jmp 0x4beac8
mov eax, 0x20202020
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x74]
mov edi, 4
cmp eax, ebx
je 0x4be9bf
mov dword [ebp - 0xa8], eax
cmp eax, edi
mov dword [ebp - 0xa4], edi
lea eax, [ebp - 0xa8]
jl 0x4be99b
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x70], 0x10
mov ecx, dword [ebp - 0x84]
jae 0x4be9ad
lea ecx, [ebp - 0x84]
mov eax, dword [eax]
push eax
push ecx
lea eax, [ebp - 0x30]
push 0xffffffffffffffff
push eax
call fcn.00533641
add esp, 0x10
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x4bea00
mov dword [ebp - 0xa8], eax
cmp eax, edi
mov dword [ebp - 0xa4], edi
lea eax, [ebp - 0xa8]
jl 0x4be9e2
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x68]
jae 0x4be9ee
lea ecx, [ebp - 0x68]
mov eax, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x2c]
push 0xffffffffffffffff
push ecx
call fcn.00533641
add esp, 0x10
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xa8], eax
cmp eax, 0x14
mov dword [ebp - 0xa4], 0x14
lea eax, [ebp - 0xa8]
jl 0x4bea24
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x38], 0x10
mov ecx, dword [ebp - 0x4c]
jae 0x4bea30
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
push eax
push ecx
lea edx, [ebp - 0x28]
push 0xffffffffffffffff
push edx
call fcn.00533641
lea eax, [ebp - 0x30]
mov byte [ebp - 0x14], bl
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
add esp, 0x10
mov byte [esi], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4bea57
sub eax, edx
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.0042e9d0
mov edi, 0x10
cmp dword [ebp - 0x38], edi
jb 0x4bea82
mov ecx, dword [ebp - 0x4c]
push ecx
call int.0042bfd0
add esp, 4
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x54], edi
jb 0x4beaa0
mov edx, dword [ebp - 0x68]
push edx
call int.0042bfd0
add esp, 4
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
cmp dword [ebp - 0x70], edi
jb 0x4beac1
mov eax, dword [ebp - 0x84]
push eax
call int.0042bfd0
add esp, 4
mov dword [ebp - 0x70], 0xf
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], 1
mov byte [ebp - 0x84], bl
mov dword [ebp - 0x74], ebx
cmp eax, ebx
je 0x4beae7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xb0]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4beafc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xac]
cmp eax, ebx
je 0x4beb15
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005332ca
mov esp, ebp
pop ebp
ret