Function at 0x140003fe0
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 [0x140061740]
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.140035a80
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 0x140004666
cmp qword [rbp + 0x48], 0
je 0x140004666
test r14, r14
je 0x140004666
cmp qword [rbp + 8], 0
je 0x140004666
test r12, r12
je 0x140004666
cmp qword [rbp + 0x28], 0
je 0x140004666
cmp qword [rbp + 0x20], 0
je 0x140004666
cmp qword [rbp + 0x38], 0
je 0x140004666
cmp qword [rbp + 0x60], 0
je 0x140004666
test r13, r13
je 0x140004666
test r15, r15
je 0x140004666
cmp qword [rbp + 0x30], 0
je 0x140004666
movzx ebx, byte [rbp + 0x178]
lea r12, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
test bl, bl
jne 0x140004266
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax + 0x78]
cmp ecx, 2
jge 0x14000423f
mov eax, dword [r12 + rdi*4 + 0x68330]
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jg 0x140004243
test ecx, ecx
jns 0x140004266
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, edi
mov ecx, 2
call fcn.14000ee60
mov ecx, esi
call qword [rbp + 0x70]
mov eax, 1
jmp 0x140004679
lea rdx, [rbp]
mov ecx, esi
call r14
test eax, eax
je 0x14000427f
lea rdx, str.Failed_to_get_temperature_info_n
jmp 0x14000466d
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 0x14000464d
test bl, bl
jne 0x1400042fe
mov eax, dword [r12 + rdi*4 + 0x68190]
test eax, eax
je 0x1400042fe
jle 0x140004340
cmp edx, eax
jl 0x1400042fe
cmp byte [rdi + r12 + 0x68310], bl
jne 0x140004321
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.14000f050
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov byte [rdi + r12 + 0x68310], 1
mov qword [r12 + rdi*8 + 0x68630], rax
lea rdx, [rbp + 0x88]
mov ecx, esi
call qword [rbp + 0x18]
test eax, eax
je 0x14000434b
lea rdx, str.Failed_to_get_fan_speed_info_n
mov ecx, 2
call fcn.14000ee60
jmp 0x140004352
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [r12 + rdi*8 + 0x68630]
add rcx, 0x7530
cmp rax, rcx
jbe 0x1400042fe
jmp 0x14000469c
neg eax
cmp edx, eax
jl 0x1400042fe
jmp 0x1400046d6
mov r14d, dword [rbp + 0x8c]
mov rax, qword [rbp + 0x68]
mov r11d, dword [rbp]
lea r12, [rdi*4]
lea rcx, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
mov dword [r12 + rcx + 0x685b0], r11d
test rax, rax
je 0x140004388
mov dword [rax], r11d
mov rax, qword [rbp + 0x40]
mov dword [rax], r14d
test bl, bl
je 0x14000425c
mov eax, dword [rcx + r12 + 0x68330]
lea r15, [rcx + 0x68330]
cmp eax, 5
jg 0x1400043da
test bl, bl
jne 0x1400043da
test eax, eax
jns 0x1400043f6
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 0x1400043f6
mov r8d, dword [r15 + r12]
lea rdx, str.Failed_to_set_new_fan_speed__d__n
mov ecx, 2
neg r8d
call fcn.14000ee60
jmp 0x140004677
cmp r14d, 0xffffffff
jne 0x14000444c
test bl, bl
jne 0x14000444c
lea r8, str.Cannot_get_current_fan_speed_n
lea edx, [r14 + 4]
xor ecx, ecx
call fcn.14000f050
lea rax, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
mov r15d, dword [r12 + rax + 0x68110]
mov r14d, dword [r12 + rax + 0x683b0]
mov r12d, dword [r12 + rax + 0x68210]
test r15d, r15d
jne 0x140004429
test r14d, r14d
jne 0x140004429
cmp r12d, 0xffffff9c
je 0x14000425c
lea rdx, [rbp + 0xc8]
mov ecx, esi
call qword [rbp + htons]
test eax, eax
je 0x1400044a6
lea rdx, str.Failed_to_get_Overdrive_capabilities_n
xor ecx, ecx
call fcn.14000ee60
jmp 0x140004677
mov r9d, r14d
mov r8d, r11d
mov edx, edi
mov byte [rsp + 0x20], bl
call fcn.140003780
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, edi
mov ecx, 2
mov ebx, eax
mov dword [rsp + 0x20], r14d
call fcn.14000ee60
lea rdx, [rbp + 0x78]
mov ecx, esi
mov dword [rbp + 0x7c], ebx
mov dword [rbp + 0x78], 1
call r13
test eax, eax
je 0x1400043f6
lea rdx, str.Failed_to_set_new_fan_speed__n
jmp 0x14000466d
cmp dword [rbp + 0xd0], 2
je 0x1400044c2
lea rdx, str.Unexpected_number_of_performance_levels_n
xor ecx, ecx
call fcn.14000ee60
jmp 0x140004677
mov ecx, 0x1c
call fcn.14002edb0
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 0x14000450b
lea rdx, str.Failed_to_get_default_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.14000ee60
jmp 0x140004677
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 0x140004554
lea rdx, str.Failed_to_get_custom_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.14000ee60
jmp 0x140004677
lea rdx, [rbp + 0xa0]
mov ecx, esi
call qword [rbp + 0x28]
test eax, eax
je 0x14000457a
lea rdx, str.Failed_to_get_current_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.14000ee60
jmp 0x140004677
test r15d, r15d
jle 0x1400045af
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 0x1400045b3
lea rdx, str.Failed_to_set_new_effective_core_clock_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.14000ee60
jmp 0x1400045b3
mov r15, qword [rbp + 0x10]
test r14d, r14d
jle 0x1400045e2
imul r14d, r14d, 0x64
mov r8, rbx
mov edx, 1
mov ecx, esi
mov dword [rbx + 0x18], r14d
call r15
test eax, eax
je 0x1400045e2
lea rdx, str.Failed_to_set_new_effective_memory_clock_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.14000ee60
cmp r12d, 0xffffff9c
je 0x14000425c
lea rdx, [rbp + 4]
mov ecx, esi
call qword [rbp + 0x20]
test eax, eax
je 0x14000460c
lea rdx, str.Power_control_failed_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.14000ee60
jmp 0x140004677
cmp dword [rbp + 4], 0
je 0x140004635
mov edx, r12d
mov ecx, esi
call qword [rbp + 0x30]
test eax, eax
je 0x14000425c
lea rdx, str.Failed_to_set_new_Power_Control_treshold_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.14000ee60
jmp 0x140004677
lea rdx, str.Power_control_is_unsupported_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.14000ee60
mov eax, 1
jmp 0x140004679
mov r9d, edx
lea rdx, str.GPU__d:_got_incorrect_temperature__d__ignore_n
mov r8d, edi
mov ecx, 2
call fcn.14000ee60
jmp 0x140004677
lea rdx, str.ADLs_API_is_missing__n
mov ecx, 2
call fcn.14000ee60
xor eax, eax
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.14002e450
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.14000f050
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.14000f050
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001bfc0
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.14000f050
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.14000f050
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001bfc0
int3