Function at 0x14000db40
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
lea rbp, [rsp + 0x30]
mov rax, qword [0x14010b358]
xor rax, rbp
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0x170]
mov rbx, qword [rcx + 8]
xor r14d, r14d
movsxd rdi, r8d
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x40], rax
xor eax, eax
mov esi, edx
lea r8d, [r14 + 0x28]
lea rcx, [rbp + 0xcc]
xor edx, edx
mov qword [rbp + 0x68], r9
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x98], eax
mov qword [rbp + 0x88], r14
mov dword [rbp + 0xc8], r14d
call fcn.140091e20
xor eax, eax
lea rdx, str.ADL_Overdrive6_FanSpeed_Get
mov rcx, rbx
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
mov dword [rbp + 0xc0], eax
mov dword [rbp + 4], r14d
mov qword [rbp + 0x78], r14
mov qword [rbp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_ThermalController_Caps
mov rcx, rbx
mov qword [rbp + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_Temperature_Get
mov rcx, rbx
mov qword [rbp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_Capabilities_Get
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_StateInfo_Get
mov rcx, rbx
mov qword [rbp + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_CurrentStatus_Get
mov rcx, rbx
mov r12, rax
mov qword [rbp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_PowerControl_Caps
mov rcx, rbx
mov qword [rbp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_PowerControlInfo_Get
mov rcx, rbx
mov qword [rbp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_PowerControl_Get
mov rcx, rbx
mov qword [rbp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_FanSpeed_Set
mov rcx, rbx
mov qword [rbp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_State_Set
mov rcx, rbx
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_PowerControl_Set
mov rcx, rbx
mov r15, rax
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL_Overdrive6_FanSpeed_Reset
mov rcx, rbx
mov qword [rbp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbp + 0x18], 0
mov qword [rbp + 0x70], rax
je 0x14000e1c3
cmp qword [rbp + 0x48], 0
je 0x14000e1c3
test r14, r14
je 0x14000e1c3
cmp qword [rbp + 8], 0
je 0x14000e1c3
test r12, r12
je 0x14000e1c3
cmp qword [rbp + 0x28], 0
je 0x14000e1c3
cmp qword [rbp + 0x20], 0
je 0x14000e1c3
cmp qword [rbp + 0x38], 0
je 0x14000e1c3
cmp qword [rbp + 0x60], 0
je 0x14000e1c3
test r13, r13
je 0x14000e1c3
test r15, r15
je 0x14000e1c3
cmp qword [rbp + 0x30], 0
je 0x14000e1c3
movzx ebx, byte [rbp + 0x178]
lea r12, sym.NsGpuCNMiner.exe_.t_bF._Ay7_Z__E9S6_euXX:_ghT:_5mi
test bl, bl
jne 0x14000ddc6
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax + 0x78]
cmp ecx, 2
jge 0x14000dd9f
mov eax, dword [r12 + rdi*4 + 0x1368d0]
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jg 0x14000dda3
test ecx, ecx
jns 0x14000ddc6
lea rdx, str.OC_v6__Reset_control_for_GPU__d__close_miner_right_now_if_you_want_to_use_default_control_from_Catalyst__n
mov r8d, esi
mov ecx, 2
call fcn.140010790
mov ecx, esi
call qword [rbp + reloc.WS2_32.dll_WSASetLastError]
mov eax, 1
jmp 0x14000e1d6
lea rdx, [rbp]
mov ecx, esi
call r14
test eax, eax
je 0x14000dddf
lea rdx, str.Failed_to_get_temperature_info_n
jmp 0x14000e1ca
mov eax, 0x10624dd3
or r14d, 0xffffffff
imul dword [rbp]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp], edx
lea eax, [rdx + 0x64]
cmp eax, 0x15e
ja 0x14000e1ad
test bl, bl
jne 0x14000de5e
mov eax, dword [r12 + rdi*4 + 0x136720]
test eax, eax
je 0x14000de5e
jle 0x14000dea0
cmp edx, eax
jl 0x14000de5e
cmp byte [rdi + r12 + 0x1368b0], bl
jne 0x14000de81
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea r8, str.GPU__d_reached_STOP_temperature___d____d___stop_mining_on_this_GPU._n
lea edx, [r14 + 4]
mov r9d, edi
xor ecx, ecx
call fcn.140010980
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov byte [rdi + r12 + 0x1368b0], 1
mov qword [r12 + rdi*8 + 0x136bd0], rax
lea rdx, [rbp + 0x88]
mov ecx, esi
call qword [rbp + 0x18]
test eax, eax
je 0x14000deab
lea rdx, str.Failed_to_get_fan_speed_info_n
mov ecx, 2
call fcn.140010790
jmp 0x14000deb2
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [r12 + rdi*8 + 0x136bd0]
add rcx, 0x7530
cmp rax, rcx
jbe 0x14000de5e
jmp 0x14000e1f9
neg eax
cmp edx, eax
jl 0x14000de5e
jmp 0x14000e233
mov r14d, dword [rbp + 0x8c]
mov rax, qword [rbp + 0x68]
mov r11d, dword [rbp]
lea r12, [rdi*4]
lea rcx, sym.NsGpuCNMiner.exe_.t_bF._Ay7_Z__E9S6_euXX:_ghT:_5mi
mov dword [r12 + rcx + 0x136b50], r11d
test rax, rax
je 0x14000dee8
mov dword [rax], r11d
mov rax, qword [rbp + 0x40]
mov dword [rax], r14d
test bl, bl
je 0x14000ddbc
mov eax, dword [rcx + r12 + 0x1368d0]
lea r15, [rcx + 0x1368d0]
cmp eax, 5
jg 0x14000df3a
test bl, bl
jne 0x14000df3a
test eax, eax
jns 0x14000df56
neg eax
lea rdx, [rbp + 0x78]
mov ecx, esi
mov dword [rbp + 0x7c], eax
mov dword [rbp + 0x78], 1
call r13
test eax, eax
je 0x14000df56
mov r8d, dword [r15 + r12]
lea rdx, str.Failed_to_set_new_fan_speed__d__n
mov ecx, 2
neg r8d
call fcn.140010790
jmp 0x14000e1d4
cmp r14d, 0xffffffff
jne 0x14000dfac
test bl, bl
jne 0x14000dfac
lea r8, str.Cannot_get_current_fan_speed_n
lea edx, [r14 + 4]
xor ecx, ecx
call fcn.140010980
lea rax, sym.NsGpuCNMiner.exe_.t_bF._Ay7_Z__E9S6_euXX:_ghT:_5mi
mov r15d, dword [r12 + rax + 0x1366a0]
mov r14d, dword [r12 + rax + 0x136950]
mov r12d, dword [r12 + rax + 0x1367a0]
test r15d, r15d
jne 0x14000df89
test r14d, r14d
jne 0x14000df89
cmp r12d, 0xffffff9c
je 0x14000ddbc
lea rdx, [rbp + 0xc8]
mov ecx, esi
call qword [rbp + reloc.WS2_32.dll_htonl]
test eax, eax
je 0x14000e006
lea rdx, str.Failed_to_get_Overdrive_capabilities_n
xor ecx, ecx
call fcn.140010790
jmp 0x14000e1d4
mov r9d, r14d
mov r8d, r11d
mov edx, edi
mov byte [rsp + 0x20], bl
call fcn.14000d2e0
lea rdx, str.GPU__d_temp___d__old_fan_speed___d__new_fan_speed___d__r_n
mov dword [rsp + 0x28], eax
mov r9d, r11d
mov r8d, esi
mov ecx, 2
mov ebx, eax
mov dword [rsp + 0x20], r14d
call fcn.140010790
lea rdx, [rbp + 0x78]
mov ecx, esi
mov dword [rbp + 0x7c], ebx
mov dword [rbp + 0x78], 1
call r13
test eax, eax
je 0x14000df56
lea rdx, str.Failed_to_set_new_fan_speed__n
jmp 0x14000e1ca
cmp dword [rbp + 0xd0], 2
je 0x14000e022
lea rdx, str.Unexpected_number_of_performance_levels_n
xor ecx, ecx
call fcn.140010790
jmp 0x14000e1d4
mov ecx, 0x1c
call fcn.140089b68
mov r13, qword [rbp + 0x50]
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov dword [rax + 0x18], ecx
lea edx, [rcx + 1]
mov r8, rax
mov ecx, esi
mov dword [rax], 2
call r13
test eax, eax
je 0x14000e06b
lea rdx, str.Failed_to_get_default_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.140010790
jmp 0x14000e1d4
mov eax, dword [rsp]
sub rsp, 0x20
lea rbx, [rsp + 0x30]
mov eax, dword [rbx]
xor eax, eax
mov r8, rbx
mov ecx, esi
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], eax
lea edx, [rax + 4]
mov dword [rbx], 2
call r13
test eax, eax
je 0x14000e0b4
lea rdx, str.Failed_to_get_custom_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.140010790
jmp 0x14000e1d4
lea rdx, [rbp + 0xa0]
mov ecx, esi
call qword [rbp + 0x28]
test eax, eax
je 0x14000e0da
lea rdx, str.Failed_to_get_current_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.140010790
jmp 0x14000e1d4
test r15d, r15d
jle 0x14000e10f
imul r15d, r15d, 0x64
mov r8, rbx
mov edx, 1
mov dword [rbx + 0x14], r15d
mov r15, qword [rbp + 0x10]
mov ecx, esi
call r15
test eax, eax
je 0x14000e113
lea rdx, str.Failed_to_set_new_effective_core_clock_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.140010790
jmp 0x14000e113
mov r15, qword [rbp + 0x10]
test r14d, r14d
jle 0x14000e142
imul r14d, r14d, 0x64
mov r8, rbx
mov edx, 1
mov ecx, esi
mov dword [rbx + 0x18], r14d
call r15
test eax, eax
je 0x14000e142
lea rdx, str.Failed_to_set_new_effective_memory_clock_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.140010790
cmp r12d, 0xffffff9c
je 0x14000ddbc
lea rdx, [rbp + 4]
mov ecx, esi
call qword [rbp + 0x20]
test eax, eax
je 0x14000e16c
lea rdx, str.Power_control_failed_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.140010790
jmp 0x14000e1d4
cmp dword [rbp + 4], 0
je 0x14000e195
mov edx, r12d
mov ecx, esi
call qword [rbp + 0x30]
test eax, eax
je 0x14000ddbc
lea rdx, str.Failed_to_set_new_Power_Control_treshold_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.140010790
jmp 0x14000e1d4
lea rdx, str.Power_control_is_unsupported_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.140010790
mov eax, 1
jmp 0x14000e1d6
mov r8d, edx
lea rdx, str.Got_incorrect_temperature__d__ignore_n
mov ecx, 2
call fcn.140010790
jmp 0x14000e1d4
lea rdx, str.ADLs_API_is_missing__n
mov ecx, 2
call fcn.140010790
xor eax, eax
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.140088760
lea rsp, [rbp + 0x108]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, str.GPU__d_reached_STOP_temperature_and_was_stopped__but_it_is_still_overheated._Probably_wrong_card_was_turned_off__check__KNOWN_ISSUES__section_of_readme_file_for_details._n
mov r9d, edi
mov edx, 3
xor ecx, ecx
call fcn.140010980
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.140010980
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14003aa00
int3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea r8, str.GPU__d_reached_CLOSE_temperature___d____d_._n
mov edx, 3
mov r9d, edi
xor ecx, ecx
call fcn.140010980
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.140010980
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14003aa00
int3