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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x14016a100]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rax, qword [rcx + 0x10]
lea r8, str.octet
xor r14d, r14d
lea r12, str.netascii
mov rdi, rcx
mov rsi, qword [rax]
mov ecx, dword [rsi + 0xe70]
bt ecx, 0xb
cmovae r12, r8
lea r8d, [r14 + 3]
test edx, edx
je 0x14004c886
sub edx, r8d
je 0x14004c87e
sub edx, 1
je 0x14004c86f
sub edx, 1
je 0x14004c867
sub edx, 1
je 0x14004c84c
cmp edx, 1
je 0x14004c886
lea rdx, str.tftp_send_first:_internal_error
mov rcx, rsi
call fcn.140029b2c
jmp 0x14004cb5a
bt ecx, 0x19
mov edx, 6
mov rcx, rdi
jb 0x14004c877
call fcn.14004bee8
mov r14d, eax
jmp 0x14004cb5a
mov dword [rdi], r8d
jmp 0x14004cb5a
mov edx, 4
mov rcx, rdi
call fcn.14004bf38
jmp 0x14004c85f
mov edx, r8d
mov rcx, rdi
jmp 0x14004c85a
inc dword [rdi + 0x20]
mov eax, dword [rdi + 0x20]
cmp eax, dword [rdi + 0x28]
jle 0x14004c8a2
mov dword [rdi + 8], 0xffffff9e
xor eax, eax
mov dword [rdi], r8d
jmp 0x14004cb5d
test dword [rsi + 0xe70], 0x2000000
lea rcx, [rdi + 0x170]
je 0x14004c8ef
mov edx, 2
call fcn.14004bed0
mov rax, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x170]
add rdx, 4
mov rcx, qword [rax]
mov qword [rcx + 0x1f0], rdx
mov rdx, qword [rsi + 0x13e0]
cmp rdx, 0xffffffffffffffff
je 0x14004c8f9
mov rcx, rsi
call fcn.140035708
jmp 0x14004c8f9
mov edx, 1
call fcn.14004bed0
mov rax, qword [rdi + 0x10]
lea r9, [rbp - 0x69]
mov byte [rsp + 0x28], r14b
xor r8d, r8d
and qword [rsp + 0x20], r14
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x1448]
mov rcx, rsi
inc rdx
call fcn.14003d490
mov r14d, eax
test eax, eax
jne 0x14004cb5d
mov rcx, r12
call fcn.1400b39f0
movsxd rbx, dword [rdi + 0x15c]
mov rcx, qword [rbp - 0x69]
sub rbx, rax
sub rbx, 4
call fcn.1400b39f0
cmp rax, rbx
jbe 0x14004c974
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, rsi
call fcn.140029b2c
mov rcx, qword [rbp - 0x69]
call qword [str._P_t_]
lea eax, [r14 + 0x47]
jmp 0x14004cb5d
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 - 0x69]
mov qword [rsp + 0x28], r12
and qword [rsp + 0x20], 0
call fcn.140036b1c
mov rcx, qword [rbp - 0x69]
call fcn.1400b39f0
mov rcx, r12
mov rbx, rax
call fcn.1400b39f0
add rbx, 4
add rbx, rax
mov eax, dword [rsi + 0xe70]
test al, 8
jne 0x14004caf0
mov r12d, 0x40
bt eax, 0x19
jae 0x14004c9fe
mov r9, qword [rsi + 0x13e0]
cmp r9, 0xffffffffffffffff
je 0x14004c9fe
lea r8, str._I64d
mov edx, r12d
lea rcx, [rbp - 0x59]
call fcn.140036b1c
jmp 0x14004ca0e
lea rdx, [0x14014b5ac]
lea rcx, [rbp - 0x59]
call fcn.1400c8a90
mov r8, qword [rdi + 0x170]
lea r9, str.tsize
add r8, rbx
mov rdx, rbx
mov rcx, rdi
call fcn.14004bf88
mov r8, qword [rdi + 0x170]
lea r9, [rbp - 0x59]
add rbx, rax
mov rcx, rdi
add r8, rbx
mov rdx, rbx
call fcn.14004bf88
mov r9d, dword [rdi + 0x160]
lea r8, [0x14014b478]
mov rdx, r12
lea rcx, [rbp - 0x59]
add rbx, rax
call fcn.140036b1c
mov r8, qword [rdi + 0x170]
lea r9, str.blksize
add r8, rbx
mov rdx, rbx
mov rcx, rdi
call fcn.14004bf88
mov r8, qword [rdi + 0x170]
lea r9, [rbp - 0x59]
add rbx, rax
mov rcx, rdi
add r8, rbx
mov rdx, rbx
call fcn.14004bf88
mov r9d, dword [rdi + 0x24]
lea r8, [0x14014b478]
mov rdx, r12
lea rcx, [rbp - 0x59]
add rbx, rax
call fcn.140036b1c
mov r8, qword [rdi + 0x170]
lea r9, str.timeout
add r8, rbx
mov rdx, rbx
mov rcx, rdi
call fcn.14004bf88
mov r8, qword [rdi + 0x170]
lea r9, [rbp - 0x59]
add rbx, rax
mov rcx, rdi
add r8, rbx
mov rdx, rbx
call fcn.14004bf88
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 0x14004cb50
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rbp - 0x59]
mov ecx, eax
call fcn.140051cb0
mov r8, rax
lea rdx, [0x14011d580]
mov rcx, rsi
call fcn.140029b2c
mov rcx, qword [rbp - 0x69]
call qword [str._P_t_]
mov eax, r14d
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140085010
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret