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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402b1510]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x10]
mov rbx, rcx
xor ebp, ebp
mov ecx, edx
mov edi, ebp
mov rsi, qword [rax]
sub ecx, 4
je 0x14009fd71
sub ecx, 1
je 0x14009fcfe
sub ecx, 1
je 0x14009fd71
cmp ecx, 1
je 0x14009fc9e
mov r8d, edx
mov rcx, rsi
lea rdx, str.tftp_tx:_internal_error__event:__i
call fcn.14007dc94
jmp 0x14009ffa9
mov r8d, 1
add dword [rbx + 0x20], r8d
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x14009fcbc
mov dword [rbx + 8], 0xffffff9d
jmp 0x14009fd66
mov eax, dword [rbx + 0x150]
lea rcx, [rbx + 0xd0]
mov r8d, dword [rbx + 0x158]
xor r9d, r9d
mov rdx, qword [rbx + 0x170]
add r8d, 4
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x14009ff9a
jmp 0x14009ff62
mov dword [rbx], 3
xor r9d, r9d
mov rax, qword [rbx + 0x170]
lea r8d, [r9 + 4]
mov byte [rax], bpl
mov rax, qword [rbx + 0x170]
mov byte [rax + 1], 5
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x170]
movzx ecx, dx
shr cx, 8
mov byte [rax + 2], cl
lea rcx, [rbx + 0xd0]
mov rax, qword [rbx + 0x170]
mov byte [rax + 3], dl
mov eax, dword [rbx + 0x150]
mov rdx, qword [rbx + 0x170]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rbx], 3
jmp 0x14009ffa9
cmp edx, 4
jne 0x14009fe51
mov rax, qword [rbx + 0x168]
movzx edx, word [rbx + 0x48]
movzx ecx, byte [rax + 2]
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
cmp ecx, edx
je 0x14009fe3b
test dx, dx
jne 0x14009fdab
cmp ecx, 0xffff
je 0x14009fe3b
mov r8d, 1
add dword [rbx + 0x20], r8d
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x14009fdd1
mov r8d, edx
mov rcx, rsi
lea rdx, str.tftp_tx:_giving_up_waiting_for_block__d_ack
call fcn.14007dc94
jmp 0x14009fe31
mov eax, dword [rbx + 0x150]
lea rcx, [rbx + 0xd0]
mov r8d, dword [rbx + 0x158]
xor r9d, r9d
mov rdx, qword [rbx + 0x170]
add r8d, 4
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x14009ffa9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.1400a3b6c
mov r8, rax
lea rdx, [0x1402061cc]
mov rcx, rsi
call fcn.14007dc94
mov edi, gethostname
jmp 0x14009ffa9
lea rcx, [rbx + 0x40]
call fcn.1401e1b6c
mov r8d, 1
add word [rbx + 0x48], r8w
jmp 0x14009fe5c
mov r8d, 1
mov word [rbx + 0x48], r8w
mov dword [rbx + 0x20], ebp
mov rax, qword [rbx + 0x170]
mov byte [rax], bpl
mov rax, qword [rbx + 0x170]
mov byte [rax + 1], 3
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x170]
movzx ecx, dx
shr cx, 8
mov byte [rax + 2], cl
mov rax, qword [rbx + 0x170]
mov byte [rax + 3], dl
cmp word [rbx + 0x48], r8w
jbe 0x14009feb5
mov eax, dword [rbx + 0x15c]
cmp dword [rbx + 0x158], eax
jge 0x14009feb5
mov dword [rbx], 3
xor eax, eax
jmp 0x14009ffab
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x170]
mov dword [rbx + 0x158], ebp
add rdx, 4
mov rcx, qword [rax]
mov qword [rcx + 0x210], rdx
mov eax, dword [rbx + 0x15c]
sub eax, dword [rbx + 0x158]
jmp 0x14009ff17
mov rax, qword [rbx + 0x10]
mov rdx, qword [rsp + 0x30]
add dword [rbx + 0x158], edx
mov rcx, qword [rax]
add qword [rcx + 0x210], rdx
mov r8d, dword [rbx + 0x158]
mov eax, dword [rbx + 0x15c]
cmp r8d, eax
jge 0x14009ff30
cmp qword [rsp + 0x30], rbp
je 0x14009ff30
sub eax, r8d
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x30]
movsxd rdx, eax
call fcn.140085e28
mov edi, eax
test eax, eax
je 0x14009fee2
jmp 0x14009ffa9
mov eax, dword [rbx + 0x150]
lea rcx, [rbx + 0xd0]
mov rdx, qword [rbx + 0x170]
add r8d, 4
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x14009ff8c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.1400a3b6c
mov r8, rax
lea rdx, [0x1402061cc]
mov rcx, rsi
call fcn.14007dc94
mov eax, gethostname
jmp 0x14009ffab
movsxd rax, dword [rbx + 0x158]
add qword [rsi + 0x128], rax
mov rdx, qword [rsi + 0x128]
mov rcx, rsi
call fcn.140087a00
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401d08c0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret