"""FUN_18014e320 initialises the SETTINGS sub-struct at resp+0x28 (ctor calls it as FUN_18014e320(param_1 + 5), param_1 is undefined8* so +5 == +0x28). DECISIVE CONTROL: sub-offset 0x58 == resp+0x80 == friendlySeasonsEnabled (atom 0x133 -> settings deser param_2[0x16] -> S2[0x16] -> model+0x1fd3a). model+0x1fd3a reads 1 LIVE while we serve {"configs": []}. init sets +0x58 to 1 => the callback FUN_180173e00 RUNS, and every unsent settings field simply keeps the response default. init sets +0x58 to 0 => the callback does NOT run and 0x1fd3a=1 is a model default. Also read sub-offset 0x28 (== resp+0x50 == tradingEnabled -> model+0x1fd2e, live 0). """ import traceback try: s = dec(0x18014e320, 300) print("########## 0x18014e320 settings-struct init len=%d FULL ##########" % len(s)) print(s) except Exception: traceback.print_exc()