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

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
xor ebp, ebp
lea rsi, str.netascii
mov rax, qword [rbx + 0x10]
lea rcx, str.octet
mov r14, qword [rax]
cmp byte [r14 + 0x4a3], bpl
cmove rsi, rcx
cmp edx, 7
ja case.0x1401280f3.1
movsxd rax, edx
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x128518]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x140128114
mov dword [rbx + 8], 0xffffff9e
mov dword [rbx], 3
xor eax, eax
jmp 0x1401284f8
cmp byte [r14 + 0x4b0], bpl
je 0x140128162
mov rax, qword [rbx + 0x170]
mov byte [rax], bpl
mov rax, qword [rbx + 0x170]
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 + 0x1e8], rdx
mov rdx, qword [r14 + 0x8a00]
cmp rdx, 0xffffffffffffffff
je 0x140128186
mov rcx, r14
call fcn.140114430
jmp 0x140128186
mov ecx, ebp
mov rdx, rbp
nop word [rax + rax]
mov rax, qword [rbx + 0x170]
lea rdx, [rdx + 1]
mov byte [rdx + rax - 1], cl
inc ecx
cmp ecx, 2
jl 0x140128170
mov rax, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x89d0]
mov rcx, r14
inc rdx
call fcn.1400e1550
mov r15, rax
test rax, rax
jne 0x1401281b6
lea eax, [r15 + 0x1b]
jmp 0x1401284f8
mov rcx, qword [rbx + 0x170]
movsxd rdx, dword [rbx + 0x15c]
mov qword [rsp + 0x30], rbp
lea r8, str._s_c_s_c
add rcx, 2
mov r9, rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0x20], rbp
call fcn.140100cf0
or rdi, 0xffffffffffffffff
mov rcx, rdi
inc rcx
cmp byte [r15 + rcx], bpl
jne 0x1401281f5
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140128201
lea rsi, [rax + 4]
add rsi, rcx
cmp byte [r14 + 0x33c], bpl
jne 0x140128436
cmp byte [r14 + 0x4b0], bpl
je 0x14012824e
mov r9, qword [r14 + 0x8a00]
cmp r9, 0xffffffffffffffff
je 0x14012824e
lea r8, str._I64d
lea rcx, [rsp + 0x40]
mov edx, 0x40
call fcn.140100cf0
jmp 0x140128258
mov eax, Ordinal_50
mov word [rsp + 0x40], ax
mov r8, qword [rbx + 0x170]
lea r9, str.tsize
mov rdx, rsi
add r8, rsi
mov rcx, rbx
call fcn.1401277d0
lea rcx, [rsp + 0x40]
add rsi, rax
mov rax, rdi
nop
cmp byte [rcx + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140128280
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x15c]
add rcx, rsi
cmp rcx, rax
jbe 0x1401282a3
mov rax, rbp
jmp 0x1401282ec
mov rdx, qword [rbx + 0x170]
lea rcx, [rsp + 0x40]
add rdx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rdx, [rdx + 1]
lea rcx, [rcx + 1]
mov byte [rdx - 1], al
test al, al
jne 0x1401282c0
lea rcx, [rsp + 0x40]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x1401282e0
inc rax
mov r9d, dword [rbx + 0x160]
lea r8, [0x1401b86d0]
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rsi, rax
call fcn.140100cf0
mov r8, qword [rbx + 0x170]
lea r9, str.blksize
add r8, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1401277d0
lea rcx, [rsp + 0x40]
add rsi, rax
mov rax, rdi
cmp byte [rcx + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140128333
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x15c]
add rcx, rsi
cmp rcx, rax
jbe 0x140128356
mov rax, rbp
jmp 0x14012839c
mov rdx, qword [rbx + 0x170]
lea rcx, [rsp + 0x40]
add rdx, rsi
nop word [rax + rax]
movzx eax, byte [rcx]
lea rdx, [rdx + 1]
lea rcx, [rcx + 1]
mov byte [rdx - 1], al
test al, al
jne 0x140128370
lea rcx, [rsp + 0x40]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x140128390
inc rax
mov r9d, dword [rbx + 0x24]
lea r8, [0x1401b86d0]
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rsi, rax
call fcn.140100cf0
mov r8, qword [rbx + 0x170]
lea r9, str.timeout
add r8, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1401277d0
lea rcx, [rsp + 0x40]
add rsi, rax
mov rax, rdi
inc rax
cmp byte [rcx + rax], bpl
jne 0x1401283e0
lea rcx, [rsi + 1]
add rcx, rax
movsxd rax, dword [rbx + 0x15c]
cmp rcx, rax
jbe 0x140128401
mov rdi, rbp
jmp 0x140128433
mov rdx, qword [rbx + 0x170]
lea rcx, [rsp + 0x40]
add rdx, rsi
movzx eax, byte [rcx]
lea rdx, [rdx + 1]
lea rcx, [rcx + 1]
mov byte [rdx - 1], al
test al, al
jne 0x140128410
lea rax, [rsp + 0x40]
inc rdi
cmp byte [rax + rdi], bpl
jne 0x140128427
inc rdi
add rsi, rdi
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x170]
xor r9d, r9d
mov rcx, qword [rax + 0x58]
mov r8d, esi
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.WS2_32.dll_sendto]
mov rdi, qword [rsp + 0xd0]
movsxd rdx, eax
cmp rdx, rsi
je 0x140128498
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.140116660
lea rdx, [0x1401b93e0]
mov rcx, r14
mov r8, rax
call fcn.1400fe7c0
mov rcx, r15
call qword [fcn.140150b20]
jmp 0x1401284f6
mov edx, 6
mov rcx, rbx
cmp byte [r14 + 0x4b0], bpl
je 0x1401284d6
call fcn.140127780
mov ebp, eax
jmp 0x1401284f6
mov edx, 4
mov rcx, rbx
call fcn.140127780
mov ebp, eax
jmp 0x1401284f6
mov edx, 3
mov rcx, rbx
call fcn.140127730
mov ebp, eax
jmp 0x1401284f6
mov dword [rbx], 3
jmp 0x1401284f6
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r14
call fcn.1400fe7c0
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140150a60
add rsp, 0x90
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
sub rsp, 0x28
mov rax, qword [rcx + 0x10]
mov r8d, dword [rcx]
mov r9, qword [rax]
test r8d, r8d
je 0x14012874e
dec r8d
je 0x140128745
dec r8d
je 0x14012873c
mov rcx, r9
dec r8d
je 0x140128722
lea r8, str.Internal_state_machine_error
lea rdx, [0x1401b93e0]
call fcn.1400fe7c0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x1401b869c]
call fcn.1400fe880
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140128860
add rsp, 0x28
jmp fcn.140127d40
add rsp, 0x28
jmp 0x140128090