// // ProfilePage::onBlockUser from 0x10019b088 to 0x10019b1ec (356 bytes) // // 1 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x100199a04 // // 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 ProfilePage::onBlockUser(ProfilePage *a1, cocos2d::CCObject *a2) { GJAccountManager *v3; // x0 GJUserScore *m_score; // x8 const char *p_dst; // x8 cocos2d::CCString *v6; // x0 char *CString; // x0 char *v8; // x1 ButtonSprite **v9; // x19 void *__p[2]; // [xsp+10h] [xbp-60h] BYREF char v11; // [xsp+27h] [xbp-49h] void *v12[2]; // [xsp+28h] [xbp-48h] BYREF char v13; // [xsp+3Fh] [xbp-31h] __int128 __dst; // [xsp+40h] [xbp-30h] BYREF char *longStorage; // [xsp+50h] [xbp-20h] v3 = GJAccountManager::sharedState(); if ( v3->m_accountID <= v3->m_unkInt1 ) { ProfilePage::showNoAccountError((ProfilePage *)v3); } else { m_score = a1->m_score; if ( m_score->m_userName.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( &__dst, (void *)m_score->m_userName.m_data.m_long.capacitym1, m_score->m_userName.m_data.m_long.size); } else { __dst = *(_OWORD *)&m_score->m_userName.m_data.m_short.sizex2; longStorage = m_score->m_userName.m_data.m_long.longStorage; } p_dst = (const char *)&__dst; if ( SHIBYTE(longStorage) < 0 ) p_dst = (const char *)__dst; v6 = (cocos2d::CCString *)sub_100268F4C( "Are you sure you want to block %s?\n" "%s will no longer be able to:\n" "- View your profile\n" "- Send messages\n" "- Send friend requests\n" "- Messages from this user will be removed", p_dst, p_dst); CString = (char *)cocos2d::CCString::getCString(v6); sub_100009900(v12, CString); if ( v13 >= 0 ) v8 = (char *)v12; else v8 = (char *)v12[0]; sub_100009900(__p, v8); v9 = (ButtonSprite **)FLAlertLayer::create( &a1->FLAlertLayerProtocol, "Confirm Block", __p, "Back", "Block", 0, 380.0, 0.0, 1.0); if ( v11 < 0 ) operator delete(__p[0]); ButtonSprite::updateBGImage(v9[75], "GJ_button_06.png"); (*(void (__fastcall **)(ButtonSprite **, __int64))&(*v9)->m_fVertexZ)(v9, 3); (*(void (__fastcall **)(ButtonSprite **))&(*v9)[1].m_fTextureTop)(v9); if ( v13 < 0 ) operator delete(v12[0]); if ( SHIBYTE(longStorage) < 0 ) operator delete((void *)__dst); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source