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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489e62
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc78
mov eax, dword [0x4abf20]
push ebx
mov dword [esp + 0xc74], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x405428
push 0x490310
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40543e
push 0x490310
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 0x405460
cmp eax, 0x80010119
jne 0x4058bd
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc8c], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push eax
push 0x48fe8c
push 1
push ebx
push 0x49d61c
mov byte [esp + 0xca0], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4054c8
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xc8c], bl
je 0x4054a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc8c], esi
je 0x4058bd
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
jmp 0x405849
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 0x405497
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 0x405493
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 [0x4ac050]
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 0x405579
push esi
push edi
push 0xffffffffffffffff
push str.SELECT__FROM
push ebx
push ebx
call dword [0x4ac050]
cmp eax, esi
je 0x405579
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0x18]
call fcn.00402c00
xor edi, edi
jmp 0x405582
lea ecx, [esp + 0x18]
call fcn.00402c00
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x40586c
mov esi, dword [esp + 0x24]
push esi
call dword [0x4ac074]
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 0x4902b4
push eax
mov byte [esp + 0xca4], 3
call dword [ecx + 0x50]
test eax, eax
mov eax, dword [esp + 0x1c]
jl 0x405876
cmp eax, ebx
je 0x405888
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 0x4057b6
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x40577a
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 0x405770
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 0x490310
push edx
call edi
mov ax, word [esp + 0x40]
add esp, 0x10
cmp ax, 1
je 0x4056c6
cmp ax, 3
je 0x4056c6
cmp ax, 5
je 0x4056c6
cmp ax, 8
jne 0x4056c6
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 0x40573b
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x40570c
lea eax, [esp + 0x250]
push str.AdapterCompatibility
push eax
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40570c
lea ecx, [esp + 0x458]
push ecx
push esi
call edi
add esp, 8
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x40573b
lea edx, [esp + 0x250]
push str.Caption
push edx
call dword [sym.imp.MSVCR71.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40573b
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 0x405670
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40578c
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 0x405612
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, ebx
mov byte [esp + 0xc8c], 4
je 0x4057cc
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 0x4057eb
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 0x405528
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov byte [esp + 0xc8c], bl
je 0x40582b
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc8c], 0xffffffff
je 0x405844
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.00484547
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 0x405888
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 0x4058a4
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc8c], 0xffffffff
je 0x4058bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x405849