Function at 0x1400295ec
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
mov r14d, 3
mov rbx, rcx
mov rdi, qword [rax]
sub edx, r14d
je 0x1400297ad
sub edx, 2
je 0x140029741
dec edx
je 0x1400296c6
dec edx
je 0x140029652
lea r8, str.tftp_rx:_internal_error
lea rdx, [0x1400937dc]
mov rcx, rdi
call fcn.140015ff0
lea eax, [r14 + 0x44]
jmp 0x1400298c3
movzx eax, word [rcx + 0x48]
mov edx, 1
add dword [rcx + 0x20], edx
mov r9d, dword [rcx + 0x20]
add eax, edx
lea rdx, str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
movzx r8d, ax
mov rcx, rdi
call fcn.1400160e8
mov eax, dword [rbx + 0x28]
cmp dword [rbx + 0x20], eax
jle 0x14002968b
mov dword [rbx + 8], 0xffffff9d
jmp 0x1400297a5
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
lea rcx, [rbx + 0xd0]
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x1400298c1
jmp 0x140029860
xor esi, esi
xor r9d, r9d
mov word [rcx + 0x48], si
mov dword [rcx + 0x20], esi
mov rax, qword [rcx + 0x170]
mov byte [rax], sil
mov rax, qword [rcx + 0x170]
lea r8d, [rsi + 4]
mov byte [rax + 1], 4
movzx edx, word [rcx + 0x48]
mov rax, qword [rbx + 0x170]
movzx ecx, dx
shr cx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx + 0x170]
lea rcx, [rbx + 0xd0]
mov byte [rax + 3], dl
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x140029860
lea edx, [rsi + 1]
jmp 0x1400298a8
mov rax, qword [rcx + 0x170]
xor esi, esi
xor r9d, r9d
mov byte [rax], sil
mov rax, qword [rcx + 0x170]
lea r8d, [rsi + 4]
mov byte [rax + 1], 5
movzx edx, word [rcx + 0x48]
mov rax, qword [rbx + 0x170]
movzx ecx, dx
shr cx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx + 0x170]
lea rcx, [rbx + 0xd0]
mov byte [rax + 3], dl
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rbx], r14d
jmp 0x1400298c1
mov rcx, qword [rcx + 0x168]
xor esi, esi
movzx eax, byte [rcx + 2]
shl ax, 8
movzx ebp, ax
movzx eax, byte [rcx + 3]
movzx ecx, word [rbx + 0x48]
or ebp, eax
lea eax, [rcx + 1]
movzx r9d, ax
cmp r9d, ebp
jne 0x1400297dc
mov dword [rbx + 0x20], esi
jmp 0x1400297f6
cmp ecx, ebp
mov r8d, ebp
mov rcx, rdi
jne 0x1400298b5
lea rdx, str.Received_last_DATA_packet_block__d_again._n
call fcn.1400160e8
mov word [rbx + 0x48], bp
mov rax, qword [rbx + 0x170]
xor r9d, r9d
mov byte [rax], sil
mov rax, qword [rbx + 0x170]
lea r8d, [r9 + 4]
mov byte [rax + 1], 4
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x170]
movzx ecx, dx
shr cx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx + 0x170]
lea rcx, [rbx + 0xd0]
mov byte [rax + 3], dl
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x14002988a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.140023890
lea rdx, [0x1400937dc]
mov rcx, rdi
mov r8, rax
call fcn.140015ff0
mov eax, gethostname
jmp 0x1400298c3
movsxd rcx, dword [rbx + 0x15c]
movsxd rax, dword [rbx + 0x154]
mov edx, 1
add rcx, 4
cmp rax, rcx
cmovl edx, r14d
lea rcx, [rbx + 0x40]
mov dword [rbx], edx
call fcn.1400435c4
jmp 0x1400298c1
lea rdx, str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
call fcn.1400160e8
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret