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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x491792
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc78
mov eax, dword [0x4b5320]
push ebx
mov dword [esp + 0xc74], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x405458
push 0x497f10
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40546e
push 0x497f10
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 0x405490
cmp eax, 0x80010119
jne 0x4058ed
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc8c], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push eax
push 0x4980ac
push 1
push ebx
push 0x4a6384
mov byte [esp + 0xca0], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4054f8
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xc8c], bl
je 0x4054d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc8c], esi
je 0x4058ed
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x405879
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 0x4054c7
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 0x4054c3
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 [0x4b545c]
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 0x4055a9
push esi
push edi
push 0xffffffffffffffff
push str.SELECT__FROM
push ebx
push ebx
call dword [0x4b545c]
cmp eax, esi
je 0x4055a9
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x18]
call fcn.00403060
xor edi, edi
jmp 0x4055b2
lea ecx, [esp + 0x18]
call fcn.00403060
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x40589c
mov esi, dword [esp + 0x24]
push esi
call dword [0x4b5480]
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 0x4983d8
push eax
mov byte [esp + 0xca4], 3
call dword [ecx + 0x50]
test eax, eax
mov eax, dword [esp + 0x1c]
jl 0x4058a6
cmp eax, ebx
je 0x4058b8
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 0x4057e6
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x4057aa
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 0x4057a0
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 0x497f10
push edx
call edi
mov ax, word [esp + 0x40]
add esp, 0x10
cmp ax, 1
je 0x4056f6
cmp ax, 3
je 0x4056f6
cmp ax, 5
je 0x4056f6
cmp ax, 8
jne 0x4056f6
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 0x40576b
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x40573c
lea eax, [esp + 0x250]
push str.AdapterCompatibility
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40573c
lea ecx, [esp + 0x458]
push ecx
push esi
call edi
add esp, 8
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x40576b
lea edx, [esp + 0x250]
push str.Caption
push edx
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40576b
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 0x4056a0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4057bc
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 0x405642
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0xc8c], 4
je 0x4057fc
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 0x40581b
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 0x405558
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xc8c], bl
je 0x40585b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc8c], 0xffffffff
je 0x405874
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.0048c3c7
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 0x4058b8
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 0x4058d4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc8c], 0xffffffff
je 0x4058ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x405879