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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x40]
add rax, 0xd8
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 4
je 0x14005df53
cmp dword [rsp + 0x34], 5
je 0x14005e416
cmp dword [rsp + 0x34], 6
je 0x14005df53
cmp dword [rsp + 0x34], 7
je 0x14005e300
jmp 0x14005e4a4
cmp dword [rsp + 0x78], 4
jne 0x14005e0d6
mov rax, qword [rsp + 0x70]
add rax, 0x168
mov rcx, rax
call fcn.14005f138
movzx eax, ax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x48]
cmp dword [rsp + 0x38], eax
je 0x14005e0ae
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x48]
test eax, eax
jne 0x14005dfa6
cmp dword [rsp + 0x38], 0xffff
je 0x14005e0ae
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x48]
mov r9d, eax
mov r8d, dword [rsp + 0x38]
lea rdx, str.Received_ACK_for_block__d__expecting__d_n
mov rcx, qword [rsp + 0x40]
call fcn.1400338d0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x14005e016
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x48]
mov r8d, eax
lea rdx, str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov rcx, qword [rsp + 0x40]
call fcn.1400339c8
mov dword [rsp + 0x30], gethostname
jmp 0x14005e0a5
mov rax, qword [rsp + 0x70]
add rax, 0xd0
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x158]
add ecx, 4
mov rdx, qword [rsp + 0x70]
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 + 0x70]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jge 0x14005e0a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400ed9f4]
mov rcx, qword [rsp + 0x40]
call fcn.1400339c8
mov dword [rsp + 0x30], gethostname
mov eax, dword [rsp + 0x30]
jmp 0x14005e4be
mov rax, qword [rsp + 0x70]
add rax, 0x40
mov rcx, rax
call fcn.14009318c
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x48]
inc ax
mov rcx, qword [rsp + 0x70]
mov word [rcx + 0x48], ax
jmp 0x14005e0e4
mov eax, 1
mov rcx, qword [rsp + 0x70]
mov word [rcx + 0x48], ax
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x70]
add rax, 0x170
mov dx, 3
mov rcx, rax
call fcn.14005f064
mov rax, qword [rsp + 0x70]
add rax, 0x170
mov rcx, qword [rsp + 0x70]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.14005f0b0
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x48]
cmp eax, 1
jle 0x14005e15b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x15c]
cmp dword [rax + 0x158], ecx
jge 0x14005e15b
mov rax, qword [rsp + 0x70]
mov dword [rax], 3
xor eax, eax
jmp 0x14005e4be
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x158], 0
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x170]
add rax, 4
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1e8], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x158]
mov eax, dword [rax + 0x15c]
sub eax, ecx
lea r8, [rsp + 0x3c]
mov edx, eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
call fcn.14003d6bc
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14005e1ce
mov eax, dword [rsp + 0x30]
jmp 0x14005e4be
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x158]
add eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x158], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
movsxd rcx, dword [rsp + 0x3c]
add rcx, qword [rax + 0x1e8]
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1e8], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x15c]
cmp dword [rax + 0x158], ecx
jge 0x14005e239
cmp dword [rsp + 0x3c], 0
jne 0x14005e18d
mov rax, qword [rsp + 0x70]
add rax, 0xd0
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x158]
add ecx, 4
mov rdx, qword [rsp + 0x70]
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 + 0x70]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jge 0x14005e2ca
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400eda6c]
mov rcx, qword [rsp + 0x40]
call fcn.1400339c8
mov eax, gethostname
jmp 0x14005e4be
mov rax, qword [rsp + 0x70]
movsxd rax, dword [rax + 0x158]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.14004bf28
jmp 0x14005e4ba
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 0x48]
inc eax
and eax, 0xffff
mov rcx, qword [rsp + 0x70]
mov r9d, dword [rcx + 0x20]
mov r8d, eax
lea rdx, str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov rcx, qword [rsp + 0x40]
call fcn.1400338d0
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x14005e36d
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0xffffff9d
mov rax, qword [rsp + 0x70]
mov dword [rax], 3
jmp 0x14005e411
mov rax, qword [rsp + 0x70]
add rax, 0xd0
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 0x158]
add ecx, 4
mov rdx, qword [rsp + 0x70]
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 + 0x70]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jge 0x14005e3fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400edab4]
mov rcx, qword [rsp + 0x40]
call fcn.1400339c8
mov eax, gethostname
jmp 0x14005e4be
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.14004bf28
jmp 0x14005e4ba
mov rax, qword [rsp + 0x70]
mov dword [rax], 3
mov rax, qword [rsp + 0x70]
add rax, 0x170
mov dx, 5
mov rcx, rax
call fcn.14005f064
mov rax, qword [rsp + 0x70]
add rax, 0x170
mov rcx, qword [rsp + 0x70]
movzx edx, word [rcx + 0x48]
mov rcx, rax
call fcn.14005f0b0
mov rax, qword [rsp + 0x70]
add rax, 0xd0
mov rcx, qword [rsp + 0x70]
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 + 0x70]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
mov rax, qword [rsp + 0x70]
mov dword [rax], 3
jmp 0x14005e4ba
mov r8d, dword [rsp + 0x78]
lea rdx, str.tftp_tx:_internal_error__event:__i
mov rcx, qword [rsp + 0x40]
call fcn.1400339c8
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret