Function at 0x140004720
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, 0x508
lea rbp, [rsp + 0x30]
mov rax, qword [0x140061740]
xor rax, rbp
mov qword [rbp + 0x4c0], rax
mov rbx, qword [rcx + 8]
mov rax, qword [rbp + 0x540]
mov dword [rbp + 8], edx
lea rdx, str.ADL2_OverdriveN_Capabilities_Get
mov rcx, rbx
mov r13, r9
mov dword [rbp + 4], r8d
mov qword [rbp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_FanControl_Get
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_FanControl_Set
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_PowerLimit_Get
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_PowerLimit_Set
mov rcx, rbx
mov qword [rbp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_Temperature_Get
mov rcx, rbx
mov qword [rbp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_SystemClocks_Get
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_SystemClocks_Set
mov rcx, rbx
mov r15, rax
mov qword [rbp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_MemoryClocks_Get
mov rcx, rbx
mov qword [rbp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_MemoryClocks_Set
mov rcx, rbx
mov qword [rbp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x78], rax
test r14, r14
je 0x140005315
test rdi, rdi
je 0x140005315
test r12, r12
je 0x140005315
cmp qword [rbp + 0x30], 0
je 0x140005315
cmp qword [rbp + 0x48], 0
je 0x140005315
test rsi, rsi
je 0x140005315
test r15, r15
je 0x140005315
cmp qword [rbp + 0x38], 0
je 0x140005315
cmp qword [rbp + 0x40], 0
je 0x140005315
test rax, rax
je 0x140005315
lea rdx, str.ADL2_OverdriveN_SystemClocksX2_Get
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_SystemClocksX2_Set
mov rcx, rbx
mov qword [rbp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_MemoryClocksX2_Get
mov rcx, rbx
mov qword [rbp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ADL2_OverdriveN_MemoryClocksX2_Set
mov rcx, rbx
mov qword [rbp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0xb0]
xor edx, edx
mov r8d, 0xa4
mov qword [rbp + 0x70], rax
call fcn.140035a80
mov edx, dword [rbp + 8]
lea r8, [rbp + 0xb0]
xor ecx, ecx
call r14
test eax, eax
je 0x140004991
cmp eax, 0xfffffff8
jne 0x140004978
mov rbx, qword [0x140065310]
test rbx, rbx
je 0x140004978
lea rcx, [rbp + 0x160]
xor edx, edx
mov r8d, 0x290
call fcn.140035a80
mov r14d, dword [rbp + 8]
lea r8, [rbp + 0x160]
mov edx, r14d
xor ecx, ecx
call rbx
test eax, eax
je 0x14000495e
lea rdx, str.Cannot_get_17.7.2_Overdrive_capabilities_for_adapter__d__error__d__n
mov r9d, eax
mov r8d, r14d
mov ecx, 2
call fcn.14000ee60
jmp 0x140005326
mov eax, dword [rbp + 0x1e8]
mov dword [rbp + 0x134], eax
mov eax, dword [rbp + 0x160]
mov dword [rbp + 0xb0], eax
jmp 0x140004995
lea rdx, str.Failed_to_get_OverdriveN_capabilities__error__d___n
mov r8d, eax
mov ecx, 2
call fcn.14000ee60
jmp 0x140005326
mov r14d, dword [rbp + 8]
xor eax, eax
lea r8, [rbp + 0x88]
mov edx, r14d
xor ecx, ecx
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rax
mov qword [rbp + 0xa0], rax
call rdi
test eax, eax
je 0x1400049d1
lea rdx, str.Failed_to_get_fan_info__n
jmp 0x14000531c
lea r9, [rbp + 0xc]
mov r8d, 1
mov edx, r14d
xor ecx, ecx
mov dword [rbp + 0xc], 0xfffe7578
call rsi
mov eax, 0x10624dd3
imul dword [rbp + 0xc]
mov r11d, edx
sar r11d, 6
mov eax, r11d
shr eax, 0x1f
add r11d, eax
mov dword [rbp + 0xc], r11d
lea eax, [r11 + 0x64]
cmp eax, 0x15e
ja 0x1400052fb
movzx edi, byte [rbp + 0x548]
lea rbx, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
test dil, dil
jne 0x140004ae1
movsxd r10, dword [rbp + 4]
lea rsi, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
mov eax, dword [rsi + r10*4 + 0x68190]
mov rbx, r10
test eax, eax
je 0x140004a97
jle 0x140004ad5
cmp r11d, eax
jl 0x140004a97
cmp byte [r10 + rsi + 0x68310], dil
jne 0x140004ab6
mov dword [rsp + 0x28], eax
lea r8, str.GPU__d_reached_STOP_temperature___d____d___stop_mining_on_this_GPU._n
mov r9d, r10d
mov edx, 3
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call fcn.14000f050
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov byte [rbx + rsi + 0x68310], 1
mov qword [rsi + rbx*8 + 0x68630], rax
mov r11d, dword [rbp + 0xc]
mov r10d, dword [rbp + 4]
lea rbx, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
mov r8d, dword [rbp + 0x134]
test r8d, r8d
jg 0x140004ae7
lea rdx, str.Failed_to_get_fan_config_info__n
jmp 0x14000531c
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [rsi + rbx*8 + 0x68630]
add rcx, 0x7530
cmp rax, rcx
jbe 0x140004a8f
jmp 0x14000534b
neg eax
cmp r11d, eax
jl 0x140004a97
jmp 0x140005386
mov r10d, dword [rbp + 4]
jmp 0x140004a9e
mov eax, dword [rbp + 0x94]
mov r9d, 0x64
movsxd r15, r10d
mov ecx, dword [rbx + r15*4 + 0x68090]
mov dword [rbx + r15*4 + 0x685b0], r11d
imul eax, eax, 0x64
cdq
idiv r8d
cmp eax, r9d
mov esi, eax
mov eax, dword [rbp + 0x98]
cmovg esi, r9d
cmp ecx, 0xffffffff
cmovne eax, ecx
imul eax, eax, 0x64
cdq
idiv r8d
cmp eax, r9d
cmovg eax, r9d
test r13, r13
je 0x140004b48
mov rcx, qword [rbp + 0x20]
mov dword [r13], r11d
mov dword [rcx], esi
test dil, dil
je 0x1400052f4
mov ecx, dword [rbx + r15*4 + 0x68330]
cmp ecx, 5
jg 0x140004bc1
test dil, dil
jne 0x140004bc1
test ecx, ecx
jns 0x140004be8
imul ecx, r8d
mov eax, 0xae147ae1
lea r8, [rbp + 0x88]
imul ecx
xor ecx, ecx
mov dword [rbp + 0x88], 3
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp + 0xa4], edx
mov dword [rbp + 0x98], edx
mov edx, r14d
call r12
test eax, eax
je 0x140004be4
mov r8d, dword [rbx + r15*4 + 0x68330]
lea rdx, str.Failed_to_set_new_fan_speed__d__n
mov ecx, 2
neg r8d
call fcn.14000ee60
jmp 0x140005326
cmp esi, 0xffffffff
jne 0x140004e21
test dil, dil
jne 0x140004e21
lea r8, str.Cannot_get_current_fan_speed_n
lea edx, [rsi + 4]
xor ecx, ecx
call fcn.14000f050
mov r10d, dword [rbp + 4]
mov r14d, dword [rbx + r15*4 + 0x68110]
mov eax, dword [rbx + r15*4 + 0x68210]
mov r12d, dword [rbx + r15*4 + 0x684b0]
mov r13d, dword [rbx + r15*4 + 0x683b0]
mov esi, dword [rbx + r15*4 + 0x68530]
mov dword [rbp + 0x28], eax
mov dword [rbp + 0x10], r12d
test r14d, r14d
jne 0x140004c33
test r13d, r13d
jne 0x140004c33
cmp eax, 0xffffff9c
jne 0x140004c33
test esi, esi
jne 0x140004c33
test r12d, r12d
je 0x1400052f4
mov byte [rbp + 0x3f0], 0
test r10d, r10d
js 0x140004c9f
mov rcx, qword [0x14006ce70]
mov r8, qword [0x14006ce68]
movabs rax, 0x1b7d6c3dda338b2b
sub rcx, r8
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r15, rdx
jae 0x140004c9f
imul r15, r15, 0x4a8
lea rcx, [r8 + 1]
lea rdx, [rbp + 0x3f0]
add rcx, r15
sub rdx, rcx
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rcx + rdx - 1], al
test al, al
jne 0x140004c90
lea rcx, [rbp + 0x3f0]
xor r15d, r15d
mov ebx, r15d
call fcn.140031500
mov rdi, rax
test rax, rax
je 0x140004d14
lea rcx, str.gfx90
call fcn.140031500
mov r12, rax
test rax, rax
je 0x140004d08
mov rcx, rax
call fcn.140044440
mov rcx, rdi
mov rbx, rax
call fcn.140044440
mov rdx, rbx
mov rcx, rax
call fcn.14002ee68
mov rbx, rax
test rax, rax
je 0x140004d00
lea rcx, [rbp + 0x3f0]
sub rcx, rdi
add rbx, rcx
mov rcx, r12
call fcn.14002ed70
mov rcx, rdi
call fcn.14002ed70
mov r12d, dword [rbp + 0x10]
mov ecx, dword [rbp + 0xb0]
test rbx, rbx
movabs r8, 0xffffffffffffff0
lea eax, [rcx + 1]
setne byte [rbp]
shl ecx, 4
lea eax, [rax + rax*2]
add ecx, 0xc
shl eax, 2
mov dword [rbp + 0x10], ecx
movsxd rdx, eax
mov dword [rbp + 0x14], eax
lea rax, [rdx + 0xf]
mov qword [rbp + 0x18], rdx
cmp rax, rdx
ja 0x140004d53
mov rax, r8
and rax, 0xfffffffffffffff0
call fcn.14003a960
movsxd rcx, ecx
sub rsp, rax
lea rax, [rcx + 0xf]
lea rdi, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
cmp rax, rcx
ja 0x140004d77
mov rax, r8
and rax, 0xfffffffffffffff0
call fcn.14003a960
sub rsp, rax
lea rbx, [rsp + 0x30]
test r14d, r14d
jg 0x140004d95
test esi, esi
jle 0x14000510c
mov r8, rdx
mov rcx, rdi
xor edx, edx
call fcn.140035a80
mov eax, dword [rbp + 0x14]
mov r8, qword [rbp + 0x20]
mov dword [rdi], eax
mov eax, dword [rbp + 0xb0]
xor edx, edx
mov rcx, rbx
mov dword [rdi + 8], eax
call fcn.140035a80
mov eax, dword [rbp + 0x10]
mov edx, dword [rbp + 8]
mov dword [rbx], eax
mov eax, dword [rbp + 0xb0]
mov r8, rdi
xor ecx, ecx
mov dword [rbx + 8], eax
call qword [rbp + 0x60]
test eax, eax
je 0x14000509d
cmp eax, 0xfffffff8
jne 0x140005084
mov r9, qword [rbp + 0x68]
test r9, r9
je 0x140005084
mov edx, dword [rbp + 8]
mov r8, rbx
xor ecx, ecx
call r9
test eax, eax
je 0x140004ebc
lea rdx, str.Failed_to_get_17.7.2_sysclocks__error__d__n
mov r8d, eax
mov ecx, 2
call fcn.14000ee60
jmp 0x140005326
mov r9d, eax
mov r8d, r11d
mov edx, r10d
mov byte [rsp + 0x20], dil
call fcn.140003780
mov r8d, dword [rbp + 4]
mov dword [rsp + 0x28], eax
lea rdx, str.GPU__d_temp___d__old_fan_speed___d__new_fan_speed___d__r_n
mov r9d, r11d
mov ecx, 2
mov dword [rsp + 0x20], esi
mov ebx, eax
call fcn.14000ee60
mov eax, 0x51eb851f
lea r8, [rbp + 0x88]
imul ebx, dword [rbp + 0x134]
xor ecx, ecx
mov dword [rbp + 0x88], 3
imul ebx
sar edx, 5
lea rbx, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp + 0xa4], edx
mov dword [rbx + r15*4 + 0x68090], edx
mov dword [rbp + 0x98], edx
mov dword [rbp + 0x94], edx
mov edx, r14d
call r12
test eax, eax
je 0x140004be4
lea rdx, str.Failed_to_set_fan_info__n
jmp 0x14000531c
movzx eax, byte [rbp]
test r14d, r14d
jle 0x140004f3a
mov edx, 2
lea r8d, [rdx - 1]
test al, al
je 0x140004f07
cmp dword [rbx + 8], r8d
jle 0x140004f3a
lea rcx, [rbx + 0x24]
nop dword [rax]
cmp dword [rcx - 8], r15d
je 0x140004ef6
mov eax, r14d
imul eax, eax, 0x64
mov dword [rcx - 8], eax
cmp dword [rcx], r15d
jne 0x140004ef6
mov dword [rcx], edx
inc r8d
add edx, edx
add rcx, 0x10
cmp r8d, dword [rbx + 8]
jl 0x140004ee0
jmp 0x140004f36
cmp dword [rbx + 8], r8d
jle 0x140004f3a
lea rcx, [rbx + 0x24]
cmp dword [rcx - 8], r15d
je 0x140004f27
mov eax, r14d
imul eax, eax, 0x64
mov dword [rcx - 8], eax
cmp dword [rcx], r15d
jne 0x140004f27
mov dword [rcx], edx
inc r8d
add edx, edx
add rcx, 0x10
cmp r8d, dword [rbx + 8]
jl 0x140004f11
movzx eax, byte [rbp]
test esi, esi
jle 0x140004fbb
mov edx, 1
lea r8d, [rdx + 1]
test al, al
je 0x140004f81
cmp dword [rbx + 8], edx
jle 0x140004fbb
lea rcx, [rbx + 0x20]
cmp dword [rcx - 4], r15d
je 0x140004f74
cmp dword [rcx], esi
jne 0x140004f65
lea eax, [rsi + 1]
mov dword [rcx], eax
jmp 0x140004f67
mov dword [rcx], esi
cmp dword [rcx + 4], r15d
jne 0x140004f71
mov dword [rcx + 4], r8d
add r8d, r8d
inc edx
add rcx, 0x10
cmp edx, dword [rbx + 8]
jl 0x140004f54
jmp 0x140004fbb
cmp dword [rbx + 8], edx
jle 0x140004fbb
lea rcx, [rbx + 0x20]
nop word [rax + rax]
cmp dword [rcx - 4], r15d
je 0x140004fb0
cmp dword [rcx], esi
jne 0x140004fa1
lea eax, [rsi + 1]
mov dword [rcx], eax
jmp 0x140004fa3
mov dword [rcx], esi
cmp dword [rcx + 4], r15d
jne 0x140004fad
mov dword [rcx + 4], r8d
add r8d, r8d
inc edx
add rcx, 0x10
cmp edx, dword [rbx + 8]
jl 0x140004f90
mov esi, dword [rbp + 8]
mov r8, rbx
xor ecx, ecx
mov edx, esi
mov dword [rbx + 4], 3
call qword [rbp + 0x58]
mov r14d, dword [rbp + 4]
test eax, eax
je 0x140004fe8
mov r8d, r14d
lea rdx, str.Failed_to_set_new_effective_core_clock_for_GPU__d__17.7.2__r_n
xor ecx, ecx
call fcn.14000ee60
mov rdx, qword [rbp + 0x18]
test r13d, r13d
jg 0x140004ffa
test r12d, r12d
jle 0x140005296
mov r8, rdx
mov rcx, rdi
xor edx, edx
call fcn.140035a80
mov eax, dword [rbp + 0x14]
mov r8, qword [rbp + 0x20]
mov dword [rdi], eax
mov eax, dword [rbp + 0xb0]
xor edx, edx
mov rcx, rbx
mov dword [rdi + 8], eax
call fcn.140035a80
mov eax, dword [rbp + 0x10]
mov r8, rdi
mov dword [rbx], eax
mov eax, dword [rbp + 0xb0]
mov edx, esi
xor ecx, ecx
mov dword [rbx + 8], eax
call qword [rbp + 0x40]
test eax, eax
je 0x14000522c
cmp eax, 0xfffffff8
jne 0x140005213
mov r9, qword [rbp + 0x50]
test r9, r9
je 0x140005213
mov r8, rbx
mov edx, esi
xor ecx, ecx
call r9
test eax, eax
je 0x140005118
lea rdx, str.Failed_to_get_17.7.2_memclocks__error__d__n
mov r8d, eax
mov ecx, 2
call fcn.14000ee60
jmp 0x140005326
lea rdx, str.Failed_to_get_sysclocks__error__d__n
mov r8d, eax
mov ecx, 2
call fcn.14000ee60
jmp 0x140005326
test r14d, r14d
jle 0x1400050c0
mov ecx, r15d
cmp dword [rdi + 8], ecx
jle 0x1400050c0
imul r14d, r14d, 0x64
lea rax, [rdi + 0xc]
mov dword [rax], r14d
inc ecx
lea rax, [rax + 0xc]
cmp ecx, dword [rdi + 8]
jl 0x1400050b2
test esi, esi
jle 0x1400050dd
mov ecx, r15d
cmp dword [rdi + 8], ecx
jle 0x1400050dd
lea rax, [rdi + 0x10]
mov dword [rax], esi
inc ecx
lea rax, [rax + 0xc]
cmp ecx, dword [rdi + 8]
jl 0x1400050d0
mov esi, dword [rbp + 8]
mov r8, rdi
xor ecx, ecx
mov edx, esi
mov dword [rdi + 4], 3
call qword [rbp + 0x38]
mov r14d, dword [rbp + 4]
test eax, eax
je 0x140004fe8
mov r8d, r14d
lea rdx, str.Failed_to_set_new_effective_core_clock_for_GPU__d_r_n
jmp 0x140004fe1
mov esi, dword [rbp + 8]
mov r14d, dword [rbp + 4]
jmp 0x140004fec
movzx eax, byte [rbp]
test r13d, r13d
jle 0x14000518c
mov edx, 1
test al, al
je 0x14000515a
cmp dword [rbx + 8], edx
jle 0x14000518c
lea rcx, [rbx + 0x1c]
cmp dword [rcx], r15d
je 0x14000514d
cmp dword [rcx + 0xc], 4
je 0x14000514d
mov eax, r13d
mov dword [rcx + 8], 1
imul eax, eax, 0x64
mov dword [rcx], eax
inc edx
add rcx, 0x10
cmp edx, dword [rbx + 8]
jl 0x140005133
jmp 0x140005188
cmp dword [rbx + 8], edx
jle 0x14000518c
lea rcx, [rbx + 0x1c]
cmp dword [rcx], r15d
je 0x14000517d
cmp dword [rcx + 0xc], 4
je 0x14000517d
mov eax, r13d
mov dword [rcx + 8], 1
imul eax, eax, 0x64
mov dword [rcx], eax
inc edx
add rcx, 0x10
cmp edx, dword [rbx + 8]
jl 0x140005163
movzx eax, byte [rbp]
test r12d, r12d
jle 0x1400051f1
mov ecx, 1
test al, al
je 0x1400051c6
cmp dword [rbx + 8], ecx
jle 0x1400051f1
lea rax, [rbx + 0x1c]
cmp dword [rax + 0xc], 4
je 0x1400051b9
cmp dword [rax], r15d
je 0x1400051b9
mov dword [rax + 4], r12d
mov dword [rax + 8], 1
inc ecx
add rax, 0x10
cmp ecx, dword [rbx + 8]
jl 0x1400051a3
jmp 0x1400051f1
cmp dword [rbx + 8], ecx
jle 0x1400051f1
lea rax, [rbx + 0x1c]
nop
cmp dword [rax + 0xc], 4
je 0x1400051e6
cmp dword [rax], r15d
je 0x1400051e6
mov dword [rax + 4], r12d
mov dword [rax + 8], 1
inc ecx
add rax, 0x10
cmp ecx, dword [rbx + 8]
jl 0x1400051d0
mov r8, rbx
mov edx, esi
xor ecx, ecx
mov dword [rbx + 4], 3
call qword [rbp + 0x70]
test eax, eax
je 0x140005296
lea rdx, str.Failed_to_set_new_effective_memory_clock_for_GPU__d__17.7.2__r_n
jmp 0x14000528c
lea rdx, str.Failed_to_get_memclocks__error__d__n
mov r8d, eax
mov ecx, 2
call fcn.14000ee60
jmp 0x140005326
test r13d, r13d
jle 0x14000524f
mov eax, r15d
cmp dword [rdi + 8], eax
jle 0x14000524f
imul r13d, r13d, 0x64
lea rcx, [rdi + 0xc]
mov dword [rcx], r13d
inc eax
lea rcx, [rcx + 0xc]
cmp eax, dword [rdi + 8]
jl 0x140005241
test r12d, r12d
jle 0x140005270
cmp dword [rdi + 8], r15d
jle 0x140005270
lea rax, [rdi + 0x10]
nop
mov dword [rax], r12d
inc r15d
lea rax, [rax + 0xc]
cmp r15d, dword [rdi + 8]
jl 0x140005260
mov r8, rdi
mov edx, esi
xor ecx, ecx
mov dword [rdi + 4], 3
call qword [rbp + 0x78]
test eax, eax
je 0x140005296
lea rdx, str.Failed_to_set_new_effective_memory_clock_for_GPU__d_r_n
mov r8d, r14d
xor ecx, ecx
call fcn.14000ee60
mov ebx, dword [rbp + 0x28]
cmp ebx, 0xffffff9c
je 0x1400052f4
xor eax, eax
lea r8, [rbp + 0x78]
mov edx, esi
xor ecx, ecx
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x80], eax
call qword [rbp + 0x30]
xor ecx, ecx
test eax, eax
je 0x1400052cc
lea rdx, str.Power_control_failed_for_GPU__d_n
mov r8d, r14d
call fcn.14000ee60
jmp 0x140005326
lea r8, [rbp + 0x78]
mov edx, esi
mov dword [rbp + 0x78], 3
mov dword [rbp + 0x7c], ebx
call qword [rbp + 0x48]
test eax, eax
je 0x1400052f4
lea rdx, str.Failed_to_set_new_Power_Control_treshold_for_GPU__d_n
mov r8d, r14d
xor ecx, ecx
call fcn.14000ee60
mov eax, 1
jmp 0x140005328
mov r8d, dword [rbp + 4]
lea rdx, str.GPU__d:_got_incorrect_temperature__d__ignore_n
mov r9d, r11d
mov ecx, 2
call fcn.14000ee60
jmp 0x140005326
lea rdx, str.ADL2s_API_is_missing__n
mov ecx, 2
call fcn.14000ee60
xor eax, eax
mov rcx, qword [rbp + 0x4c0]
xor rcx, rbp
call fcn.14002e450
lea rsp, [rbp + 0x4d8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9d, dword [rbp + 4]
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 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
lea r8, str.GPU__d_reached_CLOSE_temperature___d____d_._n
mov r9d, r10d
mov edx, 3
xor ecx, ecx
mov dword [rsp + 0x20], r11d
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