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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 3
je 0x1401201da
cmp dword [rsp + 0x34], 5
je 0x1401205ed
cmp dword [rsp + 0x34], 6
je 0x1401203bb
cmp dword [rsp + 0x34], 7
je 0x1401204cf
jmp 0x140120688
mov rax, qword [rsp + 0xf0]
add rax, 0x168
mov rcx, rax
call fcn.1401212ec
movzx eax, ax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
cmp eax, dword [rsp + 0x30]
jne 0x140120221
mov rax, qword [rsp + 0xf0]
mov dword [rax + 0x20], 0
jmp 0x14012027c
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax + 0x48]
cmp eax, dword [rsp + 0x30]
jne 0x14012024b
mov r8d, dword [rsp + 0x30]
lea rdx, str.Received_last_DATA_packet_block__d_again._n
mov rcx, qword [rsp + 0x38]
call fcn.1400dd610
jmp 0x14012027c
mov rax, qword [rsp + 0xf0]
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.1400dd610
jmp 0x1401206a7
mov rax, qword [rsp + 0xf0]
movzx ecx, word [rsp + 0x30]
mov word [rax + 0x48], cx
mov rax, qword [rsp + 0xf0]
add rax, 0x170
mov dx, 4
mov rcx, rax
call fcn.1401213b0
mov rax, qword [rsp + 0xf0]
add rax, 0x170
mov rcx, qword [rsp + 0xf0]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140121364
mov rax, qword [rsp + 0xf0]
add rax, 0xd0
mov rcx, qword [rsp + 0xf0]
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 + 0xf0]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0xf0]
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 0x14012035d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x50]
mov ecx, eax
call fcn.14010c9c8
mov r8, rax
lea rdx, [0x1401b3084]
mov rcx, qword [rsp + 0x38]
call fcn.1400ddbc8
mov eax, gethostname
jmp 0x1401206a9
mov rax, qword [rsp + 0xf0]
movsxd rax, dword [rax + 0x154]
mov rcx, qword [rsp + 0xf0]
movsxd rcx, dword [rcx + 0x15c]
add rcx, 4
cmp rax, rcx
jge 0x140120394
mov rax, qword [rsp + 0xf0]
mov dword [rax], 3
jmp 0x1401203a2
mov rax, qword [rsp + 0xf0]
mov dword [rax], 1
mov rax, qword [rsp + 0xf0]
add rax, 0x40
mov rcx, rax
call fcn.140092b44
jmp 0x1401206a7
xor eax, eax
mov rcx, qword [rsp + 0xf0]
mov word [rcx + 0x48], ax
mov rax, qword [rsp + 0xf0]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0xf0]
add rax, 0x170
mov dx, 4
mov rcx, rax
call fcn.1401213b0
mov rax, qword [rsp + 0xf0]
add rax, 0x170
mov rcx, qword [rsp + 0xf0]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140121364
mov rax, qword [rsp + 0xf0]
add rax, 0xd0
mov rcx, qword [rsp + 0xf0]
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 + 0xf0]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0xf0]
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 0x1401204a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x50]
mov ecx, eax
call fcn.14010c9c8
mov r8, rax
lea rdx, [0x1401b3064]
mov rcx, qword [rsp + 0x38]
call fcn.1400ddbc8
mov eax, gethostname
jmp 0x1401206a9
mov rax, qword [rsp + 0xf0]
mov dword [rax], 1
mov rax, qword [rsp + 0xf0]
add rax, 0x40
mov rcx, rax
call fcn.140092b44
jmp 0x1401206a7
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0xf0]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0xf0]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
mov rcx, qword [rsp + 0xf0]
mov r9d, dword [rcx + 0x20]
mov r8d, eax
lea rdx, str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov rcx, qword [rsp + 0x38]
call fcn.1400dd610
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf0]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x140120554
mov rax, qword [rsp + 0xf0]
mov dword [rax + 8], 0xffffff9d
mov rax, qword [rsp + 0xf0]
mov dword [rax], 3
jmp 0x1401205e8
mov rax, qword [rsp + 0xf0]
add rax, 0xd0
mov rcx, qword [rsp + 0xf0]
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 + 0xf0]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0xf0]
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 0x1401205e8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x50]
mov ecx, eax
call fcn.14010c9c8
mov r8, rax
lea rdx, [0x1401b3014]
mov rcx, qword [rsp + 0x38]
call fcn.1400ddbc8
mov eax, gethostname
jmp 0x1401206a9
jmp 0x1401206a7
mov rax, qword [rsp + 0xf0]
add rax, 0x170
mov dx, 5
mov rcx, rax
call fcn.1401213b0
mov rax, qword [rsp + 0xf0]
add rax, 0x170
mov rcx, qword [rsp + 0xf0]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140121364
mov rax, qword [rsp + 0xf0]
add rax, 0xd0
mov rcx, qword [rsp + 0xf0]
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 + 0xf0]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov rax, qword [rsp + 0xf0]
mov dword [rax], 3
jmp 0x1401206a7
lea r8, str.tftp_rx:_internal_error
lea rdx, [0x1401b3004]
mov rcx, qword [rsp + 0x38]
call fcn.1400ddbc8
mov eax, 0x47
jmp 0x1401206a9
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0xe8
ret