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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x1800f4320]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rax, qword [rcx + 0x10]
lea r14, str.netascii
xor r12d, r12d
mov rbx, rcx
mov esi, r12d
mov rdi, qword [rax]
lea rax, str.octet
lea r8d, [r12 + 3]
mov ecx, dword [rdi + 0xe70]
bt ecx, 0xb
cmovae r14, rax
test edx, edx
je 0x18006589b
sub edx, r8d
je 0x180065893
sub edx, 1
je 0x180065884
sub edx, 1
je 0x18006587c
sub edx, 1
je 0x180065862
cmp edx, 1
je 0x18006589b
lea rdx, str.tftp_send_first:_internal_error
mov rcx, rdi
call fcn.18004ce58
jmp 0x180065b87
bt ecx, 0x19
mov edx, 6
mov rcx, rbx
jb 0x18006588c
call fcn.180064f04
mov esi, eax
jmp 0x180065b87
mov dword [rbx], r8d
jmp 0x180065b87
mov edx, 4
mov rcx, rbx
call fcn.180064f54
jmp 0x180065875
mov edx, r8d
mov rcx, rbx
jmp 0x180065870
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x1800658b7
mov dword [rbx + 8], 0xffffff9e
xor eax, eax
mov dword [rbx], r8d
jmp 0x180065b89
or r13, 0xffffffffffffffff
test dword [rdi + 0xe70], 0x2000000
je 0x18006590b
mov rax, qword [rbx + 0x170]
mov byte [rax], r12b
mov rax, qword [rbx + 0x170]
mov byte [rax + 1], 2
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x170]
add rdx, 4
mov rcx, qword [rax]
mov qword [rcx + 0x1f0], rdx
mov rdx, qword [rdi + 0x13e0]
cmp rdx, r13
je 0x180065925
mov rcx, rdi
call fcn.180058974
jmp 0x180065925
mov ecx, r12d
mov rdx, r12
mov rax, qword [rbx + 0x170]
mov byte [rdx + rax], cl
inc ecx
inc rdx
cmp ecx, 2
jl 0x180065911
mov rax, qword [rbx + 0x10]
lea r9, [rbp - 0x69]
mov byte [rsp + 0x28], r12b
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x1448]
mov rcx, rdi
inc rdx
call fcn.18005fc4c
mov esi, eax
test eax, eax
jne 0x180065b89
movsxd rdx, dword [rbx + 0x15c]
mov rcx, r13
inc rcx
cmp byte [r14 + rcx], r12b
jne 0x180065963
mov r9, qword [rbp - 0x69]
mov rax, rdx
sub rax, rcx
mov rcx, r13
sub rax, 4
inc rcx
cmp byte [r9 + rcx], r12b
jne 0x18006597d
cmp rcx, rax
jbe 0x1800659ae
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, rdi
call fcn.18004ce58
mov rcx, qword [rbp - 0x69]
call qword [fcn.18008628c]
mov eax, 0x47
jmp 0x180065b89
mov rcx, qword [rbx + 0x170]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], r12
add rcx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
call fcn.18004f8f0
mov rcx, r13
inc rcx
cmp byte [r14 + rcx], r12b
jne 0x1800659d7
mov rdx, qword [rbp - 0x69]
mov rax, r13
inc rax
cmp byte [rdx + rax], r12b
jne 0x1800659e7
lea r14, [rax + 4]
mov eax, dword [rdi + 0xe70]
add r14, rcx
test al, 8
jne 0x180065b1d
mov r12d, 0x40
bt eax, 0x19
jae 0x180065a32
mov r9, qword [rdi + 0x13e0]
cmp r9, r13
je 0x180065a32
lea r8, str._I64d
mov edx, r12d
lea rcx, [rbp - 0x59]
call fcn.18004f8f0
jmp 0x180065a3b
mov eax, 0x30
mov word [rbp - 0x59], ax
mov r8, qword [rbx + 0x170]
lea r9, str.tsize
add r8, r14
mov rdx, r14
mov rcx, rbx
call fcn.180064fa4
mov r8, qword [rbx + 0x170]
lea r9, [rbp - 0x59]
add r14, rax
mov rcx, rbx
add r8, r14
mov rdx, r14
call fcn.180064fa4
mov r9d, dword [rbx + 0x160]
lea r8, [0x1800d7348]
lea rcx, [rbp - 0x59]
mov rdx, r12
add r14, rax
call fcn.18004f8f0
mov r8, qword [rbx + 0x170]
lea r9, str.blksize
add r8, r14
mov rdx, r14
mov rcx, rbx
call fcn.180064fa4
mov r8, qword [rbx + 0x170]
lea r9, [rbp - 0x59]
add r14, rax
mov rcx, rbx
add r8, r14
mov rdx, r14
call fcn.180064fa4
mov r9d, dword [rbx + 0x24]
lea r8, [0x1800d7348]
lea rcx, [rbp - 0x59]
mov rdx, r12
add r14, rax
call fcn.18004f8f0
mov r8, qword [rbx + 0x170]
lea r9, str.timeout
add r8, r14
mov rdx, r14
mov rcx, rbx
call fcn.180064fa4
mov r8, qword [rbx + 0x170]
lea r9, [rbp - 0x59]
add r14, rax
mov rcx, rbx
add r8, r14
mov rdx, r14
call fcn.180064fa4
add r14, rax
mov rax, qword [rbx + 0x10]
xor r9d, r9d
mov rdx, qword [rbx + 0x170]
mov r8d, r14d
mov rcx, qword [rax + 0x70]
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x20]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, r14
je 0x180065b7d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x59]
mov ecx, eax
call fcn.18003b70c
mov r8, rax
lea rdx, [0x1800d6384]
mov rcx, rdi
call fcn.18004ce58
mov rcx, qword [rbp - 0x69]
call qword [fcn.18008628c]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180081d90
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret