Function at 0x45aee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
push edi
cmp dword [esi + 0x30], ebx
je 0x45b354
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.Select__from_Win32_VideoController
call ebp
mov esi, dword [esi + 0x30]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
mov edi, 0x4d0d90
mov dword [esp + 0x24], ebx
mov byte [esp + 0x20], 1
mov dword [esp + 0x34], ebx
mov byte [esp + 0x30], 1
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x38], 1
mov dword [esp + 0x44], ebx
mov byte [esp + 0x40], 1
call fcn.00456680
mov eax, dword [eax]
cmp eax, ebx
je 0x45af48
mov eax, dword [eax]
jmp 0x45af4a
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
push ebx
push 0x20
push edx
push eax
mov eax, dword [ecx + 0x50]
push esi
call eax
lea edi, [esp + 0x10]
mov esi, eax
call fcn.004566e0
cmp esi, ebx
je 0x45af96
cmp byte [esp + 0x1c], bl
je 0x45af85
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x45af85
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
jmp 0x45b345
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
mov dword [esp + 0x24], ebx
mov byte [esp + 0x20], 1
mov ecx, dword [eax]
push 0x1f4
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x54], ebx
je 0x45b318
cmp eax, 0x40004
jne 0x45afe5
cmp byte [esp + 0x14], bl
je 0x45af96
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45af96
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x45af96
cmp eax, ebx
jne 0x45b318
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x60]
push edx
push ebx
push str.AdapterCompatibility
push eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call eax
test eax, eax
jne 0x45b2ea
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x80]
push edx
push ebx
push str.DriverVersion
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x45b28e
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x90]
push edx
push ebx
push str.Description
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x45b2bc
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x70]
push edx
push ebx
push str.DriverDate
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jne 0x45b2ea
mov ecx, dword [esp + 0x60]
push ecx
call ebp
mov edx, dword [esp + 0x80]
mov esi, eax
push edx
mov dword [esp + 0xb0], esi
call ebp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x90]
push eax
call ebp
mov ecx, dword [esp + 0x70]
push ecx
mov dword [esp + 0xa8], eax
call ebp
mov ebp, eax
push esi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0043c160
lea edx, [esp + 0x10]
push edx
lea edi, [esp + 0x48]
call fcn.00401250
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x45b10b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x45b102
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x45b10b
cmp eax, ebx
jne 0x45b10b
call fcn.0045f130
mov eax, dword [esp + 0xa4]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0043c160
lea ecx, [esp + 0x10]
push ecx
lea edi, [esp + 0x50]
call fcn.00401250
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x45b15b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x45b152
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x45b15b
cmp eax, ebx
jne 0x45b15b
call fcn.0045f130
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0043c160
lea edx, [esp + 0x10]
push edx
lea edi, [esp + 0x54]
call fcn.00401250
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x45b1a4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x45b19b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x45b1a4
cmp eax, ebx
jne 0x45b1a4
call fcn.0045f130
mov eax, dword [esp + 0x9c]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0043c160
lea ecx, [esp + 0x10]
push ecx
lea edi, [esp + 0x4c]
call fcn.00401250
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x45b1f4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x45b1eb
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x45b1f4
cmp eax, ebx
jne 0x45b1f4
call fcn.0045f130
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0x44]
push edx
push eax
call fcn.0045cdc0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ebp, ebx
je 0x45b213
push ebp
call esi
mov eax, dword [esp + 0xa4]
cmp eax, ebx
je 0x45b221
push eax
call esi
mov eax, dword [esp + 0x9c]
cmp eax, ebx
je 0x45b22f
push eax
call esi
mov eax, dword [esp + 0xac]
cmp eax, ebx
je 0x45b23d
push eax
call esi
lea ecx, [esp + 0x44]
call fcn.00434ce0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x68]
push ecx
call esi
lea edx, [esp + 0x88]
push edx
call esi
lea eax, [esp + 0x78]
push eax
call esi
lea ecx, [esp + 0x58]
push ecx
call esi
cmp byte [esp + 0x14], bl
je 0x45af90
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45af90
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x45af90
lea ecx, [esp + 0x44]
call fcn.00434ce0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x68]
push edx
call esi
lea eax, [esp + 0x88]
push eax
call esi
lea ecx, [esp + 0x78]
push ecx
call esi
lea edx, [esp + 0x58]
push edx
jmp 0x45b316
lea ecx, [esp + 0x44]
call fcn.00434ce0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x68]
push eax
call esi
lea ecx, [esp + 0x88]
push ecx
call esi
lea edx, [esp + 0x78]
push edx
call esi
lea eax, [esp + 0x58]
push eax
jmp 0x45b316
lea ecx, [esp + 0x44]
call fcn.00434ce0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x68]
push ecx
call esi
lea edx, [esp + 0x88]
push edx
call esi
lea eax, [esp + 0x78]
push eax
call esi
lea ecx, [esp + 0x58]
push ecx
call esi
lea esi, [esp + 0x14]
call fcn.0045cda0
lea esi, [esp + 0x3c]
call fcn.0045cda0
lea esi, [esp + 0x34]
call fcn.0045cda0
lea esi, [esp + 0x2c]
call fcn.0045cda0
lea esi, [esp + 0x1c]
call fcn.0045cd80
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x45b354
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xa0
ret 4