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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1400d4130]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rax, qword [rcx + 0x10]
lea r15, str.netascii
xor r14d, r14d
mov rdi, rcx
mov rsi, qword [rax]
lea rax, str.octet
lea ecx, [r14 + 3]
cmp byte [rsi + 0x583], r14b
cmove r15, rax
test edx, edx
je 0x14003483b
sub edx, ecx
je 0x140034834
sub edx, 1
je 0x140034825
sub edx, 1
je 0x14003481e
sub edx, 1
je 0x140034800
cmp edx, 1
je 0x14003483b
lea rdx, str.tftp_send_first:_internal_error
mov rcx, rsi
call fcn.140020898
jmp 0x140034b0f
mov edx, 6
mov rcx, rdi
cmp byte [rsi + 0x591], r14b
jne 0x14003482d
call fcn.140033f00
mov r14d, eax
jmp 0x140034b0f
mov dword [rdi], ecx
jmp 0x140034b0f
mov edx, 4
mov rcx, rdi
call fcn.140033f50
jmp 0x140034816
mov edx, ecx
mov rcx, rdi
jmp 0x140034811
inc dword [rdi + 0x20]
mov eax, dword [rdi + 0x20]
cmp eax, dword [rdi + 0x28]
jle 0x140034856
mov dword [rdi + 8], 0xffffff9e
xor eax, eax
mov dword [rdi], ecx
jmp 0x140034b12
cmp byte [rsi + 0x591], r14b
je 0x1400348a4
mov rax, qword [rdi + 0x170]
mov byte [rax], r14b
mov rax, qword [rdi + 0x170]
mov byte [rax + 1], 2
mov rax, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x170]
add rdx, 4
mov rcx, qword [rax]
mov qword [rcx + 0x1e8], rdx
mov rdx, qword [rsi + 0x4ec8]
cmp rdx, 0xffffffffffffffff
je 0x1400348bc
mov rcx, rsi
call fcn.14002a4e0
jmp 0x1400348bc
xor ecx, ecx
xor edx, edx
mov rax, qword [rdi + 0x170]
mov byte [rdx + rax], cl
inc ecx
inc rdx
cmp ecx, 2
jl 0x1400348a8
mov rax, qword [rdi + 0x10]
lea r9, [rbp - 0x29]
mov byte [rsp + 0x28], r14b
xor r8d, r8d
and qword [rsp + 0x20], r14
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x4e98]
mov rcx, rsi
inc rdx
call fcn.1400408a8
mov r14d, eax
test eax, eax
jne 0x140034b12
mov rcx, r15
call fcn.140051300
movsxd rbx, dword [rdi + 0x15c]
mov rcx, qword [rbp - 0x29]
sub rbx, rax
sub rbx, 4
call fcn.140051300
cmp rax, rbx
jbe 0x14003492d
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, rsi
call fcn.140020898
lea eax, [r14 + 0x47]
jmp 0x140034b12
mov rcx, qword [rdi + 0x170]
lea r8, str._s_c_s_c
and qword [rsp + 0x30], 0
add rcx, 2
movsxd rdx, dword [rdi + 0x15c]
mov r9, qword [rbp - 0x29]
mov qword [rsp + 0x28], r15
and qword [rsp + 0x20], 0
call fcn.14002c138
mov rcx, r15
call fcn.140051300
mov rcx, qword [rbp - 0x29]
mov rbx, rax
call fcn.140051300
add rbx, 4
add rbx, rax
cmp byte [rsi + 0x33c], 0
jne 0x140034aab
cmp byte [rsi + 0x591], 0
mov r15d, 0x40
je 0x1400349b9
mov r9, qword [rsi + 0x4ec8]
cmp r9, 0xffffffffffffffff
je 0x1400349b9
lea r8, str._I64d
mov edx, r15d
lea rcx, [rbp - 0x19]
call fcn.14002c138
jmp 0x1400349c9
lea rdx, [0x1400bd1dc]
lea rcx, [rbp - 0x19]
call fcn.140066100
mov r8, qword [rdi + 0x170]
lea r9, str.tsize
add r8, rbx
mov rdx, rbx
mov rcx, rdi
call fcn.140033fa0
mov r8, qword [rdi + 0x170]
lea r9, [rbp - 0x19]
add rbx, rax
mov rcx, rdi
add r8, rbx
mov rdx, rbx
call fcn.140033fa0
mov r9d, dword [rdi + 0x160]
lea r8, [0x1400bcee0]
mov rdx, r15
lea rcx, [rbp - 0x19]
add rbx, rax
call fcn.14002c138
mov r8, qword [rdi + 0x170]
lea r9, str.blksize
add r8, rbx
mov rdx, rbx
mov rcx, rdi
call fcn.140033fa0
mov r8, qword [rdi + 0x170]
lea r9, [rbp - 0x19]
add rbx, rax
mov rcx, rdi
add r8, rbx
mov rdx, rbx
call fcn.140033fa0
mov r9d, dword [rdi + 0x24]
lea r8, [0x1400bcee0]
mov rdx, r15
lea rcx, [rbp - 0x19]
add rbx, rax
call fcn.14002c138
mov r8, qword [rdi + 0x170]
lea r9, str.timeout
add r8, rbx
mov rdx, rbx
mov rcx, rdi
call fcn.140033fa0
mov r8, qword [rdi + 0x170]
lea r9, [rbp - 0x19]
add rbx, rax
mov rcx, rdi
add r8, rbx
mov rdx, rbx
call fcn.140033fa0
add rbx, rax
mov rax, qword [rdi + 0x10]
xor r9d, r9d
mov rdx, qword [rdi + 0x170]
mov r8d, ebx
mov rcx, qword [rax + 0x70]
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x20]
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, rbx
je 0x140034b05
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rdi + 0x10]
mov edx, eax
call fcn.14002e090
mov r8, rax
lea rdx, [0x1400bd164]
mov rcx, rsi
call fcn.140020898
mov rcx, qword [rbp - 0x29]
call qword [fcn.140058358]
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14004d240
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret