Function at 0x432e30
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 0x432fb3
jle 0x432f42
cmp edx, 6
je 0x432eb0
cmp edx, 7
jne 0x432f90
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.00416ed0
mov eax, dword [rbx + 0x28]
cmp dword [rbx + 0x20], eax
jle 0x433030
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 0x433070
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 0x432f90
mov rax, qword [rcx + 0x168]
movzx edi, byte [rax + 2]
movzx eax, byte [rax + 3]
shl edi, 8
or edi, eax
movzx eax, word [rcx + 0x48]
movzx r8d, di
lea r9d, [rax + 1]
movzx r9d, r9w
cmp r9d, r8d
je 0x4330a0
cmp r8d, eax
je 0x433150
lea rdx, str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
mov rcx, rsi
call fcn.00416ed0
xor eax, eax
jmp 0x432fab
lea r8, str.tftp_rx:_internal_error
lea rdx, [0x0046cfae]
mov rcx, rsi
call fcn.00416f80
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 0x432fab
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.00423f60
lea rdx, [0x0046cfae]
mov r8, rax
mov rcx, rsi
call fcn.00416f80
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 0x433070
movsxd rax, dword [rbx + 0x15c]
movsxd rdx, dword [rbx + 0x154]
lea rcx, [rbx + 0x40]
add rax, 3
cmp rax, rdx
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 0x432fab
lea rdx, str.Received_last_DATA_packet_block__d_again._n
mov rcx, rsi
call fcn.00416ed0
jmp 0x4330a7