Function at 0x4014d0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
xor edi, edi
push str.atiadlxx.dll
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call esi
mov ebx, eax
cmp ebx, edi
jne 0x401504
push str.atiadlxy.dll
call esi
mov ebx, eax
cmp ebx, edi
je 0x40177a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
push str.ADL_Main_Control_Create
push ebx
call esi
push str.ADL_Main_Control_Destroy
push ebx
mov edi, eax
call esi
push str.ADL_Adapter_NumberOfAdapters_Get
push ebx
mov dword [esp + 0x40], eax
call esi
push str.ADL_Adapter_AdapterInfo_Get
push ebx
mov ebp, eax
call esi
push str.ADL_Adapter_Active_Get
push ebx
mov dword [esp + 0x3c], eax
call esi
push str.ADL_Adapter_DriverSettings_Get
push ebx
mov dword [esp + 0x2c], eax
call esi
push str.ADL_Adapter_DriverSettings_Set
push ebx
mov dword [esp + 0x34], eax
call esi
test edi, edi
mov dword [esp + 0x40], eax
je 0x401763
cmp dword [esp + 0x38], 0
je 0x401763
test ebp, ebp
je 0x401763
mov esi, dword [esp + 0x34]
test esi, esi
je 0x401763
cmp dword [esp + 0x24], 0
je 0x401763
cmp dword [esp + 0x2c], 0
je 0x401763
test eax, eax
je 0x401763
push 0
push 0x4014c0
call edi
add esp, 8
test eax, eax
jne 0x40174e
lea eax, [esp + 0x10]
xor edi, edi
push eax
mov dword [esp + 0x14], edi
call ebp
add esp, 4
test eax, eax
jne 0x40174e
mov eax, dword [esp + 0x10]
cmp eax, edi
jle 0x40174e
imul eax, eax, 0x624
push eax
call fcn.00401bf5
mov ebp, eax
add esp, 4
cmp ebp, edi
mov dword [esp + 0x1c], ebp
je 0x401752
mov ecx, dword [esp + 0x10]
imul ecx, ecx, 0x624
push ecx
push edi
push ebp
call fcn.00405910
mov edx, dword [esp + 0x1c]
imul edx, edx, 0x624
push edx
push ebp
call esi
add esp, 0x14
test eax, eax
jne 0x401752
cmp dword [esp + 0x10], edi
mov eax, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
jle 0x401752
add ebp, 0x318
mov dword [esp + 0x18], ebp
lea esp, [esp]
mov esi, dword [ebp - 0x314]
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x30], 0xffffffff
xor edi, edi
call dword [esp + 0x2c]
add esp, 8
test eax, eax
jne 0x40167d
cmp dword [esp + 0x28], 1
jne 0x40167d
mov edi, 1
cmp dword [ebp], 0
je 0x40172f
test edi, edi
je 0x40172f
cmp dword [ebp - 0x204], 0x3ea
jne 0x40172f
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
push 4
push 4
push 1
push str.DAL_ACEspectReady
push esi
mov dword [esp + 0x2c], 0
call ebp
add esp, 0x18
test eax, eax
jne 0x40172b
cmp dword [esp + 0x14], eax
jne 0x40172b
cmp dword [esp + 0x30], eax
jne 0x401713
mov dword [esp + 0x30], 1
xor edi, edi
jmp 0x4016e0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x14]
push edx
push 4
push 4
push 1
push str.DAL_ACEspectReady
push esi
call ebp
add esp, 0x18
test eax, eax
jne 0x40170b
cmp dword [esp + 0x14], eax
jne 0x40172b
add edi, 1
cmp edi, 0x1e
jl 0x4016e0
lea eax, [esp + 0x3c]
push eax
push 4
push 4
push 1
push str.DAL_ACEspectReady
push esi
call dword [esp + 0x58]
add esp, 0x18
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
add eax, 1
add ebp, 0x624
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ebp
jl 0x401650
mov ebp, dword [esp + 0x1c]
call dword [esp + 0x38]
test ebp, ebp
je 0x401763
push ebp
call fcn.00401cb8
add esp, 4
test ebx, ebx
pop ebp
je 0x40176f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 0x34
ret
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x34
ret