Function at 0x405390
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48ccb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc78
mov eax, dword [0x4aff10]
push ebx
mov dword [esp + 0xc74], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x4053d8
push 0x492eb4
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4053ee
push 0x492eb4
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
or esi, 0xffffffff
push esi
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x405410
cmp eax, 0x80010119
jne 0x40586d
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc8c], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push eax
push 0x493050
push 1
push ebx
push 0x4a0bf4
mov byte [esp + 0xca0], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x405478
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xc8c], bl
je 0x405458
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc8c], esi
je 0x40586d
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x4057f9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTCIMV2
push eax
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [esp + 0x10]
jl 0x405447
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jl 0x405443
mov ecx, 0xb
mov esi, str.Win32_VideoController
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, 0x77
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], eax
push ebx
push ebx
push 0xffffffffffffffff
push str.SELECT__FROM
push ebx
push ebx
mov dword [esp + 0x30], ebx
call dword [0x4b0048]
mov esi, eax
lea eax, [esi - 1]
push eax
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
cmp edi, ebx
je 0x405529
push esi
push edi
push 0xffffffffffffffff
push str.SELECT__FROM
push ebx
push ebx
call dword [0x4b0048]
cmp eax, esi
je 0x405529
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x18]
call fcn.00402e80
xor edi, edi
jmp 0x405532
lea ecx, [esp + 0x18]
call fcn.00402e80
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x40581c
mov esi, dword [esp + 0x24]
push esi
call dword [0x4b006c]
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.004012c0
mov dword [esp + 0x1c], ebx
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x30
push edi
push 0x4933c8
push eax
mov byte [esp + 0xca4], 3
call dword [ecx + 0x50]
test eax, eax
mov eax, dword [esp + 0x1c]
jl 0x405826
cmp eax, ebx
je 0x405838
mov dword [esp + 0x44], ebx
mov dword [esp + 0xc], ebx
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x10]
push edx
push 1
push 0xffffffffffffffff
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push eax
mov byte [esp + 0xca0], 5
call dword [ecx + 0x10]
cmp dword [esp + 0x20], ebx
je 0x405766
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x40572a
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push ebx
mov word [esp + 0x45c], bx
xor eax, eax
push ebx
mov ecx, 0x207
lea edi, [esp + 0x462]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x34]
push edx
stosw word es:[edi], ax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x405720
lea ecx, [ecx]
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.MSVCR71.dll_wcscpy]
push eax
lea ecx, [esp + 0x254]
push ecx
call edi
lea edx, [esp + 0x460]
push 0x492eb4
push edx
call edi
mov ax, word [esp + 0x40]
add esp, 0x10
cmp ax, 1
je 0x405676
cmp ax, 3
je 0x405676
cmp ax, 5
je 0x405676
cmp ax, 8
jne 0x405676
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x45c]
push ecx
call edi
add esp, 8
mov edx, dword [esp + 0x24]
push str.Win32_VideoController
push edx
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4056eb
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x4056bc
lea eax, [esp + 0x250]
push str.AdapterCompatibility
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4056bc
lea ecx, [esp + 0x458]
push ecx
push esi
call edi
add esp, 8
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x4056eb
lea edx, [esp + 0x250]
push str.Caption
push edx
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4056eb
lea eax, [esp + 0x458]
push eax
push esi
call edi
add esp, 8
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x34]
push edx
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x405620
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40573c
mov dword [esp + 0xc], ebx
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x10]
push edx
push 1
push 0xffffffffffffffff
mov dword [esp + 0x30], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp dword [esp + 0x20], ebx
jne 0x4055c2
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0xc8c], 4
je 0x40577c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0xc8c], 2
je 0x40579b
mov edx, dword [eax]
push eax
call dword [edx + 8]
push edi
mov byte [esp + 0xc90], 1
call esi
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
inc eax
add edx, 0x208
cmp eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
jl 0x4054d8
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xc8c], bl
je 0x4057db
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc8c], 0xffffffff
je 0x4057f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
mov ecx, dword [esp + 0xc84]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc7c]
call fcn.004877c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x8007000e
call fcn.004010e0
cmp eax, ebx
mov byte [esp + 0xc8c], 2
je 0x405838
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xc8c], bl
je 0x405854
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc8c], 0xffffffff
je 0x40586d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x4057f9