Function at 0x140148f60
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov r12, rcx
cmp byte [0x140a336c0], 0
jne 0x140149638
lea rcx, str.atiadlxx.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14014967a
lea rdx, str.ADL2_Main_Control_Create
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a335e0], rax
lea rdx, str.ADL2_Main_Control_Destroy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a335e8], rax
lea rdx, str.ADL2_Adapter_NumberOfAdapters_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a335f0], rax
lea rdx, str.ADL2_Adapter_AdapterInfo_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a335f8], rax
lea rdx, str.ADL2_Adapter_ID_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33600], rax
lea rdx, str.ADL2_Overdrive5_FanSpeed_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33608], rax
lea rdx, str.ADL2_Overdrive5_FanSpeed_Set
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33610], rax
lea rdx, str.ADL2_Overdrive5_ODParameters_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33618], rax
lea rdx, str.ADL2_Overdrive5_ODPerformanceLevels_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33620], rax
lea rdx, str.ADL2_Overdrive5_ODPerformanceLevels_Set
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33628], rax
lea rdx, str.ADL2_Overdrive6_CurrentPower_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33630], rax
lea rdx, str.ADL2_Overdrive5_Temperature_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33638], rax
lea rdx, str.ADL2_Overdrive_Caps
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33640], rax
lea rdx, str.ADL2_New_QueryPMLogData_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140a33648], rax
mov r9, qword [0x140a335e0]
test r9, r9
je 0x140149650
cmp qword [0x140a335e8], 0
je 0x140149650
cmp qword [0x140a335f0], 0
je 0x140149650
cmp qword [0x140a335f8], 0
je 0x140149650
cmp qword [0x140a33600], 0
je 0x140149650
cmp qword [0x140a33608], 0
je 0x140149650
cmp qword [0x140a33610], 0
je 0x140149650
cmp qword [0x140a33618], 0
je 0x140149650
cmp qword [0x140a33620], 0
je 0x140149650
cmp qword [0x140a33628], 0
je 0x140149650
cmp qword [0x140a33630], 0
je 0x140149650
cmp qword [0x140a33638], 0
je 0x140149650
cmp qword [0x140a33640], 0
je 0x140149650
test rax, rax
je 0x140149650
lea r8, [0x140a336b8]
mov edx, 1
lea rcx, [0x140148f50]
call r9
test eax, eax
jne 0x14014969b
mov dword [rbp + 0x78], eax
mov rax, qword [0x140a335f0]
lea rdx, [rbp + 0x78]
mov rcx, qword [0x140a336b8]
call rax
test eax, eax
jne 0x1401496c5
movsxd rax, dword [rbp + 0x78]
test eax, eax
jle 0x140149631
mov rdx, rax
lea r8, [rbp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.140148d40
nop
movsxd rax, dword [rbp + 0x78]
imul r8, rax, 0x624
xor edx, edx
mov r15, qword [rbp - 0x78]
mov rcx, r15
call fcn.140195bd0
imul r8d, dword [rbp + 0x78], 0x624
mov rdx, r15
mov rcx, qword [0x140a336b8]
call qword [0x140a335f8]
movsd xmm0, qword [0x140a23958]
movsd qword [rsp + 0x50], xmm0
mov ebx, dword [0x140a23960]
mov dword [rsp + 0x58], ebx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.140146540
mov r11, rax
mov qword [rsp + 0x30], rax
xor r14d, r14d
mov esi, dword [rbp + 0x78]
test esi, esi
jle 0x1401493bc
lea rdi, [r15 + 0x31c]
mov edx, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
nop word [rax + rax]
mov eax, dword [rdi - 0x208]
cmp dword [0x140a23964], eax
jne 0x14014939d
cmp dword [rdi], 0
je 0x14014939d
cmp dword [rdi - 4], 0
je 0x14014939d
mov r10d, dword [rdi - 0x20c]
mov dword [rsp + 0x40], r10d
mov r8d, dword [rdi - 0x210]
mov dword [rsp + 0x44], r8d
mov r9d, dword [rdi - 0x214]
mov dword [rsp + 0x48], r9d
cmp r9d, ebx
jne 0x1401492ec
cmp r8d, edx
jne 0x1401492ec
cmp r10d, ecx
je 0x14014939d
mov rbx, r11
mov rax, qword [r11 + 8]
cmp byte [rax + 0x19], 0
jne 0x140149343
nop dword [rax]
cmp dword [rax + 0x24], r9d
jl 0x14014931e
jg 0x140149316
cmp dword [rax + 0x20], r8d
jl 0x14014931e
jg 0x140149316
cmp dword [rax + 0x1c], r10d
jl 0x14014931e
mov rbx, rax
mov rax, qword [rax]
jmp 0x140149322
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x140149300
cmp rbx, r11
je 0x140149343
cmp r9d, dword [rbx + 0x24]
jl 0x140149343
jg 0x140149385
cmp r8d, dword [rbx + 0x20]
jl 0x140149343
jg 0x140149385
cmp r10d, dword [rbx + 0x1c]
jge 0x140149385
lea rax, [rsp + 0x40]
mov qword [rsp + 0x78], rax
lea r9, [rbp + 0x70]
lea r8, [rsp + 0x78]
lea rdx, [0x1401f5688]
lea rcx, [rsp + 0x30]
call fcn.140145500
lea r9, [rax + 0x1c]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call fcn.1401457d0
mov rbx, qword [rbp - 0x80]
mov dword [rbx + 0x28], r14d
mov ebx, dword [rsp + 0x48]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
mov esi, dword [rbp + 0x78]
mov r11, qword [rsp + 0x30]
inc r14d
add rdi, 0x624
cmp r14d, esi
jl 0x140149290
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x58], ebx
mov rcx, qword [0x140a336a0]
mov qword [0x140a336a8], rcx
mov rsi, qword [r12 + 8]
mov rdi, qword [r12]
mov rdx, rsi
sub rdx, rdi
sar rdx, 4
mov rax, qword [0x140a336b0]
sub rax, rcx
sar rax, 2
cmp rdx, rax
jbe 0x14014941d
movabs rax, 0x3fffffffffffffff
cmp rdx, rax
ja 0x1401496ef
lea rcx, [0x140a336a0]
call fcn.140148e40
mov rdi, qword [r12]
mov rsi, qword [r12 + 8]
mov r11, qword [rsp + 0x30]
cmp rdi, rsi
je 0x14014956a
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140149437
lock inc dword [rbx + 8]
mov rbx, qword [rdi + 8]
mov rdx, qword [rdi]
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rbx
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x68]
call fcn.140148ca0
mov r11, qword [rsp + 0x30]
mov rax, r11
mov rcx, qword [r11 + 8]
cmp byte [rcx + 0x19], 0
jne 0x1401494b4
mov r8d, dword [rsp + 0x70]
mov r9d, dword [rsp + 0x6c]
mov r10d, dword [rsp + 0x68]
cmp dword [rcx + 0x24], r8d
jl 0x14014948f
jg 0x140149487
cmp dword [rcx + 0x20], r9d
jl 0x14014948f
jg 0x140149487
cmp dword [rcx + 0x1c], r10d
jl 0x14014948f
mov rax, rcx
mov rcx, qword [rcx]
jmp 0x140149493
mov rcx, qword [rcx + 0x10]
cmp byte [rcx + 0x19], 0
je 0x140149471
cmp rax, r11
je 0x1401494b4
cmp r8d, dword [rax + 0x24]
jl 0x1401494b4
jg 0x1401494b7
cmp r9d, dword [rax + 0x20]
jl 0x1401494b4
jg 0x1401494b7
cmp r10d, dword [rax + 0x1c]
jge 0x1401494b7
mov rax, r11
mov rdx, qword [0x140a336a8]
cmp rax, r11
je 0x1401494ed
lea r8, [rax + 0x28]
cmp qword [0x140a336b0], rdx
je 0x1401494df
mov eax, dword [r8]
mov dword [rdx], eax
add qword [0x140a336a8], 4
jmp 0x140149520
lea rcx, [0x140a336a0]
call fcn.140058830
jmp 0x140149520
mov dword [rsp + 0x60], 0xffffffff
cmp qword [0x140a336b0], rdx
je 0x14014950e
mov dword [rdx], 0xffffffff
add qword [0x140a336a8], 4
jmp 0x140149520
lea r8, [rsp + 0x60]
lea rcx, [0x140a336a0]
call fcn.140063080
nop
test rbx, rbx
je 0x140149554
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140149554
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140149554
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
add rdi, 0x10
cmp rdi, rsi
jne 0x140149426
mov r15, qword [rbp - 0x78]
mov r11, qword [rsp + 0x30]
mov rsi, r11
mov rdi, qword [r11 + 8]
mov rbx, rdi
cmp byte [rdi + 0x19], 0
jne 0x1401495ac
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1401465d0
mov rbx, qword [rbx]
mov edx, 0x30
mov rcx, rdi
call fcn.140177360
mov rdi, rbx
cmp byte [rbx + 0x19], 0
je 0x140149580
mov r11, qword [rsp + 0x30]
mov qword [r11 + 8], rsi
mov rax, qword [rsp + 0x30]
mov qword [rax], rsi
mov rax, qword [rsp + 0x30]
mov qword [rax + 0x10], rsi
mov qword [rsp + 0x38], 0
mov edx, 0x30
mov rcx, qword [rsp + 0x30]
call fcn.140177360
nop
test r15, r15
je 0x140149631
mov rcx, qword [rbp - 0x68]
sub rcx, r15
movabs rax, 0x14d843bedc2c4b9
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x624
mov rax, r15
cmp rdx, 0x1000
jb 0x140149629
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014964a
mov rcx, r15
call fcn.140177360
mov byte [0x140a336c0], 1
add rsp, 0x120
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14019862c
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, str.ADLs_API_is_missing
lea rcx, [rbp]
call fcn.1400301a0
lea rdx, [0x140277940]
lea rcx, [rbp]
call fcn.1401950f0
int3
lea rdx, str.Could_not_load_ADL
lea rcx, [rbp - 0x48]
call fcn.1400301a0
lea rdx, [0x140277940]
lea rcx, [rbp - 0x48]
call fcn.1401950f0
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, str.Failed_to_initialize_nested_ADL2_context
lea rcx, [rbp - 0x30]
call fcn.1400301a0
lea rdx, [0x140277940]
lea rcx, [rbp - 0x30]
call fcn.1401950f0
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, str.Failed_to_get_number_of_adapters
lea rcx, [rbp - 0x18]
call fcn.1400301a0
lea rdx, [0x140277940]
lea rcx, [rbp - 0x18]
call fcn.1401950f0
nop
call fcn.14003e4b0
nop
int3