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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140194020]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x10]
lea rdi, str.netascii
xor r15d, r15d
mov rbx, rcx
mov r14d, r15d
mov rbp, qword [rax]
lea rax, str.octet
cmp byte [rbp + 0xbc3], r14b
cmove rdi, rax
cmp edx, 7
ja case.0x1400c9afb.1
movsxd rax, edx
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0xc9fdc]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x1400c9b1c
mov dword [rbx + 8], 0xffffff9e
xor eax, eax
mov dword [rbx], 3
jmp 0x1400c9fb5
mov rax, qword [rbx + 0x170]
cmp byte [rbp + 0xbd1], r14b
mov byte [rax], r14b
mov rax, qword [rbx + 0x170]
je 0x1400c9b6a
mov byte [rax + 1], 2
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x170]
add rdx, 4
mov rcx, qword [rax]
mov qword [rcx + 0x1e8], rdx
mov rdx, qword [rbp + 0x1550]
cmp rdx, 0xffffffffffffffff
je 0x1400c9b6e
mov rcx, rbp
call fcn.1400bcd60
jmp 0x1400c9b6e
mov byte [rax + 1], 1
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov byte [rsp + 0x28], r14b
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x15c0]
mov rcx, rbp
inc rdx
call fcn.1400c3df0
mov r14d, eax
test eax, eax
jne 0x1400c9fb5
movsxd r10, dword [rbx + 0x15c]
mov rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rdi + rax], r15b
jne 0x1400c9bb5
mov r9, qword [rsp + 0x40]
mov rdx, r10
sub rdx, rax
mov rax, rsi
sub rdx, 4
inc rax
cmp byte [r9 + rax], r15b
jne 0x1400c9bd0
cmp rax, rdx
jbe 0x1400c9c02
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, rbp
call fcn.1400b4780
mov rcx, qword [rsp + 0x40]
call qword [fcn.14011456d]
mov eax, Ordinal_72
jmp 0x1400c9fb5
mov rcx, qword [rbx + 0x170]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], r15
add rcx, 2
mov qword [rsp + 0x28], rdi
mov rdx, r10
mov qword [rsp + 0x20], r15
call fcn.1400bdc30
mov rcx, rsi
nop
inc rcx
cmp byte [rdi + rcx], r15b
jne 0x1400c9c30
mov rdx, qword [rsp + 0x40]
mov rax, rsi
cmp byte [rdx + rax + 1], r15b
lea rax, [rax + 1]
jne 0x1400c9c41
lea rdi, [rax + 4]
add rdi, rcx
cmp byte [rbp + 0x7b0], r15b
jne 0x1400c9ef5
cmp byte [rbp + 0xbd1], r15b
je 0x1400c9c8d
mov r9, qword [rbp + 0x1550]
cmp r9, rsi
je 0x1400c9c8d
lea r8, str._I64d
mov edx, reloc.zlibwapi.dll_Ordinal_64
lea rcx, [rsp + 0x50]
call fcn.1400bdc30
jmp 0x1400c9c97
mov eax, Ordinal_50
mov word [rsp + 0x50], ax
movsxd rdx, dword [rbx + 0x15c]
lea rcx, [rdi + 6]
cmp rcx, rdx
jbe 0x1400c9cac
mov rax, r15
jmp 0x1400c9cdc
mov rdx, qword [rbx + 0x170]
lea rcx, str.tsize
add rdx, rdi
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400c9cc0
mov edx, dword [rbx + 0x15c]
mov eax, 6
add rdi, rax
lea rcx, [rsp + 0x50]
mov rax, rsi
nop word [rax + rax]
cmp byte [rcx + rax + 1], r15b
lea rax, [rax + 1]
jne 0x1400c9cf0
lea rcx, [rax + 1]
movsxd rax, edx
add rcx, rdi
cmp rcx, rax
ja 0x1400c9d4f
mov rdx, qword [rbx + 0x170]
lea rcx, [rsp + 0x50]
add rdx, rdi
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400c9d20
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rcx + rax], r15b
jne 0x1400c9d40
inc rdi
add rdi, rax
mov r9d, dword [rbx + 0x160]
lea r8, [0x14013ddb8]
mov edx, reloc.zlibwapi.dll_Ordinal_64
lea rcx, [rsp + 0x50]
call fcn.1400bdc30
movsxd rdx, dword [rbx + 0x15c]
lea rcx, [rdi + 8]
cmp rcx, rdx
jbe 0x1400c9d81
mov rax, r15
jmp 0x1400c9dbc
mov rdx, qword [rbx + 0x170]
lea rcx, str.blksize
add rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400c9da0
mov edx, dword [rbx + 0x15c]
mov eax, 8
add rdi, rax
lea rcx, [rsp + 0x50]
mov rax, rsi
nop word [rax + rax]
cmp byte [rcx + rax + 1], r15b
lea rax, [rax + 1]
jne 0x1400c9dd0
lea rcx, [rax + 1]
movsxd rax, edx
add rcx, rdi
cmp rcx, rax
ja 0x1400c9e2f
mov rdx, qword [rbx + 0x170]
lea rcx, [rsp + 0x50]
add rdx, rdi
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400c9e00
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rcx + rax], r15b
jne 0x1400c9e20
inc rdi
add rdi, rax
mov r9d, dword [rbx + 0x24]
lea r8, [0x14013ddb8]
mov edx, reloc.zlibwapi.dll_Ordinal_64
lea rcx, [rsp + 0x50]
call fcn.1400bdc30
movsxd rdx, dword [rbx + 0x15c]
lea rcx, [rdi + 8]
cmp rcx, rdx
ja 0x1400c9e8d
mov rdx, qword [rbx + 0x170]
lea rcx, str.timeout
add rdx, rdi
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400c9e70
mov edx, dword [rbx + 0x15c]
mov r15d, 8
add rdi, r15
lea rcx, [rsp + 0x50]
mov rax, rsi
nop dword [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400c9ea0
lea rcx, [rax + 1]
movsxd rax, edx
add rcx, rdi
cmp rcx, rax
ja 0x1400c9ef5
mov rdx, qword [rbx + 0x170]
lea rcx, [rsp + 0x50]
add rdx, rdi
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400c9ed0
lea rax, [rsp + 0x50]
inc rsi
cmp byte [rax + rsi], 0
jne 0x1400c9ee6
inc rdi
add rdi, rsi
mov rax, qword [rbx + 0x10]
xor r9d, r9d
mov rdx, qword [rbx + 0x170]
mov r8d, edi
mov rcx, qword [rax + 0x70]
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]
movsxd rcx, eax
cmp rcx, rdi
je 0x1400c9f4f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.1400d8d50
mov r8, rax
lea rdx, [0x14013dde0]
mov rcx, rbp
call fcn.1400b4780
mov rcx, qword [rsp + 0x40]
call qword [fcn.14011456d]
jmp 0x1400c9fb2
mov edx, 6
mov rcx, rbx
cmp byte [rbp + 0xbd1], r14b
je 0x1400c9f91
call fcn.1400c91e0
mov r14d, eax
jmp 0x1400c9fb2
mov edx, 4
mov rcx, rbx
call fcn.1400c91e0
mov r14d, eax
jmp 0x1400c9fb2
mov edx, 3
mov rcx, rbx
call fcn.1400c9190
mov r14d, eax
jmp 0x1400c9fb2
mov dword [rbx], 3
jmp 0x1400c9fb2
lea rdx, str.tftp_send_first:_internal_error
mov rcx, rbp
call fcn.1400b4780
mov eax, r14d
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400acdf0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
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 0x1400ca211
sub r8d, 1
je 0x1400ca208
sub r8d, 1
je 0x1400ca1ff
mov rcx, r9
cmp r8d, 1
je 0x1400ca1e5
lea r8, str.Internal_state_machine_error
lea rdx, [0x14013dde0]
call fcn.1400b4780
mov eax, Ordinal_72
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x140129448]
call fcn.1400b4900
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1400ca320
add rsp, 0x28
jmp fcn.1400c9750
add rsp, 0x28
jmp 0x1400c9a90