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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d468
mov eax, dword fs:[0]
push eax
mov eax, 0x27d4
call fcn.00532310
mov eax, dword [0x5f1114]
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, edx
mov bl, byte [ebp + 8]
mov edi, 0x5c4ffe
and dword [ebp - 0x27ac], 0
push edi
mov byte [ebp - 0x279d], bl
call fcn.004036c7
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0040364e
push ecx
push ecx
lea ecx, [ebp - 0x27c8]
call fcn.00408ad3
xor edi, edi
lea ecx, [ebp - 0x2754]
push eax
mov edx, 0x5c5b48
mov dword [ebp - 4], edi
call fcn.004043cc
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x27c8]
mov byte [ebp - 4], 2
call fcn.00403a36
push 6
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x5731c0
xor eax, eax
push eax
push eax
push eax
push 3
push eax
push eax
push eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x5731ba
and dword [ebp - 0x2774], edi
lea eax, [ebp - 0x2774]
push eax
push 0x5bd524
push 1
push edi
push 0x5bd5f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x5731ba
and dword [ebp - 0x2770], edi
lea ecx, [ebp - 0x27a4]
push str.ROOTCIMV2
call fcn.004053da
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x57314f
mov edx, dword [eax]
jmp 0x573151
xor edx, edx
mov eax, dword [ebp - 0x2774]
lea edi, [ebp - 0x2770]
push edi
xor edi, edi
push edi
mov ecx, dword [eax]
push edi
push edi
push edi
push edi
push edi
push edx
push eax
call dword [ecx + 0xc]
mov byte [ebp - 4], 2
mov edi, eax
mov ecx, dword [ebp - 0x27a4]
test ecx, ecx
je 0x573182
call fcn.0040544e
test edi, edi
js 0x5731ae
xor eax, eax
push eax
push eax
push 3
push 3
push eax
push eax
push 0xa
push dword [ebp - 0x2770]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x5731ef
mov eax, dword [ebp - 0x2770]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2774]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2754]
call fcn.00403a36
mov al, bl
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.00531526
mov esp, ebp
pop ebp
ret
and dword [ebp - 0x277c], 0
test bl, bl
je 0x573215
push str.SELECT__FROM_Win32_DiskDrive
lea ecx, [ebp - 0x27a8]
call fcn.004053da
mov edi, eax
xor ebx, ebx
mov byte [ebp - 4], 4
inc ebx
jmp 0x573231
push str.SELECT__FROM_Win32_PhysicalMedia
lea ecx, [ebp - 0x27a4]
call fcn.004053da
mov edi, eax
push 2
mov dword [ebp - 4], 5
pop ebx
push 0x5c5bbc
lea ecx, [ebp - 0x27b0]
mov dword [ebp - 0x27ac], ebx
call fcn.004053da
mov dword [ebp - 4], 6
mov ecx, dword [edi]
test ecx, ecx
je 0x573258
mov edi, dword [ecx]
jmp 0x57325a
xor edi, edi
mov eax, dword [eax]
test eax, eax
je 0x573264
mov edx, dword [eax]
jmp 0x573266
xor edx, edx
mov eax, dword [ebp - 0x2770]
mov ecx, dword [eax]
lea eax, [ebp - 0x277c]
push eax
mov eax, dword [ebp - 0x2770]
push 0
push 0x30
push edi
push edx
push eax
call dword [ecx + 0x50]
mov ecx, dword [ebp - 0x27b0]
mov edi, eax
test ecx, ecx
je 0x57329d
call fcn.0040544e
and dword [ebp - 0x27b0], 0
test bl, 2
je 0x5732bb
mov ecx, dword [ebp - 0x27a4]
and ebx, 0xfffffffd
test ecx, ecx
je 0x5732bb
call fcn.0040544e
and dword [ebp - 0x27a4], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x5732d6
mov ecx, dword [ebp - 0x27a8]
test ecx, ecx
je 0x5732d6
call fcn.0040544e
test edi, edi
js 0x5731a2
and dword [ebp - 0x2778], 0
and dword [ebp - 0x2724], 0
mov ecx, dword [ebp - 0x277c]
test ecx, ecx
je 0x573539
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov bl, byte [ebp - 0x279d]
mov eax, dword [ecx]
lea edx, [ebp - 0x2724]
push edx
lea edx, [ebp - 0x2778]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x2724], 0
je 0x573539
mov ecx, dword [ebp - 0x2778]
xor eax, eax
push eax
push eax
mov dword [ebp - 0x2794], eax
test bl, bl
mov edx, dword [ecx]
lea eax, [ebp - 0x279c]
push eax
push 0
mov eax, 0x5c5bc0
mov dword [ebp - 0x27a8], 0x5c5bcc
cmove eax, dword [ebp - 0x27a8]
push eax
push ecx
call dword [edx + 0x10]
test eax, eax
js 0x573516
cmp dword [ebp - 0x2794], 0
lea ecx, [ebp - 0x273c]
mov eax, 0x5c4ffc
cmovne eax, dword [ebp - 0x2794]
push eax
call fcn.004035e2
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x273c]
cmp dword [ebp - 0x2728], 8
lea edx, [ebp - 0x273c]
mov eax, dword [ebp - 0x272c]
cmovae ecx, dword [ebp - 0x273c]
cmovae edx, dword [ebp - 0x273c]
push edx
mov edx, fcn.00554aab
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x273c]
cmovae ecx, dword [ebp - 0x273c]
push eax
push ecx
lea ecx, [ebp - 0x27a4]
call fcn.00403b8d
add esp, 0xc
lea ecx, [ebp - 0x2754]
cmp dword [ebp - 0x2740], 8
lea eax, [ebp - 0x273c]
cmovae ecx, dword [ebp - 0x2754]
cmp dword [ebp - 0x2728], 8
cmovae eax, dword [ebp - 0x273c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x573429
test dx, dx
je 0x573425
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x573429
add eax, 4
add ecx, 4
test dx, dx
jne 0x573403
xor eax, eax
jmp 0x57342e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x573503
and dword [ebp - 0x2784], eax
lea edx, [ebp - 0x278c]
mov eax, dword [ebp - 0x2778]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.SerialNumber
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x5734fa
cmp dword [ebp - 0x2784], 0
lea ecx, [ebp - 0x276c]
mov eax, 0x5c4ffc
cmovne eax, dword [ebp - 0x2784]
push eax
call fcn.004035e2
lea edx, [ebp - 0x276c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x27e0]
call fcn.00574ba3
push eax
mov ecx, esi
call fcn.00405568
push 0
push 1
lea ecx, [ebp - 0x27e0]
call fcn.00403ae2
cmp dword [esi + 0x14], 0x10
jb 0x5734b7
mov ecx, dword [esi]
jmp 0x5734b9
mov ecx, esi
lea eax, [ebp - 0x2720]
mov byte [ebp - 0x2720], 0
push eax
xor edx, edx
call fcn.00573a1d
lea eax, [ebp - 0x2720]
push eax
call fcn.004036c7
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x2720]
mov ecx, esi
push eax
call fcn.0040364e
push 0
push 1
lea ecx, [ebp - 0x276c]
call fcn.00403a36
lea eax, [ebp - 0x278c]
push eax
call edi
push 0
push 1
lea ecx, [ebp - 0x273c]
mov byte [ebp - 4], 2
call fcn.00403a36
lea eax, [ebp - 0x279c]
push eax
call edi
mov eax, dword [ebp - 0x2778]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x277c]
test ecx, ecx
jne 0x573306
mov eax, dword [ebp - 0x2770]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2774]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x277c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2778]
test eax, eax
jne 0x57356e
mov eax, dword [eax]
push 0
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esi + 0x10], 0
setne bl
jmp 0x5731c2