Function at 0x462d70
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x380
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x310], rcx
mov qword [rbp + 0x318], rdx
mov rax, qword [rbp + 0x310]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x2e8], rax
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x2e0], rax
mov dword [rbp + 0x2fc], 0
mov dword [rbp + 0x2dc], 0
mov rax, qword [rbp + 0x2e0]
mov rax, qword [rax]
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x2e0]
mov eax, dword [rax + 0x118]
lea rdx, [rbp + 0x1c0]
mov dword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0xff
mov edx, 0x30
mov ecx, eax
call dbg.send_command
test eax, eax
jns 0x462e7f
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x462e39
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x462e39
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x4633df
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 4]
lea rax, [rbp - 0x50]
mov r9, rdx
lea r8, str._FPGA__s__Failed_to_send_command:_STATUS_
mov edx, 0x200
mov rcx, rax
call sym.snprintf_14
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
jmp 0x4633df
mov rax, qword [rbp + 0x2e0]
mov eax, dword [rax + 0x118]
lea rdx, [rbp + 0x1c0]
mov r8d, 0x34
mov ecx, eax
call sym.read
mov dword [rbp + 0x2dc], eax
cmp dword [rbp + 0x2dc], 0x33
jg 0x462f38
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x462ee0
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x462ee0
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x4633e2
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x20]
lea rcx, [rax + 4]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 0x34
mov edx, dword [rbp + 0x2dc]
mov dword [rsp + 0x20], edx
mov r9, rcx
lea r8, str._FPGA__s__Failed_to_receive_response_of_command:_STATUS____Wrong_Data_Size:___d__d_
mov edx, 0x200
mov rcx, rax
call sym.snprintf_14
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
jmp 0x4633e2
movzx eax, byte [rbp + 0x1c0]
cmp al, 0xff
je 0x462fe5
movzx eax, byte [rbp + 0x1c1]
cmp al, 0xaa
je 0x462fe5
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x462f83
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x462f83
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x4633e5
movzx eax, byte [rbp + 0x1c1]
movzx ecx, al
movzx eax, byte [rbp + 0x1c0]
movzx edx, al
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x20]
lea r8, [rax + 4]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9, r8
lea r8, str._FPGA__s__Failed_to_receive_response_of_command:_STATUS____Wrong_Head:___02x__02x_
mov edx, 0x200
mov rcx, rax
call sym.snprintf_14
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
jmp 0x4633e5
movzx eax, byte [rbp + 0x1c2]
cmp al, 0x30
je 0x463075
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x463021
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x463021
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x4633e8
movzx eax, byte [rbp + 0x1c2]
movzx edx, al
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x20]
lea rcx, [rax + 4]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x20], edx
mov r9, rcx
lea r8, str._FPGA__s__Failed_to_receive_response_of_command:_STATUS____Wrong_Cmd_Type:__02x
mov edx, 0x200
mov rcx, rax
call sym.snprintf_14
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
jmp 0x4633e8
mov dword [rbp + 0x2fc], 0
jmp 0x4633c5
mov eax, dword [rbp + 0x2fc]
shl eax, 3
add eax, 4
cdqe
movzx eax, byte [rbp + rax + 0x1c0]
mov byte [rbp + 0x2db], al
mov eax, dword [rbp + 0x2fc]
shl eax, 3
add eax, 5
cdqe
movzx eax, byte [rbp + rax + 0x1c0]
mov byte [rbp + 0x2da], al
mov eax, dword [rbp + 0x2fc]
shl eax, 3
lea edx, [rax + 6]
movzx eax, byte [rbp + 0x2db]
lea r8d, [rax - 1]
movsxd rax, edx
movzx ecx, byte [rbp + rax + 0x1c0]
mov rdx, qword [rbp + 0x2e0]
movsxd rax, r8d
mov byte [rdx + rax + 0x14], cl
cmp byte [rbp + 0x2da], 0
je 0x4633ba
mov eax, dword [rbp + 0x2fc]
shl eax, 3
cdqe
lea rdx, [rax + 8]
lea rax, [rbp + 0x1c0]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp + 0x2cc], eax
mov eax, dword [rbp + 0x2cc]
test eax, eax
je 0x4633bd
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x463151
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x463151
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x4631a7
mov ecx, dword [rbp + 0x2cc]
movzx edx, byte [rbp + 0x2db]
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x20]
lea r8, [rax + 4]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9, r8
lea r8, str._FPGA__s__Chip__d__Nonce:_08x
mov edx, 0x200
mov rcx, rax
call sym.snprintf_14
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
mov rax, qword [0x005149f0]
movzx eax, byte [rax]
test al, al
jne 0x463209
mov rax, qword [0x00514c40]
movzx eax, byte [rax]
test al, al
jne 0x463209
mov rax, qword [0x00514a20]
movzx eax, byte [rax]
test al, al
jne 0x463209
mov rax, qword [0x00514a60]
movzx eax, byte [rax]
test al, al
jne 0x463209
mov rax, qword [0x00514a10]
movzx eax, byte [rax]
test al, al
jne 0x463209
mov rax, qword [0x00514bf0]
movzx eax, byte [rax]
test al, al
jne 0x463209
mov rax, qword [0x00514ba0]
movzx eax, byte [rax]
test al, al
je 0x46321c
mov eax, dword [rbp + 0x2cc]
mov ecx, eax
call sym.swab32_18
mov dword [rbp + 0x2cc], eax
mov rax, qword [rbp + 0x2e8]
mov edx, dword [rax + 0x228]
mov eax, dword [rbp + 0x2cc]
cmp edx, eax
jne 0x4632bf
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x463264
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x463264
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x4633be
mov ecx, dword [rbp + 0x2cc]
movzx edx, byte [rbp + 0x2db]
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x20]
lea r8, [rax + 4]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9, r8
lea r8, str._FPGA__s__Chip__d__Duplicated_Nonce:_08x
mov edx, 0x200
mov rcx, rax
call sym.snprintf_14
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
jmp 0x4633be
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0x150]
mov dword [rbp + 0x2d4], eax
mov rax, qword [0x00514af0]
movzx eax, byte [rax]
test al, al
je 0x463301
mov edx, dword [rbp + 0x2cc]
mov rax, qword [rbp + 0x318]
mov r8d, edx
mov rdx, rax
mov rcx, qword [rbp + 0x310]
call dbg.submit_nonce_direct
jmp 0x463320
mov edx, dword [rbp + 0x2cc]
mov rax, qword [rbp + 0x318]
mov r8d, edx
mov rdx, rax
mov rcx, qword [rbp + 0x310]
call dbg.submit_nonce
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0x150]
cmp dword [rbp + 0x2d4], eax
jge 0x4633be
mov rax, qword [0x00514e80]
movzx eax, byte [rax]
test al, al
jne 0x463362
mov rax, qword [0x00514ac0]
movzx eax, byte [rax]
test al, al
jne 0x463362
mov rax, qword [0x00514ab0]
mov eax, dword [rax]
test eax, eax
js 0x4633be
mov ecx, dword [rbp + 0x2cc]
movzx edx, byte [rbp + 0x2db]
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x20]
lea r8, [rax + 4]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9, r8
lea r8, str._FPGA__s__Chip__d__Invalid_Nonce:_08x
mov edx, 0x200
mov rcx, rax
call sym.snprintf_14
lea rax, [rbp - 0x50]
mov r8d, 0
mov rdx, rax
mov ecx, 0
call dbg._applog
jmp 0x4633be
nop
jmp 0x4633be
nop
add dword [rbp + 0x2fc], 1
mov rax, qword [rbp + 0x2e0]
mov edx, dword [rax + 8]
mov eax, dword [rbp + 0x2fc]
cmp edx, eax
ja 0x463084
jmp 0x4633e9
nop
jmp 0x4633e9
nop
jmp 0x4633e9
nop
jmp 0x4633e9
nop
mov ecx, 0x1388
call dbg.cgsleep_us
mov rax, qword [rbp + 0x2e0]
mov rcx, rax
call dbg.cgtime
mov rax, qword [rbp + 0x2e0]
lea rdx, [rbp + 0x1b8]
mov rcx, rax
call dbg.us_tdiff
cvttsd2si eax, xmm0
mov dword [rbp + 0x2d0], eax
cvtsi2sd xmm1, dword [rbp + 0x2d0]
mov rax, qword [rbp + 0x2e0]
mov edx, dword [rax + 0x10]
mov rax, qword [rbp + 0x2e0]
mov eax, dword [rax + 8]
imul eax, edx
mov eax, eax
test rax, rax
js 0x46344f
cvtsi2sd xmm0, rax
jmp 0x463464
mov rdx, rax
shr rdx, 1
and eax, 1
or rdx, rax
cvtsi2sd xmm0, rdx
addsd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si rax, xmm0
mov qword [rbp + 0x2f0], rax
mov eax, 0xffffffff
cmp qword [rbp + 0x2f0], rax
jle 0x46348e
mov eax, 0xffffffff
mov qword [rbp + 0x2f0], rax
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x1c8]
cvtsi2sd xmm1, rax
cvtsi2sd xmm2, qword [rbp + 0x2f0]
movsd xmm0, qword [0x00504a80]
mulsd xmm0, xmm2
addsd xmm0, xmm1
cvttsd2si rdx, xmm0
mov rax, qword [rbp + 0x2e8]
mov qword [rax + 0x1c8], rdx
mov rax, qword [rbp + 0x2f0]
add rsp, 0x380
pop rbp
ret