Function at 0x140019b30
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 [0x1400960a8]
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 [0x1400a1128], rax
test rax, rax
jne 0x140019bad
xor edx, edx
mov r8d, 0x800
lea rcx, str.atiadlxy.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x1400a1128], rax
lea rdx, str.ADL2_Main_Control_Create
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a1198], rax
lea rdx, str.ADL2_Main_Control_Destroy
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a11a0], rax
lea rdx, str.ADL2_Adapter_NumberOfAdapters_Get
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a11c0], rax
lea rdx, str.ADL2_Adapter_AdapterInfo_Get
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a1168], rax
lea rdx, str.ADL2_Adapter_Active_Get
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a11a8], rax
lea rdx, str.ADL2_Overdrive_Caps
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a11c8], rax
lea rdx, str.ADL2_Overdrive6_CurrentPower_Get
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a1160], rax
lea rdx, str.ADL2_New_QueryPMLogData_Get
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a11b8], rax
lea rdx, str.ADL_Overdrive5_CurrentActivity_Get
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a1158], rax
lea rdx, str.ADL_Overdrive6_CurrentStatus_Get
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a1190], rax
lea rdx, str.ADL2_OverdriveN_PerformanceStatus_Get
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a11d0], rax
lea rdx, str.ADL2_OverdriveN_Temperature_Get
mov rcx, qword [0x1400a1128]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a1130], rax
cmp qword [0x1400a1160], 0
jne 0x140019cfe
xor al, al
jmp 0x14001a01e
mov rbx, qword [0x1400a1198]
mov rcx, rbx
call qword [fcn.140002ab0]
lea r8, [0x1400a11b0]
mov edx, 1
lea rcx, [0x140019b20]
call rbx
test eax, eax
jne 0x140019cf7
mov rbx, qword [0x1400a11c0]
mov rcx, rbx
call qword [fcn.140002ab0]
lea rdx, [0x1400a0d2c]
mov rcx, qword [0x1400a11b0]
call rbx
test eax, eax
jne 0x140019cf7
movsxd rax, dword [0x1400a0d2c]
test eax, eax
jle 0x140019cf7
mov rcx, rax
mov eax, 0x624
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14004ed50
mov r14, rax
movsxd rcx, dword [0x1400a0d2c]
imul r8, rcx, 0x624
xor edx, edx
mov rcx, rax
call fcn.140045e20
imul ebx, dword [0x1400a0d2c], 0x624
mov rdi, qword [0x1400a1168]
mov rcx, rdi
call qword [fcn.140002ab0]
mov r8d, ebx
mov rdx, r14
mov rcx, qword [0x1400a11b0]
call rdi
test eax, eax
jne 0x140019cf7
xor eax, eax
mov qword [0x1400a1138], rax
mov qword [0x1400a1140], rax
mov qword [0x1400a1148], rax
mov qword [0x1400a1150], rax
xor ebx, ebx
mov esi, ebx
mov qword [rbp + 0x590], rbx
mov qword [rbp + 0x598], rbx
call fcn.14001a9d0
mov qword [rbp + 0x590], rax
mov r12d, ebx
cmp dword [0x1400a0d2c], ebx
jle 0x140019ff4
lea r15, [0x1400a1138]
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 0x140019e40
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 [0x1400a11a8]
mov rcx, rdi
call qword [fcn.140002ab0]
lea r8, [rbp + 0x5a0]
mov edx, ebx
mov rcx, qword [0x1400a11b0]
call rdi
cmp dword [rbp + 0x64], 0x3ea
jne 0x140019f2e
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.14001aa10
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x590]
call fcn.14001aa40
cmp byte [rsp + 0x40], 0
je 0x140019f2e
mov eax, dword [rsp + 0x54]
mov dword [r13], eax
inc esi
add r13, 4
inc r12d
add r14, 0x624
cmp r12d, dword [0x1400a0d2c]
mov ebx, 0
jl 0x140019e20
test esi, esi
je 0x140019fed
mov dword [0x1400a0d2c], esi
xor r12d, r12d
mov r14d, r12d
test esi, esi
jle 0x140019fe1
lea r13, [0x1400a1170]
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 [0x1400a11c8]
mov rcx, rdi
call qword [fcn.140002ab0]
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x588]
lea r8, [rbp + 0x580]
mov edx, dword [r15]
mov rcx, qword [0x1400a11b0]
call rdi
test eax, eax
je 0x140019fcd
cmp eax, 0xfffffff8
jne 0x140019fed
cmp dword [rbp + 0x580], r12d
jne 0x140019fed
inc r14d
add r15, 4
mov esi, dword [0x1400a0d2c]
cmp r14d, esi
jl 0x140019f70
test esi, esi
setne bl
mov rax, qword [rbp + 0x590]
jmp 0x140019ff6
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.14001a3c0
mov rcx, qword [rbp + 0x590]
call fcn.1400245c0
movzx eax, bl
mov rcx, qword [rbp + 0x5a8]
xor rcx, rsp
call fcn.140024560
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