Function at 0x401400
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
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 [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call esi
mov ebx, eax
cmp ebx, edi
jne 0x401435
push str.atiadlxy.dll
call esi
mov ebx, eax
cmp ebx, edi
je 0x401667
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
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 [ebp - 0x2c], eax
call esi
push str.ADL_Adapter_AdapterInfo_Get
push ebx
mov dword [ebp - 0x28], eax
call esi
push str.ADL_Adapter_Active_Get
push ebx
mov dword [ebp - 0xc], eax
call esi
push str.ADL_Adapter_DriverSettings_Get
push ebx
mov dword [ebp - 0x1c], eax
call esi
push str.ADL_Adapter_DriverSettings_Set
push ebx
mov dword [ebp - 0x10], eax
call esi
mov dword [ebp - 0x34], eax
test edi, edi
je 0x401652
cmp dword [ebp - 0x2c], 0
je 0x401652
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x401652
cmp dword [ebp - 0xc], 0
je 0x401652
cmp dword [ebp - 0x1c], 0
je 0x401652
cmp dword [ebp - 0x10], 0
je 0x401652
test eax, eax
je 0x401652
push 0
push 0x4013e0
call edi
add esp, 8
test eax, eax
jne 0x40163f
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call esi
add esp, 4
test eax, eax
jne 0x40163f
mov esi, dword [ebp - 4]
test esi, esi
jle 0x40163f
imul esi, esi, 0x624
push esi
call fcn.00401b8a
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x401642
push esi
push 0
push edi
call fcn.00405370
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x624
push ecx
push edi
call dword [ebp - 0xc]
add esp, 0x14
test eax, eax
jne 0x401642
mov eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 4], eax
jle 0x401642
add edi, 0x318
mov dword [ebp - 0xc], edi
mov edx, dword [ebp - 0xc]
mov esi, dword [edx - 0x314]
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], 0xffffffff
xor edi, edi
call dword [ebp - 0x1c]
add esp, 8
test eax, eax
jne 0x40158a
cmp dword [ebp - 0x20], 1
jne 0x40158a
lea edi, [eax + 1]
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x401628
test edi, edi
je 0x401628
cmp dword [eax - 0x204], 0x3ea
jne 0x401628
lea ecx, [ebp - 8]
push ecx
push 4
push 4
push 1
push str.DAL_ACEspectReady
push esi
mov dword [ebp - 8], 0
call dword [ebp - 0x10]
add esp, 0x18
test eax, eax
jne 0x401628
cmp dword [ebp - 8], eax
jne 0x401628
cmp dword [ebp - 0x24], eax
jne 0x401612
mov dword [ebp - 0x24], 1
xor edi, edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 8]
push edx
push 4
push 4
push 1
push str.DAL_ACEspectReady
push esi
call dword [ebp - 0x10]
add esp, 0x18
test eax, eax
jne 0x40160c
cmp dword [ebp - 8], eax
jne 0x401628
inc edi
cmp edi, 0x1e
jl 0x4015e2
lea eax, [ebp - 0x30]
push eax
push 4
push 4
push 1
push str.DAL_ACEspectReady
push esi
call dword [ebp - 0x34]
add esp, 0x18
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], 0x624
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 4]
jl 0x401560
mov edi, dword [ebp - 0x14]
call dword [ebp - 0x2c]
test edi, edi
je 0x401652
push edi
call fcn.00401c1e
add esp, 4
test ebx, ebx
je 0x40165d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret