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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1400a91a0]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor r12d, r12d
mov rbx, rcx
lea rbp, str.netascii
mov rax, qword [rbx + 0x10]
lea rcx, str.octet
mov r14d, r12d
mov rsi, qword [rax]
cmp dword [rsi + 0x5c4], r12d
cmove rbp, rcx
cmp edx, 7
ja case.0x1400454e1.1
movsxd rax, edx
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x45834]
add rcx, rdx
jmp rcx
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x140045502
mov dword [rbx + 8], 0xffffff9e
mov dword [rbx], 3
xor eax, eax
jmp 0x140045806
lea r15, [rbx + 0x170]
mov rcx, r15
cmp dword [rsi + 0x5fc], r12d
je 0x14004554b
mov edx, 2
call fcn.140044f70
mov rax, qword [rbx + 0x10]
mov rdx, qword [r15]
mov rcx, qword [rax]
add rdx, 4
mov qword [rcx + 0x1f0], rdx
mov rdx, qword [rsi + 0x4f80]
cmp rdx, 0xffffffffffffffff
je 0x140045555
mov rcx, rsi
call fcn.14002eb60
jmp 0x140045555
mov edx, 1
call fcn.140044f70
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [rax]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov rdx, qword [rcx + 0x4f48]
mov rcx, rsi
inc rdx
call fcn.140048fd0
mov r14d, eax
test eax, eax
jne 0x140045806
movsxd rdx, dword [rbx + 0x15c]
or rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rax + rbp], r12b
jne 0x1400455a0
mov r9, qword [rsp + 0x40]
mov rcx, rdx
sub rcx, rax
mov rax, rdi
sub rcx, 4
nop dword [rax + rax]
inc rax
cmp byte [r9 + rax], r12b
jne 0x1400455c0
cmp rax, rcx
jbe 0x1400455e7
lea rdx, str.TFTP_file_name_too_long_n
mov rcx, rsi
call fcn.140023ea0
mov eax, 0x47
jmp 0x140045806
mov rcx, qword [r15]
mov qword [rsp + 0x30], r12
lea r8, str._s_c_s_c
add rcx, 2
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
call fcn.1400311d0
mov rcx, qword [rsp + 0x40]
mov rax, rdi
inc rax
cmp byte [rcx + rax], r12b
jne 0x140045611
nop word [rax + rax]
inc rdi
cmp byte [rdi + rbp], r12b
jne 0x140045620
add rdi, 4
add rdi, rax
cmp dword [rsi + 0x34c], r12d
jne 0x14004574a
cmp dword [rsi + 0x5fc], r12d
je 0x14004566b
mov r9, qword [rsi + 0x4f80]
cmp r9, 0xffffffffffffffff
je 0x14004566b
lea r8, str._I64d
lea rcx, [rsp + 0x50]
mov edx, 0x40
call fcn.1400311d0
jmp 0x140045677
movzx eax, word [0x1400a5cb4]
mov word [rsp + 0x50], ax
mov r8, qword [r15]
lea r9, str.tsize
mov rdx, rdi
add r8, rdi
mov rcx, rbx
call fcn.140045340
mov r8, qword [r15]
lea r9, [rsp + 0x50]
add rdi, rax
mov rcx, rbx
add r8, rdi
mov rdx, rdi
call fcn.140045340
mov r9d, dword [rbx + 0x160]
lea r8, [0x1400a5d8c]
lea rcx, [rsp + 0x50]
mov edx, 0x40
add rdi, rax
call fcn.1400311d0
mov r8, qword [r15]
lea r9, str.blksize
add r8, rdi
mov rdx, rdi
mov rcx, rbx
call fcn.140045340
mov r8, qword [r15]
lea r9, [rsp + 0x50]
add rdi, rax
mov rcx, rbx
add r8, rdi
mov rdx, rdi
call fcn.140045340
mov r9d, dword [rbx + 0x24]
lea r8, [0x1400a5d9c]
lea rcx, [rsp + 0x50]
mov edx, 0x40
add rdi, rax
call fcn.1400311d0
mov r8, qword [r15]
lea r9, str.timeout
add r8, rdi
mov rdx, rdi
mov rcx, rbx
call fcn.140045340
mov r8, qword [r15]
lea r9, [rsp + 0x50]
add rdi, rax
mov rcx, rbx
add r8, rdi
mov rdx, rdi
call fcn.140045340
add rdi, rax
mov rax, qword [rbx + 0x10]
mov rdx, qword [r15]
xor r9d, r9d
mov rcx, qword [rax + 0x70]
mov r8d, edi
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 0x1400457a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.140033440
lea rdx, [0x1400a5dc4]
mov rcx, rsi
mov r8, rax
call fcn.140023ea0
mov rcx, qword [rsp + 0x40]
call qword [fcn.1400570ac]
jmp 0x140045803
mov edx, 6
mov rcx, rbx
cmp dword [rsi + 0x5fc], r12d
je 0x1400457e2
call fcn.1400453b0
mov r14d, eax
jmp 0x140045803
mov edx, 4
mov rcx, rbx
call fcn.1400453b0
mov r14d, eax
jmp 0x140045803
mov edx, 3
mov rcx, rbx
call fcn.140045410
mov r14d, eax
jmp 0x140045803
mov dword [rbx], 3
jmp 0x140045803
lea rdx, str.tftp_send_first:_internal_error
mov rcx, rsi
call fcn.140023ea0
mov eax, r14d
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140056190
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
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 0x1400458ce
dec r8d
je 0x1400458c5
dec r8d
je 0x1400458bc
mov rcx, r9
dec r8d
je 0x1400458a2
lea r8, str.Internal_state_machine_error
lea rdx, [0x1400a5b5c]
call fcn.140023ea0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x1400a5b34]
call fcn.140023df0
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140044420
add rsp, 0x28
jmp fcn.1400440a0
add rsp, 0x28
jmp 0x140045470