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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
mov edi, 3
mov rbx, rcx
mov rbp, qword [rax]
sub edx, edi
je 0x14009f4d7
sub edx, 2
je 0x14009f46c
sub edx, 1
je 0x14009f3ef
cmp edx, 1
je 0x14009f398
lea r8, str.tftp_rx:_internal_error
mov rcx, rbp
lea rdx, [0x1402061cc]
call fcn.14007dc94
lea eax, [rdi + 0x44]
jmp 0x14009f5c3
mov ecx, 1
add dword [rbx + 0x20], ecx
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x14009f3b4
mov dword [rbx + 8], 0xffffff9d
jmp 0x14009f4d0
mov eax, dword [rbx + 0x150]
lea rcx, [rbx + 0xd0]
mov rdx, qword [rbx + 0x170]
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x14009f5c1
jmp 0x14009f575
xor esi, esi
xor r9d, r9d
mov word [rcx + 0x48], si
mov dword [rcx + 0x20], esi
mov rax, qword [rcx + 0x170]
lea r8d, [rsi + 4]
mov byte [rax], sil
mov rax, qword [rcx + 0x170]
mov byte [rax + 1], 4
movzx edx, word [rcx + 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]
test eax, eax
js 0x14009f575
lea ecx, [rsi + 1]
mov dword [rbx], ecx
jmp 0x14009f5b8
mov rax, qword [rcx + 0x170]
xor esi, esi
xor r9d, r9d
mov byte [rax], sil
lea r8d, [rsi + 4]
mov rax, qword [rcx + 0x170]
mov byte [rax + 1], 5
movzx edx, word [rcx + 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], edi
jmp 0x14009f5c1
mov rax, qword [rcx + 0x168]
xor esi, esi
movzx r8d, word [rcx + 0x48]
movzx edx, byte [rax + 2]
movzx eax, byte [rax + 3]
shl edx, 8
or edx, eax
lea eax, [r8 + 1]
movzx ecx, ax
cmp ecx, edx
jne 0x14009f502
mov dword [rbx + 0x20], esi
jmp 0x14009f50b
cmp r8d, edx
jne 0x14009f5c1
mov word [rbx + 0x48], dx
xor r9d, r9d
mov rax, qword [rbx + 0x170]
lea r8d, [r9 + 4]
mov byte [rax], sil
mov rax, qword [rbx + 0x170]
mov byte [rax + 1], 4
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]
test eax, eax
jns 0x14009f59f
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, rbp
call fcn.14007dc94
mov eax, gethostname
jmp 0x14009f5c3
mov eax, dword [rbx + 0x15c]
mov ecx, 1
add eax, 4
cmp dword [rbx + 0x154], eax
cmovge edi, ecx
mov dword [rbx], edi
lea rcx, [rbx + 0x40]
call fcn.1401e1b6c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret