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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426768
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x432860]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40c1e4
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x40c1de
lea eax, [ebp - 0x14]
push eax
push 0x4284b4
push 1
push 0
push 0x428584
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40c1de
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
call fcn.0040b360
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x40c180
mov edx, dword [eax]
jmp 0x40c182
xor edx, edx
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x10]
mov ecx, dword [eax]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x24]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040b400
test esi, esi
js 0x40c1d5
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x40c1fb
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.SELECT__FROM_Win32_VideoController
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
call fcn.0040b2d0
mov esi, eax
push 0x42e7f0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.0040b2d0
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x40c233
mov esi, dword [esi]
jmp 0x40c235
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x40c23f
mov edx, dword [eax]
jmp 0x40c241
xor edx, edx
mov eax, dword [ebp - 0x10]
lea edi, [ebp - 0x18]
mov ecx, dword [eax]
push edi
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0040b400
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b400
test esi, esi
js 0x40c1cc
push 0x400
push 0
push ebx
mov dword [ebp - 0x20], 0
call fcn.00412080
mov ecx, dword [ebp - 0x18]
add esp, 0xc
test ecx, ecx
je 0x40c332
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x1c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x20], 0
je 0x40c332
mov eax, dword [ebp - 0x1c]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x38]
push edx
push 0
push 0x42e7f4
push eax
call dword [ecx + 0x10]
mov edx, dword [ebp - 0x30]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c2d3
push 0
push 0
push 0x400
push ebx
sub ecx, esi
sar ecx, 1
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add ebx, eax
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40c300
mov ax, word [0x42dd9c]
mov word [edi], ax
lea eax, [ebp - 0x38]
push eax
inc ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x40c297
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x40c35b
mov eax, dword [eax]
push 0
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret