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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dafa
mov eax, dword fs:[0]
push eax
mov eax, 0x27d4
call fcn.00532460
mov eax, dword [0x5f2114]
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, 0x5c5ffe
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, 0x5c6b68
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 0x57335d
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 0x573357
and dword [ebp - 0x2774], edi
lea eax, [ebp - 0x2774]
push eax
push 0x5be524
push 1
push edi
push 0x5be5f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x573357
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 0x5732ec
mov edx, dword [eax]
jmp 0x5732ee
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 0x57331f
call fcn.0040544e
test edi, edi
js 0x57334b
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 0x57338c
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.00531668
mov esp, ebp
pop ebp
ret
and dword [ebp - 0x277c], 0
test bl, bl
je 0x5733b2
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 0x5733ce
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 0x5c6bdc
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 0x5733f5
mov edi, dword [ecx]
jmp 0x5733f7
xor edi, edi
mov eax, dword [eax]
test eax, eax
je 0x573401
mov edx, dword [eax]
jmp 0x573403
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 0x57343a
call fcn.0040544e
and dword [ebp - 0x27b0], 0
test bl, 2
je 0x573458
mov ecx, dword [ebp - 0x27a4]
and ebx, 0xfffffffd
test ecx, ecx
je 0x573458
call fcn.0040544e
and dword [ebp - 0x27a4], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x573473
mov ecx, dword [ebp - 0x27a8]
test ecx, ecx
je 0x573473
call fcn.0040544e
test edi, edi
js 0x57333f
and dword [ebp - 0x2778], 0
and dword [ebp - 0x2724], 0
mov ecx, dword [ebp - 0x277c]
test ecx, ecx
je 0x5736d6
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 0x5736d6
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, 0x5c6be0
mov dword [ebp - 0x27a8], 0x5c6bec
cmove eax, dword [ebp - 0x27a8]
push eax
push ecx
call dword [edx + 0x10]
test eax, eax
js 0x5736b3
cmp dword [ebp - 0x2794], 0
lea ecx, [ebp - 0x273c]
mov eax, 0x5c5ffc
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.00554bb7
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 0x5735c6
test dx, dx
je 0x5735c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x5735c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x5735a0
xor eax, eax
jmp 0x5735cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5736a0
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 0x573697
cmp dword [ebp - 0x2784], 0
lea ecx, [ebp - 0x276c]
mov eax, 0x5c5ffc
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.00574d40
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 0x573654
mov ecx, dword [esi]
jmp 0x573656
mov ecx, esi
lea eax, [ebp - 0x2720]
mov byte [ebp - 0x2720], 0
push eax
xor edx, edx
call fcn.00573bba
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 0x5734a3
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 0x57370b
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 0x57335f