Function at 0x14000ea30
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 [0x14010b358]
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.140089494
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 0x14000eb0c
call fcn.14008a888
mov rcx, qword [rbp + 0x358]
call fcn.14008b124
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 0x14000eb16
movzx eax, word [0x1400e097c]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], bl
jne 0x14000eb32
movzx eax, word [0x1400e0984]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14008bbac
mov qword [rbp + 0x358], rax
test rax, rax
je 0x14000eb83
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140090334
mov dword [rbp + 0x350], 1
jmp 0x14000eb88
call fcn.14008c1e4
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000ec45
test byte [rbp + 0x350], 1
je 0x14000ebe4
mov r9, rcx
mov edx, 1
lea r8d, [rdx + 0x63]
lea rcx, [rbp + 0x370]
call fcn.14008cd44
mov rdi, rax
cmp eax, 0x64
je 0x14000ebdd
mov rcx, qword [rbp + 0x358]
call fcn.14008d084
test eax, eax
jne 0x14000ebdd
mov rcx, qword [rbp + 0x358]
call fcn.14008d0ac
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000ec08
call fcn.14008a888
mov rcx, qword [rbp + 0x358]
call fcn.14008b124
xor eax, eax
mov qword [rbp + 0x358], rax
mov word [rsp + 0x50], ax
test edi, edi
jle 0x14000ec45
movsxd rax, edi
cmp rax, 0x65
jae 0x14000ec3f
mov byte [rbp + rax + 0x370], bl
lea rcx, [rbp + 0x370]
call fcn.140089e00
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
mov ebx, edx
sar ebx, 6
mov eax, ebx
shr eax, 0x1f
add ebx, eax
jmp 0x14000ec45
call fcn.140089f2c
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.140089494
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 0x14000ecb5
call fcn.14008a888
mov rcx, qword [rbp + 0x358]
call fcn.14008b124
xor r15d, r15d
mov qword [rbp + 0x358], r15
mov word [rsp + 0x50], r15w
mov r8, qword [rsp + 0x30]
jmp 0x14000ecb8
xor r15d, r15d
lea rcx, [rbp + 0x360]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], r14b
jne 0x14000ecc2
movzx eax, word [0x1400e097c]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
nop
lea rdx, [rdx + 1]
cmp byte [rdx], r14b
jne 0x14000ece0
movzx eax, word [0x1400e0984]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14008bbac
mov qword [rbp + 0x358], rax
test rax, rax
je 0x14000ed32
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140090334
mov dword [rbp + 0x350], 1
jmp 0x14000ed37
call fcn.14008c1e4
mov edi, r15d
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000ee09
test byte [rbp + 0x350], 1
je 0x14000ed96
mov r9, rcx
mov edx, 1
lea r8d, [rdx + 0x63]
lea rcx, [rbp + 0x370]
call fcn.14008cd44
mov rdi, rax
cmp eax, 0x64
je 0x14000ed8f
mov rcx, qword [rbp + 0x358]
call fcn.14008d084
test eax, eax
jne 0x14000ed8f
mov rcx, qword [rbp + 0x358]
call fcn.14008d0ac
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000edbc
call fcn.14008a888
mov rcx, qword [rbp + 0x358]
call fcn.14008b124
mov rcx, r15
mov qword [rbp + 0x358], rcx
mov word [rsp + 0x50], r15w
test edi, edi
jle 0x14000ee09
movsxd rax, edi
cmp rax, 0x65
jae 0x14000ee03
mov byte [rbp + rax + 0x370], r14b
lea rcx, [rbp + 0x370]
call fcn.140089e00
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 0x14000ee09
call fcn.140089f2c
int3
lea eax, [rbx + 0x64]
cmp eax, 0x15e
ja 0x14000f312
lea r8, sym.NsGpuCNMiner.exe_.t_bF._Ay7_Z__E9S6_euXX:_ghT:_5mi
movzx edi, byte [rbp + 0x4d8]
test dil, dil
jne 0x14000ef41
mov eax, dword [r8 + r12*4 + 0x136720]
test eax, eax
je 0x14000ef41
jle 0x14000eef9
cmp ebx, eax
jl 0x14000ef41
cmp byte [r12 + r8 + 0x1368b0], dil
jne 0x14000ee9e
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.140010980
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea r8, sym.NsGpuCNMiner.exe_.t_bF._Ay7_Z__E9S6_euXX:_ghT:_5mi
mov qword [r8 + r12*8 + 0x136bd0], rax
mov byte [r12 + r8 + 0x1368b0], 1
mov rcx, qword [rbp + 0x358]
jmp 0x14000ef41
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
lea r8, sym.NsGpuCNMiner.exe_.t_bF._Ay7_Z__E9S6_euXX:_ghT:_5mi
mov rcx, qword [r8 + r12*8 + 0x136bd0]
add rcx, 0x7530
cmp rax, rcx
jbe 0x14000ee92
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.140010980
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.140010980
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14003aa00
int3
neg eax
cmp ebx, eax
jl 0x14000ef41
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.140010980
lea r8, str.Miner_will_be_closed_n
mov edx, 3
xor ecx, ecx
call fcn.140010980
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14003aa00
int3
lea rax, [r12*4]
mov dword [rax + r8 + 0x136b50], ebx
test r13, r13
je 0x14000ef6b
mov dword [r13], ebx
mov rdx, qword [rsp + 0x40]
mov dword [rdx], r14d
test dil, dil
je 0x14000f2f5
lea rsi, [rax + 0x1368d0]
add rsi, r8
mov eax, dword [rsi]
cmp eax, 5
jg 0x14000f10c
test dil, dil
jne 0x14000f10c
test eax, eax
jns 0x14000f2f5
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 0x14000efda
call fcn.14008a888
mov rcx, qword [rbp + 0x358]
call fcn.14008b124
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 0x14000efe4
movzx eax, word [0x1400dc230]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], 0
jne 0x14000f001
movzx eax, word [0x1400e0984]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14008bbac
mov qword [rbp + 0x358], rax
test rax, rax
je 0x14000f053
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140090334
mov dword [rbp + 0x350], 2
jmp 0x14000f061
call fcn.14008c1e4
cmp dword [rax], 0
jne 0x14000f0f4
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, [0x1400db410]
lea rcx, [rbp + 0x370]
call fcn.140089494
lea rax, [rbp + 0x370]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000f0a0
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000f2f5
mov eax, dword [rbp + 0x350]
shr eax, 1
test al, 1
je 0x14000f2cf
movsxd r8, ebx
mov r9, rcx
mov edx, 1
lea rcx, [rbp + 0x370]
call fcn.14008b018
mov rcx, qword [rbp + 0x358]
cmp eax, ebx
je 0x14000f2cf
jmp 0x14000f2c3
lea r8, str.Failed_to_set_new_fan_speed__check_if_miner_has_root_access__n
mov edx, 3
xor ecx, ecx
call fcn.140010980
jmp 0x14000f327
cmp r14d, 0xffffffff
jne 0x14000f135
test dil, dil
jne 0x14000f135
lea r8, str.Cannot_get_current_fan_speed_n
lea edx, [r14 + 4]
xor ecx, ecx
call fcn.140010980
mov rcx, qword [rbp + 0x358]
jmp 0x14000f2f5
mov byte [rsp + 0x20], dil
mov r9d, r14d
mov r8d, ebx
mov edx, r12d
call fcn.14000d2e0
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.140010790
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 0x14000f1bc
call fcn.14008a888
mov rcx, qword [rbp + 0x358]
call fcn.14008b124
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 0x14000f1c6
movzx eax, word [0x1400dc230]
mov word [rcx], ax
lea rdx, [rbp + 0x360]
dec rdx
lea rdx, [rdx + 1]
cmp byte [rdx], 0
jne 0x14000f1e3
movzx eax, word [0x1400e0984]
mov word [rdx], ax
lea rdx, [rbp + 0x360]
mov rcx, r8
call fcn.14008bbac
mov qword [rbp + 0x358], rax
test rax, rax
je 0x14000f235
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140090334
mov dword [rbp + 0x350], 2
jmp 0x14000f243
call fcn.14008c1e4
cmp dword [rax], 0
jne 0x14000f0f4
imul edi, edi, 0xff
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov r8d, edx
shr r8d, 0x1f
add r8d, edx
lea rdx, [0x1400db410]
lea rcx, [rbp + 0x370]
call fcn.140089494
lea rax, [rbp + 0x370]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14000f280
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000f2f5
mov eax, dword [rbp + 0x350]
shr eax, 1
test al, 1
je 0x14000f2cf
movsxd r8, ebx
mov r9, rcx
mov edx, 1
lea rcx, [rbp + 0x370]
call fcn.14008b018
cmp eax, ebx
je 0x14000f2c8
mov rcx, qword [rbp + 0x358]
call fcn.14008d0ac
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000f2f5
call fcn.14008a888
mov rcx, qword [rbp + 0x358]
call fcn.14008b124
mov rcx, r15
mov word [rsp + 0x50], r15w
mov qword [rbp + 0x358], rcx
test rcx, rcx
je 0x14000f30b
call fcn.14008a888
mov rcx, qword [rbp + 0x358]
call fcn.14008b124
mov eax, 1
jmp 0x14000f346
mov r8d, ebx
lea rdx, str.Got_incorrect_temperature__d__ignore_n
mov ecx, 2
call fcn.140010790
nop
mov rcx, qword [rbp + 0x358]
test rcx, rcx
je 0x14000f344
call fcn.14008a888
mov rcx, qword [rbp + 0x358]
call fcn.14008b124
xor eax, eax
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.140088760
add rsp, 0x568
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret