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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 3
je 0x14005daab
cmp dword [rsp + 0x34], 5
je 0x14005de3d
cmp dword [rsp + 0x34], 6
je 0x14005dc54
cmp dword [rsp + 0x34], 7
je 0x14005dd45
jmp 0x14005dec0
mov rax, qword [rsp + 0x60]
add rax, 0x168
mov rcx, rax
call fcn.14005f138
movzx eax, ax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
cmp eax, dword [rsp + 0x30]
jne 0x14005dae9
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x20], 0
jmp 0x14005db3e
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x48]
cmp eax, dword [rsp + 0x30]
jne 0x14005db10
mov r8d, dword [rsp + 0x30]
lea rdx, str.Received_last_DATA_packet_block__d_again._n
mov rcx, qword [rsp + 0x38]
call fcn.1400338d0
jmp 0x14005db3e
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
mov r9d, eax
mov r8d, dword [rsp + 0x30]
lea rdx, str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
mov rcx, qword [rsp + 0x38]
call fcn.1400338d0
jmp 0x14005dedf
mov rax, qword [rsp + 0x60]
movzx ecx, word [rsp + 0x30]
mov word [rax + 0x48], cx
mov rax, qword [rsp + 0x60]
add rax, 0x170
mov dx, 4
mov rcx, rax
call fcn.14005f064
mov rax, qword [rsp + 0x60]
add rax, 0x170
mov rcx, qword [rsp + 0x60]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.14005f0b0
mov rax, qword [rsp + 0x60]
add rax, 0xd0
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x150]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 4
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jge 0x14005dc05
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400ed91c]
mov rcx, qword [rsp + 0x38]
call fcn.1400339c8
mov eax, gethostname
jmp 0x14005dee1
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x154]
mov rcx, qword [rsp + 0x60]
movsxd rcx, dword [rcx + 0x15c]
add rcx, 4
cmp rax, rcx
jge 0x14005dc33
mov rax, qword [rsp + 0x60]
mov dword [rax], 3
jmp 0x14005dc3e
mov rax, qword [rsp + 0x60]
mov dword [rax], 1
mov rax, qword [rsp + 0x60]
add rax, 0x40
mov rcx, rax
call fcn.14009318c
jmp 0x14005dedf
xor eax, eax
mov rcx, qword [rsp + 0x60]
mov word [rcx + 0x48], ax
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x60]
add rax, 0x170
mov dx, 4
mov rcx, rax
call fcn.14005f064
mov rax, qword [rsp + 0x60]
add rax, 0x170
mov rcx, qword [rsp + 0x60]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.14005f0b0
mov rax, qword [rsp + 0x60]
add rax, 0xd0
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x150]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 4
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jge 0x14005dd24
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400ed964]
mov rcx, qword [rsp + 0x38]
call fcn.1400339c8
mov eax, gethostname
jmp 0x14005dee1
mov rax, qword [rsp + 0x60]
mov dword [rax], 1
mov rax, qword [rsp + 0x60]
add rax, 0x40
mov rcx, rax
call fcn.14009318c
jmp 0x14005dedf
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
mov rcx, qword [rsp + 0x60]
mov r9d, dword [rcx + 0x20]
mov r8d, eax
lea rdx, [0x1400eda38]
mov rcx, qword [rsp + 0x38]
call fcn.1400338d0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x14005ddb2
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0xffffff9d
mov rax, qword [rsp + 0x60]
mov dword [rax], 3
jmp 0x14005de38
mov rax, qword [rsp + 0x60]
add rax, 0xd0
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x150]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 4
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jge 0x14005de38
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400ed984]
mov rcx, qword [rsp + 0x38]
call fcn.1400339c8
mov eax, gethostname
jmp 0x14005dee1
jmp 0x14005dedf
mov rax, qword [rsp + 0x60]
add rax, 0x170
mov dx, 5
mov rcx, rax
call fcn.14005f064
mov rax, qword [rsp + 0x60]
add rax, 0x170
mov rcx, qword [rsp + 0x60]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.14005f0b0
mov rax, qword [rsp + 0x60]
add rax, 0xd0
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 0x150]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 4
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov rax, qword [rsp + 0x60]
mov dword [rax], 3
jmp 0x14005dedf
lea r8, str.tftp_rx:_internal_error
lea rdx, [0x1400ed994]
mov rcx, qword [rsp + 0x38]
call fcn.1400339c8
mov eax, 0x47
jmp 0x14005dee1
xor eax, eax
add rsp, 0x58
ret