Function at 0x140001b00
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 [0x14005b740]
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.140032380
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 0x140002186
cmp qword [rbp + 0x48], 0
je 0x140002186
test r14, r14
je 0x140002186
cmp qword [rbp + 8], 0
je 0x140002186
test r12, r12
je 0x140002186
cmp qword [rbp + 0x28], 0
je 0x140002186
cmp qword [rbp + 0x20], 0
je 0x140002186
cmp qword [rbp + 0x38], 0
je 0x140002186
cmp qword [rbp + 0x60], 0
je 0x140002186
test r13, r13
je 0x140002186
test r15, r15
je 0x140002186
cmp qword [rbp + 0x30], 0
je 0x140002186
movzx ebx, byte [rbp + 0x178]
lea r12, sym.ZecMiner64.exe__Co9eEk_rc_U8Qzt_M_rBCXNPgLr_62n_K__
test bl, bl
jne 0x140001d86
mov rax, qword [rbp + 0x58]
mov ecx, dword [rax + 0x78]
cmp ecx, 2
jge 0x140001d5f
mov eax, dword [r12 + rdi*4 + 0x61950]
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jg 0x140001d63
test ecx, ecx
jns 0x140001d86
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.1400054d0
mov ecx, esi
call qword [rbp + 0x70]
mov eax, 1
jmp 0x140002199
lea rdx, [rbp]
mov ecx, esi
call r14
test eax, eax
je 0x140001d9f
lea rdx, str.Failed_to_get_temperature_info_n
jmp 0x14000218d
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 0x14000216d
test bl, bl
jne 0x140001e1e
mov eax, dword [r12 + rdi*4 + 0x617b0]
test eax, eax
je 0x140001e1e
jle 0x140001e60
cmp edx, eax
jl 0x140001e1e
cmp byte [rdi + r12 + 0x61930], bl
jne 0x140001e41
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.1400056c0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov byte [rdi + r12 + 0x61930], 1
mov qword [r12 + rdi*8 + 0x61c50], rax
lea rdx, [rbp + 0x88]
mov ecx, esi
call qword [rbp + 0x18]
test eax, eax
je 0x140001e6b
lea rdx, str.Failed_to_get_fan_speed_info_n
mov ecx, 2
call fcn.1400054d0
jmp 0x140001e72
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [r12 + rdi*8 + 0x61c50]
add rcx, 0x7530
cmp rax, rcx
jbe 0x140001e1e
jmp 0x1400021bc
neg eax
cmp edx, eax
jl 0x140001e1e
jmp 0x1400021f6
mov r14d, dword [rbp + 0x8c]
mov rax, qword [rbp + 0x68]
mov r11d, dword [rbp]
lea r12, [rdi*4]
lea rcx, sym.ZecMiner64.exe__Co9eEk_rc_U8Qzt_M_rBCXNPgLr_62n_K__
mov dword [r12 + rcx + 0x61bd0], r11d
test rax, rax
je 0x140001ea8
mov dword [rax], r11d
mov rax, qword [rbp + 0x40]
mov dword [rax], r14d
test bl, bl
je 0x140001d7c
mov eax, dword [rcx + r12 + 0x61950]
lea r15, [rcx + 0x61950]
cmp eax, 5
jg 0x140001efa
test bl, bl
jne 0x140001efa
test eax, eax
jns 0x140001f16
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 0x140001f16
mov r8d, dword [r15 + r12]
lea rdx, str.Failed_to_set_new_fan_speed__d__n
mov ecx, 2
neg r8d
call fcn.1400054d0
jmp 0x140002197
cmp r14d, 0xffffffff
jne 0x140001f6c
test bl, bl
jne 0x140001f6c
lea r8, str.Cannot_get_current_fan_speed_n
lea edx, [r14 + 4]
xor ecx, ecx
call fcn.1400056c0
lea rax, sym.ZecMiner64.exe__Co9eEk_rc_U8Qzt_M_rBCXNPgLr_62n_K__
mov r15d, dword [r12 + rax + 0x61730]
mov r14d, dword [r12 + rax + 0x619d0]
mov r12d, dword [r12 + rax + 0x61830]
test r15d, r15d
jne 0x140001f49
test r14d, r14d
jne 0x140001f49
cmp r12d, 0xffffff9c
je 0x140001d7c
lea rdx, [rbp + 0xc8]
mov ecx, esi
call qword [rbp + ioctlsocket]
test eax, eax
je 0x140001fc6
lea rdx, str.Failed_to_get_Overdrive_capabilities_n
xor ecx, ecx
call fcn.1400054d0
jmp 0x140002197
mov r9d, r14d
mov r8d, r11d
mov edx, edi
mov byte [rsp + 0x20], bl
call fcn.1400012a0
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.1400054d0
lea rdx, [rbp + 0x78]
mov ecx, esi
mov dword [rbp + 0x7c], ebx
mov dword [rbp + 0x78], 1
call r13
test eax, eax
je 0x140001f16
lea rdx, str.Failed_to_set_new_fan_speed__n
jmp 0x14000218d
cmp dword [rbp + 0xd0], 2
je 0x140001fe2
lea rdx, str.Unexpected_number_of_performance_levels_n
xor ecx, ecx
call fcn.1400054d0
jmp 0x140002197
mov ecx, 0x1c
call fcn.14002b4c4
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 0x14000202b
lea rdx, str.Failed_to_get_default_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.1400054d0
jmp 0x140002197
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 0x140002074
lea rdx, str.Failed_to_get_custom_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.1400054d0
jmp 0x140002197
lea rdx, [rbp + 0xa0]
mov ecx, esi
call qword [rbp + 0x28]
test eax, eax
je 0x14000209a
lea rdx, str.Failed_to_get_current_performance_levels_info_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.1400054d0
jmp 0x140002197
test r15d, r15d
jle 0x1400020cf
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 0x1400020d3
lea rdx, str.Failed_to_set_new_effective_core_clock_for_GPU__d_r_n
mov r8d, edi
xor ecx, ecx
call fcn.1400054d0
jmp 0x1400020d3
mov r15, qword [rbp + 0x10]
test r14d, r14d
jle 0x140002102
imul r14d, r14d, 0x64
mov r8, rbx
mov edx, 1
mov ecx, esi
mov dword [rbx + 0x18], r14d
call r15
test eax, eax
je 0x140002102
lea rdx, str.Failed_to_set_new_effective_memory_clock_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.1400054d0
cmp r12d, 0xffffff9c
je 0x140001d7c
lea rdx, [rbp + 4]
mov ecx, esi
call qword [rbp + 0x20]
test eax, eax
je 0x14000212c
lea rdx, str.Power_control_failed_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.1400054d0
jmp 0x140002197
cmp dword [rbp + 4], 0
je 0x140002155
mov edx, r12d
mov ecx, esi
call qword [rbp + 0x30]
test eax, eax
je 0x140001d7c
lea rdx, str.Failed_to_set_new_Power_Control_treshold_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.1400054d0
jmp 0x140002197
lea rdx, str.Power_control_is_unsupported_for_GPU__d_n
mov r8d, edi
xor ecx, ecx
call fcn.1400054d0
mov eax, 1
jmp 0x140002199
mov r9d, edx
lea rdx, str.GPU__d:_got_incorrect_temperature__d__ignore_n
mov r8d, edi
mov ecx, 2
call fcn.1400054d0
jmp 0x140002197
lea rdx, str.ADLs_API_is_missing__n
mov ecx, 2
call fcn.1400054d0
xor eax, eax
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.14002aed0
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.1400056c0
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.1400056c0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400153f0
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.1400056c0
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.1400056c0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400153f0
int3