Function at 0x100d66d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x688
push ebx
push ebp
push esi
push edi
push 0x38
xor ebx, ebx
mov dword [esp + 0x38], ecx
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.10074090
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0xc
mov dword [esp + 0x38], 0x38
mov dword [esp + 0x14], ebx
push str.atiadlxx.dll
call esi
mov edi, eax
test edi, edi
jne 0x100d672d
push str.atiadlxy.dll
call esi
mov edi, eax
test edi, edi
jne 0x100d672d
lea eax, [ebx + 1]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ADL_Main_Control_Create
push edi
call esi
push str.ADL_Main_Control_Destroy
push edi
mov dword [esp + 0x20], eax
call esi
push str.ADL_Adapter_NumberOfAdapters_Get
push edi
mov dword [esp + 0x24], eax
call esi
push str.ADL_Adapter_AdapterInfo_Get
push edi
mov dword [esp + 0x28], eax
call esi
push str.ADL_Adapter_Active_Get
push edi
mov dword [esp + 0x2c], eax
call esi
push str.ADL_Overdrive_Caps
mov ebp, eax
push edi
mov dword [esp + 0x34], ebp
call esi
push str.ADL_Display_ODClockInfo_Get
push edi
mov dword [esp + 0x30], eax
call esi
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
test eax, eax
je 0x100d691a
cmp dword [esp + 0x1c], ebx
je 0x100d691a
mov esi, dword [esp + 0x20]
test esi, esi
je 0x100d691a
mov edi, dword [esp + 0x24]
test edi, edi
je 0x100d691a
test ebp, ebp
je 0x100d691a
cmp dword [esp + 0x28], ebx
je 0x100d691a
test ecx, ecx
je 0x100d691a
push 1
push 0x100d94f0
call eax
add esp, 8
test eax, eax
jne 0x100d691a
lea eax, [esp + 0x14]
push eax
call esi
add esp, 4
test eax, eax
jne 0x100d691a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100d691a
jle 0x100d6847
imul eax, eax, 0x624
push eax
call fcn.10096412
imul ecx, dword [esp + 0x18], 0x624
mov ebx, eax
push ecx
push 0
push ebx
call fcn.10074090
mov dword [ebx], 4
imul ecx, dword [esp + 0x24], 0x624
push ecx
push ebx
call edi
add esp, 0x18
test eax, eax
jne 0x100d691a
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jle 0x100d6910
mov ecx, 0x189
mov dword [esp + 0x18], 0
mov esi, ebx
lea edi, [esp + 0x70]
lea eax, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x74]
push eax
push esi
call dword [esp + 0x34]
add esp, 8
test eax, eax
jne 0x100d6893
cmp dword [esp + 0x18], eax
je 0x100d6893
cmp dword [esp + 0x184], 0x3ea
jne 0x100d6893
cmp esi, 0xffffffff
jne 0x100d68aa
inc ebp
add ebx, 0x624
cmp ebp, dword [esp + 0x14]
jl 0x100d6851
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x38]
push eax
push esi
call dword [esp + 0x38]
add esp, 8
test eax, eax
jne 0x100d6910
mov ebx, dword [esp + 0x34]
mov eax, 0x66666667
mov ecx, dword [ebx + 0xec]
mov edi, dword [ebx + 0xe8]
sub ecx, edi
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x100d6910
mov eax, dword [esp + 0x48]
lea ecx, [esi + esi*4]
shl ecx, 4
lea eax, [eax + eax*4]
add eax, eax
cdq
add dword [ecx + edi + 0x40], eax
adc dword [ecx + edi + 0x44], edx
mov eax, dword [esp + 0x60]
add ecx, dword [ebx + 0xe8]
lea eax, [eax + eax*4]
add eax, eax
cdq
add dword [ecx + 0x48], eax
adc dword [ecx + 0x4c], edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 2
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret