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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, str.octet
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0xb
and eax, 1
test eax, eax
je 0x140120733
lea rax, str.netascii
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x178]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x14012077d
cmp dword [rsp + 0x4c], 3
je 0x140120d07
cmp dword [rsp + 0x4c], 4
je 0x140120ced
cmp dword [rsp + 0x4c], 5
je 0x140120d21
cmp dword [rsp + 0x4c], 6
je 0x140120ca4
cmp dword [rsp + 0x4c], 7
je 0x14012077d
jmp 0x140120d31
mov rax, qword [rsp + 0x170]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x170]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x170]
mov ecx, dword [rcx + 0x28]
cmp dword [rax + 0x20], ecx
jle 0x1401207d3
mov rax, qword [rsp + 0x170]
mov dword [rax + 8], 0xffffff9e
mov rax, qword [rsp + 0x170]
mov dword [rax], 3
mov eax, dword [rsp + 0x48]
jmp 0x140120d50
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x19
and eax, 1
test eax, eax
je 0x140120852
mov rax, qword [rsp + 0x170]
add rax, 0x170
mov dx, 2
mov rcx, rax
call fcn.1401213b0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, 4
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rcx + 0x1f0], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x13e0], 0xffffffffffffffff
je 0x140120850
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x13e0]
mov rcx, qword [rsp + 0x50]
call fcn.140100030
jmp 0x14012086c
mov rax, qword [rsp + 0x170]
add rax, 0x170
mov dx, 1
mov rcx, rax
call fcn.1401213b0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov ecx, 1
imul rcx, rcx, 1
add rcx, qword [rax + 0x1448]
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.140114928
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1401208c5
mov eax, dword [rsp + 0x48]
jmp 0x140120d50
mov rcx, qword [rsp + 0x58]
call fcn.14008d570
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x170]
movsxd rcx, dword [rcx + 0x15c]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0x60]
call fcn.14008d570
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
sub rax, 4
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
jbe 0x140120931
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rcx, qword [rsp + 0x58]
call qword [fcn.140088928]
mov eax, 0x47
jmp 0x140120d50
mov rax, qword [rsp + 0x170]
movsxd rax, dword [rax + 0x15c]
mov rcx, qword [rsp + 0x170]
mov rcx, qword [rcx + 0x170]
add rcx, 2
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x60]
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.1400f7eec
mov rcx, qword [rsp + 0x58]
call fcn.14008d570
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x60]
call fcn.14008d570
mov rcx, qword [rsp + 0x78]
lea rax, [rcx + rax + 4]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 3
and eax, 1
test eax, eax
jne 0x140120bf3
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x19
and eax, 1
test eax, eax
je 0x140120a0f
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x13e0], 0xffffffffffffffff
je 0x140120a0f
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x13e0]
lea r8, str._I64d
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.1400f7eec
jmp 0x140120a23
lea rdx, [0x1401b3254]
lea rcx, [rsp + 0x90]
call fcn.14008d6d0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [0x1401b7c30]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140120e60
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [rsp + 0x90]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140120e60
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov r9d, dword [rax + 0x160]
lea r8, [0x1401b3204]
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.1400f7eec
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [0x1401b7c28]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140120e60
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [rsp + 0x90]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140120e60
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov r9d, dword [rax + 0x24]
lea r8, [0x1401b3124]
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.1400f7eec
mov rax, qword [rsp + 0x170]
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 + 0x170]
call fcn.140120e60
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x170]
add rax, qword [rsp + 0x40]
lea r9, [rsp + 0x90]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x170]
call fcn.140120e60
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
mov rax, qword [rax + 0x70]
mov rcx, qword [rsp + 0x170]
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 + 0x170]
mov rdx, qword [rax + 0x170]
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.WS2_32.dll_sendto]
cdqe
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x80], rax
je 0x140120c94
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0xd0]
mov ecx, eax
call fcn.14010c9c8
mov r8, rax
lea rdx, [0x1401b30a4]
mov rcx, qword [rsp + 0x50]
call fcn.1400ddbc8
mov rcx, qword [rsp + 0x58]
call qword [fcn.140088928]
jmp 0x140120d4c
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x19
and eax, 1
test eax, eax
je 0x140120cd3
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140120de8
mov dword [rsp + 0x48], eax
jmp 0x140120ceb
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140120d70
mov dword [rsp + 0x48], eax
jmp 0x140120d4c
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140120de8
mov dword [rsp + 0x48], eax
jmp 0x140120d4c
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.140120d70
mov dword [rsp + 0x48], eax
jmp 0x140120d4c
mov rax, qword [rsp + 0x170]
mov dword [rax], 3
jmp 0x140120d4c
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
lea rdx, str.tftp_send_first:_internal_error
mov rcx, qword [rax]
call fcn.1400ddbc8
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0x168
ret