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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x108
mov rax, qword [0x1400f2078]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rax, str.octet
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x734]
test eax, eax
je 0x14005f866
lea rax, str.netascii
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x14005f8b0
cmp dword [rsp + 0x4c], 3
je 0x14005feaf
cmp dword [rsp + 0x4c], 4
je 0x14005fe95
cmp dword [rsp + 0x4c], 5
je 0x14005fec9
cmp dword [rsp + 0x4c], 6
je 0x14005fe51
cmp dword [rsp + 0x4c], 7
je 0x14005f8b0
jmp 0x14005fed9
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x110]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x14005f906
mov rax, qword [rsp + 0x110]
mov dword [rax + 8], 0xffffff9e
mov rax, qword [rsp + 0x110]
mov dword [rax], 3
mov eax, dword [rsp + 0x48]
jmp 0x14005fef8
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x742]
test eax, eax
je 0x14005f980
mov rax, qword [rsp + 0x110]
add rax, 0x170
mov dx, 2
mov rcx, rax
call fcn.14005f064
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x170]
add rax, 4
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1e8], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x5080], 0xffffffffffffffff
je 0x14005f97e
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x5080]
mov rcx, qword [rsp + 0x50]
call fcn.14004bdac
jmp 0x14005f99a
mov rax, qword [rsp + 0x110]
add rax, 0x170
mov dx, 1
mov rcx, rax
call fcn.14005f064
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov ecx, 1
imul rcx, rcx, 1
add rcx, qword [rax + 0x5050]
mov rax, rcx
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.1400774e4
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14005f9f3
mov eax, dword [rsp + 0x48]
jmp 0x14005fef8
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
cmp byte [rax + rcx], 0
jne 0x14005fa09
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x110]
movsxd rcx, dword [rcx + 0x15c]
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x68]
cmp byte [rdx + r8], 0
jne 0x14005fa4b
mov rdx, qword [rsp + 0x68]
sub rcx, rdx
sub rcx, 4
cmp rax, rcx
jbe 0x14005fa9b
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rcx, qword [rsp + 0x58]
call qword [fcn.1400979f4]
mov eax, 0x47
jmp 0x14005fef8
mov rax, qword [rsp + 0x110]
movsxd rax, dword [rax + 0x15c]
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx + 0x170]
add rcx, 2
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
lea r8, str._s_c_s_c
mov rdx, rax
call fcn.14004ef0c
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
cmp byte [rax + rcx], 0
jne 0x14005fb03
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x80]
cmp byte [rcx + rdx], 0
jne 0x14005fb39
mov rcx, qword [rsp + 0x80]
lea rax, [rax + rcx + 4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x33c]
test eax, eax
jne 0x14005fda2
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x742]
test eax, eax
je 0x14005fbc3
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x5080], 0xffffffffffffffff
je 0x14005fbc3
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x5080]
lea r8, [0x1400ed8bc]
mov edx, 0x40
lea rcx, [rsp + 0xb0]
call fcn.14004ef0c
jmp 0x14005fbd2
movzx eax, word [0x1400ed87c]
mov word [rsp + 0xb0], ax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, str.tsize
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x110]
call fcn.14005f61c
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [rsp + 0xb0]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x110]
call fcn.14005f61c
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x110]
mov r9d, dword [rax + 0x160]
lea r8, [0x1400ed8a4]
mov edx, 0x40
lea rcx, [rsp + 0xb0]
call fcn.14004ef0c
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, str.blksize
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x110]
call fcn.14005f61c
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [rsp + 0xb0]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x110]
call fcn.14005f61c
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x110]
mov r9d, dword [rax + 0x24]
lea r8, [0x1400ed8c4]
mov edx, 0x40
lea rcx, [rsp + 0xb0]
call fcn.14004ef0c
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, str.timeout
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x110]
call fcn.14005f61c
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [rsp + 0xb0]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x110]
call fcn.14005f61c
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x70]
mov rcx, qword [rsp + 0x110]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x70]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x110]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0xa8], rax
je 0x14005fe41
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x10]
call fcn.140052500
mov r8, rax
lea rdx, [0x1400ed8ec]
mov rcx, qword [rsp + 0x50]
call fcn.1400339c8
mov rcx, qword [rsp + 0x58]
call qword [fcn.1400979f4]
jmp 0x14005fef4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x742]
test eax, eax
je 0x14005fe7b
mov edx, dword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
call fcn.14005f710
mov dword [rsp + 0x48], eax
jmp 0x14005fe93
mov edx, dword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
call fcn.14005f788
mov dword [rsp + 0x48], eax
jmp 0x14005fef4
mov edx, dword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
call fcn.14005f710
mov dword [rsp + 0x48], eax
jmp 0x14005fef4
mov edx, dword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
call fcn.14005f788
mov dword [rsp + 0x48], eax
jmp 0x14005fef4
mov rax, qword [rsp + 0x110]
mov dword [rax], 3
jmp 0x14005fef4
mov rax, qword [rsp + 0x110]
mov rax, qword [rax + 0x10]
lea rdx, str.tftp_send_first:_internal_error
mov rcx, qword [rax]
call fcn.1400339c8
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14008e520
add rsp, 0x108
ret