Function at 0x140068450
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 0x14006855f
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140068519
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140068519
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x140068abf
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 0x140068abf
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 0x140068618
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x1400685c0
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x1400685c0
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x140068ac2
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 0x140068ac2
movzx eax, byte [rbp + 0x1c0]
cmp al, 0xff
je 0x1400686c5
movzx eax, byte [rbp + 0x1c1]
cmp al, 0xaa
je 0x1400686c5
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140068663
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140068663
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x140068ac5
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 0x140068ac5
movzx eax, byte [rbp + 0x1c2]
cmp al, 0x30
je 0x140068755
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140068701
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140068701
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x140068ac8
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 0x140068ac8
mov dword [rbp + 0x2fc], 0
jmp 0x140068aa5
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 0x140068a9a
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 0x140068a9d
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140068831
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140068831
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x140068887
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 [0x14011bd50]
movzx eax, byte [rax]
test al, al
jne 0x1400688e9
mov rax, qword [0x14011bfa0]
movzx eax, byte [rax]
test al, al
jne 0x1400688e9
mov rax, qword [0x14011bd80]
movzx eax, byte [rax]
test al, al
jne 0x1400688e9
mov rax, qword [0x14011bdc0]
movzx eax, byte [rax]
test al, al
jne 0x1400688e9
mov rax, qword [0x14011bd70]
movzx eax, byte [rax]
test al, al
jne 0x1400688e9
mov rax, qword [0x14011bf50]
movzx eax, byte [rax]
test al, al
jne 0x1400688e9
mov rax, qword [0x14011bf00]
movzx eax, byte [rax]
test al, al
je 0x1400688fc
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 0x14006899f
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140068944
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140068944
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x140068a9e
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 0x140068a9e
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0x150]
mov dword [rbp + 0x2d4], eax
mov rax, qword [0x14011be50]
movzx eax, byte [rax]
test al, al
je 0x1400689e1
mov ecx, dword [rbp + 0x2cc]
mov rdx, qword [rbp + 0x318]
mov rax, qword [rbp + 0x310]
mov r8d, ecx
mov rcx, rax
call dbg.submit_nonce_direct
jmp 0x140068a00
mov ecx, dword [rbp + 0x2cc]
mov rdx, qword [rbp + 0x318]
mov rax, qword [rbp + 0x310]
mov r8d, ecx
mov rcx, rax
call dbg.submit_nonce
mov rax, qword [rbp + 0x2e8]
mov eax, dword [rax + 0x150]
cmp dword [rbp + 0x2d4], eax
jge 0x140068a9e
mov rax, qword [0x14011c1e0]
movzx eax, byte [rax]
test al, al
jne 0x140068a42
mov rax, qword [0x14011be20]
movzx eax, byte [rax]
test al, al
jne 0x140068a42
mov rax, qword [0x14011be10]
mov eax, dword [rax]
test eax, eax
js 0x140068a9e
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 0x140068a9e
nop
jmp 0x140068a9e
nop
add dword [rbp + 0x2fc], 1
mov rax, qword [rbp + 0x2e0]
mov eax, dword [rax + 8]
mov edx, dword [rbp + 0x2fc]
cmp edx, eax
jb 0x140068764
jmp 0x140068ac9
nop
jmp 0x140068ac9
nop
jmp 0x140068ac9
nop
jmp 0x140068ac9
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
pxor xmm1, xmm1
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 0x140068b37
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
jmp 0x140068b50
mov rdx, rax
shr rdx, 1
and eax, 1
or rdx, rax
pxor xmm0, xmm0
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 0x140068b7a
mov eax, 0xffffffff
mov qword [rbp + 0x2f0], rax
mov rax, qword [rbp + 0x2e8]
mov rax, qword [rax + 0x1c8]
pxor xmm1, xmm1
cvtsi2sd xmm1, rax
pxor xmm2, xmm2
cvtsi2sd xmm2, qword [rbp + 0x2f0]
movsd xmm0, qword [0x14010ba60]
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