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

Disassembly:
push ebp
sub esp, 0x6c
lea ebp, [esp - 4]
mov eax, dword [0x4c1c50]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push 0x38
mov eax, 0x493774
call fcn.00470906
mov edi, dword [ebp + 0x78]
xor ebx, ebx
push 0x4a099a
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov dword [ebp], ebx
call fcn.0044e280
xor esi, esi
inc esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jge 0x4067b9
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0044e1c0
lea ecx, [ebp - 0x14]
mov dword [ebp], esi
mov byte [ebp - 4], bl
call fcn.0044e260
mov eax, edi
jmp 0x4069e0
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x4067e8
cmp eax, 0x80010119
je 0x4067e8
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0044e1c0
jmp 0x4067a4
lea eax, [ebp - 0x1c]
push eax
push 0x4ad200
push esi
push ebx
push 0x4ad2d0
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x4067d5
push str.rootCIMV2
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
call fcn.004039ca
mov eax, dword [eax]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x406826
mov eax, dword [eax]
mov dword [ebp + 4], eax
jmp 0x406829
mov dword [ebp + 4], ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 4]
push eax
call dword [ecx + 0xc]
mov ecx, dword [ebp - 0x24]
mov dword [ebp + 4], eax
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x406852
call fcn.0040587f
cmp dword [ebp + 4], ebx
jge 0x406865
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4067d5
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x406887
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x406857
push str.SELECT__FROM_Win32_VideoController
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], ebx
call fcn.0040397d
mov edi, eax
push 0x4a0ce8
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0040397d
mov ecx, dword [edi]
mov byte [ebp - 4], 4
cmp ecx, ebx
je 0x4068bb
mov ecx, dword [ecx]
mov dword [ebp + 4], ecx
jmp 0x4068be
mov dword [ebp + 4], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x4068c8
mov edx, dword [eax]
jmp 0x4068ca
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edi, [ebp - 0x20]
push edi
push ebx
push 0x30
push dword [ebp + 4]
push edx
push eax
call dword [ecx + 0x50]
mov ecx, dword [ebp - 0x24]
mov edi, eax
cmp ecx, ebx
je 0x4068ef
call fcn.0040587f
mov dword [ebp - 0x24], ebx
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x4068ff
call fcn.0040587f
cmp edi, ebx
jge 0x406914
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
jmp 0x4069b7
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
jmp 0x40694c
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [eax + 0x10]
cmp dword [ebp - 0x30], ebx
je 0x406951
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x44]
push edx
push ebx
push str.Caption
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x20], ebx
jne 0x40691c
push 0x64
lea eax, [ebp + 8]
push ebx
push eax
call fcn.00470280
add esp, 0xc
push ebx
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x3c]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0044e3b0
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x406996
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4069a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4069b0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4069bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x14]
push eax
call fcn.0044e1c0
lea ecx, [ebp - 0x14]
mov dword [ebp], esi
mov byte [ebp - 4], bl
call fcn.0044e260
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.00470483
add ebp, 0x70
leave
ret