// // BrowseSmartKeyLayer::updateChanceValues from 0x100073934 to 0x100073ab8 (388 bytes) // // 2 xrefs: // > BrowseSmartKeyLayer::deletedSelectedItems @ 0x100073710 // > BrowseSmartKeyLayer::addChanceToSelected @ 0x10007383c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall BrowseSmartKeyLayer::updateChanceValues(BrowseSmartKeyLayer *a1) { GJSmartTemplate *m_template; // x20 std::string *p_m_prefabKey; // x26 int TotalChanceForPrefab; // w20 __int64 v5; // x21 __int64 v6; // x22 __int64 v7; // x23 __int64 v8; // x0 GJSmartBlockPreview *v9; // x24 GJSmartTemplate *v10; // x25 int v11; // w0 __int64 PrefabWithID; // x0 __int64 v13; // x25 void *v14[2]; // [xsp+0h] [xbp-80h] BYREF char *v15; // [xsp+10h] [xbp-70h] void *__p[2]; // [xsp+20h] [xbp-60h] BYREF char *longStorage; // [xsp+30h] [xbp-50h] m_template = a1->m_template; p_m_prefabKey = &a1->m_prefabKey; if ( a1->m_prefabKey.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(__p, (void *)a1->m_prefabKey.m_data.m_long.capacitym1, a1->m_prefabKey.m_data.m_long.size); } else { *(_OWORD *)__p = *(_OWORD *)&p_m_prefabKey->m_data.m_short.sizex2; longStorage = a1->m_prefabKey.m_data.m_long.longStorage; } TotalChanceForPrefab = GJSmartTemplate::getTotalChanceForPrefab((__int64)m_template, (__int64)__p); if ( SHIBYTE(longStorage) < 0 ) operator delete(__p[0]); if ( (unsigned int)sub_10024A36C(a1->m_pages) ) { v5 = 0; while ( 1 ) { v6 = sub_10024A388(a1->m_pages, v5); if ( (unsigned int)sub_10024A36C(v6) ) break; LABEL_20: v5 = (unsigned int)(v5 + 1); if ( (unsigned int)v5 >= (unsigned int)sub_10024A36C(a1->m_pages) ) return; } v7 = 0; while ( 1 ) { v8 = sub_10024A388(v6, v7); v9 = (GJSmartBlockPreview *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1056LL))(v8); v10 = a1->m_template; if ( a1->m_prefabKey.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(v14, (void *)a1->m_prefabKey.m_data.m_long.capacitym1, a1->m_prefabKey.m_data.m_long.size); } else { *(_OWORD *)v14 = *(_OWORD *)&p_m_prefabKey->m_data.m_short.sizex2; v15 = p_m_prefabKey->m_data.m_long.longStorage; } v11 = ((__int64 (__fastcall *)(GJSmartBlockPreview *))v9->getTag)(v9); PrefabWithID = GJSmartTemplate::getPrefabWithID((__int64)v10, (__int64)v14, v11); v13 = PrefabWithID; if ( SHIBYTE(v15) < 0 ) break; if ( PrefabWithID ) goto LABEL_15; LABEL_16: v7 = (unsigned int)(v7 + 1); if ( (unsigned int)v7 >= (unsigned int)sub_10024A36C(v6) ) goto LABEL_20; } operator delete(v14[0]); if ( !v13 ) goto LABEL_16; LABEL_15: GJSmartBlockPreview::addChance(v9, *(_DWORD *)(v13 + 108), TotalChanceForPrefab); goto LABEL_16; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source