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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
xor ebx, ebx
push 0x4c
lea eax, [esp + 0x48]
push ebx
push eax
mov byte [esp + 0x1a], bl
xor edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
call fcn.0052e6e0
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x14]
push ecx
push 0x644fec
push 1
push ebx
test eax, eax
push 0x644fdc
setns byte [esp + 0x23]
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x583b1f
cmp dword [esp + 0x14], ebx
je 0x583b1f
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.._rootcimv2
call esi
mov dword [esp + 0x2c], eax
cmp eax, ebx
je 0x583b1f
push str.Win32_PNPEntity
call esi
mov dword [esp + 0x28], eax
cmp eax, ebx
je 0x583b00
push str.DeviceID
call esi
mov edi, eax
cmp edi, ebx
je 0x583b00
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call edx
test eax, eax
js 0x583b00
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x583b00
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x2c]
push ebx
push ebx
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
js 0x583b00
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x583b00
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x44]
push edx
push 0x14
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push 0x2710
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x583b00
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x583b00
xor esi, esi
cmp eax, ebx
jbe 0x583ad0
mov eax, dword [esp + esi*4 + 0x40]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
push ebx
push edi
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
js 0x583ab1
cmp word [esp + 0x30], 8
jne 0x583ab1
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x583ab1
push 0x637980
push eax
call fcn.0055feee
add esp, 8
test eax, eax
je 0x583ab1
mov ecx, dword [esp + 0x38]
push str.VID_
push ecx
mov dword [esp + 0x28], ebx
call fcn.0055feee
add esp, 8
cmp eax, ebx
je 0x583a65
lea edx, [esp + 0x20]
push edx
push str.VID__4X
push eax
call fcn.0055ffc2
add esp, 0xc
cmp eax, 1
je 0x583a65
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x38]
push str.PID_
push eax
mov dword [esp + 0x2c], ebx
call fcn.0055feee
add esp, 8
cmp eax, ebx
je 0x583a9b
lea ecx, [esp + 0x24]
push ecx
push str.PID__4X
push eax
call fcn.0055ffc2
add esp, 0xc
cmp eax, 1
je 0x583a9b
mov dword [esp + 0x24], ebx
movzx edx, word [esp + 0x24]
movzx eax, word [esp + 0x20]
mov ecx, dword [ebp + 8]
shl edx, 0x10
or edx, eax
cmp edx, dword [ecx]
je 0x583afb
mov eax, dword [esp + esi*4 + 0x40]
cmp eax, ebx
je 0x583ac5
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + esi*4 + 0x40], ebx
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x5839e4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x44]
push edx
push 0x14
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push 0x2710
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jns 0x5839ce
jmp 0x583b00
mov byte [esp + 0xe], 1
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ecx
call esi
cmp edi, ebx
je 0x583b14
push edi
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x583b1f
push eax
call esi
xor esi, esi
mov eax, dword [esp + esi*4 + 0x40]
cmp eax, ebx
je 0x583b35
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + esi*4 + 0x40], ebx
inc esi
cmp esi, 0x14
jb 0x583b21
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x583b4f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x583b63
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x583b77
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
cmp byte [esp + 0xf], bl
je 0x583b83
call dword [sym.imp.ole32.dll_CoUninitialize]
movzx eax, byte [esp + 0xe]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret