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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r15, qword [rcx + 0x10]
lea rax, str.octet
xor edi, edi
movsxd rsi, edx
lea r12, str.netascii
mov rbx, rcx
cmp byte [r15 + 0x1382], dil
cmove r12, rax
cmp esi, 7
ja case.0x140056f39.1
lea r13, [0x140000000]
mov eax, dword [r13 + rsi*4 + 0x575b0]
add rax, r13
jmp rax
inc dword [rcx + 0x20]
mov eax, dword [rcx + 0x20]
cmp eax, dword [rcx + 0x28]
jle 0x140056f5a
mov dword [rcx + 8], 0xffffff9e
xor eax, eax
mov dword [rcx], 3
jmp 0x140057584
mov rax, qword [rcx + 0x158]
cmp byte [r15 + 0x1388], dil
mov byte [rax], dil
mov rax, qword [rcx + 0x158]
je 0x140056fcd
mov byte [rax + 1], 2
mov rcx, qword [rcx + 0x158]
mov rax, qword [rbx + 0x10]
add rcx, 4
mov qword [rax + 0x190], rcx
mov rcx, qword [r15 + 0x11b8]
cmp rcx, 0xffffffffffffffff
je 0x140056fd1
mov eax, dword [r15 + 0xaf4]
test rcx, rcx
js 0x140056fba
or eax, 0x20
mov qword [r15 + 0xad0], rcx
mov dword [r15 + 0xaf4], eax
jmp 0x140056fd1
and eax, 0xffffffdf
mov qword [r15 + 0xad0], rdi
mov dword [r15 + 0xaf4], eax
jmp 0x140056fd1
mov byte [rax + 1], 1
mov rax, qword [rbx + 0x10]
mov r14, 0xffffffffffffffff
mov rdi, r14
mov rsi, qword [rax + 0x1208]
inc rsi
nop dword [rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140056ff0
lea rcx, [rdi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
test rax, rax
jne 0x140057014
lea eax, [r9 + 0x1b]
jmp 0x140057584
mov rbp, rax
test rdi, rdi
je 0x140057098
nop dword [rax]
movzx ecx, byte [rsi]
cmp cl, 0x25
jne 0x140057083
cmp rdi, 2
jbe 0x140057083
movsx r8, byte [rsi + 1]
lea eax, [r8 - 0x30]
cmp al, 9
jbe 0x14005704b
lea eax, [r8 - 0x61]
cmp al, 5
jbe 0x14005704b
lea eax, [r8 - 0x41]
cmp al, 5
ja 0x140057083
movsx rdx, byte [rsi + 2]
lea eax, [rdx - 0x30]
cmp al, 9
jbe 0x140057065
lea eax, [rdx - 0x61]
cmp al, 5
jbe 0x140057065
lea eax, [rdx - 0x41]
cmp al, 5
ja 0x140057083
movzx ecx, byte [r8 + r13 + 0x67e00]
add rsi, 3
shl cl, 4
or cl, byte [rdx + r13 + 0x67e00]
sub rdi, 3
jmp 0x140057089
inc rsi
dec rdi
test cl, cl
je 0x1400570f6
mov byte [r9], cl
inc r9
test rdi, rdi
jne 0x140057020
xor r13d, r13d
mov byte [r9], 0
movsxd rdx, dword [rbx + 0x144]
mov edi, r13d
mov rax, r14
nop dword [rax]
inc rax
cmp byte [r12 + rax], dil
jne 0x1400570b0
mov rcx, rdx
sub rcx, rax
mov rax, r14
sub rcx, 4
inc rax
cmp byte [rax + rbp], dil
jne 0x1400570c6
cmp rax, rcx
jbe 0x140057109
lea rdx, str.TFTP_file_name_too_long
mov rcx, r15
call fcn.140013150
mov rcx, rbp
call qword [0x14007c4b8]
mov eax, 0x47
jmp 0x140057584
mov rcx, rbp
call qword [0x14007c4b8]
mov eax, 3
jmp 0x140057584
mov rcx, qword [rbx + 0x158]
lea r8, str._s_c_s_c
mov qword [rsp + 0x30], r13
add rcx, 2
mov qword [rsp + 0x28], r12
mov r9, rbp
mov qword [rsp + 0x20], r13
call fcn.140039c30
mov rcx, r14
inc rcx
cmp byte [r12 + rcx], dil
jne 0x140057135
mov rax, r14
cmp byte [rax + rbp + 1], dil
lea rax, [rax + 1]
jne 0x140057141
lea rsi, [rax + 4]
add rsi, rcx
cmp byte [r15 + 0xa6c], dil
jne 0x140057445
cmp byte [r15 + 0x1388], dil
je 0x14005718d
mov r9, qword [r15 + 0x11b8]
cmp r9, r14
je 0x14005718d
lea r8, str._lld
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.140039c30
jmp 0x140057197
mov eax, 0x30
mov word [rsp + 0x40], ax
movsxd rax, dword [rbx + 0x144]
lea rcx, [rsi + 6]
cmp rcx, rax
jbe 0x1400571ae
lea rcx, [rsp + 0x40]
jmp 0x140057203
mov rdx, qword [rbx + 0x158]
lea rcx, str.tsize
add rdx, rsi
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400571c0
add rsi, 6
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x1400571e0
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, rsi
cmp rcx, rax
lea rcx, [rsp + 0x40]
jbe 0x140057241
mov r9d, dword [rbx + 0x148]
lea r8, [0x1400679d8]
mov edx, 0x40
call fcn.140039c30
mov r9d, dword [rbx + 0x24]
lea r8, [0x1400679d8]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.140039c30
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x1400570db
mov rdx, qword [rbx + 0x158]
add rdx, rsi
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140057250
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], dil
lea rax, [rax + 1]
jne 0x140057270
mov r9d, dword [rbx + 0x148]
lea rdi, [rax + 1]
lea r8, [0x1400679d8]
mov edx, 0x40
lea rcx, [rsp + 0x40]
add rdi, rsi
call fcn.140039c30
movsxd rcx, dword [rbx + 0x144]
lea rax, [rdi + 8]
cmp rax, rcx
ja 0x14005721b
mov rdx, qword [rbx + 0x158]
lea rcx, str.blksize
add rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400572d0
add rdi, 8
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], r13b
lea rax, [rax + 1]
jne 0x1400572f0
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, rdi
cmp rcx, rax
lea rcx, [rsp + 0x40]
jbe 0x140057334
mov r9d, dword [rbx + 0x24]
lea r8, [0x1400679d8]
mov edx, 0x40
call fcn.140039c30
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x1400570db
mov rdx, qword [rbx + 0x158]
add rdx, rdi
nop
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140057340
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rcx + rax], r13b
jne 0x140057360
mov r9d, dword [rbx + 0x24]
lea r8, [0x1400679d8]
inc rax
lea rcx, [rsp + 0x40]
mov edx, 0x40
add rdi, rax
call fcn.140039c30
movsxd rcx, dword [rbx + 0x144]
lea rax, [rdi + 8]
cmp rax, rcx
ja 0x1400573ee
mov rdx, qword [rbx + 0x158]
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 0x1400573b0
add rdi, 8
lea rcx, [rsp + 0x40]
mov rax, r14
nop dword [rax]
cmp byte [rcx + rax + 1], r13b
lea rax, [rax + 1]
jne 0x1400573d0
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x144]
add rcx, rdi
cmp rcx, rax
jbe 0x1400573fa
lea rdx, str.TFTP_buffer_too_small_for_options
jmp 0x1400570db
mov rdx, qword [rbx + 0x158]
lea rcx, [rsp + 0x40]
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 0x140057410
lea rax, [rsp + 0x40]
nop word [rax + rax]
cmp byte [rax + r14 + 1], r13b
lea r14, [r14 + 1]
jne 0x140057430
lea rsi, [r14 + 1]
add rsi, rdi
mov edi, r13d
mov rax, qword [r15 + 0x20]
xor r9d, r9d
mov rcx, qword [rbx + 0x18]
mov r8d, esi
mov rax, qword [rax + 0x38]
lea rdx, [rax + 0x10]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, qword [rbx + 0x158]
call qword [sym.imp.WS2_32.dll_sendto]
movsxd rcx, eax
cmp rcx, rsi
je 0x1400574a3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x80]
call fcn.140053f40
mov r8, rax
lea rdx, [0x14006a64c]
mov rcx, r15
call fcn.140013150
mov rcx, rbp
call qword [0x14007c4b8]
jmp 0x140057582
lea rdx, [0x14006a64c]
mov rcx, r15
cmp byte [r15 + 0x1388], dil
je 0x1400574f9
lea r8, str.Connected_for_transmit
call fcn.140013280
mov rcx, rbx
mov dword [rbx], 2
call fcn.140056a50
mov edi, eax
test eax, eax
jne 0x140057582
mov edx, esi
mov rcx, rbx
call fcn.140057900
mov edi, eax
jmp 0x140057582
lea r8, str.Connected_for_receive
call fcn.140013280
mov rcx, rbx
mov dword [rbx], 1
call fcn.140056a50
mov edi, eax
test eax, eax
jne 0x140057582
mov edx, esi
mov rcx, rbx
call fcn.1400575d0
mov edi, eax
jmp 0x140057582
lea r8, str.Connected_for_transmit
mov rcx, r15
lea rdx, [0x14006a64c]
call fcn.140013280
mov rcx, rbx
mov dword [rbx], 2
call fcn.140056a50
mov edi, eax
test eax, eax
jne 0x140057582
mov edx, esi
mov rcx, rbx
call fcn.140057900
mov edi, eax
jmp 0x140057582
lea rdx, [0x14006a64c]
mov rcx, r15
jmp 0x1400574f9
mov dword [rcx], 3
jmp 0x140057582
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r15
call fcn.140013150
mov eax, edi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140065250
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret