Function at 0x100d9aa0
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.10077450
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 0x100d9afd
push str.atiadlxy.dll
call esi
mov edi, eax
test edi, edi
jne 0x100d9afd
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 0x100d9cea
cmp dword [esp + 0x1c], ebx
je 0x100d9cea
mov esi, dword [esp + 0x20]
test esi, esi
je 0x100d9cea
mov edi, dword [esp + 0x24]
test edi, edi
je 0x100d9cea
test ebp, ebp
je 0x100d9cea
cmp dword [esp + 0x28], ebx
je 0x100d9cea
test ecx, ecx
je 0x100d9cea
push 1
push 0x100dc8c0
call eax
add esp, 8
test eax, eax
jne 0x100d9cea
lea eax, [esp + 0x14]
push eax
call esi
add esp, 4
test eax, eax
jne 0x100d9cea
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100d9cea
jle 0x100d9c17
imul eax, eax, 0x624
push eax
call fcn.100997d2
imul ecx, dword [esp + 0x18], 0x624
mov ebx, eax
push ecx
push 0
push ebx
call fcn.10077450
mov dword [ebx], 4
imul ecx, dword [esp + 0x24], 0x624
push ecx
push ebx
call edi
add esp, 0x18
test eax, eax
jne 0x100d9cea
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jle 0x100d9ce0
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 0x100d9c63
cmp dword [esp + 0x18], eax
je 0x100d9c63
cmp dword [esp + 0x184], 0x3ea
jne 0x100d9c63
cmp esi, 0xffffffff
jne 0x100d9c7a
inc ebp
add ebx, 0x624
cmp ebp, dword [esp + 0x14]
jl 0x100d9c21
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 0x100d9ce0
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 0x100d9ce0
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