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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
lea rsi, str.netascii
xor ebp, ebp
lea rcx, str.octet
mov rax, qword [rbx + 0x10]
mov r14, qword [rax]
cmp byte [r14 + 0x433], bpl
cmove rsi, rcx
cmp edx, 7
ja case.0x1800bd8f9.1
lea r12, [0x180000000]
movsxd rax, edx
mov eax, dword [r12 + rax*4 + 0xbdd30]
add rax, r12
jmp rax
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
cmp eax, dword [rbx + 0x28]
jle 0x1800bd91a
mov dword [rbx + 8], 0xffffff9e
xor eax, eax
mov dword [rbx], 3
jmp 0x1800bdd07
cmp byte [r14 + 0x441], bpl
je 0x1800bd968
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]
add rdx, 4
mov rcx, qword [rax]
mov qword [rcx + 0x188], rdx
mov rdx, qword [r14 + 0x89f0]
cmp rdx, 0xffffffffffffffff
je 0x1800bd986
mov rcx, r14
call fcn.1800b2470
jmp 0x1800bd986
mov ecx, ebp
mov rdx, rbp
nop dword [rax]
mov rax, qword [rbx + 0x170]
lea rdx, [rdx + 1]
mov byte [rdx + rax - 1], cl
inc ecx
cmp ecx, 2
jl 0x1800bd970
mov rax, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x89c0]
mov rcx, r14
inc rdx
call fcn.180099110
mov r15, rax
test rax, rax
jne 0x1800bd9b6
lea eax, [r15 + 0x1b]
jmp 0x1800bdd07
mov rcx, qword [rbx + 0x170]
lea r8, str._s_c_s_c
movsxd rdx, dword [rbx + 0x15c]
add rcx, 2
mov qword [rsp + 0x30], rbp
mov r9, rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0xd0], rdi
mov qword [rsp + 0x20], rbp
call fcn.1800a9db0
or rdi, 0xffffffffffffffff
mov rcx, rdi
inc rcx
cmp byte [r15 + rcx], bpl
jne 0x1800bd9f5
mov rax, rdi
cmp byte [rsi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1800bda01
lea rsi, [rax + 4]
add rsi, rcx
cmp byte [r14 + 0x441], bpl
je 0x1800bda41
mov r9, qword [r14 + 0x89f0]
cmp r9, 0xffffffffffffffff
je 0x1800bda41
lea r8, [0x1800dde54]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1800a9db0
jmp 0x1800bda65
mov rcx, rbp
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r12 + 0xdde5c]
mov byte [rsp + rcx + 0x40], al
lea rcx, [rcx + 1]
test al, al
jne 0x1800bda50
mov r8, qword [rbx + 0x170]
lea r9, str.tsize
add r8, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1800bcfd0
add rsi, rax
lea rcx, [rsp + 0x40]
mov rax, rdi
nop dword [rax]
cmp byte [rcx + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1800bda90
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x15c]
add rcx, rsi
cmp rcx, rax
jbe 0x1800bdab3
mov rax, rbp
jmp 0x1800bdafc
mov rdx, qword [rbx + 0x170]
lea rcx, [rsp + 0x40]
add rdx, rsi
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 0x1800bdad0
lea rcx, [rsp + 0x40]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x1800bdaf0
inc rax
mov r9d, dword [rbx + 0x160]
lea r8, [0x1800d8d10]
mov edx, 0x40
lea rcx, [rsp + 0x40]
add rsi, rax
call fcn.1800a9db0
mov r8, qword [rbx + 0x170]
lea r9, str.blksize
add r8, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1800bcfd0
add rsi, rax
lea rcx, [rsp + 0x40]
mov rax, rdi
cmp byte [rcx + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1800bdb43
lea rcx, [rax + 1]
movsxd rax, dword [rbx + 0x15c]
add rcx, rsi
cmp rcx, rax
jbe 0x1800bdb66
mov rax, rbp
jmp 0x1800bdbac
mov rdx, qword [rbx + 0x170]
lea rcx, [rsp + 0x40]
add rdx, rsi
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1800bdb80
lea rcx, [rsp + 0x40]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], bpl
jne 0x1800bdba0
inc rax
mov r9d, dword [rbx + 0x24]
lea r8, [0x1800d8d10]
mov edx, 0x40
lea rcx, [rsp + 0x40]
add rsi, rax
call fcn.1800a9db0
mov r8, qword [rbx + 0x170]
lea r9, str.timeout
add r8, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.1800bcfd0
add rsi, rax
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp byte [rcx + rax], bpl
jne 0x1800bdbf0
lea rcx, [rsi + 1]
add rcx, rax
movsxd rax, dword [rbx + 0x15c]
cmp rcx, rax
jbe 0x1800bdc11
mov rdi, rbp
jmp 0x1800bdc42
mov rdx, qword [rbx + 0x170]
lea rcx, [rsp + 0x40]
add rdx, rsi
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1800bdc20
lea rax, [rsp + 0x40]
inc rdi
cmp byte [rax + rdi], bpl
jne 0x1800bdc36
inc rdi
mov rax, qword [rbx + 0x10]
add rsi, rdi
mov rdx, qword [rbx + 0x170]
xor r9d, r9d
mov r8d, esi
mov rcx, qword [rax + 0x58]
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 0x1800bdca7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
mov edx, eax
call fcn.180099a20
mov r8, rax
lea rdx, [0x1800d9858]
mov rcx, r14
call fcn.1800a7ac0
mov rcx, r15
call qword [case.0x1800b4f7b.0]
jmp 0x1800bdd05
mov edx, 6
mov rcx, rbx
cmp byte [r14 + 0x441], bpl
je 0x1800bdce5
call fcn.1800bcf80
mov ebp, eax
jmp 0x1800bdd05
mov edx, 4
mov rcx, rbx
call fcn.1800bcf80
mov ebp, eax
jmp 0x1800bdd05
mov edx, 3
mov rcx, rbx
call fcn.1800bcf30
mov ebp, eax
jmp 0x1800bdd05
mov dword [rbx], 3
jmp 0x1800bdd05
lea rdx, str.tftp_send_first:_internal_error
mov rcx, r14
call fcn.1800a7ac0
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800d2550
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
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 0x1800bdf61
sub r8d, 1
je 0x1800bdf58
sub r8d, 1
je 0x1800bdf4f
mov rcx, r9
cmp r8d, 1
je 0x1800bdf35
lea r8, str.Internal_state_machine_error
lea rdx, [0x1800d9858]
call fcn.1800a7ac0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x1800d8ca4]
call fcn.1800a7b80
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1800be070
add rsp, 0x28
jmp fcn.1800bd540
add rsp, 0x28
jmp 0x1800bd890