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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425628
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x431860]
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 0x40be94
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 0x40be8e
lea eax, [ebp - 0x14]
push eax
push 0x4274b4
push 1
push 0
push 0x427584
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40be8e
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
call fcn.0040b010
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x40be30
mov edx, dword [eax]
jmp 0x40be32
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.0040b0b0
test esi, esi
js 0x40be85
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 0x40beab
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.0040af80
mov esi, eax
push 0x42d68c
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.0040af80
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x40bee3
mov esi, dword [esi]
jmp 0x40bee5
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x40beef
mov edx, dword [eax]
jmp 0x40bef1
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.0040b0b0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040b0b0
test esi, esi
js 0x40be7c
push 0x400
push 0
push ebx
mov dword [ebp - 0x20], 0
call fcn.00411b90
mov ecx, dword [ebp - 0x18]
add esp, 0xc
test ecx, ecx
je 0x40bfe2
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 0x40bfe2
mov eax, dword [ebp - 0x1c]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x38]
push edx
push 0
push 0x42d690
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 0x40bf83
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 0x40bfb0
mov ax, word [0x42cd9c]
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 0x40bf47
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 0x40c00b
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