There is a bug where hovering over a skill which is over the configured threshold and then hovering over a skill which is over level 100 (regardless of the configured threshold) still shows the legendary button. I've searched for quite a few places to find where the game is determining if the button should be removed or not. Things I have tried:
Doesn't seem to be connected to any place where the constant "100.0" is loaded into an xmm register.
Doesn't seem to be connected to any place where the skill menu calls PlayerAVOGetBase(). The menu only seems to call this function when determining the color of the skill level text and when determining which perks are available for purchase.
Observation: This is quite strange. As this also means I found no location where the game gets the base value and stores it. So it can't be that the game is storing the value (cast to u32) and then comparing it to $0x64. Is there a bug in base skyrim where the button is displayed over skills which are buffed above level 100 by magic effects? e.g., is the game calling PlayerAVOGetCurrent() instead?
Doesn't seem to be related to any future scaleform-api calls. I snooped the calls to those and didn't find any string function names which made sense for such a call. Dumping the binary of strings shows the only scaleform function name with "legendary" in it is "ShowLegendaryButtonHint", which is what displays the button.
There is a bug where hovering over a skill which is over the configured threshold and then hovering over a skill which is over level 100 (regardless of the configured threshold) still shows the legendary button. I've searched for quite a few places to find where the game is determining if the button should be removed or not. Things I have tried: