Welcome to HCM,
IT seems that you have got osteoarthritis
changes in your knee joint affecting your thigh muscles.
Go for x-ray knee joint for any osteoarthritis changes.
Go for physiotherapy
and thigh muscle exercise ( Quadricep
Do not bend more your knee joint.
Do not squat or sitting on foot.
Avoid climbing upstairs.
as and when required.
Ok and bye.