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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x190]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0x170], eax
cmp dword [rsp + 0x170], 3
je 0x140070e17
cmp dword [rsp + 0x170], 5
je 0x14007122a
cmp dword [rsp + 0x170], 6
je 0x140070ff8
cmp dword [rsp + 0x170], 7
je 0x14007110c
jmp 0x1400712c5
mov rax, qword [rsp + 0x190]
add rax, 0x168
mov rcx, rax
call fcn.1400728b0
movzx eax, ax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x190]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
cmp eax, dword [rsp + 0x38]
jne 0x140070e5e
mov rax, qword [rsp + 0x190]
mov dword [rax + 0x20], 0
jmp 0x140070eb9
mov rax, qword [rsp + 0x190]
movzx eax, word [rax + 0x48]
cmp eax, dword [rsp + 0x38]
jne 0x140070e88
mov r8d, dword [rsp + 0x38]
lea rdx, str.Received_last_DATA_packet_block__d_again._n
mov rcx, qword [rsp + 0x40]
call fcn.1400421c0
jmp 0x140070eb9
mov rax, qword [rsp + 0x190]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
mov r9d, eax
mov r8d, dword [rsp + 0x38]
lea rdx, str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
mov rcx, qword [rsp + 0x40]
call fcn.1400421c0
jmp 0x1400712e4
mov rax, qword [rsp + 0x190]
movzx ecx, word [rsp + 0x38]
mov word [rax + 0x48], cx
mov rax, qword [rsp + 0x190]
add rax, 0x170
mov dx, 4
mov rcx, rax
call fcn.1400727d0
mov rax, qword [rsp + 0x190]
add rax, 0x170
mov rcx, qword [rsp + 0x190]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140072820
mov rax, qword [rsp + 0x190]
add rax, 0xd0
mov rcx, qword [rsp + 0x190]
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 + 0x190]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x190]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jge 0x140070f9a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14001c5c0
mov r8, rax
lea rdx, [0x1400d6174]
mov rcx, qword [rsp + 0x40]
call fcn.140042340
mov eax, gethostname
jmp 0x1400712e6
mov rax, qword [rsp + 0x190]
movsxd rax, dword [rax + 0x154]
mov rcx, qword [rsp + 0x190]
movsxd rcx, dword [rcx + 0x15c]
add rcx, 4
cmp rax, rcx
jge 0x140070fd1
mov rax, qword [rsp + 0x190]
mov dword [rax], 3
jmp 0x140070fdf
mov rax, qword [rsp + 0x190]
mov dword [rax], 1
mov rax, qword [rsp + 0x190]
add rax, 0x40
mov rcx, rax
call fcn.140070d60
jmp 0x1400712e4
xor eax, eax
mov rcx, qword [rsp + 0x190]
mov word [rcx + 0x48], ax
mov rax, qword [rsp + 0x190]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x190]
add rax, 0x170
mov dx, 4
mov rcx, rax
call fcn.1400727d0
mov rax, qword [rsp + 0x190]
add rax, 0x170
mov rcx, qword [rsp + 0x190]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140072820
mov rax, qword [rsp + 0x190]
add rax, 0xd0
mov rcx, qword [rsp + 0x190]
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 + 0x190]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x190]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jge 0x1400710e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14001c5c0
mov r8, rax
lea rdx, [0x1400d619c]
mov rcx, qword [rsp + 0x40]
call fcn.140042340
mov eax, gethostname
jmp 0x1400712e6
mov rax, qword [rsp + 0x190]
mov dword [rax], 1
mov rax, qword [rsp + 0x190]
add rax, 0x40
mov rcx, rax
call fcn.140070d60
jmp 0x1400712e4
mov rax, qword [rsp + 0x190]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x190]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x190]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
mov rcx, qword [rsp + 0x190]
mov r9d, dword [rcx + 0x20]
mov r8d, eax
lea rdx, [0x1400d6310]
mov rcx, qword [rsp + 0x40]
call fcn.1400421c0
mov rax, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x190]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x140071191
mov rax, qword [rsp + 0x190]
mov dword [rax + 8], 0xffffff9d
mov rax, qword [rsp + 0x190]
mov dword [rax], 3
jmp 0x140071225
mov rax, qword [rsp + 0x190]
add rax, 0xd0
mov rcx, qword [rsp + 0x190]
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 + 0x190]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x190]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jge 0x140071225
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14001c5c0
mov r8, rax
lea rdx, [0x1400d61cc]
mov rcx, qword [rsp + 0x40]
call fcn.140042340
mov eax, gethostname
jmp 0x1400712e6
jmp 0x1400712e4
mov rax, qword [rsp + 0x190]
add rax, 0x170
mov dx, 5
mov rcx, rax
call fcn.1400727d0
mov rax, qword [rsp + 0x190]
add rax, 0x170
mov rcx, qword [rsp + 0x190]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140072820
mov rax, qword [rsp + 0x190]
add rax, 0xd0
mov rcx, qword [rsp + 0x190]
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 + 0x190]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x190]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov rax, qword [rsp + 0x190]
mov dword [rax], 3
jmp 0x1400712e4
lea r8, str.tftp_rx:_internal_error
lea rdx, [0x1400d6214]
mov rcx, qword [rsp + 0x40]
call fcn.140042340
mov eax, 0x47
jmp 0x1400712e6
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400abe64
mov rax, rdi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1400ab680
add rsp, 0x180
pop rdi
ret