Function at 0x1400053d0
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 [0x140061740]
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.14002ecd0
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 0x1400054a8
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
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 0x1400054b2
movzx eax, word [0x14005a880]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
nop
lea rdx, [rdx + 1]
cmp byte [rdx], bl
jne 0x1400054d0
movzx eax, word [0x14005a884]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.1400306b8
mov qword [rbp + 0x358], rax
test rax, rax
je 0x140005521
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400349ac
mov dword [rbp + 0x350], 1
jmp 0x140005526
call fcn.1400310d4
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x1400055e3
test byte [rbp + 0x350], 1
je 0x140005582
mov r9, rcx
mov edx, 1
lea r8d, [rdx + 0x63]
lea rcx, [rbp + 0x370]
call fcn.140031bd0
mov rdi, rax
cmp eax, 0x64
je 0x14000557b
mov rcx, qword [rbp + 0x358]
call fcn.1400324c8
test eax, eax
jne 0x14000557b
mov rcx, qword [rbp + 0x358]
call fcn.1400324f0
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x1400055a6
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
xor eax, eax
mov qword [rbp + 0x358], rax
mov word [rsp + 0x50], ax
test edi, edi
jle 0x1400055e3
movsxd rax, edi
cmp rax, 0x65
jae 0x1400055dd
mov byte [rbp + rax + 0x370], bl
lea rcx, [rbp + 0x370]
call fcn.14002f048
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
mov ebx, edx
sar ebx, 6
mov eax, ebx
shr eax, 0x1f
add ebx, eax
jmp 0x1400055e3
call fcn.14002f174
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.14002ecd0
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 0x140005653
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
xor r12d, r12d
mov qword [rbp + 0x358], r12
mov word [rsp + 0x50], r12w
mov r8, qword [rsp + 0x30]
jmp 0x140005656
xor r12d, r12d
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], r14b
jne 0x140005660
movzx eax, word [0x14005a880]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
nop dword [rax]
lea rdx, [rdx + 1]
cmp byte [rdx], r14b
jne 0x140005680
movzx eax, word [0x14005a884]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.1400306b8
mov qword [rbp + 0x358], rax
test rax, rax
je 0x1400056d2
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400349ac
mov dword [rbp + 0x350], 1
jmp 0x1400056d7
call fcn.1400310d4
mov edi, r12d
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x1400057a9
test byte [rbp + 0x350], 1
je 0x140005736
mov r9, rcx
mov edx, 1
lea r8d, [rdx + 0x63]
lea rcx, [rbp + 0x370]
call fcn.140031bd0
mov rdi, rax
cmp eax, 0x64
je 0x14000572f
mov rcx, qword [rbp + 0x358]
call fcn.1400324c8
test eax, eax
jne 0x14000572f
mov rcx, qword [rbp + 0x358]
call fcn.1400324f0
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000575c
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
mov rcx, r12
mov qword [rbp + 0x358], rcx
mov word [rsp + 0x50], r12w
test edi, edi
jle 0x1400057a9
movsxd rax, edi
cmp rax, 0x65
jae 0x1400057a3
mov byte [rbp + rax + 0x370], r14b
lea rcx, [rbp + 0x370]
call fcn.14002f048
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 0x1400057a9
call fcn.14002f174
int3
lea eax, [rbx + 0x64]
cmp eax, 0x15e
ja 0x140005cb2
lea r8, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
movzx edi, byte [rbp + 0x4d8]
test dil, dil
jne 0x1400058e1
mov eax, dword [r8 + r15*4 + 0x68190]
test eax, eax
je 0x1400058e1
jle 0x140005899
cmp ebx, eax
jl 0x1400058e1
cmp byte [r15 + r8 + 0x68310], dil
jne 0x14000583e
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.14000f050
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea r8, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
mov qword [r8 + r15*8 + 0x68630], rax
mov byte [r15 + r8 + 0x68310], 1
mov rcx, qword [rbp + 0x358]
jmp 0x1400058e1
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea r8, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
mov rcx, qword [r8 + r15*8 + 0x68630]
add rcx, 0x7530
cmp rax, rcx
jbe 0x140005832
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.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
neg eax
cmp ebx, eax
jl 0x1400058e1
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.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
lea rax, [r15*4]
mov dword [rax + r8 + 0x685b0], ebx
test r13, r13
je 0x14000590b
mov dword [r13], ebx
mov rdx, qword [rsp + 0x38]
mov dword [rdx], r14d
test dil, dil
je 0x140005c95
lea rsi, [rax + 0x68330]
add rsi, r8
mov eax, dword [rsi]
cmp eax, 5
jg 0x140005aac
test dil, dil
jne 0x140005aac
test eax, eax
jns 0x140005c95
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 0x14000597a
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
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 0x140005984
movzx eax, word [0x1400570cc]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], 0
jne 0x1400059a1
movzx eax, word [0x14005a884]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.1400306b8
mov qword [rbp + 0x358], rax
test rax, rax
je 0x1400059f3
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400349ac
mov dword [rbp + 0x350], 2
jmp 0x140005a01
call fcn.1400310d4
cmp dword [rax], 0
jne 0x140005a94
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, [0x140056a98]
lea rcx, [rbp + 0x370]
call fcn.14002ecd0
lea rax, [rbp + 0x370]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140005a40
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140005c95
mov eax, dword [rbp + 0x350]
shr eax, 1
test al, 1
je 0x140005c6f
movsxd r8, ebx
mov r9, rcx
mov edx, 1
lea rcx, [rbp + 0x370]
call fcn.140030854
mov rcx, qword [rbp + 0x358]
cmp eax, ebx
je 0x140005c6f
jmp 0x140005c63
lea r8, str.Failed_to_set_new_fan_speed__check_if_miner_has_root_access__n
mov edx, 3
xor ecx, ecx
call fcn.14000f050
jmp 0x140005cca
cmp r14d, 0xffffffff
jne 0x140005ad5
test dil, dil
jne 0x140005ad5
lea r8, str.Cannot_get_current_fan_speed_n
lea edx, [r14 + 4]
xor ecx, ecx
call fcn.14000f050
mov rcx, qword [rbp + 0x358]
jmp 0x140005c95
mov byte [rsp + 0x20], dil
mov r9d, r14d
mov r8d, ebx
mov edx, r15d
call fcn.140003780
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.14000ee60
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 0x140005b5a
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
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 0x140005b64
movzx eax, word [0x1400570cc]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], 0
jne 0x140005b81
movzx eax, word [0x14005a884]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.1400306b8
mov qword [rbp + 0x358], rax
test rax, rax
je 0x140005bd3
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400349ac
mov dword [rbp + 0x350], 2
jmp 0x140005be1
call fcn.1400310d4
cmp dword [rax], 0
jne 0x140005a94
imul edi, edi, 0xff
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, [0x140056a98]
lea rcx, [rbp + 0x370]
call fcn.14002ecd0
lea rax, [rbp + 0x370]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140005c20
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140005c95
mov eax, dword [rbp + 0x350]
shr eax, 1
test al, 1
je 0x140005c6f
movsxd r8, ebx
mov r9, rcx
mov edx, 1
lea rcx, [rbp + 0x370]
call fcn.140030854
cmp eax, ebx
je 0x140005c68
mov rcx, qword [rbp + 0x358]
call fcn.1400324f0
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140005c95
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
mov rcx, r12
mov word [rsp + 0x50], r12w
mov qword [rbp + 0x358], rcx
test rcx, rcx
je 0x140005cab
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
mov eax, 1
jmp 0x140005ce9
mov r9d, ebx
mov r8d, r15d
lea rdx, str.GPU__d:_got_incorrect_temperature__d__ignore_n
mov ecx, 2
call fcn.14000ee60
nop
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x140005ce7
call fcn.140031884
mov rcx, qword [rbp + 0x358]
call fcn.140030960
xor eax, eax
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.14002e450
add rsp, 0x568
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret