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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b4d1
mov eax, dword fs:[0]
push eax
mov eax, 0x27d4
call fcn.00531f80
mov eax, dword [0x5ee10c]
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, 0x5c2d2e
and dword [ebp - 0x27ac], 0
push edi
mov byte [ebp - 0x279d], bl
call fcn.004036a7
pop ecx
push eax
push edi
mov ecx, esi
call fcn.0040362e
push ecx
push ecx
lea ecx, [ebp - 0x27c8]
call fcn.00408ab3
xor edi, edi
lea ecx, [ebp - 0x2754]
push eax
mov edx, 0x5c3870
mov dword [ebp - 4], edi
call fcn.004043ac
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x27c8]
mov byte [ebp - 4], 2
call fcn.00403a16
push 6
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x572b16
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 0x572b10
and dword [ebp - 0x2774], edi
lea eax, [ebp - 0x2774]
push eax
push 0x5bb51c
push 1
push edi
push 0x5bb5ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x572b10
and dword [ebp - 0x2770], edi
lea ecx, [ebp - 0x27a4]
push str.ROOTCIMV2
call fcn.004053ba
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x572aa5
mov edx, dword [eax]
jmp 0x572aa7
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 0x572ad8
call fcn.0040542e
test edi, edi
js 0x572b04
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 0x572b45
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.00403a16
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.00531192
mov esp, ebp
pop ebp
ret
and dword [ebp - 0x277c], 0
test bl, bl
je 0x572b6b
push str.SELECT__FROM_Win32_DiskDrive
lea ecx, [ebp - 0x27a8]
call fcn.004053ba
mov edi, eax
xor ebx, ebx
mov byte [ebp - 4], 4
inc ebx
jmp 0x572b87
push str.SELECT__FROM_Win32_PhysicalMedia
lea ecx, [ebp - 0x27a4]
call fcn.004053ba
mov edi, eax
push 2
mov dword [ebp - 4], 5
pop ebx
push 0x5c38e4
lea ecx, [ebp - 0x27b0]
mov dword [ebp - 0x27ac], ebx
call fcn.004053ba
mov dword [ebp - 4], 6
mov ecx, dword [edi]
test ecx, ecx
je 0x572bae
mov edi, dword [ecx]
jmp 0x572bb0
xor edi, edi
mov eax, dword [eax]
test eax, eax
je 0x572bba
mov edx, dword [eax]
jmp 0x572bbc
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 0x572bf3
call fcn.0040542e
and dword [ebp - 0x27b0], 0
test bl, 2
je 0x572c11
mov ecx, dword [ebp - 0x27a4]
and ebx, 0xfffffffd
test ecx, ecx
je 0x572c11
call fcn.0040542e
and dword [ebp - 0x27a4], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x572c2c
mov ecx, dword [ebp - 0x27a8]
test ecx, ecx
je 0x572c2c
call fcn.0040542e
test edi, edi
js 0x572af8
and dword [ebp - 0x2778], 0
and dword [ebp - 0x2724], 0
mov ecx, dword [ebp - 0x277c]
test ecx, ecx
je 0x572e8f
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 0x572e8f
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, 0x5c38e8
mov dword [ebp - 0x27a8], 0x5c38f4
cmove eax, dword [ebp - 0x27a8]
push eax
push ecx
call dword [edx + 0x10]
test eax, eax
js 0x572e6c
cmp dword [ebp - 0x2794], 0
lea ecx, [ebp - 0x273c]
mov eax, 0x5c2d2c
cmovne eax, dword [ebp - 0x2794]
push eax
call fcn.004035c2
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.005546e7
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x273c]
cmovae ecx, dword [ebp - 0x273c]
push eax
push ecx
lea ecx, [ebp - 0x27a4]
call fcn.00403b6d
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 0x572d7f
test dx, dx
je 0x572d7b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x572d7f
add eax, 4
add ecx, 4
test dx, dx
jne 0x572d59
xor eax, eax
jmp 0x572d84
sbb eax, eax
or eax, 1
test eax, eax
jne 0x572e59
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 0x572e50
cmp dword [ebp - 0x2784], 0
lea ecx, [ebp - 0x276c]
mov eax, 0x5c2d2c
cmovne eax, dword [ebp - 0x2784]
push eax
call fcn.004035c2
lea edx, [ebp - 0x276c]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x27e0]
call fcn.005744f9
push eax
mov ecx, esi
call fcn.00405548
push 0
push 1
lea ecx, [ebp - 0x27e0]
call fcn.00403ac2
cmp dword [esi + 0x14], 0x10
jb 0x572e0d
mov ecx, dword [esi]
jmp 0x572e0f
mov ecx, esi
lea eax, [ebp - 0x2720]
mov byte [ebp - 0x2720], 0
push eax
xor edx, edx
call fcn.00573373
lea eax, [ebp - 0x2720]
push eax
call fcn.004036a7
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x2720]
mov ecx, esi
push eax
call fcn.0040362e
push 0
push 1
lea ecx, [ebp - 0x276c]
call fcn.00403a16
lea eax, [ebp - 0x278c]
push eax
call edi
push 0
push 1
lea ecx, [ebp - 0x273c]
mov byte [ebp - 4], 2
call fcn.00403a16
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 0x572c5c
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 0x572ec4
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 0x572b18