// // GameStatsManager::accountIDForIcon from 0xa81168 to 0xa811e0 (120 bytes) // // 2 xrefs: // > ItemInfoPopup::init @ 0x7951c0 // > @ 0xc5ee0 // // 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 // int GameStatsManager::accountIDForIcon(GameStatsManager *a1, int a2, UnlockType a3) { std::_rb_tree_base *p_m_header; // x5 std::_rb_tree_base *m_parent; // x0 std::_rb_tree_base *v5; // x4 int v6; // w3 int v7; // w0 p_m_header = &a1->m_accountIDForIcon.m_header; m_parent = a1->m_accountIDForIcon.m_header.m_parent; if ( !m_parent ) return 0; v5 = p_m_header; do { while ( 1 ) { v6 = *(_DWORD *)&m_parent[1].m_isblack; if ( a2 > v6 || a2 >= v6 && *((_DWORD *)&m_parent[1].m_isblack + 1) < a3 ) break; v5 = m_parent; m_parent = m_parent->m_left; if ( !m_parent ) goto LABEL_7; } m_parent = m_parent->m_right; } while ( m_parent ); LABEL_7: if ( p_m_header != v5 && (v7 = *(_DWORD *)&v5[1].m_isblack, a2 >= v7) && (a2 > v7 || a3 >= *((_DWORD *)&v5[1].m_isblack + 1)) ) { return (int)v5[1].m_parent; } else { return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source