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

Disassembly:
push 0xffffffffffffffff
push 0x42741e
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x430240]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x430240]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xcc]
mov edi, dword [eax + 0x80]
cmp dword [eax + 0x7c], edi
lea ebp, [eax + 0x78]
mov dword [esp + 0x4c], ebp
jbe 0x40a4c9
call fcn.00414249
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x40a4d6
call fcn.00414249
cmp esi, edi
je 0x40a4fa
mov eax, dword [ebp + 8]
call fcn.0040c270
mov ecx, dword [esp + 0x48]
mov esi, eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov eax, esi
call fcn.0040c480
add esp, 8
mov dword [ebp + 8], esi
xor ebx, ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00409bd0
mov dword [esp + 0xc4], ebx
cmp dword [esp + 0x28], ebx
jne 0x40a53e
mov dword [esp + 0xc4], 0xffffffff
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40a9cf
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40a9cb
mov dword [esp + 0x30], ebx
push str.Win32_VideoController
mov byte [esp + 0xc8], 1
call fcn.004099f0
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x48], esi
jne 0x40a566
call fcn.00409a60
lea edx, [esp + 0x30]
push edx
push ebx
mov byte [esp + 0xcc], 2
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push 1
push esi
push eax
mov eax, dword [ecx + 0x48]
call eax
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp edi, ebx
mov eax, dword [esp + 0x30]
jl 0x40a989
cmp eax, ebx
je 0x40a989
mov byte [esp + 0x1f], bl
jmp 0x40a5b4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x28]
push edx
push 1
mov byte [esp + 0xd0], 3
mov ecx, dword [eax]
push 0x2710
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, 1
mov ecx, dword [esp + 0x24]
je 0x40a90a
cmp ecx, ebx
je 0x40a90a
cmp eax, ebx
jne 0x40a90f
mov eax, 7
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
mov word [esp + 0x70], bx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dword [esp + 0x20], ebx
push str.Name
mov byte [esp + 0xc8], 6
call fcn.004099f0
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x18], ebp
je 0x40a561
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
mov byte [esp + 0xc4], 7
call fcn.00409a80
mov byte [esp + 0xc4], 6
push ebp
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
push eax
call edx
cmp eax, ebx
jl 0x40a6ed
cmp word [esp + 0x34], 1
je 0x40a6ed
lea ecx, [esp + 0x34]
lea ebx, [esp + 0x50]
call fcn.0040a370
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x74]
mov byte [esp + 0xcc], 8
call fcn.004030d0
mov esi, ebx
mov byte [esp + 0xc4], 6
call fcn.00404b40
xor ebx, ebx
push str.PNPDeviceID
call fcn.004099f0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40a561
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
mov byte [esp + 0xc4], 9
call fcn.00409a80
mov byte [esp + 0xc4], 6
mov eax, dword [esp + 0x18]
push eax
call ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x2c]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x40a785
cmp word [esp + 0x34], 1
je 0x40a785
lea ecx, [esp + 0x34]
lea ebx, [esp + 0x50]
call fcn.0040a370
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x90]
mov byte [esp + 0xcc], 0xa
call fcn.004030d0
mov esi, ebx
mov byte [esp + 0xc4], 6
call fcn.00404b40
xor ebx, ebx
push str.AdapterRAM
call fcn.004099f0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40a561
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
mov byte [esp + 0xc4], 0xb
call fcn.00409a80
mov byte [esp + 0xc4], 6
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
push eax
call edx
cmp eax, ebx
jl 0x40a7f7
cmp word [esp + 0x34], 1
je 0x40a7f7
lea ecx, [esp + 0x34]
call fcn.00409880
mov dword [esp + 0xa4], eax
push str.MinRefreshRate
call fcn.004099f0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40a561
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
mov byte [esp + 0xc4], 0xc
call fcn.00409a80
mov byte [esp + 0xc4], 6
mov eax, dword [esp + 0x18]
push eax
call ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x2c]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp eax, ebx
jl 0x40a869
cmp word [esp + 0x34], 1
je 0x40a869
lea ecx, [esp + 0x34]
call fcn.00409880
mov dword [esp + 0xa8], eax
push str.MaxRefreshRate
call fcn.004099f0
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
je 0x40a561
lea esi, [esp + 0x18]
lea edi, [esp + 0x20]
mov byte [esp + 0xc4], 0xd
call fcn.00409a80
mov byte [esp + 0xc4], 6
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x3c]
push ecx
push ebx
push edi
push eax
call edx
cmp eax, ebx
jl 0x40a8db
cmp word [esp + 0x34], 1
je 0x40a8db
lea ecx, [esp + 0x34]
call fcn.00409880
mov dword [esp + 0xac], eax
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x6c]
push eax
call fcn.0040b940
push edi
call ebp
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea esi, [esp + 0x6c]
call fcn.0040aa20
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x4c]
jmp 0x40a90f
mov byte [esp + 0x1f], 1
cmp ecx, ebx
mov byte [esp + 0xc4], 1
je 0x40a923
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
cmp byte [esp + 0x1f], bl
je 0x40a5b0
mov ecx, ebp
call fcn.0040b900
mov byte [esp + 0xc4], bl
test al, al
mov eax, dword [esp + 0x30]
je 0x40a965
cmp eax, ebx
je 0x40a94f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [esp + 0x28]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00409ba0
jmp 0x40a9d5
cmp eax, ebx
je 0x40a971
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [esp + 0x28]
mov dword [esp + 0xc4], 0xffffffff
call fcn.00409ba0
mov al, 1
jmp 0x40a9d7
cmp eax, ebx
mov byte [esp + 0xc4], bl
je 0x40a99c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc4], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x40a9bb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40a9cf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004138c3
add esp, 0xb4
ret 4