Function at 0x140056070
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5d8]
sub rsp, 0x6b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400ed040]
xor rax, rsp
mov qword [rbp + 0x5a8], rax
xor edx, edx
mov r8d, 0x800
lea rcx, str.atiadlxx.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x1400fa418], rax
test rax, rax
jne 0x1400560ed
xor edx, edx
mov r8d, 0x800
lea rcx, str.atiadlxy.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x1400fa418], rax
lea rdx, str.ADL2_Main_Control_Create
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa458], rax
lea rdx, str.ADL2_Main_Control_Destroy
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa4a8], rax
lea rdx, str.ADL2_Adapter_NumberOfAdapters_Get
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa4c0], rax
lea rdx, str.ADL2_Adapter_AdapterInfo_Get
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa488], rax
lea rdx, str.ADL2_Adapter_Active_Get
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa4a0], rax
lea rdx, str.ADL2_Overdrive_Caps
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa4b8], rax
lea rdx, str.ADL2_Overdrive6_CurrentPower_Get
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa420], rax
lea rdx, str.ADL2_New_QueryPMLogData_Get
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa490], rax
lea rdx, str.ADL_Overdrive5_CurrentActivity_Get
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa428], rax
lea rdx, str.ADL_Overdrive6_CurrentStatus_Get
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa460], rax
lea rdx, str.ADL2_OverdriveN_PerformanceStatus_Get
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa4b0], rax
lea rdx, str.ADL2_OverdriveN_Temperature_Get
mov rcx, qword [0x1400fa418]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400fa450], rax
cmp qword [0x1400fa420], 0
jne 0x14005623e
xor al, al
jmp 0x14005655e
mov rbx, qword [0x1400fa458]
mov rcx, rbx
call qword [fcn.140007850]
lea r8, [0x1400fa498]
mov edx, 1
lea rcx, [0x140056060]
call rbx
test eax, eax
jne 0x140056237
mov rbx, qword [0x1400fa4c0]
mov rcx, rbx
call qword [fcn.140007850]
lea rdx, [0x1400fa01c]
mov rcx, qword [0x1400fa498]
call rbx
test eax, eax
jne 0x140056237
movsxd rax, dword [0x1400fa01c]
test eax, eax
jle 0x140056237
mov rcx, rax
mov eax, 0x624
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14007072c
mov r14, rax
movsxd rcx, dword [0x1400fa01c]
imul r8, rcx, 0x624
xor edx, edx
mov rcx, rax
call fcn.1400662d0
imul ebx, dword [0x1400fa01c], 0x624
mov rdi, qword [0x1400fa488]
mov rcx, rdi
call qword [fcn.140007850]
mov r8d, ebx
mov rdx, r14
mov rcx, qword [0x1400fa498]
call rdi
test eax, eax
jne 0x140056237
xor eax, eax
mov qword [0x1400fa430], rax
mov qword [0x1400fa438], rax
mov qword [0x1400fa440], rax
mov qword [0x1400fa448], rax
xor ebx, ebx
mov esi, ebx
mov qword [rbp + 0x590], rbx
mov qword [rbp + 0x598], rbx
call fcn.140056f10
mov qword [rbp + 0x590], rax
mov r12d, ebx
cmp dword [0x1400fa01c], ebx
jle 0x140056534
lea r15, [0x1400fa430]
mov r13, r15
nop word [rax + rax]
mov dword [rbp + 0x5a0], ebx
mov rcx, r14
lea rax, [rsp + 0x50]
mov edx, 0xc
nop dword [rax]
nop word [rax + rax]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rdx, 1
jne 0x140056380
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [rcx + 0x20]
mov dword [rax + 0x20], ecx
mov rbx, qword [rsp + 0x50]
shr rbx, 0x20
mov rdi, qword [0x1400fa4a0]
mov rcx, rdi
call qword [fcn.140007850]
lea r8, [rbp + 0x5a0]
mov edx, ebx
mov rcx, qword [0x1400fa498]
call rdi
cmp dword [rbp + 0x64], 0x3ea
jne 0x14005646e
mov eax, dword [rbp + 0x58]
mov dword [rbp + 0x588], eax
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58c], eax
lea rdx, [rbp + 0x588]
lea rcx, [rbp + 0x590]
call fcn.140056f50
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x590]
call fcn.140056f80
cmp byte [rsp + 0x40], 0
je 0x14005646e
mov eax, dword [rsp + 0x54]
mov dword [r13], eax
inc esi
add r13, 4
inc r12d
add r14, 0x624
cmp r12d, dword [0x1400fa01c]
mov ebx, 0
jl 0x140056360
test esi, esi
je 0x14005652d
mov dword [0x1400fa01c], esi
xor r12d, r12d
mov r14d, r12d
test esi, esi
jle 0x140056521
lea r13, [0x1400fa468]
nop dword [rax]
mov dword [rbp + 0x580], r12d
mov dword [rbp + 0x588], r12d
movsxd rax, r14d
lea rbx, [rax*4]
add rbx, r13
mov rdi, qword [0x1400fa4b8]
mov rcx, rdi
call qword [fcn.140007850]
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x588]
lea r8, [rbp + 0x580]
mov edx, dword [r15]
mov rcx, qword [0x1400fa498]
call rdi
test eax, eax
je 0x14005650d
cmp eax, 0xfffffff8
jne 0x14005652d
cmp dword [rbp + 0x580], r12d
jne 0x14005652d
inc r14d
add r15, 4
mov esi, dword [0x1400fa01c]
cmp r14d, esi
jl 0x1400564b0
test esi, esi
setne bl
mov rax, qword [rbp + 0x590]
jmp 0x140056536
mov rax, qword [rbp + 0x590]
xor bl, bl
mov r9, rax
mov r8, qword [rax]
lea rdx, [rbp + 0x588]
lea rcx, [rbp + 0x590]
call fcn.140056900
mov rcx, qword [rbp + 0x590]
call fcn.14005e948
movzx eax, bl
mov rcx, qword [rbp + 0x5a8]
xor rcx, rsp
call fcn.14005df90
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret