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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x1a0
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r14, qword [rcx + 0x10]
lea rax, str.octet
xor ebp, ebp
lea rdi, str.netascii
mov rbx, rcx
cmp byte [r14 + 0xadb], bpl
cmove rdi, rax
cmp edx, 7
ja case.0x140144376.1
movsxd rax, edx
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x144890]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x140144397
mov dword [rbx + 8], 0xffffff9e
xor eax, eax
mov dword [rbx], 3
jmp 0x140144866
mov rax, qword [rbx + 0x168]
cmp byte [r14 + 0xaed], bpl
mov byte [rax], bpl
mov rax, qword [rbx + 0x168]
je 0x1401443e2
mov byte [rax + 1], 2
mov rcx, qword [rbx + 0x168]
mov rax, qword [rbx + 0x10]
add rcx, 4
mov qword [rax + 0x1b0], rcx
mov rdx, qword [r14 + 0x1180]
cmp rdx, 0xffffffffffffffff
je 0x1401443e6
mov rcx, r14
call fcn.14012c040
jmp 0x1401443e6
mov byte [rax + 1], 1
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rbp
mov rdx, qword [rax + 0x11e8]
inc rdx
call fcn.140106aa0
mov ebp, eax
test eax, eax
jne 0x140144866
movsxd rdx, dword [rbx + 0x154]
mov rsi, 0xffffffffffffffff
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140144430
mov r9, qword [rsp + 0x40]
mov rcx, rdx
sub rcx, rax
mov rax, rsi
sub rcx, 4
nop dword [rax + rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x140144450
cmp rax, rcx
jbe 0x140144483
lea rdx, str.TFTP_file_name_too_long
mov rcx, r14
call fcn.14010d280
mov rcx, qword [rsp + 0x40]
call qword [fcn.140262bb8]
mov eax, 0x47
jmp 0x140144866
mov rcx, qword [rbx + 0x168]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], 0
add rcx, 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
call fcn.14010e150
mov rcx, rsi
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1401444b4
mov rdx, qword [rsp + 0x40]
mov rax, rsi
cmp byte [rdx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1401444c5
lea rdi, [rax + 4]
add rdi, rcx
cmp byte [r14 + 0xad3], 0
jne 0x140144794
cmp byte [r14 + 0xaed], 0
je 0x140144513
mov r9, qword [r14 + 0x1180]
cmp r9, rsi
je 0x140144513
lea r8, str._I64d
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14010e150
jmp 0x14014451d
mov eax, 0x30
mov word [rsp + 0x50], ax
movsxd rax, dword [rbx + 0x154]
lea r8, [rdi + 6]
cmp r8, rax
jbe 0x140144537
mov ebp, 0x47
jmp 0x1401445e1
mov rdx, qword [rbx + 0x168]
lea rcx, str.tsize
add rdx, rdi
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140144550
mov rdi, r8
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140144570
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x154]
add rcx, rdi
cmp rcx, rax
jbe 0x140144595
mov ebp, 0x47
jmp 0x1401445e1
mov rdx, qword [rbx + 0x168]
lea rcx, [rsp + 0x50]
add rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1401445b0
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1401445d0
inc rdi
add rdi, rax
xor ebp, ebp
mov r9d, dword [rbx + 0x158]
lea r8, [0x140291e40]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14010e150
test ebp, ebp
jne 0x1401446c1
movsxd rax, dword [rbx + 0x154]
lea r8, [rdi + 8]
cmp r8, rax
jbe 0x140144620
mov ebp, 0x47
jmp 0x1401446c1
mov rdx, qword [rbx + 0x168]
lea rcx, str.blksize
add rdx, rdi
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140144631
mov rdi, r8
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140144650
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x154]
add rcx, rdi
cmp rcx, rax
jbe 0x140144675
mov ebp, 0x47
jmp 0x1401446c1
mov rdx, qword [rbx + 0x168]
lea rcx, [rsp + 0x50]
add rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140144690
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1401446b0
inc rdi
add rdi, rax
xor ebp, ebp
mov r9d, dword [rbx + 0x24]
lea r8, [0x140291e40]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.14010e150
test ebp, ebp
jne 0x140144805
movsxd rax, dword [rbx + 0x154]
lea r8, [rdi + 8]
cmp r8, rax
ja 0x140144805
mov rdx, qword [rbx + 0x168]
lea rcx, str.timeout
add rdx, rdi
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140144710
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140144730
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x154]
add rcx, r8
cmp rcx, rax
ja 0x140144805
mov rdx, qword [rbx + 0x168]
lea rcx, [rsp + 0x50]
add rdx, r8
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140144761
lea rax, [rsp + 0x50]
nop word [rax + rax]
cmp byte [rax + rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x140144780
lea rdi, [rsi + 1]
add rdi, r8
xor ebp, ebp
mov rax, qword [r14 + 0x18]
xor r9d, r9d
mov rcx, qword [rbx + 0x18]
mov r8d, edi
mov rdx, qword [rax + 0x78]
mov eax, dword [rdx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rdx + 0x20]
mov rdx, qword [rbx + 0x168]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, rdi
je 0x1401447f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x90]
mov ecx, eax
call fcn.140107a00
mov r8, rax
lea rdx, [0x1402970a8]
mov rcx, r14
call fcn.14010d280
mov rcx, qword [rsp + 0x40]
call qword [fcn.140262bb8]
jmp 0x140144864
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x140144466
mov edx, 6
mov rcx, rbx
cmp byte [r14 + 0xaed], bpl
je 0x140144844
call fcn.140143a60
mov ebp, eax
jmp 0x140144864
mov edx, 4
mov rcx, rbx
call fcn.140143a60
mov ebp, eax
jmp 0x140144864
mov edx, 3
mov rcx, rbx
call fcn.140143a10
mov ebp, eax
jmp 0x140144864
mov dword [rbx], 3
jmp 0x140144864
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r14
call fcn.14010d280
mov eax, ebp
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400e39a0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
sub rsp, 0x28
mov r8d, dword [rcx]
mov r9, qword [rcx + 0x10]
test r8d, r8d
je 0x140144abe
sub r8d, 1
je 0x140144ab5
sub r8d, 1
je 0x140144aac
mov rcx, r9
cmp r8d, 1
je 0x140144a92
lea r8, str.Internal_state_machine_error
lea rdx, [0x1402970a8]
call fcn.14010d280
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x1402919d0]
call fcn.14010d3e0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140144c10
add rsp, 0x28
jmp fcn.140143fd0
add rsp, 0x28
jmp 0x140144310