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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421968
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 0x409414
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 0x40940e
lea eax, [ebp - 0x14]
push eax
push 0x4233ac
push 1
push 0
push 0x42347c
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40940e
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0
call fcn.00408480
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4093b0
mov edx, dword [eax]
jmp 0x4093b2
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.00408520
test esi, esi
js 0x409405
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 0x40942b
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.004083f0
mov esi, eax
push 0x429280
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.004083f0
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x409463
mov esi, dword [esi]
jmp 0x409465
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x40946f
mov edx, dword [eax]
jmp 0x409471
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.00408520
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00408520
test esi, esi
js 0x4093fc
push 0x400
push 0
push ebx
mov dword [ebp - 0x20], 0
call fcn.0040f060
mov ecx, dword [ebp - 0x18]
add esp, 0xc
test ecx, ecx
je 0x409562
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 0x409562
mov eax, dword [ebp - 0x1c]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x38]
push edx
push 0
push 0x429284
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 0x409503
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 0x409530
mov ax, word [0x428ca8]
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 0x4094c7
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 0x40958b
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