Function at 0x140002d70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x468]
sub rsp, 0x568
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14005b740]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov r13, r9
movsxd r15, r8d
mov rsi, rcx
mov rax, qword [rbp + 0x4d0]
mov qword [rsp + 0x38], rax
xor edi, edi
mov qword [rbp + 0x358], rdi
mov dword [rbp + 0x350], edi
mov word [rsp + 0x50], di
mov r14d, edi
mov ebx, edi
movsxd rax, edx
lea r12, [rax*4]
mov rax, qword [rcx + 0x60]
mov r8d, dword [r12 + rax]
lea rdx, str._sys_class_hwmon_hwmon_d_temp1_input
lea rcx, [rbp + 0x3e0]
call fcn.14002aef0
lea r8, [rbp + 0x3e0]
mov qword [rsp + 0x30], r8
mov byte [rbp + 0x360], bl
xor eax, eax
mov dword [rbp + 0x361], eax
mov byte [rbp + 0x365], al
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140002e48
call fcn.14002dd78
mov rcx, qword [rbp + 0x358]
call fcn.14002ce10
mov qword [rbp + 0x358], rdi
mov word [rsp + 0x50], di
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], bl
jne 0x140002e52
movzx eax, word [0x140054a20]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
nop
lea rdx, [rdx + 1]
cmp byte [rdx], bl
jne 0x140002e70
movzx eax, word [0x140054a24]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14002cb68
mov qword [rbp + 0x358], rax
test rax, rax
je 0x140002ec1
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140031054
mov dword [rbp + 0x350], 1
jmp 0x140002ec6
call fcn.14002d584
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140002f83
test byte [rbp + 0x350], 1
je 0x140002f22
mov r9, rcx
mov edx, 1
lea r8d, [rdx + 0x63]
lea rcx, [rbp + 0x370]
call fcn.14002e0c4
mov rdi, rax
cmp eax, 0x64
je 0x140002f1b
mov rcx, qword [rbp + 0x358]
call fcn.14002eac4
test eax, eax
jne 0x140002f1b
mov rcx, qword [rbp + 0x358]
call fcn.14002eaec
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140002f46
call fcn.14002dd78
mov rcx, qword [rbp + 0x358]
call fcn.14002ce10
xor eax, eax
mov qword [rbp + 0x358], rax
mov word [rsp + 0x50], ax
test edi, edi
jle 0x140002f83
movsxd rax, edi
cmp rax, 0x65
jae 0x140002f7d
mov byte [rbp + rax + 0x370], bl
lea rcx, [rbp + 0x370]
call fcn.14002b75c
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
mov ebx, edx
sar ebx, 6
mov eax, ebx
shr eax, 0x1f
add ebx, eax
jmp 0x140002f83
call fcn.14002ba2c
int3
mov rax, qword [rsi + 0x60]
mov r8d, dword [r12 + rax]
lea rdx, str._sys_class_hwmon_hwmon_d_pwm1
lea rcx, [rbp + 0x3e0]
call fcn.14002aef0
lea r8, [rbp + 0x3e0]
mov qword [rsp + 0x30], r8
mov byte [rbp + 0x360], r14b
xor eax, eax
mov dword [rbp + 0x361], eax
mov byte [rbp + 0x365], al
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140002ff3
call fcn.14002dd78
mov rcx, qword [rbp + 0x358]
call fcn.14002ce10
xor r12d, r12d
mov qword [rbp + 0x358], r12
mov word [rsp + 0x50], r12w
mov r8, qword [rsp + 0x30]
jmp 0x140002ff6
xor r12d, r12d
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], r14b
jne 0x140003000
movzx eax, word [0x140054a20]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
nop dword [rax]
lea rdx, [rdx + 1]
cmp byte [rdx], r14b
jne 0x140003020
movzx eax, word [0x140054a24]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14002cb68
mov qword [rbp + 0x358], rax
test rax, rax
je 0x140003072
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140031054
mov dword [rbp + 0x350], 1
jmp 0x140003077
call fcn.14002d584
mov edi, r12d
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140003149
test byte [rbp + 0x350], 1
je 0x1400030d6
mov r9, rcx
mov edx, 1
lea r8d, [rdx + 0x63]
lea rcx, [rbp + 0x370]
call fcn.14002e0c4
mov rdi, rax
cmp eax, 0x64
je 0x1400030cf
mov rcx, qword [rbp + 0x358]
call fcn.14002eac4
test eax, eax
jne 0x1400030cf
mov rcx, qword [rbp + 0x358]
call fcn.14002eaec
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x1400030fc
call fcn.14002dd78
mov rcx, qword [rbp + 0x358]
call fcn.14002ce10
mov rcx, r12
mov qword [rbp + 0x358], rcx
mov word [rsp + 0x50], r12w
test edi, edi
jle 0x140003149
movsxd rax, edi
cmp rax, 0x65
jae 0x140003143
mov byte [rbp + rax + 0x370], r14b
lea rcx, [rbp + 0x370]
call fcn.14002b75c
mov ecx, eax
imul ecx, ecx, 0x64
mov eax, 0x80808081
imul ecx
lea r14d, [rcx + rdx]
sar r14d, 7
mov eax, r14d
shr eax, 0x1f
add r14d, eax
mov rcx, qword [rbp + 0x358]
jmp 0x140003149
call fcn.14002ba2c
int3
lea eax, [rbx + 0x64]
cmp eax, 0x15e
ja 0x140003652
lea r8, sym.ZecMiner64.exe__Co9eEk_rc_U8Qzt_M_rBCXNPgLr_62n_K__
movzx edi, byte [rbp + 0x4d8]
test dil, dil
jne 0x140003281
mov eax, dword [r8 + r15*4 + 0x617b0]
test eax, eax
je 0x140003281
jle 0x140003239
cmp ebx, eax
jl 0x140003281
cmp byte [r15 + r8 + 0x61930], dil
jne 0x1400031de
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
mov r9d, r15d
lea r8, str.GPU__d_reached_STOP_temperature___d____d___stop_mining_on_this_GPU._n
mov edx, 3
xor ecx, ecx
call fcn.1400056c0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea r8, sym.ZecMiner64.exe__Co9eEk_rc_U8Qzt_M_rBCXNPgLr_62n_K__
mov qword [r8 + r15*8 + 0x61c50], rax
mov byte [r15 + r8 + 0x61930], 1
mov rcx, qword [rbp + 0x358]
jmp 0x140003281
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea r8, sym.ZecMiner64.exe__Co9eEk_rc_U8Qzt_M_rBCXNPgLr_62n_K__
mov rcx, qword [r8 + r15*8 + 0x61c50]
add rcx, 0x7530
cmp rax, rcx
jbe 0x1400031d2
mov r9d, r15d
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.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
neg eax
cmp ebx, eax
jl 0x140003281
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
mov r9d, r15d
lea r8, str.GPU__d_reached_CLOSE_temperature___d____d_._n
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
lea rax, [r15*4]
mov dword [rax + r8 + 0x61bd0], ebx
test r13, r13
je 0x1400032ab
mov dword [r13], ebx
mov rdx, qword [rsp + 0x38]
mov dword [rdx], r14d
test dil, dil
je 0x140003635
lea rsi, [rax + 0x61950]
add rsi, r8
mov eax, dword [rsi]
cmp eax, 5
jg 0x14000344c
test dil, dil
jne 0x14000344c
test eax, eax
jns 0x140003635
lea r8, [rbp + 0x3e0]
mov qword [rsp + 0x30], r8
mov byte [rbp + 0x360], dil
xor eax, eax
mov dword [rbp + 0x361], eax
mov byte [rbp + 0x365], al
test rcx, rcx
je 0x14000331a
call fcn.14002dd78
mov rcx, qword [rbp + 0x358]
call fcn.14002ce10
mov qword [rbp + 0x358], r12
mov word [rsp + 0x50], r12w
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140003324
movzx eax, word [0x140050c54]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], 0
jne 0x140003341
movzx eax, word [0x140054a24]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14002cb68
mov qword [rbp + 0x358], rax
test rax, rax
je 0x140003393
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140031054
mov dword [rbp + 0x350], 2
jmp 0x1400033a1
call fcn.14002d584
cmp dword [rax], 0
jne 0x140003434
mov ecx, dword [rsi]
imul ecx, ecx, 0xffffff01
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, [0x140050748]
lea rcx, [rbp + 0x370]
call fcn.14002aef0
lea rax, [rbp + 0x370]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400033e0
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140003635
mov eax, dword [rbp + 0x350]
shr eax, 1
test al, 1
je 0x14000360f
movsxd r8, ebx
mov r9, rcx
mov edx, 1
lea rcx, [rbp + 0x370]
call fcn.14002cd04
mov rcx, qword [rbp + 0x358]
cmp eax, ebx
je 0x14000360f
jmp 0x140003603
lea r8, str.Failed_to_set_new_fan_speed__check_if_miner_has_root_access__n
mov edx, 3
xor ecx, ecx
call fcn.1400056c0
jmp 0x14000366a
cmp r14d, 0xffffffff
jne 0x140003475
test dil, dil
jne 0x140003475
lea r8, str.Cannot_get_current_fan_speed_n
lea edx, [r14 + 4]
xor ecx, ecx
call fcn.1400056c0
mov rcx, qword [rbp + 0x358]
jmp 0x140003635
mov byte [rsp + 0x20], dil
mov r9d, r14d
mov r8d, ebx
mov edx, r15d
call fcn.1400012a0
mov edi, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
mov r9d, ebx
mov r8d, r15d
lea rdx, str.GPU__d_temp___d__old_fan_speed___d__new_fan_speed___d__r_n
mov ecx, 2
call fcn.1400054d0
lea r8, [rbp + 0x3e0]
mov qword [rsp + 0x30], r8
mov byte [rbp + 0x360], 0
xor eax, eax
mov dword [rbp + 0x361], eax
mov byte [rbp + 0x365], al
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x1400034fa
call fcn.14002dd78
mov rcx, qword [rbp + 0x358]
call fcn.14002ce10
mov qword [rbp + 0x358], r12
mov word [rsp + 0x50], r12w
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140003504
movzx eax, word [0x140050c54]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], 0
jne 0x140003521
movzx eax, word [0x140054a24]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14002cb68
mov qword [rbp + 0x358], rax
test rax, rax
je 0x140003573
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140031054
mov dword [rbp + 0x350], 2
jmp 0x140003581
call fcn.14002d584
cmp dword [rax], 0
jne 0x140003434
imul edi, edi, 0xff
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, [0x140050748]
lea rcx, [rbp + 0x370]
call fcn.14002aef0
lea rax, [rbp + 0x370]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400035c0
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140003635
mov eax, dword [rbp + 0x350]
shr eax, 1
test al, 1
je 0x14000360f
movsxd r8, ebx
mov r9, rcx
mov edx, 1
lea rcx, [rbp + 0x370]
call fcn.14002cd04
cmp eax, ebx
je 0x140003608
mov rcx, qword [rbp + 0x358]
call fcn.14002eaec
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140003635
call fcn.14002dd78
mov rcx, qword [rbp + 0x358]
call fcn.14002ce10
mov rcx, r12
mov word [rsp + 0x50], r12w
mov qword [rbp + 0x358], rcx
test rcx, rcx
je 0x14000364b
call fcn.14002dd78
mov rcx, qword [rbp + 0x358]
call fcn.14002ce10
mov eax, 1
jmp 0x140003689
mov r9d, ebx
mov r8d, r15d
lea rdx, str.GPU__d:_got_incorrect_temperature__d__ignore_n
mov ecx, 2
call fcn.1400054d0
nop
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140003687
call fcn.14002dd78
mov rcx, qword [rbp + 0x358]
call fcn.14002ce10
xor eax, eax
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.14002aed0
add rsp, 0x568
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret