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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
push edi
xor ebx, ebx
push 0x4c
lea eax, [esp + 0x50]
push ebx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x54], ebx
call fcn.004ae0b0
add esp, 0xc
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x16], bl
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x1c]
push ecx
push 0x6f8370
push 1
push ebx
test eax, eax
push 0x6f8360
setge byte [esp + 0x27]
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x574cc5
cmp dword [esp + 0x1c], ebx
je 0x574cc5
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.._rootcimv2
call esi
cmp eax, ebx
mov dword [esp + 0x2c], eax
je 0x574cc5
push str.Win32_PNPEntity
call esi
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x34], edi
je 0x574ca2
push str.DeviceID
call esi
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x574ca2
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x18]
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
jl 0x574ca2
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x574ca2
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 + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push edi
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
jl 0x574ca2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x574ca2
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x4c]
push edx
push 0x14
push 0x2710
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x574ca2
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x574ca2
xor edi, edi
cmp eax, ebx
jbe 0x574c76
lea esi, [esp + 0x48]
lea ebx, [ebx]
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x34]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x574c61
cmp word [esp + 0x38], 8
jne 0x574c61
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x574c61
push 0x6c0574
push eax
call fcn.004ad13b
add esp, 8
test eax, eax
je 0x574c61
mov ecx, dword [esp + 0x40]
push str.VID_
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
call fcn.004ad13b
add esp, 8
cmp eax, ebx
je 0x574c17
lea edx, [esp + 0x24]
push edx
push str.VID__4X
push eax
call fcn.004ad11c
add esp, 0xc
cmp eax, 1
je 0x574c17
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x40]
push str.PID_
push eax
call fcn.004ad13b
add esp, 8
cmp eax, ebx
je 0x574c49
lea ecx, [esp + 0x30]
push ecx
push str.PID__4X
push eax
call fcn.004ad11c
add esp, 0xc
cmp eax, 1
je 0x574c49
xor eax, eax
jmp 0x574c4d
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 8]
movzx edx, ax
movzx eax, word [esp + 0x24]
shl edx, 0x10
or edx, eax
cmp edx, dword [ecx]
je 0x574c9d
call fcn.0041c880
add edi, 1
add esi, 4
cmp edi, dword [esp + 0x20]
jb 0x574b90
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push 0x14
push 0x2710
push eax
call edx
test eax, eax
jge 0x574b70
jmp 0x574ca2
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push eax
call esi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x574cba
push eax
call esi
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x574cc5
push eax
call esi
xor esi, esi
mov eax, dword [esp + esi*4 + 0x48]
cmp eax, ebx
je 0x574cdb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + esi*4 + 0x48], ebx
add esi, 1
cmp esi, 0x14
jb 0x574cc7
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x574cf7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x574d0b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x574d1f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
cmp byte [esp + 0x13], bl
je 0x574d2b
call dword [sym.imp.ole32.dll_CoUninitialize]
movzx eax, byte [esp + 0x12]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret