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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r13, qword [rcx + 0x10]
lea rax, str.octet
xor esi, esi
lea r15, str.netascii
mov rdi, rcx
cmp byte [r13 + 0x136a], sil
cmove r15, rax
cmp edx, 7
ja case.0x1401c5059.1
lea r12, [0x140000000]
movsxd rax, edx
mov eax, dword [r12 + rax*4 + 0x1c5610]
add rax, r12
jmp rax
inc dword [rcx + 0x20]
mov eax, dword [rcx + 0x20]
cmp eax, dword [rcx + 0x28]
jle 0x1401c507a
mov dword [rcx + 8], 0xffffff9e
xor eax, eax
mov dword [rcx], 3
jmp 0x1401c55e2
mov rax, qword [rcx + 0x158]
cmp byte [r13 + 0x1370], sil
mov byte [rax], sil
mov rax, qword [rcx + 0x158]
je 0x1401c50ed
mov byte [rax + 1], 2
mov rcx, qword [rcx + 0x158]
mov rax, qword [rdi + 0x10]
add rcx, 4
mov qword [rax + 0x190], rcx
mov rcx, qword [r13 + 0x11a0]
cmp rcx, 0xffffffffffffffff
je 0x1401c50f1
mov eax, dword [r13 + 0xafc]
test rcx, rcx
js 0x1401c50da
or eax, 0x20
mov qword [r13 + 0xad8], rcx
mov dword [r13 + 0xafc], eax
jmp 0x1401c50f1
and eax, 0xffffffdf
mov qword [r13 + 0xad8], rsi
mov dword [r13 + 0xafc], eax
jmp 0x1401c50f1
mov byte [rax + 1], 1
mov rax, qword [rdi + 0x10]
mov r14, 0xffffffffffffffff
mov rbx, r14
mov rsi, qword [rax + 0x11f0]
inc rsi
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1401c5110
lea rcx, [rbx + 1]
call qword [fcn.14022b0a0]
mov r9, rax
test rax, rax
jne 0x1401c5134
lea eax, [r9 + 0x1b]
jmp 0x1401c55e2
mov rbp, rax
test rbx, rbx
je 0x1401c51b8
nop dword [rax]
movzx ecx, byte [rsi]
cmp cl, 0x25
jne 0x1401c51a3
cmp rbx, 2
jbe 0x1401c51a3
movsx r8, byte [rsi + 1]
lea eax, [r8 - 0x30]
cmp al, 9
jbe 0x1401c516b
lea eax, [r8 - 0x61]
cmp al, 5
jbe 0x1401c516b
lea eax, [r8 - 0x41]
cmp al, 5
ja 0x1401c51a3
movsx rdx, byte [rsi + 2]
lea eax, [rdx - 0x30]
cmp al, 9
jbe 0x1401c5185
lea eax, [rdx - 0x61]
cmp al, 5
jbe 0x1401c5185
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x1401c51a3
movzx ecx, byte [r8 + r12 + 0x2e0d90]
add rsi, 3
shl cl, 4
or cl, byte [rdx + r12 + 0x2e0d90]
sub rbx, 3
jmp 0x1401c51a9
inc rsi
dec rbx
test cl, cl
je 0x1401c5216
mov byte [r9], cl
inc r9
test rbx, rbx
jne 0x1401c5140
xor r12d, r12d
mov byte [r9], 0
movsxd rdx, dword [rdi + 0x144]
mov esi, r12d
mov rax, r14
nop dword [rax]
inc rax
cmp byte [r15 + rax], sil
jne 0x1401c51d0
mov rcx, rdx
sub rcx, rax
mov rax, r14
sub rcx, 4
inc rax
cmp byte [rax + rbp], sil
jne 0x1401c51e6
cmp rax, rcx
jbe 0x1401c5229
lea rdx, str.TFTP_file_name_too_long
mov rcx, r13
call fcn.14019b0a0
mov rcx, rbp
call qword [fcn.140229280]
mov eax, 0x47
jmp 0x1401c55e2
mov rcx, rbp
call qword [fcn.140229280]
mov eax, 3
jmp 0x1401c55e2
mov rcx, qword [rdi + 0x158]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], r12
add rcx, 2
mov qword [rsp + 0x28], r15
mov r9, rbp
mov qword [rsp + 0x20], r12
call fcn.1401842a0
mov rcx, r14
inc rcx
cmp byte [r15 + rcx], sil
jne 0x1401c5255
mov rax, r14
cmp byte [rax + rbp + 1], sil
lea rax, [rax + 1]
jne 0x1401c5261
lea rbx, [rax + 4]
add rbx, rcx
cmp byte [r13 + 0xa74], sil
jne 0x1401c5545
cmp byte [r13 + 0x1370], sil
je 0x1401c52ad
mov r9, qword [r13 + 0x11a0]
cmp r9, r14
je 0x1401c52ad
lea r8, str._lld
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1401842a0
jmp 0x1401c52b9
movzx eax, word [0x1402e5018]
mov word [rsp + 0x40], ax
movsxd rax, dword [rdi + 0x144]
lea rcx, [rbx + 6]
cmp rcx, rax
jbe 0x1401c52d0
lea rcx, [rsp + 0x40]
jmp 0x1401c5323
mov rdx, qword [rdi + 0x158]
lea rcx, str.tsize
add rdx, rbx
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1401c52e1
add rbx, 6
lea rcx, [rsp + 0x40]
mov rax, r14
nop
cmp byte [rcx + rax + 1], sil
lea rax, [rax + 1]
jne 0x1401c5300
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x144]
add rcx, rbx
cmp rcx, rax
lea rcx, [rsp + 0x40]
jbe 0x1401c5361
mov r9d, dword [rdi + 0x148]
lea r8, [0x1402f14c0]
mov edx, 0x40
call fcn.1401842a0
mov r9d, dword [rdi + 0x24]
lea r8, [0x1402f14c0]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1401842a0
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x1401c51fb
mov rdx, qword [rdi + 0x158]
add rdx, rbx
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1401c5370
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x1401c5390
mov r9d, dword [rdi + 0x148]
lea r8, [0x1402f14c0]
inc rax
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rbx, rax
call fcn.1401842a0
movsxd rcx, dword [rdi + 0x144]
lea rax, [rbx + 8]
cmp rax, rcx
ja 0x1401c533b
mov rdx, qword [rdi + 0x158]
lea rcx, str.blksize
add rdx, rbx
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1401c53e1
add rbx, 8
lea rcx, [rsp + 0x40]
mov rax, r14
nop
cmp byte [rcx + rax + 1], sil
lea rax, [rax + 1]
jne 0x1401c5400
lea rcx, [rax + 1]
movsxd rax, dword [rdi + 0x144]
add rcx, rbx
cmp rcx, rax
lea rcx, [rsp + 0x40]
jbe 0x1401c5444
mov r9d, dword [rdi + 0x24]
lea r8, [0x1402f14c0]
mov edx, 0x40
call fcn.1401842a0
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x1401c51fb
mov rdx, qword [rdi + 0x158]
add rdx, rbx
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1401c5450
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x1401c5470
mov r9d, dword [rdi + 0x24]
lea r8, [0x1402f14c0]
inc rax
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rbx, rax
call fcn.1401842a0
movsxd rcx, dword [rdi + 0x144]
lea rax, [rbx + 8]
cmp rax, rcx
ja 0x1401c54fc
mov rdx, qword [rdi + 0x158]
lea rcx, str.timeout
add rdx, rbx
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1401c54c0
add rbx, 8
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x1401c54e0
lea rcx, [rbx + 1]
add rcx, rax
movsxd rax, dword [rdi + 0x144]
cmp rcx, rax
jbe 0x1401c5508
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x1401c51fb
mov rdx, qword [rdi + 0x158]
lea rcx, [rsp + 0x40]
add rdx, rbx
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1401c5520
lea rax, [rsp + 0x40]
inc r14
cmp byte [rax + r14], sil
jne 0x1401c5536
inc rbx
add rbx, r14
mov rax, qword [r13 + 0x20]
xor r9d, r9d
mov rcx, qword [rdi + 0x18]
mov r8d, ebx
mov rax, qword [rax + 0x38]
lea rdx, [rax + 0x10]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdi + 0x158]
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, rbx
je 0x1401c55a3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x80]
call fcn.1401b9030
mov r8, rax
lea rdx, [0x1402e4364]
mov rcx, r13
call fcn.14019b0a0
mov rcx, rbp
call qword [fcn.140229280]
jmp 0x1401c55e0
cmp byte [r13 + 0x1370], sil
jne case.0x1401c5059.4
call fcn.1401c4fa0
mov esi, eax
jmp 0x1401c55e0
call fcn.1401c4f50
mov esi, eax
jmp 0x1401c55e0
mov dword [rcx], 3
jmp 0x1401c55e0
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r13
call fcn.14019b0a0
mov eax, esi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1401f4d70
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
sub rsp, 0x28
mov r8d, dword [rcx]
mov r9, qword [rcx + 0x10]
test r8d, r8d
je 0x1401c5e97
sub r8d, 1
je 0x1401c5e8e
sub r8d, 1
je 0x1401c5e85
lea rdx, [0x1402e4364]
mov rcx, r9
cmp r8d, 1
je 0x1401c5e72
lea r8, str.Internal_state_machine_error
call fcn.14019b0a0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.14019b1d0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1401c5960
add rsp, 0x28
jmp fcn.1401c5630
add rsp, 0x28
jmp 0x1401c4ff0