Function at 0x413850
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447536
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x45b480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax + 4], ebx
je 0x413aed
push 0xc
call fcn.0042cea7
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4138b9
push str.SELECT__FROM_Win32_VideoController
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.004405a0
mov dword [esi], eax
mov edi, esi
jmp 0x4138bb
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jne 0x4138d3
push 0x8007000e
call fcn.00440720
push 0xc
mov dword [ebp - 4], 1
call fcn.0042cea7
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x413909
push 0x455610
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.004405a0
mov dword [esi], eax
jmp 0x41390b
xor esi, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], esi
cmp esi, ebx
jne 0x413920
push 0x8007000e
call fcn.00440720
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 3
mov eax, dword [ecx + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [edi]
push ebx
push 0x30
push ecx
mov ecx, dword [esi]
push ecx
push eax
call edx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp + 8], eax
lea eax, [esi + 8]
push eax
call ebx
test eax, eax
jne 0x413978
mov eax, dword [esi]
test eax, eax
je 0x41395f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x41396f
push eax
call fcn.0042cd06
add esp, 4
push esi
call fcn.0042cd06
add esp, 4
lea ecx, [edi + 8]
push ecx
mov dword [ebp - 4], 0xffffffff
call ebx
test eax, eax
jne 0x4139af
mov eax, dword [edi]
test eax, eax
je 0x413996
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x4139a6
push eax
call fcn.0042cd06
add esp, 4
push edi
call fcn.0042cd06
add esp, 4
xor ecx, ecx
cmp dword [ebp + 8], ecx
jl 0x413aed
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x413aed
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0xffffffffffffffff
push eax
call edx
cmp dword [ebp - 0x18], 0
je 0x413acf
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x30]
push edx
push 0
push 0x455614
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edx, dword [ebp - 0x28]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413a17
sub eax, esi
sar eax, 1
cmp eax, 0x104
jae 0x413a43
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 0x104
push ecx
inc eax
push eax
push edx
push 0
push 0
call ebx
lea edx, [ebp - 0x30]
push edx
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x30]
push edx
push 0
push str.AdapterRAM
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0x30]
shr ecx, 0x14
push eax
mov dword [edx], ecx
call edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x30]
push edx
push 0
push str.DriverVersion
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edx, dword [ebp - 0x28]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413a96
sub eax, esi
sar eax, 1
cmp eax, 0x104
jae 0x413ac2
mov ecx, dword [ebp + 0x10]
push 0
push 0
push 0x104
push ecx
inc eax
push eax
push edx
push 0
push 0
call ebx
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4139d7
jmp 0x413ade
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x413ade
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x413aed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10