Function at 0x1400c91b0
Capabilities:
Link many functions at runtime
Query environment variable

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x238]
sub rsp, 0x338
mov rax, qword [0x1403284b0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r8d, 0x200
lea rdx, [rbp + 0x20]
lea rcx, str.atiadlxx.dll
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x1400c925b
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009cf30
lea rdx, str.Failed_to_obtain_all_required_ADL_function_pointers
lea rcx, [rsp + 0x38]
call fcn.1400377f0
lea rcx, [rsp + 0x28]
call fcn.1400300e0
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009cf30
lea rdx, str.AMD_hardware_monitoring_disabled
lea rcx, [rsp + 0x38]
call fcn.1400377f0
lea rcx, [rsp + 0x28]
call fcn.1400300e0
xor eax, eax
jmp 0x1400c953e
mov edx, 0x88
mov qword [rsp + 0x350], rbx
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
lea rdx, str.ADL_Main_Control_Create
mov rcx, rdi
mov rbx, rax
mov qword [rax], rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL_Adapter_NumberOfAdapters_Get
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL_Adapter_AdapterInfo_Get
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL_Adapter_ID_Get
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL_Overdrive5_Temperature_Get
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL_Overdrive5_FanSpeed_Get
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL_Main_Control_Refresh
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL_Main_Control_Destroy
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL2_Main_Control_Create
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL_Main_Control_Destroy
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL2_Overdrive6_CurrentPower_Get
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.ADL2_Main_Control_Refresh
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, qword [rbx + 0x28]
mov qword [rbx + 0x80], rax
test r8, r8
je 0x1400c95df
cmp qword [rbx + 0x60], 0
je 0x1400c95df
cmp qword [rbx + 0x58], 0
je 0x1400c95df
cmp qword [rbx + 0x30], 0
je 0x1400c95df
cmp qword [rbx + 0x38], 0
je 0x1400c95df
cmp qword [rbx + 0x40], 0
je 0x1400c95df
cmp qword [rbx + 0x48], 0
je 0x1400c95df
cmp qword [rbx + 0x50], 0
je 0x1400c95df
cmp qword [rbx + 0x68], 0
je 0x1400c95df
test rax, rax
je 0x1400c95df
cmp qword [rbx + 0x70], 0
je 0x1400c95df
cmp qword [rbx + 0x78], 0
je 0x1400c95df
mov qword [rsp + 0x360], r12
lea rcx, [0x1400c91a0]
mov edx, 1
mov qword [rsp + 0x330], r15
call r8
call qword [rbx + 0x58]
xor r12d, r12d
lea r8, [rbx + 0x20]
lea rcx, [0x1400c91a0]
mov qword [rbx + 0x20], r12
lea edx, [r12 + 1]
call qword [rbx + 0x68]
mov rcx, qword [rbx + 0x20]
call qword [rbx + 0x80]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], r12d
call qword [rbx + 0x30]
movsxd rcx, dword [rsp + 0x20]
lea edx, [r12 + 4]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov dword [rbx + 8], r12d
mov r15d, r12d
mov qword [rbx + 0x10], rax
mov eax, dword [rsp + 0x20]
test eax, eax
jle 0x1400c95d7
mov dword [rbx + 0xc], eax
movsxd rax, dword [rsp + 0x20]
imul rcx, rax, 0x624
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbx + 0x18], rax
xor edx, edx
movsxd rcx, dword [rsp + 0x20]
imul r8, rcx, 0x624
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x18]
mov dword [rax], 8
imul edx, dword [rsp + 0x20], 0x624
mov rcx, qword [rbx + 0x18]
call qword [rbx + gethostname]
test eax, eax
je 0x1400c9557
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009cf30
lea rdx, str.Failed_to_obtain_using_adlAdapterAdapterInfoGet__.
lea rcx, [rsp + 0x38]
call fcn.1400377f0
lea rcx, [rsp + 0x28]
call fcn.1400300e0
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009cf30
lea rdx, str.AMD_hardware_monitoring_disabled
lea rcx, [rsp + 0x38]
call fcn.1400377f0
lea rcx, [rsp + 0x28]
call fcn.1400300e0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov r12, qword [rsp + 0x360]
mov r15, qword [rsp + 0x330]
mov rbx, qword [rsp + 0x350]
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1402225a0
add rsp, 0x338
pop rdi
pop rbp
ret
mov edi, r12d
cmp dword [rsp + 0x20], r12d
jle 0x1400c95d7
mov qword [rsp + 0x358], rsi
mov rsi, r12
mov qword [rsp + 0x368], r14
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 0x18]
lea rdx, [rsp + 0x24]
mov r14d, dword [rsi + rax + 4]
mov ecx, r14d
mov dword [rsp + 0x24], r12d
call qword [rbx + 0x40]
test eax, eax
jne 0x1400c95b8
mov rax, qword [rbx + 0x10]
movsxd rcx, dword [rbx + 8]
mov dword [rax + rcx*4], r14d
mov eax, dword [rsp + 0x24]
cmp eax, r15d
je 0x1400c95b8
inc dword [rbx + 8]
mov r15d, eax
inc edi
add rsi, 0x624
cmp edi, dword [rsp + 0x20]
jl 0x1400c9580
mov r14, qword [rsp + 0x368]
mov rsi, qword [rsp + 0x358]
mov rax, rbx
jmp 0x1400c9526
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009cf30
lea rdx, str.Failed_to_obtain_all_required_ADL_function_pointers
lea rcx, [rsp + 0x38]
call fcn.1400377f0
lea rcx, [rsp + 0x28]
call fcn.1400300e0
lea rdx, str.e_91m_X
lea rcx, [rsp + 0x28]
call fcn.14009cf30
lea rdx, str.AMD_hardware_monitoring_disabled
lea rcx, [rsp + 0x38]
call fcn.1400377f0
lea rcx, [rsp + 0x28]
call fcn.1400300e0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x1400c9536