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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
push r13
push r14
sub rsp, 0x90
mov rax, qword [0x1403c6da0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
xor ebp, ebp
lea r14, str.netascii
mov rax, qword [rbx + 0x10]
lea rcx, str.octet
mov rsi, qword [rax]
cmp byte [rsi + 0x37b], bpl
cmove r14, rcx
cmp edx, 7
ja case.0x140104ea8.1
movsxd rax, edx
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x10519c]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
movsxd rax, dword [rbx + 0x20]
cmp rax, qword [rbx + 0x30]
jle 0x140104ecb
mov dword [rbx + 8], 0xffffff9e
mov dword [rbx], 3
xor eax, eax
jmp 0x140105173
lea r12, [rbx + 0x180]
mov rcx, r12
cmp byte [rsi + 0x388], bpl
je 0x140104f15
mov edx, 2
call fcn.1401041f0
mov rax, qword [rbx + 0x10]
mov rdx, qword [r12]
mov rcx, qword [rax]
add rdx, 4
mov qword [rcx + 0x120], rdx
mov rdx, qword [rsi + 0x230]
cmp rdx, 0xffffffffffffffff
je 0x140104f1f
mov rcx, rsi
call fcn.140102cc0
jmp 0x140104f1f
mov edx, 1
call fcn.1401041f0
mov rax, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x87a0]
mov rcx, rsi
inc rdx
call fcn.140112570
mov r13, rax
test rax, rax
jne 0x140104f4f
lea eax, [r13 + 0x1b]
jmp 0x140105173
mov rcx, qword [r12]
mov rdx, qword [rbx + 0x168]
mov qword [rsp + 0x30], rbp
lea r8, str._s_c_s_c
add rcx, 2
mov r9, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x20], rbp
call fcn.1400f3910
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, r14
not rcx
lea rdx, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rdi, [rdx + rcx + 3]
cmp byte [rsi + 0x388], al
je 0x140104fd2
mov r9, qword [rsi + 0x230]
cmp r9, 0xffffffffffffffff
je 0x140104fd2
lea r8, str._lld
lea edx, [rax + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400f3910
jmp 0x140104fdc
mov eax, gethostbyname
mov word [rsp + 0x40], ax
mov rax, qword [r12]
lea r9, str.tsize
mov rdx, rdi
lea r8, [rdi + rax]
mov rcx, rbx
call fcn.140104590
lea r9, [rsp + 0x40]
mov rcx, rbx
add rdi, rax
mov rax, qword [r12]
lea r8, [rdi + rax]
mov rdx, rdi
call fcn.140104590
mov r9d, dword [rbx + 0x170]
lea r8, [0x140344d98]
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rdi, rax
call fcn.1400f3910
mov rdx, qword [r12]
lea r9, str.blksize
lea r8, [rdi + rdx]
mov rdx, rdi
mov rcx, rbx
call fcn.140104590
lea r9, [rsp + 0x40]
mov rcx, rbx
add rdi, rax
mov rax, qword [r12]
lea r8, [rdi + rax]
mov rdx, rdi
call fcn.140104590
mov r9, qword [rbx + 0x28]
lea r8, [0x140344d98]
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rdi, rax
call fcn.1400f3910
mov rdx, qword [r12]
lea r9, str.interval
lea r8, [rdi + rdx]
mov rdx, rdi
mov rcx, rbx
call fcn.140104590
lea r9, [rsp + 0x40]
mov rcx, rbx
add rdi, rax
mov rax, qword [r12]
lea r8, [rdi + rax]
mov rdx, rdi
call fcn.140104590
mov rdx, qword [r12]
xor r9d, r9d
lea r8, [rax + rdi]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x20]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.dll_sendto]
mov rdi, qword [rsp + 0xc8]
test eax, eax
jns 0x140105114
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.1400f2cd0
lea rdx, [0x1403551f8]
mov rcx, rsi
mov r8, rax
call fcn.1400fe410
mov rcx, r13
call fcn.1400f52e0
jmp 0x140105171
mov edx, 6
mov rcx, rbx
cmp byte [rsi + 0x388], bpl
je 0x140105151
call fcn.140104da0
mov ebp, eax
jmp 0x140105171
mov edx, 4
mov rcx, rbx
call fcn.140104da0
mov ebp, eax
jmp 0x140105171
mov edx, 3
mov rcx, rbx
call fcn.140104df0
mov ebp, eax
jmp 0x140105171
mov dword [rbx], 3
jmp 0x140105171
lea rdx, str.tftp_send_first:_internal_error
mov rcx, rsi
call fcn.1400fe410
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14025db20
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
sub rsp, 0x28
mov rax, qword [rcx + 0x10]
mov r8d, dword [rcx]
mov r9, qword [rax]
test r8d, r8d
je 0x14010522e
dec r8d
je 0x140105225
dec r8d
je 0x14010521c
dec r8d
mov rcx, r9
je 0x140105202
lea r8, str.Internal_state_machine_error
lea rdx, [0x1403551f8]
call fcn.1400fe410
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x1402db2ec]
call fcn.1400fe360
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140104860
add rsp, 0x28
jmp fcn.1401045f0
add rsp, 0x28
jmp 0x140104e40