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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x1a0
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, rcx
xor ebp, ebp
lea rsi, str.netascii
mov rax, qword [rbx + 0x10]
lea rcx, str.octet
mov r12, qword [rax]
cmp dword [r12 + 0xfcc], ebp
cmove rsi, rcx
cmp edx, 7
ja case.0x18008e87a.1
movsxd rax, edx
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x8ed54]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x18008e89b
mov dword [rbx + 8], 0xffffff9e
mov dword [rbx], 3
xor eax, eax
jmp 0x18008ed2c
mov rax, qword [rbx + 0x170]
cmp dword [r12 + 0x1014], ebp
mov byte [rax], bpl
mov rax, qword [rbx + 0x170]
je 0x18008e8eb
mov byte [rax + 1], 2
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x170]
mov rcx, qword [rax]
add rdx, 4
mov qword [rcx + 0x1a0], rdx
mov rdx, qword [r12 + 0x16e8]
cmp rdx, 0xffffffffffffffff
je 0x18008e8ef
mov rcx, r12
call fcn.1800a7090
jmp 0x18008e8ef
mov byte [rax + 1], 1
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [rax]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbp
mov rdx, qword [rcx + 0x1750]
mov rcx, r12
inc rdx
call fcn.1800a47c0
mov ebp, eax
test eax, eax
jne 0x18008ed2c
movsxd r10, dword [rbx + 0x15c]
mov r9, qword [rsp + 0x40]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
mov rdx, r10
repne scasb al, byte [rdi]
mov rdi, r9
not rcx
dec rcx
sub rdx, rcx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdx, 4
not rcx
dec rcx
cmp rcx, rdx
jbe 0x18008e986
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, r12
call fcn.180083310
mov rcx, qword [rsp + 0x40]
call qword [fcn.1800cb340]
mov eax, 0x47
jmp 0x18008ed2c
mov rcx, qword [rbx + 0x170]
mov qword [rsp + 0x30], rax
lea r8, str._s_c_s_c
mov rdx, r10
add rcx, 2
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.1800883d0
mov rdi, qword [rsp + 0x40]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
mov rdi, rsi
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rsi, [rdx + rcx + 3]
cmp dword [r12 + 0xfac], eax
jne 0x18008ec56
cmp dword [r12 + 0x1014], eax
je 0x18008ea10
mov r9, qword [r12 + 0x16e8]
cmp r9, 0xffffffffffffffff
je 0x18008ea10
lea r8, str._I64d
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800883d0
jmp 0x18008ea1a
mov eax, Ordinal_50
mov word [rsp + 0x50], ax
movsxd rax, dword [rbx + 0x15c]
lea rdi, [rsi + 6]
cmp rdi, rax
jbe 0x18008ea34
mov edi, 0x47
jmp 0x18008eac5
mov rax, qword [rbx + 0x170]
lea rcx, str.tsize
lea rdx, [rsi + rax]
nop word [rax + rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x18008ea50
mov rsi, rdi
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
movsxd rax, dword [rbx + 0x15c]
not rcx
lea rdx, [rcx + rsi]
cmp rdx, rax
jbe 0x18008ea8a
mov edi, 0x47
jmp 0x18008eac5
mov rax, qword [rbx + 0x170]
lea rcx, [rsp + 0x50]
lea rdx, [rsi + rax]
nop word [rax + rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x18008eaa0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
not rcx
add rsi, rcx
xor edi, edi
mov r9d, dword [rbx + 0x160]
lea r8, [0x180132350]
lea rcx, [rsp + 0x50]
mov edx, 0x40
call fcn.1800883d0
test edi, edi
jne 0x18008eb95
movsxd rax, dword [rbx + 0x15c]
lea rdi, [rsi + 8]
cmp rdi, rax
jbe 0x18008eb04
mov edi, 0x47
jmp 0x18008eb95
mov rax, qword [rbx + 0x170]
lea rcx, str.blksize
lea rdx, [rsi + rax]
nop word [rax + rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x18008eb20
mov rsi, rdi
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
movsxd rax, dword [rbx + 0x15c]
not rcx
lea rdx, [rcx + rsi]
cmp rdx, rax
jbe 0x18008eb5a
mov edi, 0x47
jmp 0x18008eb95
mov rax, qword [rbx + 0x170]
lea rcx, [rsp + 0x50]
lea rdx, [rsi + rax]
nop word [rax + rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x18008eb70
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
not rcx
add rsi, rcx
xor edi, edi
mov r9d, dword [rbx + 0x24]
lea r8, [0x180132350]
lea rcx, [rsp + 0x50]
mov edx, 0x40
call fcn.1800883d0
test edi, edi
jne 0x18008ecca
movsxd rax, dword [rbx + 0x15c]
lea r8, [rsi + 8]
cmp r8, rax
ja 0x18008ecca
mov rax, qword [rbx + 0x170]
lea rcx, str.timeout
lea rdx, [rsi + rax]
nop dword [rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x18008ebe0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
movsxd rax, dword [rbx + 0x15c]
not rcx
lea rdx, [rcx + r8]
cmp rdx, rax
ja 0x18008ecca
mov rax, qword [rbx + 0x170]
lea rcx, [rsp + 0x50]
lea rdx, [r8 + rax]
nop word [rax + rax]
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x18008ec30
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
xor ebp, ebp
not rcx
lea rsi, [r8 + rcx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov rdx, qword [rax + 0x2e0]
mov r8d, esi
mov eax, dword [rdx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rdx + 0x20]
mov rdx, qword [rbx + 0x170]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, rsi
je 0x18008ecbd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x90]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
lea rdx, [0x180131e10]
mov rcx, r12
mov r8, rax
call fcn.180083310
mov rcx, qword [rsp + 0x40]
call qword [fcn.1800cb340]
jmp 0x18008ed2a
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x18008e969
mov edx, 6
mov rcx, rbx
cmp dword [r12 + 0x1014], ebp
je 0x18008ed0a
call fcn.18008e770
mov ebp, eax
jmp 0x18008ed2a
mov edx, 4
mov rcx, rbx
call fcn.18008e770
mov ebp, eax
jmp 0x18008ed2a
mov edx, 3
mov rcx, rbx
call fcn.18008e7c0
mov ebp, eax
jmp 0x18008ed2a
mov dword [rbx], 3
jmp 0x18008ed2a
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r12
call fcn.180083310
mov eax, ebp
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1800c9b90
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
sub rsp, 0x28
mov rax, qword [rcx + 0x10]
mov r8d, dword [rcx]
mov r9, qword [rax]
test r8d, r8d
je 0x18008edf1
sub r8d, 1
je 0x18008ede8
sub r8d, 1
je 0x18008eddf
mov rcx, r9
cmp r8d, 1
je 0x18008edc5
lea r8, str.Internal_state_machine_error
lea rdx, [0x180131e10]
call fcn.180083310
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x180134c9c]
call fcn.1800831b0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.18008dee0
add rsp, 0x28
jmp fcn.18008dbb0
add rsp, 0x28
jmp 0x18008e810