Function at 0x14000d690
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 [0x140105358]
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.14008d370
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 0x14000dd13
cmp qword [rbp + 0x48], 0
je 0x14000dd13
test r14, r14
je 0x14000dd13
cmp qword [rbp + 8], 0
je 0x14000dd13
test r12, r12
je 0x14000dd13
cmp qword [rbp + 0x28], 0
je 0x14000dd13
cmp qword [rbp + 0x20], 0
je 0x14000dd13
cmp qword [rbp + 0x38], 0
je 0x14000dd13
cmp qword [rbp + 0x60], 0
je 0x14000dd13
test r13, r13
je 0x14000dd13
test r15, r15
je 0x14000dd13
cmp qword [rbp + 0x30], 0
je 0x14000dd13
movzx ebx, byte [rbp + 0x178]
lea r12, sym.NsCpuCNMiner.exe__6j_:_nxZkVi0F7Aj_TnR__ExM0:aC_l_.YJ_q_FiyMRMH
test bl, bl
jne 0x14000d916
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax + 0x78]
cmp ecx, 2
jge 0x14000d8ef
mov eax, dword [r12 + rdi*4 + 0x130850]
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jg 0x14000d8f3
test ecx, ecx
jns 0x14000d916
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.140014e30
mov ecx, esi
call qword [rbp + reloc.WS2_32.dll_WSASetLastError]
mov eax, 1
jmp 0x14000dd26
lea rdx, [rbp]
mov ecx, esi
call r14
test eax, eax
je 0x14000d92f
lea rdx, str.Failed_to_get_temperature_info_n
jmp 0x14000dd1a
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 0x14000dcfd
test bl, bl
jne 0x14000d9ae
mov eax, dword [r12 + rdi*4 + 0x1305b0]
test eax, eax
je 0x14000d9ae
jle 0x14000d9f0
cmp edx, eax
jl 0x14000d9ae
cmp byte [rdi + r12 + 0x1306d8], bl
jne 0x14000d9d1
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.140015030
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov byte [rdi + r12 + 0x1306d8], 1
mov qword [r12 + rdi*8 + 0x130bd0], rax
lea rdx, [rbp + 0x88]
mov ecx, esi
call qword [rbp + 0x18]
test eax, eax
je 0x14000d9fb
lea rdx, str.Failed_to_get_fan_speed_info_n
mov ecx, 2
call fcn.140014e30
jmp 0x14000da02
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [r12 + rdi*8 + 0x130bd0]
add rcx, 0x7530
cmp rax, rcx
jbe 0x14000d9ae
jmp 0x14000dd49
neg eax
cmp edx, eax
jl 0x14000d9ae
jmp 0x14000dd83
mov r14d, dword [rbp + 0x8c]
mov rax, qword [rbp + 0x68]
mov r11d, dword [rbp]
lea r12, [rdi*4]
lea rcx, sym.NsCpuCNMiner.exe__6j_:_nxZkVi0F7Aj_TnR__ExM0:aC_l_.YJ_q_FiyMRMH
mov dword [r12 + rcx + 0x130ad0], r11d
test rax, rax
je 0x14000da38
mov dword [rax], r11d
mov rax, qword [rbp + 0x40]
mov dword [rax], r14d
test bl, bl
je 0x14000d90c
mov eax, dword [rcx + r12 + 0x130850]
lea r15, [rcx + 0x130850]
cmp eax, 5
jg 0x14000da8a
test bl, bl
jne 0x14000da8a
test eax, eax
jns 0x14000daa6
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 0x14000daa6
mov r8d, dword [r15 + r12]
lea rdx, str.Failed_to_set_new_fan_speed__d__n
mov ecx, 2
neg r8d
call fcn.140014e30
jmp 0x14000dd24
cmp r14d, 0xffffffff
jne 0x14000dafc
test bl, bl
jne 0x14000dafc
lea r8, str.Cannot_get_current_fan_speed_n
lea edx, [r14 + 4]
xor ecx, ecx
call fcn.140015030
lea rax, sym.NsCpuCNMiner.exe__6j_:_nxZkVi0F7Aj_TnR__ExM0:aC_l_.YJ_q_FiyMRMH
mov r15d, dword [r12 + rax + 0x130530]
mov r14d, dword [r12 + rax + 0x1308d0]
mov r12d, dword [r12 + rax + 0x130630]
test r15d, r15d
jne 0x14000dad9
test r14d, r14d
jne 0x14000dad9
cmp r12d, 0xffffff9c
je 0x14000d90c
lea rdx, [rbp + 0xc8]
mov ecx, esi
call qword [rbp + reloc.WS2_32.dll_htonl]
test eax, eax
je 0x14000db56
lea rdx, str.Failed_to_get_Overdrive_capabilities_n
xor ecx, ecx
call fcn.140014e30
jmp 0x14000dd24
mov r9d, r14d
mov r8d, r11d
mov edx, edi
mov byte [rsp + 0x20], bl
call fcn.14000ce30
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.140014e30
lea rdx, [rbp + 0x78]
mov ecx, esi
mov dword [rbp + 0x7c], ebx
mov dword [rbp + 0x78], 1
call r13
test eax, eax
je 0x14000daa6
lea rdx, str.Failed_to_set_new_fan_speed__n
jmp 0x14000dd1a
cmp dword [rbp + 0xd0], 2
je 0x14000db72
lea rdx, str.Unexpected_number_of_performance_levels_n
xor ecx, ecx
call fcn.140014e30
jmp 0x14000dd24
mov ecx, 0x1c
call fcn.140085e1c
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 0x14000dbbb
lea rdx, str.Failed_to_get_default_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.140014e30
jmp 0x14000dd24
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 0x14000dc04
lea rdx, str.Failed_to_get_custom_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.140014e30
jmp 0x14000dd24
lea rdx, [rbp + 0xa0]
mov ecx, esi
call qword [rbp + 0x28]
test eax, eax
je 0x14000dc2a
lea rdx, str.Failed_to_get_current_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.140014e30
jmp 0x14000dd24
test r15d, r15d
jle 0x14000dc5f
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 0x14000dc63
lea rdx, str.Failed_to_set_new_effective_core_clock_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.140014e30
jmp 0x14000dc63
mov r15, qword [rbp + 0x10]
test r14d, r14d
jle 0x14000dc92
imul r14d, r14d, 0x64
mov r8, rbx
mov edx, 1
mov ecx, esi
mov dword [rbx + 0x18], r14d
call r15
test eax, eax
je 0x14000dc92
lea rdx, str.Failed_to_set_new_effective_memory_clock_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.140014e30
cmp r12d, 0xffffff9c
je 0x14000d90c
lea rdx, [rbp + 4]
mov ecx, esi
call qword [rbp + 0x20]
test eax, eax
je 0x14000dcbc
lea rdx, str.Power_control_failed_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.140014e30
jmp 0x14000dd24
cmp dword [rbp + 4], 0
je 0x14000dce5
mov edx, r12d
mov ecx, esi
call qword [rbp + 0x30]
test eax, eax
je 0x14000d90c
lea rdx, str.Failed_to_set_new_Power_Control_treshold_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.140014e30
jmp 0x14000dd24
lea rdx, str.Power_control_is_unsupported_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.140014e30
mov eax, 1
jmp 0x14000dd26
mov r8d, edx
lea rdx, str.Got_incorrect_temperature__d__ignore_n
mov ecx, 2
call fcn.140014e30
jmp 0x14000dd24
lea rdx, str.ADLs_API_is_missing__n
mov ecx, 2
call fcn.140014e30
xor eax, eax
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.140084a30
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.140015030
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.140015030
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140035330
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.140015030
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.140015030
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140035330
int3