Function at 0x14003fde0
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 [0x1400b6f80]
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.0x14003fe4a.1
movsxd rax, edx
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x40324]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x14003fe6b
mov dword [rbx + 8], 0xffffff9e
mov dword [rbx], 3
xor eax, eax
jmp 0x1400402fc
mov rax, qword [rbx + 0x170]
cmp dword [r12 + 0x1014], ebp
mov byte [rax], bpl
mov rax, qword [rbx + 0x170]
je 0x14003febb
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 0x14003febf
mov rcx, r12
call fcn.1400560f0
jmp 0x14003febf
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.140053290
mov ebp, eax
test eax, eax
jne 0x1400402fc
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 0x14003ff56
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, r12
call fcn.140037e70
mov rcx, qword [rsp + 0x40]
call qword [fcn.14006d598]
mov eax, 0x47
jmp 0x1400402fc
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.140053d40
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 0x140040226
cmp dword [r12 + 0x1014], eax
je 0x14003ffe0
mov r9, qword [r12 + 0x16e8]
cmp r9, 0xffffffffffffffff
je 0x14003ffe0
lea r8, str._I64d
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140053d40
jmp 0x14003ffea
mov eax, Ordinal_50
mov word [rsp + 0x50], ax
movsxd rax, dword [rbx + 0x15c]
lea rdi, [rsi + 6]
cmp rdi, rax
jbe 0x140040004
mov edi, 0x47
jmp 0x140040095
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 0x140040020
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 0x14004005a
mov edi, 0x47
jmp 0x140040095
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 0x140040070
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, [0x1400a0d38]
lea rcx, [rsp + 0x50]
mov edx, 0x40
call fcn.140053d40
test edi, edi
jne 0x140040165
movsxd rax, dword [rbx + 0x15c]
lea rdi, [rsi + 8]
cmp rdi, rax
jbe 0x1400400d4
mov edi, 0x47
jmp 0x140040165
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 0x1400400f0
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 0x14004012a
mov edi, 0x47
jmp 0x140040165
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 0x140040140
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, [0x1400a0d38]
lea rcx, [rsp + 0x50]
mov edx, 0x40
call fcn.140053d40
test edi, edi
jne 0x14004029a
movsxd rax, dword [rbx + 0x15c]
lea r8, [rsi + 8]
cmp r8, rax
ja 0x14004029a
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 0x1400401b0
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 0x14004029a
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 0x140040200
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 0x14004028d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x90]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.140034b60
lea rdx, [0x14009f498]
mov rcx, r12
mov r8, rax
call fcn.140037e70
mov rcx, qword [rsp + 0x40]
call qword [fcn.14006d598]
jmp 0x1400402fa
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x14003ff39
mov edx, 6
mov rcx, rbx
cmp dword [r12 + 0x1014], ebp
je 0x1400402da
call fcn.14003fd40
mov ebp, eax
jmp 0x1400402fa
mov edx, 4
mov rcx, rbx
call fcn.14003fd40
mov ebp, eax
jmp 0x1400402fa
mov edx, 3
mov rcx, rbx
call fcn.14003fd90
mov ebp, eax
jmp 0x1400402fa
mov dword [rbx], 3
jmp 0x1400402fa
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r12
call fcn.140037e70
mov eax, ebp
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14006d1b0
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 0x1400403c1
sub r8d, 1
je 0x1400403b8
sub r8d, 1
je 0x1400403af
mov rcx, r9
cmp r8d, 1
je 0x140040395
lea r8, str.Internal_state_machine_error
lea rdx, [0x14009f498]
call fcn.140037e70
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x1400a6f40]
call fcn.140037d10
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14003f540
add rsp, 0x28
jmp fcn.14003f210
add rsp, 0x28
jmp 0x14003fde0