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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1a0
lea rdi, [rsp + 0x30]
mov ecx, 0x5c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b0]
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x30]
add rax, 0xe8
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x1b8]
mov dword [rsp + 0x190], eax
cmp dword [rsp + 0x190], 4
je 0x1400713cb
cmp dword [rsp + 0x190], 5
je 0x140071958
cmp dword [rsp + 0x190], 6
je 0x1400713cb
cmp dword [rsp + 0x190], 7
je 0x140071816
jmp 0x140071a01
cmp dword [rsp + 0x1b8], 4
jne 0x140071595
mov rax, qword [rsp + 0x1b0]
add rax, 0x168
mov rcx, rax
call fcn.1400728b0
movzx eax, ax
mov dword [rsp + 0x184], eax
mov rax, qword [rsp + 0x1b0]
movzx eax, word [rax + 0x48]
cmp dword [rsp + 0x184], eax
je 0x140071564
mov rax, qword [rsp + 0x1b0]
movzx eax, word [rax + 0x48]
test eax, eax
jne 0x140071433
cmp dword [rsp + 0x184], 0xffff
je 0x140071564
mov rax, qword [rsp + 0x1b0]
movzx eax, word [rax + 0x48]
mov r9d, eax
mov r8d, dword [rsp + 0x184]
lea rdx, str.Received_ACK_for_block__d__expecting__d_n
mov rcx, qword [rsp + 0x30]
call fcn.1400421c0
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x1b0]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1b0]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x1400714b8
mov rax, qword [rsp + 0x1b0]
movzx eax, word [rax + 0x48]
mov r8d, eax
lea rdx, str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov rcx, qword [rsp + 0x30]
call fcn.140042340
mov dword [rsp + 0x40], gethostname
jmp 0x14007155b
mov rax, qword [rsp + 0x1b0]
add rax, 0xd0
mov rcx, qword [rsp + 0x1b0]
mov ecx, dword [rcx + 0x158]
add ecx, 4
mov rdx, qword [rsp + 0x1b0]
mov edx, dword [rdx + 0x150]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ecx
mov rax, qword [rsp + 0x1b0]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jge 0x14007155b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x80]
mov ecx, eax
call fcn.14001c5c0
mov r8, rax
lea rdx, [0x1400d6234]
mov rcx, qword [rsp + 0x30]
call fcn.140042340
mov dword [rsp + 0x40], gethostname
mov eax, dword [rsp + 0x40]
jmp 0x140071a1e
mov rax, qword [rsp + 0x1b0]
add rax, 0x40
mov rcx, rax
call fcn.140070d60
mov rax, qword [rsp + 0x1b0]
movzx eax, word [rax + 0x48]
inc ax
mov rcx, qword [rsp + 0x1b0]
mov word [rcx + 0x48], ax
jmp 0x1400715a6
mov eax, 1
mov rcx, qword [rsp + 0x1b0]
mov word [rcx + 0x48], ax
mov rax, qword [rsp + 0x1b0]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x1b0]
add rax, 0x170
mov dx, 3
mov rcx, rax
call fcn.1400727d0
mov rax, qword [rsp + 0x1b0]
add rax, 0x170
mov rcx, qword [rsp + 0x1b0]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140072820
mov rax, qword [rsp + 0x1b0]
movzx eax, word [rax + 0x48]
cmp eax, 1
jle 0x140071635
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1b0]
mov ecx, dword [rcx + 0x15c]
cmp dword [rax + 0x158], ecx
jge 0x140071635
mov rax, qword [rsp + 0x1b0]
mov dword [rax], 3
xor eax, eax
jmp 0x140071a1e
mov rax, qword [rsp + 0x1b0]
mov dword [rax + 0x158], 0
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 0x170]
add rax, 4
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1d8], rax
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1b0]
mov ecx, dword [rcx + 0x158]
mov eax, dword [rax + 0x15c]
sub eax, ecx
cdqe
lea r8, [rsp + 0x58]
mov rdx, rax
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x10]
call fcn.14004e950
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400716bd
mov eax, dword [rsp + 0x40]
jmp 0x140071a1e
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax + 0x158]
add eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x1b0]
mov dword [rcx + 0x158], eax
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x1d8]
add rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1b0]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1d8], rax
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1b0]
mov ecx, dword [rcx + 0x15c]
cmp dword [rax + 0x158], ecx
jge 0x140071738
cmp qword [rsp + 0x58], 0
jne 0x140071670
mov rax, qword [rsp + 0x1b0]
add rax, 0xd0
mov rcx, qword [rsp + 0x1b0]
mov ecx, dword [rcx + 0x158]
add ecx, 4
mov rdx, qword [rsp + 0x1b0]
mov edx, dword [rdx + 0x150]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ecx
mov rax, qword [rsp + 0x1b0]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jge 0x1400717dd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x80]
mov ecx, eax
call fcn.14001c5c0
mov r8, rax
lea rdx, [0x1400d6244]
mov rcx, qword [rsp + 0x30]
call fcn.140042340
mov eax, gethostname
jmp 0x140071a1e
mov rax, qword [rsp + 0x1b0]
movsxd rax, dword [rax + 0x158]
mov rcx, qword [rsp + 0x48]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
call fcn.14005dc60
jmp 0x140071a1a
mov rax, qword [rsp + 0x1b0]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x1b0]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x1b0]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
mov rcx, qword [rsp + 0x1b0]
mov r9d, dword [rcx + 0x20]
mov r8d, eax
lea rdx, str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov rcx, qword [rsp + 0x30]
call fcn.1400421c0
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1b0]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x14007189b
mov rax, qword [rsp + 0x1b0]
mov dword [rax + 8], 0xffffff9d
mov rax, qword [rsp + 0x1b0]
mov dword [rax], 3
jmp 0x140071953
mov rax, qword [rsp + 0x1b0]
add rax, 0xd0
mov rcx, qword [rsp + 0x1b0]
mov ecx, dword [rcx + 0x158]
add ecx, 4
mov rdx, qword [rsp + 0x1b0]
mov edx, dword [rdx + 0x150]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, ecx
mov rax, qword [rsp + 0x1b0]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jge 0x140071940
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x80]
mov ecx, eax
call fcn.14001c5c0
mov r8, rax
lea rdx, [0x1400d627c]
mov rcx, qword [rsp + 0x30]
call fcn.140042340
mov eax, gethostname
jmp 0x140071a1e
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
call fcn.14005dc60
jmp 0x140071a1a
mov rax, qword [rsp + 0x1b0]
mov dword [rax], 3
mov rax, qword [rsp + 0x1b0]
add rax, 0x170
mov dx, 5
mov rcx, rax
call fcn.1400727d0
mov rax, qword [rsp + 0x1b0]
add rax, 0x170
mov rcx, qword [rsp + 0x1b0]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.140072820
mov rax, qword [rsp + 0x1b0]
add rax, 0xd0
mov rcx, qword [rsp + 0x1b0]
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 + 0x1b0]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov rax, qword [rsp + 0x1b0]
mov dword [rax], 3
jmp 0x140071a1a
mov r8d, dword [rsp + 0x1b8]
lea rdx, str.tftp_tx:_internal_error__event:__i
mov rcx, qword [rsp + 0x30]
call fcn.140042340
mov eax, dword [rsp + 0x40]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400abe64
mov rax, rdi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400ab680
add rsp, 0x1a0
pop rdi
ret