Function at 0x100d3150
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 sub.VCRUNTIME140.dll_memset
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 0x100d31ad
push str.atiadlxy.dll
call esi
mov edi, eax
test edi, edi
jne 0x100d31ad
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 0x100d33a9
cmp dword [esp + 0x1c], ebx
je 0x100d33a9
mov esi, dword [esp + 0x20]
test esi, esi
je 0x100d33a9
mov edi, dword [esp + 0x24]
test edi, edi
je 0x100d33a9
test ebp, ebp
je 0x100d33a9
cmp dword [esp + 0x28], ebx
je 0x100d33a9
test ecx, ecx
je 0x100d33a9
push 1
push 0x100d5a60
call eax
add esp, 8
test eax, eax
jne 0x100d33a9
lea eax, [esp + 0x14]
push eax
call esi
add esp, 4
test eax, eax
jne 0x100d33a9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100d33a9
jle 0x100d32c8
imul eax, eax, 0x624
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
imul ecx, dword [esp + 0x18], 0x624
mov ebx, eax
push ecx
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
mov dword [ebx], 4
imul ecx, dword [esp + 0x24], 0x624
push ecx
push ebx
call edi
add esp, 0x18
test eax, eax
jne 0x100d33a9
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jle 0x100d339f
nop dword [eax]
nop word [eax + eax]
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 0x100d3322
cmp dword [esp + 0x18], eax
je 0x100d3322
cmp dword [esp + 0x184], 0x3ea
jne 0x100d3322
cmp esi, 0xffffffff
jne 0x100d3339
inc ebp
add ebx, 0x624
cmp ebp, dword [esp + 0x14]
jl 0x100d32e0
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 0x100d339f
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 0x100d339f
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