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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421448
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x42c6dc]
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 0x408fc4
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 0x408fbe
lea eax, [ebp - 0x14]
push eax
push 0x42337c
push 1
push 0
push 0x42344c
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408fbe
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
call fcn.00408140
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x408f60
mov edx, dword [eax]
jmp 0x408f62
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.004081e0
test esi, esi
js 0x408fb5
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 0x408fdb
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.004080b0
mov esi, eax
push 0x42918c
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.004080b0
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x409013
mov esi, dword [esi]
jmp 0x409015
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x40901f
mov edx, dword [eax]
jmp 0x409021
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.004081e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004081e0
test esi, esi
js 0x408fac
push 0x400
push 0
push ebx
mov dword [ebp - 0x20], 0
call fcn.0040e930
mov ecx, dword [ebp - 0x18]
add esp, 0xc
test ecx, ecx
je 0x409112
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 0x409112
mov eax, dword [ebp - 0x1c]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x38]
push edx
push 0
push 0x429190
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 0x4090b3
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 0x4090e0
mov ax, word [0x428c38]
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 0x409077
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 0x40913b
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