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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x180173200]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, str.octet
mov qword [rsp + 0x68], 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 0x1800a6a3b
lea rax, str.netascii
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x178]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 7
ja case.0x1800a6a67.1
movsxd rax, dword [rsp + 0x58]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0xa705c]
add rax, rcx
jmp rax
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 0x1800a6abf
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 0x1800a7042
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x19
and eax, 1
test eax, eax
je 0x1800a6b3e
mov rax, qword [rsp + 0x170]
add rax, 0x170
mov dx, 2
mov rcx, rax
call fcn.1800a6310
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 0x1800a6b3c
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x13e0]
mov rcx, qword [rsp + 0x50]
call fcn.18008cea0
jmp 0x1800a6b58
mov rax, qword [rsp + 0x170]
add rax, 0x170
mov dx, 1
mov rcx, rax
call fcn.1800a6310
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 + 0x60]
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.18009c170
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x1800a6bb1
mov eax, dword [rsp + 0x48]
jmp 0x1800a7042
mov rcx, qword [rsp + 0x60]
call fcn.1800fb030
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x170]
movsxd rcx, dword [rcx + 0x15c]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x68]
call fcn.1800fb030
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
sub rax, 4
mov rcx, qword [rsp + 0x78]
cmp rcx, rax
jbe 0x1800a6c1d
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, qword [rsp + 0x50]
call fcn.180060120
mov rcx, qword [rsp + 0x60]
call qword [fcn.1800fb1f8]
mov eax, 0x47
jmp 0x1800a7042
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 + 0x68]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x60]
lea r8, str._s_c_s_c
mov rdx, rax
call fcn.18008f200
mov rcx, qword [rsp + 0x60]
call fcn.1800fb030
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x68]
call fcn.1800fb030
mov rcx, qword [rsp + 0x80]
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 0x1800a6ee5
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x19
and eax, 1
test eax, eax
je 0x1800a6d01
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x13e0], 0xffffffffffffffff
je 0x1800a6d01
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x13e0]
lea r8, [0x18015fafc]
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.18008f200
jmp 0x1800a6d15
lea rdx, [0x18015f994]
lea rcx, [rsp + 0x90]
call fcn.1800faf60
mov rax, qword [rsp + 0x170]
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 + 0x170]
call fcn.1800a6860
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.1800a6860
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, [0x18015f9d4]
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.18008f200
mov rax, qword [rsp + 0x170]
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 + 0x170]
call fcn.1800a6860
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.1800a6860
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, [0x18015faac]
mov edx, 0x40
lea rcx, [rsp + 0x90]
call fcn.18008f200
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.1800a6860
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.1800a6860
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 + 0x88], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x88], rax
je 0x1800a6f86
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0xd0]
mov ecx, eax
call fcn.1800c2ee0
mov r8, rax
lea rdx, [0x18015fabc]
mov rcx, qword [rsp + 0x50]
call fcn.180060120
mov rcx, qword [rsp + 0x60]
call qword [fcn.1800fb1f8]
jmp 0x1800a703e
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xe70]
shr eax, 0x19
and eax, 1
test eax, eax
je 0x1800a6fc5
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.1800a68d0
mov dword [rsp + 0x48], eax
jmp 0x1800a6fdd
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.1800a6950
mov dword [rsp + 0x48], eax
jmp 0x1800a703e
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.1800a68d0
mov dword [rsp + 0x48], eax
jmp 0x1800a703e
mov edx, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x170]
call fcn.1800a6950
mov dword [rsp + 0x48], eax
jmp 0x1800a703e
mov rax, qword [rsp + 0x170]
mov dword [rax], 3
jmp 0x1800a703e
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x10]
lea rdx, str.tftp_send_first:_internal_error
mov rcx, qword [rax]
call fcn.180060120
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800e95d0
add rsp, 0x168
ret