Function at 0x428190
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x444274]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x368], ecx
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
mov edx, dword [ebp - 0x368]
mov al, byte [ebp + 8]
mov byte [edx], al
push 0x2c
push 0
mov ecx, dword [ebp - 0x368]
add ecx, 4
push ecx
call fcn.00404a40
add esp, 0xc
mov edx, dword [ebp - 0x368]
mov dword [edx + 0x30], 0xffffffff
push str.atipdlxx.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x368]
cmp dword [edx + 4], 0
jne 0x428204
jmp 0x42843e
mov eax, dword [ebp - 0x368]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x360], ecx
push str.ATIDL_GetAdapterID
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 8], eax
push str.ATIDL_GetAdapterConfig
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0xc], eax
push str.EnumDisplays
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0x10], eax
push str.GetConnectedDisplays
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0x14], eax
push str.ATIDL_GetActiveDisplays
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0x18], eax
push str.GetConfiguration
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0x1c], eax
push str.SetConfiguration
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0x20], eax
push str.ATIDL_SetConfigurationEx
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0x24], eax
push str.ATIDL_SetDisplayProperty
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0x28], eax
push str.ATIDL_DisplayGetEdidData
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x368]
mov dword [ecx + 0x2c], eax
mov dword [ebp - 0x35c], 0
mov dword [ebp - 0x358], 0
push 0x348
push 0
lea edx, [ebp - 0x350]
push edx
call fcn.00404a40
add esp, 0xc
mov dword [ebp - 0x350], 0x348
mov dword [ebp - 0x364], 0
jmp 0x428370
mov eax, dword [ebp - 0x364]
add eax, 1
mov dword [ebp - 0x364], eax
push 0
lea ecx, [ebp - 0x350]
push ecx
mov edx, dword [ebp - 0x364]
push edx
push 0
call dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
test eax, eax
je 0x42843e
mov eax, dword [ebp - 0x20c]
and eax, 1
je 0x428439
push 0
push 0
lea ecx, [ebp - 0x34c]
push ecx
push 0
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0
je 0x428439
mov edx, dword [ebp - 0x368]
cmp dword [edx + 8], 0
je 0x428439
lea eax, [ebp - 0x358]
push eax
mov ecx, dword [ebp - 0x364]
push ecx
mov edx, dword [ebp - 0x368]
mov eax, dword [edx + 8]
call eax
add esp, 8
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0
jne 0x42842c
cmp dword [ebp - 0x358], 0
je 0x42842c
mov ecx, dword [ebp - 0x35c]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x368]
mov eax, dword [ebp - 0x364]
mov dword [edx + 0x30], eax
mov ecx, 1
mov edx, dword [ebp + 0xc]
mov word [edx], cx
jmp 0x42843e
mov eax, dword [ebp - 0x35c]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x428361
mov eax, dword [ebp - 0x368]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038e0
mov esp, ebp
pop ebp
ret 8