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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
cmp edx, 5
mov rbx, rcx
mov rsi, qword [rax]
je 0x46c633
jle 0x46c5c2
cmp edx, 6
je 0x46c530
cmp edx, 7
jne 0x46c610
mov eax, dword [rcx + 0x20]
movzx r8d, word [rcx + 0x48]
lea rdx, str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
lea r9d, [rax + 1]
add r8d, 1
mov dword [rcx + 0x20], r9d
movzx r8d, r8w
mov rcx, rsi
call fcn.0044e9e0
mov eax, dword [rbx + 0x28]
cmp dword [rbx + 0x20], eax
jle 0x46c6b0
xor eax, eax
mov dword [rbx + 8], 0xffffff9d
mov dword [rbx], 3
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
mov dword [rcx + 0x20], 0
xor r9d, r9d
mov word [rcx + 0x48], ax
mov rax, qword [rcx + 0x170]
mov r8d, 4
mov byte [rax], 0
mov rax, qword [rcx + 0x170]
mov byte [rax + 1], 4
movzx eax, word [rcx + 0x48]
mov rdx, qword [rcx + 0x170]
mov ecx, eax
shr cx, 8
mov byte [rdx + 2], cl
mov rdx, qword [rbx + 0x170]
mov byte [rdx + 3], al
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x28], eax
lea rax, [rbx + 0xd0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x46c6f0
lea rcx, [rbx + 0x40]
mov dword [rbx], 1
call qword [sym.imp.msvcrt.dll__time64]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
cmp edx, 3
jne 0x46c610
mov rdx, qword [rcx + 0x168]
movzx eax, byte [rdx + 2]
movzx edi, byte [rdx + 3]
shl eax, 8
or edi, eax
movzx eax, word [rcx + 0x48]
movzx r8d, di
lea r9d, [rax + 1]
movzx r9d, r9w
cmp r9d, r8d
je 0x46c720
cmp r8d, eax
je 0x46c7d0
lea rdx, str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
mov rcx, rsi
call fcn.0044e9e0
xor eax, eax
jmp 0x46c62b
lea r8, str.tftp_rx:_internal_error
lea rdx, [0x00663f0e]
mov rcx, rsi
call fcn.0044ea90
mov eax, 0x47
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rcx + 0x170]
xor r9d, r9d
mov r8d, 4
mov byte [rax], 0
mov rax, qword [rcx + 0x170]
mov byte [rax + 1], 5
movzx eax, word [rcx + 0x48]
mov rdx, qword [rcx + 0x170]
mov ecx, eax
shr cx, 8
mov byte [rdx + 2], cl
mov rdx, qword [rbx + 0x170]
mov byte [rdx + 3], al
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x28], eax
lea rax, [rbx + 0xd0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
xor eax, eax
mov dword [rbx], 3
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
xor r9d, r9d
mov rcx, qword [rbx + 0x18]
mov r8d, 4
mov dword [rsp + 0x28], eax
lea rax, [rbx + 0xd0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov edx, eax
xor eax, eax
test edx, edx
jns 0x46c62b
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.0045d930
lea rdx, [0x00663f0e]
mov r8, rax
mov rcx, rsi
call fcn.0044ea90
mov eax, 0x37
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov dword [rcx + 0x20], 0
mov rax, qword [rbx + 0x170]
mov word [rbx + 0x48], di
xor r9d, r9d
mov r8d, 4
mov byte [rax], 0
mov rax, qword [rbx + 0x170]
mov byte [rax + 1], 4
movzx eax, word [rbx + 0x48]
mov rdx, qword [rbx + 0x170]
mov ecx, eax
shr cx, 8
mov byte [rdx + 2], cl
mov rdx, qword [rbx + 0x170]
mov byte [rdx + 3], al
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x28], eax
lea rax, [rbx + 0xd0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x46c6f0
movsxd rdx, dword [rbx + 0x15c]
movsxd rax, dword [rbx + 0x154]
lea rcx, [rbx + 0x40]
add rdx, 3
cmp rdx, rax
setge al
movzx eax, al
lea eax, [rax + rax + 1]
mov dword [rbx], eax
call qword [sym.imp.msvcrt.dll__time64]
xor eax, eax
jmp 0x46c62b
lea rdx, str.Received_last_DATA_packet_block__d_again._n
mov rcx, rsi
call fcn.0044e9e0
jmp 0x46c727