Function at 0x14000e580
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 + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140105358]
xor rax, rsp
mov qword [rbp + 0x450], rax
mov r13, r9
movsxd r12, r8d
mov dword [rsp + 0x38], edx
mov rsi, rcx
mov rax, qword [rbp + 0x4d0]
mov qword [rsp + 0x40], 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 r15, [rax*4]
mov rax, qword [rcx + 0x60]
mov r8d, dword [r15 + rax]
lea rdx, str._sys_class_hwmon_hwmon_d_temp1_input
lea rcx, [rbp + 0x3e0]
call fcn.1400852c4
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 0x14000e65c
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
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 0x14000e666
movzx eax, word [0x1400da98c]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], bl
jne 0x14000e682
movzx eax, word [0x1400da994]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14008653c
mov qword [rbp + 0x358], rax
test rax, rax
je 0x14000e6d3
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14008bf40
mov dword [rbp + 0x350], 1
jmp 0x14000e6d8
call fcn.140087050
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000e795
test byte [rbp + 0x350], 1
je 0x14000e734
mov r9, rcx
mov edx, 1
lea r8d, [rdx + 0x63]
lea rcx, [rbp + 0x370]
call fcn.140087fdc
mov rdi, rax
cmp eax, 0x64
je 0x14000e72d
mov rcx, qword [rbp + 0x358]
call fcn.14008842c
test eax, eax
jne 0x14000e72d
mov rcx, qword [rbp + 0x358]
call fcn.140088454
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000e758
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
xor eax, eax
mov qword [rbp + 0x358], rax
mov word [rsp + 0x50], ax
test edi, edi
jle 0x14000e795
movsxd rax, edi
cmp rax, 0x65
jae 0x14000e78f
mov byte [rbp + rax + 0x370], bl
lea rcx, [rbp + 0x370]
call fcn.140085c14
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
mov ebx, edx
sar ebx, 6
mov eax, ebx
shr eax, 0x1f
add ebx, eax
jmp 0x14000e795
call fcn.140085d40
int3
mov rax, qword [rsi + 0x60]
mov r8d, dword [r15 + rax]
lea rdx, str._sys_class_hwmon_hwmon_d_pwm1
lea rcx, [rbp + 0x3e0]
call fcn.1400852c4
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 0x14000e805
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
xor r15d, r15d
mov qword [rbp + 0x358], r15
mov word [rsp + 0x50], r15w
mov r8, qword [rsp + 0x30]
jmp 0x14000e808
xor r15d, r15d
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], r14b
jne 0x14000e812
movzx eax, word [0x1400da98c]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
nop
lea rdx, [rdx + 1]
cmp byte [rdx], r14b
jne 0x14000e830
movzx eax, word [0x1400da994]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14008653c
mov qword [rbp + 0x358], rax
test rax, rax
je 0x14000e882
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14008bf40
mov dword [rbp + 0x350], 1
jmp 0x14000e887
call fcn.140087050
mov edi, r15d
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000e959
test byte [rbp + 0x350], 1
je 0x14000e8e6
mov r9, rcx
mov edx, 1
lea r8d, [rdx + 0x63]
lea rcx, [rbp + 0x370]
call fcn.140087fdc
mov rdi, rax
cmp eax, 0x64
je 0x14000e8df
mov rcx, qword [rbp + 0x358]
call fcn.14008842c
test eax, eax
jne 0x14000e8df
mov rcx, qword [rbp + 0x358]
call fcn.140088454
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000e90c
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
mov rcx, r15
mov qword [rbp + 0x358], rcx
mov word [rsp + 0x50], r15w
test edi, edi
jle 0x14000e959
movsxd rax, edi
cmp rax, 0x65
jae 0x14000e953
mov byte [rbp + rax + 0x370], r14b
lea rcx, [rbp + 0x370]
call fcn.140085c14
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 0x14000e959
call fcn.140085d40
int3
lea eax, [rbx + 0x64]
cmp eax, 0x15e
ja 0x14000ee62
lea r8, sym.NsCpuCNMiner.exe_dfJG:nOgkTYTR8c_hIqxq0tLdb_h2_D_bob_7
movzx edi, byte [rbp + 0x4d8]
test dil, dil
jne 0x14000ea91
mov eax, dword [r8 + r12*4 + 0x130550]
test eax, eax
je 0x14000ea91
jle 0x14000ea49
cmp ebx, eax
jl 0x14000ea91
cmp byte [r12 + r8 + 0x1306f0], dil
jne 0x14000e9ee
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
mov r9d, r12d
lea r8, str.GPU__d_reached_STOP_temperature___d____d___stop_mining_on_this_GPU._n
mov edx, 3
xor ecx, ecx
call fcn.140015020
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea r8, sym.NsCpuCNMiner.exe_dfJG:nOgkTYTR8c_hIqxq0tLdb_h2_D_bob_7
mov qword [r8 + r12*8 + 0x130b60], rax
mov byte [r12 + r8 + 0x1306f0], 1
mov rcx, qword [rbp + 0x358]
jmp 0x14000ea91
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea r8, sym.NsCpuCNMiner.exe_dfJG:nOgkTYTR8c_hIqxq0tLdb_h2_D_bob_7
mov rcx, qword [r8 + r12*8 + 0x130b60]
add rcx, 0x7530
cmp rax, rcx
jbe 0x14000e9e2
mov r9d, r12d
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.140015020
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.140015020
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140034e90
int3
neg eax
cmp ebx, eax
jl 0x14000ea91
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
mov r9d, r12d
lea r8, str.GPU__d_reached_CLOSE_temperature___d____d_._n
mov edx, 3
xor ecx, ecx
call fcn.140015020
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.140015020
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140034e90
int3
lea rax, [r12*4]
mov dword [rax + r8 + 0x130ae0], ebx
test r13, r13
je 0x14000eabb
mov dword [r13], ebx
mov rdx, qword [rsp + 0x40]
mov dword [rdx], r14d
test dil, dil
je 0x14000ee45
lea rsi, [rax + 0x1307e0]
add rsi, r8
mov eax, dword [rsi]
cmp eax, 5
jg 0x14000ec5c
test dil, dil
jne 0x14000ec5c
test eax, eax
jns 0x14000ee45
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 0x14000eb2a
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
mov qword [rbp + 0x358], r15
mov word [rsp + 0x50], r15w
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14000eb34
movzx eax, word [0x1400d6900]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], 0
jne 0x14000eb51
movzx eax, word [0x1400da994]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14008653c
mov qword [rbp + 0x358], rax
test rax, rax
je 0x14000eba3
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14008bf40
mov dword [rbp + 0x350], 2
jmp 0x14000ebb1
call fcn.140087050
cmp dword [rax], 0
jne 0x14000ec44
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, [0x1400d62d0]
lea rcx, [rbp + 0x370]
call fcn.1400852c4
lea rax, [rbp + 0x370]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000ebf0
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000ee45
mov eax, dword [rbp + 0x350]
shr eax, 1
test al, 1
je 0x14000ee1f
movsxd r8, ebx
mov r9, rcx
mov edx, 1
lea rcx, [rbp + 0x370]
call fcn.1400866d8
mov rcx, qword [rbp + 0x358]
cmp eax, ebx
je 0x14000ee1f
jmp 0x14000ee13
lea r8, str.Failed_to_set_new_fan_speed__check_if_miner_has_root_access__n
mov edx, 3
xor ecx, ecx
call fcn.140015020
jmp 0x14000ee77
cmp r14d, 0xffffffff
jne 0x14000ec85
test dil, dil
jne 0x14000ec85
lea r8, str.Cannot_get_current_fan_speed_n
lea edx, [r14 + 4]
xor ecx, ecx
call fcn.140015020
mov rcx, qword [rbp + 0x358]
jmp 0x14000ee45
mov byte [rsp + 0x20], dil
mov r9d, r14d
mov r8d, ebx
mov edx, r12d
call fcn.14000ce30
mov edi, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
mov r9d, ebx
mov r8d, dword [rsp + 0x38]
lea rdx, str.GPU__d_temp___d__old_fan_speed___d__new_fan_speed___d__r_n
mov ecx, 2
call fcn.140014e30
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 0x14000ed0c
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
mov qword [rbp + 0x358], r15
mov word [rsp + 0x50], r15w
mov r8, qword [rsp + 0x30]
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x14000ed16
movzx eax, word [0x1400d6900]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], 0
jne 0x14000ed33
movzx eax, word [0x1400da994]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14008653c
mov qword [rbp + 0x358], rax
test rax, rax
je 0x14000ed85
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14008bf40
mov dword [rbp + 0x350], 2
jmp 0x14000ed93
call fcn.140087050
cmp dword [rax], 0
jne 0x14000ec44
imul edi, edi, 0xff
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, [0x1400d62d0]
lea rcx, [rbp + 0x370]
call fcn.1400852c4
lea rax, [rbp + 0x370]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000edd0
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000ee45
mov eax, dword [rbp + 0x350]
shr eax, 1
test al, 1
je 0x14000ee1f
movsxd r8, ebx
mov r9, rcx
mov edx, 1
lea rcx, [rbp + 0x370]
call fcn.1400866d8
cmp eax, ebx
je 0x14000ee18
mov rcx, qword [rbp + 0x358]
call fcn.140088454
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000ee45
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
mov rcx, r15
mov word [rsp + 0x50], r15w
mov qword [rbp + 0x358], rcx
test rcx, rcx
je 0x14000ee5b
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
mov eax, 1
jmp 0x14000ee96
mov r8d, ebx
lea rdx, str.Got_incorrect_temperature__d__ignore_n
mov ecx, 2
call fcn.140014e30
nop
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000ee94
call fcn.140087c90
mov rcx, qword [rbp + 0x358]
call fcn.1400867e4
xor eax, eax
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140084590
add rsp, 0x568
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret