// // ProfilePage::onInfo from 0x1007bcfa0 to 0x1007bd651 (1713 bytes) // // 1 xrefs: // > ProfilePage::loadPageFromUserInfo @ 0x1007bb30e // // 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::onInfo(ProfilePage *a1, cocos2d::CCObject *a2) { __int128 v2; // xmm0 GameLevelManager *v3; // rax std::string::size_type v4; // rcx char v5; // al std::string::size_type size; // rsi GJUserScore *m_score; // rcx std::string::size_type v8; // rcx const char *v9; // r14 const char *v10; // r15 const char *v11; // r12 const char *v12; // rax const char *v13; // rbx const char *v14; // r12 char v15; // r15 const char *v16; // r14 const char *v17; // rax char *v18; // rax const char *CString; // r14 size_t v20; // rax std::string::size_type v21; // r15 char *data; // r12 ProfilePage *v23; // rbx GJUserScore *v24; // rax int m_creatorPoints; // esi std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v26; // r15 const char *v27; // r14 const char *v28; // rdx size_t v29; // r13 std::string *p_m_discordUsername; // rax char *v31; // rax const char *v32; // rax __int64 v33; // r14 const char *v34; // r14 GJUserScore *v35; // rax const char *v36; // rdx std::string *v37; // rax char *v38; // rax const char *v39; // rax std::string::value_type *v40; // rbx const char *v41; // r14 size_t v42; // rax size_t v43; // r15 char *v44; // r12 size_t v45; // r13 char *v46; // rbx const char *v47; // [rsp+8h] [rbp-128h] size_t v48[2]; // [rsp+18h] [rbp-118h] BYREF void *v49; // [rsp+28h] [rbp-108h] size_t v50[2]; // [rsp+30h] [rbp-100h] BYREF void *v51; // [rsp+40h] [rbp-F0h] size_t v52[2]; // [rsp+48h] [rbp-E8h] BYREF void *v53; // [rsp+58h] [rbp-D8h] size_t v54[2]; // [rsp+60h] [rbp-D0h] BYREF void *v55; // [rsp+70h] [rbp-C0h] size_t v56[2]; // [rsp+78h] [rbp-B8h] BYREF void *__p; // [rsp+88h] [rbp-A8h] _QWORD v58[2]; // [rsp+90h] [rbp-A0h] BYREF void *v59; // [rsp+A0h] [rbp-90h] const char *v60; // [rsp+A8h] [rbp-88h] std::string v61; // [rsp+B0h] [rbp-80h] BYREF std::string __dst; // [rsp+D0h] [rbp-60h] BYREF __int128 v63; // [rsp+F0h] [rbp-40h] BYREF void *longStorage; // [rsp+100h] [rbp-30h] if ( !a1->m_score ) return; v3 = GameLevelManager::sharedState(); GameLevelManager::tryGetUsername(&v61, (__int64)v3, a1->m_score->m_accountID, *(double *)&v2); v4 = *(_BYTE *)&v61.__r_.__value_.__l.0 >> 1; v5 = *(_BYTE *)&v61.__r_.__value_.__s.0 & 1; size = v61.__r_.__value_.__l.__size_; if ( (*(_BYTE *)&v61.__r_.__value_.__s.0 & 1) == 0 ) size = *(_BYTE *)&v61.__r_.__value_.__l.0 >> 1; if ( !size ) { m_score = a1->m_score; if ( (m_score->m_userName.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( &__dst, m_score->m_userName.m_data.m_long.longStorage, m_score->m_userName.m_data.m_long.size, *(double *)&v2); if ( (*(_BYTE *)&v61.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_12: v61 = __dst; *(_QWORD *)&v2 = __dst.__r_.__value_.__r.__words[0]; v8 = *(_BYTE *)&__dst.__r_.__value_.__l.0 >> 1; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) v8 = __dst.__r_.__value_.__l.__size_; if ( !v8 ) goto LABEL_15; goto LABEL_16; } } else { __dst = (std::string)m_score->m_userName; if ( !v5 ) goto LABEL_12; } operator delete(v61.__r_.__value_.__l.__data_); goto LABEL_12; } if ( v5 ) v4 = v61.__r_.__value_.__l.__size_; if ( !v4 ) LABEL_15: std::string::assign(&v61, "-"); LABEL_16: GameToolbox::pointsToString((size_t *)&v63, a1->m_score->m_stars, *(double *)&v2); if ( (v63 & 1) != 0 ) v9 = (const char *)longStorage; else v9 = (char *)&v63 + 1; GameToolbox::pointsToString(v48, a1->m_score->m_moons, *(double *)&v2); if ( (v48[0] & 1) != 0 ) v10 = (const char *)v49; else v10 = (char *)v48 + 1; GameToolbox::pointsToString(v50, a1->m_score->m_diamonds, *(double *)&v2); if ( (v50[0] & 1) != 0 ) v11 = (const char *)v51; else v11 = (char *)v50 + 1; GameToolbox::pointsToString(v52, a1->m_score->m_secretCoins, *(double *)&v2); v47 = v11; if ( (v52[0] & 1) != 0 ) v12 = (const char *)v53; else v12 = (char *)v52 + 1; v60 = v12; v13 = v10; v14 = v9; GameToolbox::pointsToString(v54, a1->m_score->m_userCoins, *(double *)&v2); v15 = v54[0]; v16 = (const char *)v55; GameToolbox::pointsToString(v56, a1->m_score->m_demons, *(double *)&v2); if ( (v15 & 1) == 0 ) v16 = (char *)v54 + 1; if ( (v56[0] & 1) != 0 ) v17 = (const char *)__p; else v17 = (char *)v56 + 1; v18 = sub_1007AB580( "Stars: %s\n" "Moons: %s\n" "Diamonds: %s\n" "Secret Coins: %s\n" "User Coins: %s\n" "Demons: %s", v14, v13, v47, v60, v16, v17); CString = cocos2d::CCString::getCString((cocos2d::CCString *)v18); v20 = strlen(CString); if ( v20 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)&v2); v21 = v20; if ( v20 >= 0x17 ) { v29 = 26; if ( (v20 | 7) != 0x17 ) v29 = (v20 | 7) + 1; data = (char *)operator new(v29); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v29 | 1; __dst.__r_.__value_.__l.__size_ = v21; } else { __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v20); data = __dst.__r_.__value_.__s.__data_; if ( !v20 ) { __dst.__r_.__value_.__s.__data_[0] = 0; if ( (v56[0] & 1) == 0 ) goto LABEL_37; goto LABEL_51; } } memmove(data, CString, v21); data[v21] = 0; if ( (v56[0] & 1) == 0 ) { LABEL_37: v23 = a1; if ( (v54[0] & 1) == 0 ) goto LABEL_38; goto LABEL_52; } LABEL_51: operator delete(__p); v23 = a1; if ( (v54[0] & 1) == 0 ) { LABEL_38: if ( (v52[0] & 1) == 0 ) goto LABEL_39; goto LABEL_53; } LABEL_52: operator delete(v55); if ( (v52[0] & 1) == 0 ) { LABEL_39: if ( (v50[0] & 1) == 0 ) goto LABEL_40; goto LABEL_54; } LABEL_53: operator delete(v53); if ( (v50[0] & 1) == 0 ) { LABEL_40: if ( (v48[0] & 1) == 0 ) goto LABEL_41; goto LABEL_55; } LABEL_54: operator delete(v51); if ( (v48[0] & 1) == 0 ) { LABEL_41: if ( (v63 & 1) == 0 ) goto LABEL_42; goto LABEL_56; } LABEL_55: operator delete(v49); if ( (v63 & 1) == 0 ) { LABEL_42: v24 = v23->m_score; m_creatorPoints = v24->m_creatorPoints; if ( m_creatorPoints > 0 ) goto LABEL_43; goto LABEL_57; } LABEL_56: operator delete(longStorage); v24 = v23->m_score; m_creatorPoints = v24->m_creatorPoints; if ( m_creatorPoints > 0 ) { LABEL_43: v26 = __dst.__r_.__value_.__s.0; v27 = __dst.__r_.__value_.__l.__data_; GameToolbox::pointsToString((size_t *)&v63, m_creatorPoints, *(double *)&v2); if ( (*(_BYTE *)&v26 & 1) == 0 ) v27 = __dst.__r_.__value_.__s.__data_; if ( (v63 & 1) != 0 ) v28 = (const char *)longStorage; else v28 = (char *)&v63 + 1; v31 = sub_1007AB580("%s\nCreator Points: %s", v27, v28); v32 = cocos2d::CCString::getCString((cocos2d::CCString *)v31); std::string::assign(&__dst, v32); if ( (v63 & 1) != 0 ) operator delete(longStorage); v24 = v23->m_score; if ( (v24->m_discordUsername.m_data.m_short.sizex2 & 1) != 0 ) goto LABEL_63; LABEL_58: p_m_discordUsername = &v24->m_discordUsername; longStorage = p_m_discordUsername->m_data.m_long.longStorage; v2 = *(_OWORD *)&p_m_discordUsername->m_data.m_short.sizex2; v63 = *(_OWORD *)&p_m_discordUsername->m_data.m_short.sizex2; goto LABEL_64; } LABEL_57: if ( (v24->m_discordUsername.m_data.m_short.sizex2 & 1) == 0 ) goto LABEL_58; LABEL_63: sub_100006B70( &v63, v24->m_discordUsername.m_data.m_long.longStorage, v24->m_discordUsername.m_data.m_long.size, *(double *)&v2); LABEL_64: if ( (v63 & 1) != 0 ) { v33 = *((_QWORD *)&v63 + 1); operator delete(longStorage); if ( !v33 ) goto LABEL_77; } else if ( !(_BYTE)v63 ) { goto LABEL_77; } if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) { v34 = __dst.__r_.__value_.__l.__data_; v35 = v23->m_score; if ( (v35->m_discordUsername.m_data.m_short.sizex2 & 1) != 0 ) goto LABEL_70; LABEL_73: v37 = &v35->m_discordUsername; longStorage = v37->m_data.m_long.longStorage; v2 = *(_OWORD *)&v37->m_data.m_short.sizex2; v63 = *(_OWORD *)&v37->m_data.m_short.sizex2; if ( (v63 & 1) != 0 ) goto LABEL_71; goto LABEL_74; } v34 = __dst.__r_.__value_.__s.__data_; v35 = v23->m_score; if ( (v35->m_discordUsername.m_data.m_short.sizex2 & 1) == 0 ) goto LABEL_73; LABEL_70: sub_100006B70( &v63, v35->m_discordUsername.m_data.m_long.longStorage, v35->m_discordUsername.m_data.m_long.size, *(double *)&v2); if ( (v63 & 1) != 0 ) { LABEL_71: v36 = (const char *)longStorage; goto LABEL_75; } LABEL_74: v36 = (char *)&v63 + 1; LABEL_75: v38 = sub_1007AB580("%s\nDiscord: @%s", v34, v36); v39 = cocos2d::CCString::getCString((cocos2d::CCString *)v38); std::string::assign(&__dst, v39); if ( (v63 & 1) != 0 ) operator delete(longStorage); LABEL_77: if ( (*(_BYTE *)&v61.__r_.__value_.__s.0 & 1) != 0 ) { LODWORD(v40) = v61.__r_.__value_.__r.__words[2]; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_79: v41 = __dst.__r_.__value_.__s.__data_; goto LABEL_82; } } else { v40 = v61.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_79; } v41 = __dst.__r_.__value_.__l.__data_; LABEL_82: v42 = strlen(v41); if ( v42 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(*(double *)&v2); v43 = v42; if ( v42 >= 0x17 ) { v45 = 26; if ( (v42 | 7) != 0x17 ) v45 = (v42 | 7) + 1; v44 = (char *)operator new(v45); v59 = v44; v58[0] = v45 | 1; v58[1] = v43; } else { LOBYTE(v58[0]) = 2 * v42; v44 = (char *)v58 + 1; if ( !v42 ) goto LABEL_90; } memmove(v44, v41, v43); LABEL_90: v44[v43] = 0; v46 = FLAlertLayer::create_1(0, (int)v40, (__int64)v58, (int)"OK", 0, COERCE_DOUBLE(1133903872)); if ( (v58[0] & 1) != 0 ) operator delete(v59); (*(void (__fastcall **)(char *))(*(_QWORD *)v46 + 1288LL))(v46); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__dst.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v61.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v61.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source