// // ProfilePage::onCopyName from 0x10019abd0 to 0x10019ad6c (412 bytes) // // 1 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x100199338 // // 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::onCopyName(ProfilePage *a1, cocos2d::CCObject *a2) { GameLevelManager *v3; // x0 std::string::size_type v4; // x9 std::string::size_type v5; // x8 std::string::size_type size; // x10 std::string::size_type v7; // x11 GJUserScore *m_score; // x9 __int64 v9; // x0 void *v10[2]; // [xsp+0h] [xbp-A0h] BYREF char v11; // [xsp+17h] [xbp-89h] void *v12[2]; // [xsp+18h] [xbp-88h] BYREF char v13; // [xsp+2Fh] [xbp-71h] std::string __p; // [xsp+30h] [xbp-70h] BYREF std::string __dst; // [xsp+50h] [xbp-50h] BYREF std::string v16; // [xsp+70h] [xbp-30h] BYREF if ( !a1->m_score ) return; v3 = GameLevelManager::sharedState(); GameLevelManager::tryGetUsername((__int64)v3, a1->m_score->m_accountID, (__int64)&v16); v4 = HIBYTE(v16.__r_.__value_.__r.__words[2]); LOBYTE(v5) = *((_BYTE *)&v16.__r_.__value_.__s + 23); size = v16.__r_.__value_.__l.__size_; if ( (v16.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v7 = HIBYTE(v16.__r_.__value_.__r.__words[2]); else v7 = v16.__r_.__value_.__l.__size_; if ( !v7 ) { 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); if ( (*((_BYTE *)&v16.__r_.__value_.__s + 23) & 0x80) == 0 ) goto LABEL_9; } else { __dst = (std::string)m_score->m_userName; if ( (*((_BYTE *)&v16.__r_.__value_.__s + 23) & 0x80) == 0 ) { LABEL_9: v16 = __dst; v4 = HIBYTE(__dst.__r_.__value_.__r.__words[2]); size = __dst.__r_.__value_.__l.__size_; v5 = HIBYTE(__dst.__r_.__value_.__r.__words[2]); goto LABEL_10; } } operator delete(v16.__r_.__value_.__l.__data_); goto LABEL_9; } LABEL_10: if ( (v5 & 0x80u) != 0LL ) v4 = size; if ( !v4 ) { std::string::assign(&v16, "-"); if ( (*((_BYTE *)&v16.__r_.__value_.__s + 23) & 0x80) == 0 ) goto LABEL_14; LABEL_16: sub_1000097D0(&__p, v16.__r_.__value_.__l.__data_, v16.__r_.__value_.__l.__size_); goto LABEL_17; } if ( (v5 & 0x80) != 0 ) goto LABEL_16; LABEL_14: __p = v16; LABEL_17: PlatformToolbox::copyToClipboard((__int64 *)&__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); sub_100009900(v12, "Copied to clipboard"); sub_100009900(v10, ""); v9 = TextAlertPopup::create(v12, 150, v10, 0.5, 0.6); ((void (__fastcall *)(ProfilePage *, __int64, __int64))a1->addChild_0)(a1, v9, 100); if ( v11 < 0 ) operator delete(v10[0]); if ( v13 < 0 ) operator delete(v12[0]); if ( SHIBYTE(v16.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v16.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source