// // ProfilePage::loadPageFromUserInfo from 0x10089f240 to 0x1008a1bcb (10635 bytes) // // 6 xrefs: // > ProfilePage::init @ 0x10089e60e // > ProfilePage::followUserFinished @ 0x1008a5518 // > ProfilePage::getUserInfoFinished @ 0x1008a6884 // > sub_1008A6B80 @ 0x1008a6bb9 // > ProfilePage::userInfoChanged @ 0x1008a6cfb // > sub_1008A6D50 @ 0x1008a6d75 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:37:14 +0000 // char __fastcall ProfilePage::loadPageFromUserInfo(__int64 a1, __int64 a2) { __int64 v2; // r14 __int64 v3; // rbx _DWORD *v4; // rdi __int64 v5; // rsi __int64 v6; // rdi unsigned int *v7; // rax _QWORD *v8; // rbx unsigned __int64 v9; // r15 __int64 v10; // rax std::string::size_type size; // rbx __int64 v12; // rax __int64 v13; // r14 int v14; // ebx __int64 v15; // rdi __int64 v16; // rdi __int64 v17; // rbx __int64 v18; // rax __int64 v19; // rax char v20; // bl __int64 v21; // rax bool v22; // zf __int64 v23; // r14 char v24; // bl __int64 v25; // rax __int64 v26; // rsi __int64 v27; // r15 __int64 v28; // rax __int64 v29; // rdi const char *v30; // r14 __int64 v31; // r15 __int64 v32; // rax __int64 v33; // rax __int64 v34; // rax unsigned int v35; // ebx std::string::size_type v36; // rbx unsigned int v37; // r14d __int64 v38; // r14 unsigned int v39; // r15d __int64 v40; // r15 unsigned int v41; // r12d __int64 v42; // r12 __int128 *v43; // rax bool v44; // bl int v45; // r14d __int64 v46; // r12 int v47; // r15d __int64 v48; // rax char v49; // al int v50; // ebx __int64 v51; // rcx int v52; // r13d __int64 v53; // r14 int v54; // ecx char *v55; // r15 __int64 *v56; // rdi __int64 v57; // rax char v58; // cl int v59; // esi unsigned int v60; // r14d unsigned __int8 v61; // r12 int v62; // xmm0_4 char *v63; // rdi void *v64; // r15 std::string::pointer data; // rdi char *v66; // r13 void *v67; // r12 __int64 v68; // rdx float v69; // xmm0_4 float v70; // xmm1_4 __int64 v71; // r15 float v72; // xmm3_4 char *v73; // rbx __int64 v74; // r14 unsigned int v75; // r15d __int64 v76; // r14 __int64 v77; // r12 float v78; // xmm0_4 __int64 v79; // r12 unsigned int *v80; // rax __int64 v81; // rax __int64 v82; // rdi __int64 v83; // rax __int64 v84; // rbx __int64 v85; // rax __int64 v86; // rax __int64 v87; // rax unsigned int v88; // r14d int v89; // eax __int64 v90; // rcx int v91; // xmm0_4 __int64 v92; // rdx int v93; // ebx __int64 v94; // rax int v95; // eax unsigned int v96; // r12d char *v97; // r15 __int64 v98; // rdx __int64 v99; // rbx __int64 v100; // rax char v101; // cl _DWORD *v102; // r13 __int64 v103; // r15 __int64 v104; // rbx __int128 v105; // xmm0 __int64 v106; // rax char v107; // r14 __int64 v108; // rax __int128 *v109; // rax std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v110; // al std::string::size_type v111; // rbx __int64 v112; // rax __int128 *v113; // rax std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0 v114; // al const char *v115; // r15 std::string::size_type v116; // rbx __int64 v117; // rax __int128 *v118; // rax char *v119; // rax void *v120; // r14 __int64 v121; // r15 char *v122; // r14 __int64 v123; // rax char *v124; // rdi bool v125; // bl unsigned int v126; // r12d std::string::size_type v127; // rbx __int64 v128; // rax __int128 *v129; // rax std::string::size_type v130; // rbx __int64 v131; // rax __int128 *v132; // rax const std::string::value_type *v133; // rdi char *v134; // rax void *v135; // r14 __int64 v136; // r12 __int64 v137; // rax int v138; // ecx bool v139; // bl __int64 v140; // rax __int64 v141; // rax __int64 v142; // rax char *v143; // rax __int64 v144; // rbx void *v145; // r14 __int64 v146; // r15 __int64 v147; // rbx __int64 v148; // rax unsigned int v149; // r14d const char *v150; // r12 double v151; // xmm0_8 char *v152; // rbx __int64 v153; // r15 char *v154; // r12 char *v155; // rax __int64 CString; // rax void *v157; // r14 __int64 v158; // rdi __int64 v159; // rbx unsigned __int64 *v160; // rsi int v161; // eax const std::string::value_type *v162; // rsi std::string::pointer v163; // rdi char *v164; // rax void *v165; // r14 __int64 v166; // r15 __int64 (__fastcall ***v167)(); // r14 void *v168; // r14 __int64 v169; // r15 unsigned __int64 *v170; // r12 float *v171; // rax __int64 v172; // rax double v173; // xmm0_8 char *v174; // rbx _BYTE *v175; // r14 __int64 v176; // rbx unsigned __int64 *v177; // r15 __int64 v178; // xmm0_8 __int64 v179; // rsi __int64 v180; // rbx _QWORD *v181; // r15 __int64 v182; // rax char *v183; // r15 double v184; // xmm0_8 __int64 v185; // r14 char *v186; // rbx _QWORD *v187; // r13 __int64 v188; // rbx __int64 v189; // rax double v190; // xmm0_8 char *v191; // r15 __int64 v192; // rdi char *v193; // rbx void *v194; // r13 __int64 v195; // rbx double v196; // xmm0_8 char *v197; // r12 __int64 v198; // rax __int64 v199; // rax __int64 v200; // rbx void *v201; // rbx __int64 v202; // rsi char *v203; // rax __int64 v204; // r14 void *v205; // rbx __int64 v206; // rax void *v207; // rbx void *v208; // rbx __int64 v209; // rax char *v210; // rax void *v211; // rbx __int64 v212; // r15 __int64 v213; // rbx __int64 v214; // xmm0_8 _DWORD *v215; // rax __int64 v216; // r15 __int64 v217; // rbx int v218; // r12d char *v219; // r13 int v220; // ebx __int64 v221; // rax __int64 v222; // rax __int64 v223; // xmm0_8 char *v224; // rax __int64 v225; // rax void *v226; // r12 char *v227; // rax void *v228; // r14 __int64 v229; // r15 __int64 v230; // rbx __int64 v231; // rax __int64 v233; // [rsp+8h] [rbp-128h] int v234; // [rsp+14h] [rbp-11Ch] float v235; // [rsp+18h] [rbp-118h] char *v236; // [rsp+18h] [rbp-118h] __int128 v237; // [rsp+20h] [rbp-110h] BYREF void *v238; // [rsp+30h] [rbp-100h] unsigned __int64 v239; // [rsp+38h] [rbp-F8h] BYREF int v240; // [rsp+40h] [rbp-F0h] float v241; // [rsp+44h] [rbp-ECh] char *v242; // [rsp+48h] [rbp-E8h] __int16 v243; // [rsp+50h] [rbp-E0h] BYREF char v244; // [rsp+52h] [rbp-DEh] __int16 v245; // [rsp+54h] [rbp-DCh] char v246; // [rsp+56h] [rbp-DAh] char *v247; // [rsp+58h] [rbp-D8h] __int128 v248; // [rsp+60h] [rbp-D0h] BYREF void *v249; // [rsp+70h] [rbp-C0h] __int128 v250; // [rsp+80h] [rbp-B0h] BYREF void *__p; // [rsp+90h] [rbp-A0h] __int128 v252; // [rsp+A0h] [rbp-90h] BYREF void *v253; // [rsp+B0h] [rbp-80h] char *v254; // [rsp+B8h] [rbp-78h] _QWORD *v255; // [rsp+C0h] [rbp-70h] unsigned __int64 v256; // [rsp+C8h] [rbp-68h] BYREF __int64 v257; // [rsp+D0h] [rbp-60h] BYREF char *v258; // [rsp+D8h] [rbp-58h] std::string v259; // [rsp+E0h] [rbp-50h] BYREF __int64 v260; // [rsp+100h] [rbp-30h] v2 = a2; v3 = a1; (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 584) + 128LL))(*(_QWORD *)(a1 + 584), 1.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v3 + 584) + 144LL))(*(_QWORD *)(v3 + 584), 1.0); if ( a2 ) cocos2d::CCObject::retain(a2); v4 = *(_DWORD **)(a1 + 728); if ( v4 ) { cocos2d::CCObject::release(v4); *(_QWORD *)(v3 + 728) = 0; } v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v257, v5); v6 = *(_QWORD *)(v3 + 832); v260 = v3; if ( !v6 ) { LOBYTE(v10) = sub_1007FF190(0); if ( !v2 ) return v10; LABEL_14: *(_QWORD *)(v3 + 728) = v2; if ( !*(_QWORD *)(v3 + 776) ) goto LABEL_41; if ( (*(_BYTE *)(v2 + 320) & 1) != 0 ) { v5 = *(_QWORD *)(v2 + 336); sub_10001AD30(&v259, (const void *)v5, *(_QWORD *)(v2 + 328)); } else { v259 = *(std::string *)(v2 + 320); } if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) { size = v259.__r_.__value_.__l.__size_; operator delete(v259.__r_.__value_.__l.__data_); v12 = v260; v13 = *(_QWORD *)(v260 + 728); if ( !size ) goto LABEL_20; } else { v12 = v260; v13 = *(_QWORD *)(v260 + 728); if ( !(*(_BYTE *)&v259.__r_.__value_.__l.0 >> 1) ) { LABEL_20: v14 = *(_DWORD *)(v13 + 688); v15 = *(_QWORD *)(v12 + 808); if ( !v15 ) goto LABEL_22; goto LABEL_21; } } v27 = *(_QWORD *)(v12 + 776); v3 = v12; if ( (*(_BYTE *)(v13 + 320) & 1) != 0 ) { sub_10001AD30(&v259, *(const void **)(v13 + 336), *(_QWORD *)(v13 + 328)); if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_34; } else { v259 = *(std::string *)(v13 + 320); if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_34: v5 = (__int64)v259.__r_.__value_.__r.__words + 1; LABEL_38: (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v27 + 928LL))(v27, v5); if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v259.__r_.__value_.__l.__data_); cocos2d::CCLabelBMFont::limitLabelWidth(*(_QWORD *)(v3 + 776), 160.0, (__m128)0x3F4CCCCDu, (__m128)0LL); v2 = *(_QWORD *)(v3 + 728); LABEL_41: v28 = v3; v14 = *(_DWORD *)(v2 + 688); v15 = *(_QWORD *)(v28 + 808); if ( !v15 ) { LABEL_22: v16 = *(_QWORD *)(v260 + 816); if ( v16 ) { v5 = v14 != 2; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 344LL))(v16, v5); } if ( v14 == 2 ) { LOBYTE(v10) = ProfilePage::setupAccountButtons(v260); return v10; } v17 = v260; if ( !*(_BYTE *)(v260 + 740) ) { v18 = GJAccountManager::sharedState(v16, v5); if ( *(_DWORD *)(v18 + 352) > *(_DWORD *)(v18 + 356) ) { v19 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getGameVariable(v19, "0241") ) { v20 = *(_BYTE *)(*(_QWORD *)(v17 + 728) + 720LL); v21 = GameLevelManager::sharedState(); v22 = v20 == GameLevelManager::isFollowingUser(v21); v17 = v260; if ( !v22 ) { v23 = v260; v24 = *(_BYTE *)(*(_QWORD *)(v260 + 728) + 720LL); v25 = GameLevelManager::sharedState(); v26 = *(unsigned int *)(v23 + 736); if ( v24 == 1 ) GameLevelManager::followUser(v25); else sub_10054E850(v25); v17 = v260; v29 = *(_QWORD *)(v260 + 808); if ( v29 ) { v30 = "followBtnOff_001.png"; if ( *(_BYTE *)(*(_QWORD *)(v260 + 728) + 720LL) ) v30 = "followBtnOn_001.png"; v31 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v29 + 1072LL))(v29, v26); v32 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v33 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v32, v30); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v31 + 1160LL))(v31, v33); } } } } } v34 = *(_QWORD *)(v17 + 728); if ( (*(_BYTE *)(v34 + 464) & 1) != 0 ) { sub_10001AD30(&v259, *(const void **)(v34 + 480), *(_QWORD *)(v34 + 472)); v34 = *(_QWORD *)(v17 + 728); v35 = (unsigned int)v259.__r_.__value_.__l.0; if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_50: v36 = v35 >> 1; if ( (*(_BYTE *)(v34 + 488) & 1) != 0 ) goto LABEL_51; goto LABEL_60; } } else { v259 = *(std::string *)(v34 + 464); v35 = (unsigned int)v259.__r_.__value_.__l.0; if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_50; } v36 = v259.__r_.__value_.__l.__size_; if ( (*(_BYTE *)(v34 + 488) & 1) != 0 ) { LABEL_51: sub_10001AD30(&v250, *(const void **)(v34 + 504), *(_QWORD *)(v34 + 496)); v34 = *(_QWORD *)(v260 + 728); v37 = (unsigned __int8)v250; if ( (v250 & 1) == 0 ) goto LABEL_52; goto LABEL_61; } LABEL_60: __p = *(void **)(v34 + 504); v250 = *(_OWORD *)(v34 + 488); v37 = (unsigned __int8)v250; if ( (v250 & 1) == 0 ) { LABEL_52: v38 = v37 >> 1; if ( (*(_BYTE *)(v34 + 512) & 1) != 0 ) goto LABEL_53; goto LABEL_62; } LABEL_61: v38 = *((_QWORD *)&v250 + 1); if ( (*(_BYTE *)(v34 + 512) & 1) != 0 ) { LABEL_53: sub_10001AD30(&v237, *(const void **)(v34 + 528), *(_QWORD *)(v34 + 520)); v34 = *(_QWORD *)(v260 + 728); v39 = (unsigned __int8)v237; if ( (v237 & 1) == 0 ) goto LABEL_54; goto LABEL_63; } LABEL_62: v238 = *(void **)(v34 + 528); v237 = *(_OWORD *)(v34 + 512); v39 = (unsigned __int8)v237; if ( (v237 & 1) == 0 ) { LABEL_54: v40 = v39 >> 1; if ( (*(_BYTE *)(v34 + 560) & 1) != 0 ) goto LABEL_55; goto LABEL_64; } LABEL_63: v40 = *((_QWORD *)&v237 + 1); if ( (*(_BYTE *)(v34 + 560) & 1) != 0 ) { LABEL_55: sub_10001AD30(&v248, *(const void **)(v34 + 576), *(_QWORD *)(v34 + 568)); v34 = *(_QWORD *)(v260 + 728); v41 = (unsigned __int8)v248; if ( (v248 & 1) == 0 ) goto LABEL_56; goto LABEL_65; } LABEL_64: v249 = *(void **)(v34 + 576); v248 = *(_OWORD *)(v34 + 560); v41 = (unsigned __int8)v248; if ( (v248 & 1) == 0 ) { LABEL_56: v42 = v41 >> 1; if ( (*(_BYTE *)(v34 + 584) & 1) != 0 ) { LABEL_57: sub_10001AD30(&v252, *(const void **)(v34 + 600), *(_QWORD *)(v34 + 592)); goto LABEL_67; } LABEL_66: v43 = (__int128 *)(v34 + 584); v253 = *((void **)v43 + 2); v252 = *v43; LABEL_67: v240 = (v38 != 0) - ((v36 == 0) - 1) - ((v40 == 0) - 1) - ((v42 == 0) - 1); if ( (v252 & 1) != 0 ) { v44 = *((_QWORD *)&v252 + 1) != 0; operator delete(v253); if ( (v248 & 1) == 0 ) goto LABEL_72; } else { v44 = (_BYTE)v252 != 0; if ( (v248 & 1) == 0 ) { LABEL_72: if ( (v237 & 1) != 0 ) { operator delete(v238); if ( (v250 & 1) == 0 ) { LABEL_74: if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_76; goto LABEL_75; } } else if ( (v250 & 1) == 0 ) { goto LABEL_74; } operator delete(__p); if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_76: v45 = v44; v46 = v260; v47 = *(_DWORD *)(*(_QWORD *)(v260 + 728) + 400LL); v48 = GameManager::sharedState(); v49 = GameManager::safeModeEnabled(v48); v50 = 0; v51 = 0; if ( !v49 ) LOBYTE(v51) = *(_DWORD *)(*(_QWORD *)(v46 + 728) + 712LL) > 0; v240 += v45; v52 = 0; v241 = (float)(*((float *)&v257 + 1) * 0.5) + 85.0; v53 = v51; v54 = 60; if ( v47 > 0 ) v54 = 50; LOBYTE(v52) = v47 > 0; v235 = (float)v54; v55 = (char *)cocos2d::CCNode::create(); (*(void (__fastcall **)(char *, void *))(*(_QWORD *)v55 + 320LL))(v55, &unk_100BE6D30); v56 = *(__int64 **)(v46 + 584); v57 = *v56; v247 = v55; (*(void (__fastcall **)(__int64 *, char *))(v57 + 456))(v56, v55); LODWORD(v255) = 0; sub_100278250((float *)&v237, 0.0, 0.0); v234 = v52 + (unsigned __int8)v53 + 5; v242 = (char *)sub_1007FE900(); v58 = v53; v233 = v53; do { memset(&v259, 0, sizeof(v259)); switch ( v50 ) { case 0: std::string::assign(&v259, "GJ_starsIcon_001.png"); v59 = *(_DWORD *)(*(_QWORD *)(v260 + 728) + 380LL); v60 = 1; goto LABEL_89; case 1: std::string::assign(&v259, "GJ_moonsIcon_001.png"); v59 = *(_DWORD *)(*(_QWORD *)(v260 + 728) + 384LL); v60 = 2; goto LABEL_89; case 2: std::string::assign(&v259, "GJ_coinsIcon_001.png"); v59 = *(_DWORD *)(*(_QWORD *)(v260 + 728) + 404LL); goto LABEL_93; case 3: std::string::assign(&v259, "GJ_coinsIcon2_001.png"); v59 = *(_DWORD *)(*(_QWORD *)(v260 + 728) + 408LL); goto LABEL_93; case 4: std::string::assign(&v259, "GJ_demonIcon_001.png"); v59 = *(_DWORD *)(*(_QWORD *)(v260 + 728) + 392LL); v60 = 3; LABEL_89: v61 = 1; LODWORD(v258) = 0; goto LABEL_94; case 5: if ( !v58 ) goto LABEL_92; std::string::assign(&v259, "GJ_followIcon_001.png"); v59 = *(_DWORD *)(*(_QWORD *)(v260 + 728) + 712LL); v61 = *(_BYTE *)(v260 + 740); v60 = 4 * v61; LODWORD(v258) = 1077936128; v62 = 1062920519; goto LABEL_95; case 6: LABEL_92: std::string::assign(&v259, "GJ_hammerIcon_001.png"); v59 = *(_DWORD *)(*(_QWORD *)(v260 + 728) + 400LL); LABEL_93: v61 = 0; LODWORD(v258) = 0; v60 = 0; LABEL_94: v62 = 1063675494; LABEL_95: LODWORD(v254) = v62; break; default: std::string::assign(&v259, "GJ_starsIcon_001.png"); v61 = 0; LODWORD(v258) = 0; v60 = 0; LODWORD(v254) = 1063675494; v59 = 0; break; } GameToolbox::pointsToString((size_t *)&v250, v59); v63 = (char *)&v250 + 1; if ( (v250 & 1) != 0 ) v63 = (char *)__p; v64 = cocos2d::CCLabelBMFont::create_3((__int64)v63, (__int64)"bigFont.fnt"); if ( (v250 & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(char *, void *, __int64))(*(_QWORD *)v247 + 464LL))(v247, v64, 2); sub_100278250((float *)&v250, 0.0, 0.5); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v64 + 296LL))(v64, &v250); sub_100278250((float *)&v248, *(float *)&v258, 0.0); sub_100278350((double *)&v250, (unsigned __int64 *)&v237, (unsigned __int64 *)&v248); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v64 + 184LL))(v64, &v250); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v64 + 160LL))(v64, 0.60000002); cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v64, v235, (__m128)0x3F19999Au, (__m128)0LL); sub_1007FEBF0(*(_QWORD *)(v260 + 832), (__int64)v64); data = v259.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) data = v259.__r_.__value_.__l.__data_; v66 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)data, COERCE_DOUBLE((unsigned __int64)LODWORD(v235))); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v66 + 160LL))(v66, *(float *)&v254); (*(void (__fastcall **)(__int128 *, void *))(*(_QWORD *)v64 + 336LL))(&v252, v64); sub_100278250((float *)&v248, *(float *)&v252 + 14.0, 0.0); sub_100278350((double *)&v250, (unsigned __int64 *)&v237, (unsigned __int64 *)&v248); if ( v61 ) { v67 = CCMenuItemSpriteExtra::create((__int64)v66, 0, v260, (__int64)ProfilePage::onStatInfo, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v67 + 72LL))(v67, v60); sub_100278260((float *)&v248, 30.0, 30.0); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v67 + 320LL))(v67, &v248); sub_100278250((float *)&v248, 15.0, 15.0); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v66 + 184LL))(v66, &v248); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v260 + 552) + 456LL))( *(_QWORD *)(v260 + 552), v67); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v67 + 184LL))(v67, &v250); sub_1007FEBF0(*(_QWORD *)(v260 + 832), (__int64)v67); sub_1007FEBF0((__int64)v242, (__int64)v67); } else { (*(void (__fastcall **)(char *, char *, __int64))(*(_QWORD *)v247 + 464LL))(v247, v66, 2); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v66 + 184LL))(v66, &v250); sub_1007FEBF0(*(_QWORD *)(v260 + 832), (__int64)v66); } sub_100278250((float *)&v252, 20.0, 0.0); sub_100278350((double *)&v248, (unsigned __int64 *)&v250, (unsigned __int64 *)&v252); sub_100278300(&v237, &v248); LODWORD(v258) = *(_DWORD *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v64 + 328LL))(v64); v69 = (*(float (__fastcall **)(void *))(*(_QWORD *)v64 + 168LL))(v64); v70 = (float)(*(float *)&v258 * v69) + 14.0; v71 = 0; if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) { *(float *)&v258 = (float)(*(float *)&v258 * v69) + 14.0; operator delete(v259.__r_.__value_.__l.__data_); v70 = *(float *)&v258; } LOBYTE(v71) = v50 == 0; *(float *)&v255 = (float)(*(float *)&v255 + v70) + flt_100A131B8[v71]; ++v50; v58 = v233; } while ( v234 != v50 ); v72 = *(float *)&v255; v73 = v247; if ( *(float *)&v255 > 420.0 ) { (*(void (__fastcall **)(char *, __int128 *, __int64, __int64, float))(*(_QWORD *)v247 + 160LL))( v247, &v248, v68, v233, 420.0 / *(float *)&v255); v72 = 420.0; } sub_100278250((float *)&v259, (float)(*(float *)&v257 * 0.5) - (float)(v72 * 0.5), v241); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v73 + 184LL))(v73, &v259); v74 = (__int64)v242; if ( (unsigned int)sub_1007FEF90((__int64)v242) ) { v75 = 0; do { v76 = sub_1007FEFE0(v74, v75); v77 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v76 + 1072LL))(v76); LODWORD(v258) = (*(float (__fastcall **)(__int64))(*(_QWORD *)v77 + 168LL))(v77); v78 = (*(float (__fastcall **)(char *))(*(_QWORD *)v73 + 168LL))(v73); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v77 + 160LL))(v77, v78 * *(float *)&v258); v79 = *(_QWORD *)(v260 + 552); v80 = (unsigned int *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v76 + 192LL))(v76); cocos2d::CCNode::convertToWorldSpace((double *)&v250, (__int64)v73, v80); cocos2d::CCNode::convertToNodeSpace((double *)&v259, v79, (unsigned int *)&v250); v81 = *(_QWORD *)v76; v82 = v76; v74 = (__int64)v242; (*(void (__fastcall **)(__int64, std::string *))(v81 + 184))(v82, &v259); ++v75; } while ( v75 < (unsigned int)sub_1007FEF90(v74) ); } sub_100278250((float *)&v250, *(float *)&v257 * 0.5, (float)(*((float *)&v257 + 1) * 0.5) + 40.0); v83 = GameManager::sharedState(); v84 = v260; v85 = GameManager::colorForIdx(v83, *(_DWORD *)(*(_QWORD *)(v260 + 728) + 416LL)); v243 = v85; v244 = BYTE2(v85); v86 = GameManager::sharedState(); v87 = GameManager::colorForIdx(v86, *(_DWORD *)(*(_QWORD *)(v84 + 728) + 420LL)); v245 = v87; v246 = BYTE2(v87); v88 = 0; v89 = 3; v90 = *(_QWORD *)(v84 + 728); v91 = 1064514355; v92 = 632; while ( 1 ) { LODWORD(v258) = v91; v93 = *(_DWORD *)(v90 + v92); *(float *)&v255 = (float)v89; v94 = GameManager::sharedState(); v95 = GameManager::countForType(v94, v88); if ( v93 < v95 ) v95 = v93; v96 = 1; if ( v95 >= 2 ) v96 = v95; v97 = SimplePlayer::create(v96); sub_100278250( (float *)&v248, (float)((float)((float)((float)(int)v88 * 44.0) + -176.0) + *(float *)&v255) + -1.0, 0.0); sub_100278350((double *)&v259, (unsigned __int64 *)&v250, (unsigned __int64 *)&v248); (*(void (__fastcall **)(char *, __int16 *))(*(_QWORD *)v97 + 960LL))(v97, &v243); SimplePlayer::setSecondColor((__int64)v97); v99 = v260; v100 = *(_QWORD *)(v260 + 728); v101 = 1; if ( *(_DWORD *)(v100 + 428) != 2 ) v101 = *(_BYTE *)(v100 + 672); v97[660] = v101; SimplePlayer::tryEnableCustomGlowColor((__int64)v97, *(unsigned int *)(v100 + 424), v98); SimplePlayer::updatePlayerFrame((__int64)v97, v96, v88); SimplePlayer::updateColors((__int64)v97); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v97 + 160LL))(v97, *(float *)&v258); v102 = CCMenuItemSpriteExtra::create((__int64)v97, 0, v99, (__int64)ProfilePage::onIconInfo, 0); (*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)v102 + 72LL))(v102, v88); v102[124] = v96; sub_100278260((float *)&v248, 30.0, 30.0); (*(void (__fastcall **)(_DWORD *, __int128 *))(*(_QWORD *)v102 + 320LL))(v102, &v248); sub_100278250((float *)&v248, 15.0, 15.0); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v97 + 184LL))(v97, &v248); (*(void (__fastcall **)(_QWORD, _DWORD *))(**(_QWORD **)(v99 + 552) + 456LL))( *(_QWORD *)(v99 + 552), v102); v103 = *(_QWORD *)(v99 + 552); cocos2d::CCNode::convertToWorldSpace((double *)&v252, *(_QWORD *)(v99 + 584), (unsigned int *)&v259); cocos2d::CCNode::convertToNodeSpace((double *)&v248, v103, (unsigned int *)&v252); v104 = v260; (*(void (__fastcall **)(_DWORD *, __int128 *))(*(_QWORD *)v102 + 184LL))(v102, &v248); sub_1007FEBF0(*(_QWORD *)(v104 + 832), (__int64)v102); if ( ++v88 == 9 ) break; v89 = -3; if ( v88 < 5 ) v89 = 3; v90 = *(_QWORD *)(v104 + 728); v92 = 632; v91 = 1064514355; switch ( 632LL ) { case 0LL: continue; case 1LL: v92 = 636; v91 = 1064514355; break; case 2LL: v92 = 640; v91 = 1064514355; break; case 3LL: v92 = 644; v91 = 1064514355; break; case 4LL: v92 = 648; v91 = 1064514355; break; case 5LL: v92 = 652; v91 = 1064514355; break; case 6LL: v92 = 656; v91 = 1064514355; break; case 7LL: v89 = -1; v91 = 1063675494; v92 = 660; break; case 8LL: v91 = 1063675494; v92 = 664; break; } } *(_QWORD *)&v105 = (unsigned int)v257; *(float *)&v105 = (float)((float)(*(float *)&v257 * 0.5) + 220.0) + -22.0; sub_100278250( (float *)&v248, *(float *)&v105, (float)((float)(*((float *)&v257 + 1) * 0.5) + 145.0) + -22.0); v106 = GameManager::sharedState(); v107 = GameManager::safeModeEnabled(v106); if ( v240 != 1 ) { if ( (v240 == 0) | (unsigned __int8)v107 ) goto LABEL_177; v119 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"accountBtn_social_001.png", *(double *)&v105); v120 = CCMenuItemSpriteExtra::create((__int64)v119, 0, v104, (__int64)ProfilePage::onSocialPage, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v104 + 552) + 456LL))( *(_QWORD *)(v104 + 552), v120); v121 = *(_QWORD *)(v104 + 552); cocos2d::CCNode::convertToWorldSpace( (double *)&v252, *(_QWORD *)(v104 + 584), (unsigned int *)&v248); cocos2d::CCNode::convertToNodeSpace((double *)&v259, v121, (unsigned int *)&v252); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v120 + 184LL))(v120, &v259); sub_1007FEBF0(*(_QWORD *)(v104 + 832), (__int64)v120); v122 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"GJ_stuffTxt_001.png", *(double *)&v105); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v104 + 584) + 464LL))( *(_QWORD *)(v104 + 584), v122, 2); *(_QWORD *)&v105 = 3262119936LL; sub_100278250((float *)&v252, -60.0, 0.0); sub_100278350((double *)&v259, (unsigned __int64 *)&v248, (unsigned __int64 *)&v252); v123 = *(_QWORD *)v122; v124 = v122; goto LABEL_176; } v108 = *(_QWORD *)(v104 + 728); if ( (*(_BYTE *)(v108 + 464) & 1) != 0 ) { sub_10001AD30(&v259, *(const void **)(v108 + 480), *(_QWORD *)(v108 + 472)); v110 = v259.__r_.__value_.__s.0; if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_137: v111 = v259.__r_.__value_.__l.__size_; operator delete(v259.__r_.__value_.__l.__data_); if ( !v111 ) goto LABEL_138; goto LABEL_147; } } else { v109 = (__int128 *)(v108 + 464); v259.__r_.__value_.__r.__words[2] = *((_QWORD *)v109 + 2); v105 = *v109; *(_OWORD *)&v259.__r_.__value_.__l.0 = *v109; v110 = v259.__r_.__value_.__s.0; if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_137; } if ( !*(_BYTE *)&v110 ) { LABEL_138: v112 = *(_QWORD *)(v260 + 728); if ( (*(_BYTE *)(v112 + 488) & 1) != 0 ) { sub_10001AD30(&v259, *(const void **)(v112 + 504), *(_QWORD *)(v112 + 496)); v114 = v259.__r_.__value_.__s.0; v115 = "GJ_twitterTxt_001.png"; if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_140: v116 = v259.__r_.__value_.__l.__size_; operator delete(v259.__r_.__value_.__l.__data_); if ( !v116 ) goto LABEL_141; LABEL_150: v125 = 0; v126 = 1; goto LABEL_171; } } else { v113 = (__int128 *)(v112 + 488); v259.__r_.__value_.__r.__words[2] = *((_QWORD *)v113 + 2); v105 = *v113; *(_OWORD *)&v259.__r_.__value_.__l.0 = *v113; v114 = v259.__r_.__value_.__s.0; v115 = "GJ_twitterTxt_001.png"; if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_140; } if ( !*(_BYTE *)&v114 ) { LABEL_141: v117 = *(_QWORD *)(v260 + 728); if ( (*(_BYTE *)(v117 + 512) & 1) != 0 ) { sub_10001AD30(&v259, *(const void **)(v117 + 528), *(_QWORD *)(v117 + 520)); } else { v118 = (__int128 *)(v117 + 512); v259.__r_.__value_.__r.__words[2] = *((_QWORD *)v118 + 2); v105 = *v118; *(_OWORD *)&v259.__r_.__value_.__l.0 = *v118; } v115 = "GJ_twitchTxt_001.png"; if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) { v127 = v259.__r_.__value_.__l.__size_; operator delete(v259.__r_.__value_.__l.__data_); if ( v127 ) goto LABEL_154; } else if ( v259.__r_.__value_.__s.0 ) { LABEL_154: v125 = 0; v126 = 2; goto LABEL_171; } v128 = *(_QWORD *)(v260 + 728); if ( (*(_BYTE *)(v128 + 560) & 1) != 0 ) { sub_10001AD30(&v259, *(const void **)(v128 + 576), *(_QWORD *)(v128 + 568)); } else { v129 = (__int128 *)(v128 + 560); v259.__r_.__value_.__r.__words[2] = *((_QWORD *)v129 + 2); v105 = *v129; *(_OWORD *)&v259.__r_.__value_.__l.0 = *v129; } if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) { v130 = v259.__r_.__value_.__l.__size_; operator delete(v259.__r_.__value_.__l.__data_); if ( v130 ) goto LABEL_161; } else if ( v259.__r_.__value_.__s.0 ) { LABEL_161: v125 = 0; v126 = 3; LABEL_170: v115 = "GJ_stuffTxt_001.png"; goto LABEL_171; } v131 = *(_QWORD *)(v260 + 728); if ( (*(_BYTE *)(v131 + 584) & 1) != 0 ) { sub_10001AD30(&v259, *(const void **)(v131 + 600), *(_QWORD *)(v131 + 592)); } else { v132 = (__int128 *)(v131 + 584); v259.__r_.__value_.__r.__words[2] = *((_QWORD *)v132 + 2); v105 = *v132; *(_OWORD *)&v259.__r_.__value_.__l.0 = *v132; } if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) { v125 = v259.__r_.__value_.__l.__size_ == 0; operator delete(v259.__r_.__value_.__l.__data_); } else { v125 = *(_BYTE *)&v259.__r_.__value_.__s.0 == 0; } v126 = v125 ? -1 : 4; goto LABEL_170; } goto LABEL_150; } LABEL_147: v125 = 0; v115 = "GJ_youtubeTxt_001.png"; v126 = 0; LABEL_171: v22 = ((unsigned __int8)v107 | v125) == 0; v104 = v260; if ( !v22 ) goto LABEL_177; v258 = (char *)v115; if ( v126 - 1 > 3 ) v133 = "gj_ytIcon_001.png"; else v133 = off_100BAB5E0[v126 - 1]; v134 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v133, *(double *)&v105); v135 = CCMenuItemSpriteExtra::create((__int64)v134, 0, v104, (__int64)sub_1008A3350, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v135 + 72LL))(v135, v126); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v104 + 552) + 456LL))( *(_QWORD *)(v104 + 552), v135); v136 = *(_QWORD *)(v104 + 552); cocos2d::CCNode::convertToWorldSpace((double *)&v252, *(_QWORD *)(v104 + 584), (unsigned int *)&v248); cocos2d::CCNode::convertToNodeSpace((double *)&v259, v136, (unsigned int *)&v252); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v135 + 184LL))(v135, &v259); sub_1007FEBF0(*(_QWORD *)(v104 + 832), (__int64)v135); v122 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v258, *(double *)&v105); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v104 + 584) + 464LL))( *(_QWORD *)(v104 + 584), v122, 2); *(_QWORD *)&v105 = 3262119936LL; sub_100278250((float *)&v252, -60.0, 0.0); sub_100278350((double *)&v259, (unsigned __int64 *)&v248, (unsigned __int64 *)&v252); v123 = *(_QWORD *)v122; v124 = v122; LABEL_176: (*(void (__fastcall **)(char *, std::string *))(v123 + 184))(v124, &v259); sub_1007FEBF0(*(_QWORD *)(v104 + 832), (__int64)v122); LABEL_177: v137 = *(_QWORD *)(v104 + 728); v138 = *(_DWORD *)(v137 + 444); v139 = v138 != 2 && (v138 != 1 || *(_DWORD *)(v137 + 688) == 1); v140 = GameManager::sharedState(); if ( !GameManager::accountPostsRestricted(v140) ) { v141 = GameManager::sharedState(); if ( !GameManager::commentsRestricted(v141) ) { if ( v139 || *(_BYTE *)(v260 + 740) || (v142 = GameManager::sharedState(), *(_DWORD *)(v142 + 1032) - *(_DWORD *)(v142 + 1036) == 2) ) { v143 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"btn_chatHistory_001.png", *(double *)&v105); v144 = v260; v145 = CCMenuItemSpriteExtra::create( (__int64)v143, 0, v260, (__int64)ProfilePage::onCommentHistory, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v144 + 552) + 456LL))( *(_QWORD *)(v144 + 552), v145); v258 = *(char **)(v144 + 552); v146 = *(_QWORD *)(v144 + 584); sub_100278250((float *)&v256, *(float *)&v248, (float)(*((float *)&v257 + 1) * 0.5) + -10.0); cocos2d::CCNode::convertToWorldSpace((double *)&v252, v146, (unsigned int *)&v256); cocos2d::CCNode::convertToNodeSpace((double *)&v259, (__int64)v258, (unsigned int *)&v252); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v145 + 184LL))(v145, &v259); sub_1007FEBF0(*(_QWORD *)(v144 + 832), (__int64)v145); } } } v147 = v260; v148 = *(_QWORD *)(v260 + 728); v149 = *(_DWORD *)(v148 + 684); if ( (int)v149 > 0 ) { if ( v149 == 1 ) { v150 = "rankIcon_1_001.png"; } else if ( v149 >= 0xB ) { if ( v149 >= 0x33 ) { if ( v149 >= 0x65 ) { if ( v149 >= 0xC9 ) { if ( v149 >= 0x1F5 ) { if ( v149 >= 0x3E9 ) { if ( v149 >= 0x1389 ) { if ( v149 >= 0x2711 ) { v150 = "rankIcon_all_001.png"; if ( v149 < 0xC351 ) v150 = "rankIcon_top10000_001.png"; } else { v150 = "rankIcon_top5000_001.png"; } } else { v150 = "rankIcon_top2500_001.png"; } } else { v150 = "rankIcon_top1000_001.png"; } } else { v150 = "rankIcon_top500_001.png"; } } else { v150 = "rankIcon_top200_001.png"; } } else { v150 = "rankIcon_top100_001.png"; } } else { v150 = "rankIcon_top50_001.png"; } } else { v150 = "rankIcon_top10_001.png"; } *(_QWORD *)&v151 = (unsigned int)v257; *(float *)&v151 = (float)(*(float *)&v257 * 0.5) + -164.0; sub_100278250((float *)&v259, *(float *)&v151, (float)(*((float *)&v257 + 1) * 0.5) + 123.0); v152 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v150, v151); v153 = v260; (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v260 + 584) + 464LL))( *(_QWORD *)(v260 + 584), v152, 10); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v152 + 184LL))(v152, &v259); sub_1007FEBF0(*(_QWORD *)(v153 + 832), (__int64)v152); v154 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"gj_globalRankTxt_001.png", v151); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v153 + 584) + 464LL))( *(_QWORD *)(v153 + 584), v154, 10); sub_100278250((float *)&v256, 40.0, 6.0); sub_100278350((double *)&v252, (unsigned __int64 *)&v259, &v256); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v154 + 184LL))(v154, &v252); sub_1007FEBF0(*(_QWORD *)(v153 + 832), (__int64)v154); v155 = sub_10088E820("%i", v149); CString = cocos2d::CCString::getCString((__int64)v155); v157 = cocos2d::CCLabelBMFont::create_3(CString, (__int64)"chatFont.fnt"); (*(void (__fastcall **)(_QWORD, void *, __int64))(**(_QWORD **)(v153 + 584) + 464LL))( *(_QWORD *)(v153 + 584), v157, 10); sub_100278250((float *)&v256, 40.0, -6.0); v147 = v153; sub_100278350((double *)&v252, (unsigned __int64 *)&v259, &v256); (*(void (__fastcall **)(void *, __int128 *))(*(_QWORD *)v157 + 184LL))(v157, &v252); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v157 + 160LL))(v157, 0.60000002); sub_1007FEBF0(*(_QWORD *)(v153 + 832), (__int64)v157); v148 = *(_QWORD *)(v153 + 728); } if ( *(int *)(v148 + 680) <= 0 ) goto LABEL_223; sub_100278250( (float *)&v252, (float)(*(float *)&v257 * 0.5) + -180.0, (float)(*((float *)&v257 + 1) * 0.5) + 100.0); v158 = *(_QWORD *)(v147 + 776); if ( v158 ) { cocos2d::CCLabelBMFont::limitLabelWidth(v158, 140.0, (__m128)0x3F666666u, (__m128)0LL); v159 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v147 + 776) + 192LL))(*(_QWORD *)(v147 + 776)); (*(void (__fastcall **)(unsigned __int64 *))(**(_QWORD **)(v260 + 776) + 336LL))(&v239); sub_100278250((float *)&v256, (float)(*(float *)&v239 * -0.5) + -16.0, -1.0); v160 = (unsigned __int64 *)v159; v147 = v260; sub_100278350((double *)&v259, v160, &v256); sub_100278300(&v252, &v259); } strcpy((char *)&v259, "&modBadge_01_001.png"); v161 = *(_DWORD *)(*(_QWORD *)(v147 + 728) + 680LL); if ( v161 == 2 ) { v162 = "modBadge_02_001.png"; } else { if ( v161 != 3 ) goto LABEL_218; v162 = "modBadge_03_001.png"; } std::string::assign(&v259, v162); LABEL_218: if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) v163 = v259.__r_.__value_.__l.__data_; else v163 = v259.__r_.__value_.__s.__data_; v164 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v163, 3.033310022897713e180); v165 = CCMenuItemSpriteExtra::create((__int64)v164, 0, v147, (__int64)ProfilePage::onModInfo, 0); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v147 + 552) + 456LL))( *(_QWORD *)(v147 + 552), v165); v166 = *(_QWORD *)(v147 + 552); cocos2d::CCNode::convertToWorldSpace((double *)&v239, *(_QWORD *)(v147 + 584), (unsigned int *)&v252); cocos2d::CCNode::convertToNodeSpace((double *)&v256, v166, (unsigned int *)&v239); (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v165 + 184LL))(v165, &v256); sub_1007FEBF0(*(_QWORD *)(v147 + 832), (__int64)v165); if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v259.__r_.__value_.__l.__data_); LABEL_223: strcpy((char *)&v259, "&GJ_infoIcon_001.png"); v167 = CCSpriteGrayscale::createWithSpriteFrameName((__int64)&v259); if ( (*(_BYTE *)&v259.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v259.__r_.__value_.__l.__data_); ((void (__fastcall *)(__int64 (__fastcall ***)(), float))(*v167)[20])(v167, 0.44999999); v168 = CCMenuItemSpriteExtra::create((__int64)v167, 0, v147, (__int64)ProfilePage::onInfo, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v168, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v147 + 552) + 456LL))( *(_QWORD *)(v147 + 552), v168); LODWORD(v258) = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v147 + 776) + 168LL))(*(_QWORD *)(v147 + 776)); v169 = *(_QWORD *)(v147 + 552); v170 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v147 + 776) + 192LL))(*(_QWORD *)(v147 + 776)); v171 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v147 + 776) + 328LL))(*(_QWORD *)(v147 + 776)); *(float *)&v255 = (float)((float)(*v171 * 0.5) * *(float *)&v258) + 8.0; v172 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v147 + 776) + 328LL))(*(_QWORD *)(v147 + 776)); *(_QWORD *)&v173 = (unsigned int)v255; sub_100278250( (float *)&v256, *(float *)&v255, (float)((float)(*(float *)(v172 + 4) * 0.5) * *(float *)&v258) + -5.0); sub_100278350((double *)&v252, v170, &v256); cocos2d::CCNode::convertToNodeSpace((double *)&v259, v169, (unsigned int *)&v252); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v168 + 184LL))(v168, &v259); sub_1007FEBF0(*(_QWORD *)(v260 + 832), (__int64)v168); v174 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"whiteSquare60_001.png", v173); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v174 + 144LL))(v174, 0.80000001); (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v174 + 344LL))(v174, 0); v175 = CCMenuItemSpriteExtra::create((__int64)v174, 0, v260, (__int64)ProfilePage::onCopyName, 0); v175[408] = 0; (*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(v260 + 552) + 456LL))( *(_QWORD *)(v260 + 552), v175); v176 = *(_QWORD *)(v260 + 552); v177 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v260 + 776) + 192LL))(*(_QWORD *)(v260 + 776)); v178 = 0; sub_100278250((float *)&v256, 0.0, -2.0); sub_100278350((double *)&v252, v177, &v256); v179 = v176; v180 = v260; cocos2d::CCNode::convertToNodeSpace((double *)&v259, v179, (unsigned int *)&v252); (*(void (__fastcall **)(_BYTE *, std::string *))(*(_QWORD *)v175 + 184LL))(v175, &v259); sub_1007FEBF0(*(_QWORD *)(v180 + 832), (__int64)v175); if ( *(_BYTE *)(v180 + 740) ) { *(_QWORD *)(GameLevelManager::sharedState() + 1248) = v180 + 680; v181 = sub_1007FE900(); v182 = GameManager::sharedState(); if ( sub_10036D800(v182) ) { v242 = nullptr; } else { v242 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"accountBtn_messages_001.png", 0.0); v201 = CCMenuItemSpriteExtra::create((__int64)v242, 0, v180, (__int64)ProfilePage::onMessages, 0); v178 = 1066192077; CCMenuItemSpriteExtra::setSizeMult((__int64)v201, 1.1); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v260 + 552) + 456LL))( *(_QWORD *)(v260 + 552), v201); sub_1007FEBF0((__int64)v181, (__int64)v201); v202 = (__int64)v201; v180 = v260; sub_1007FEBF0(*(_QWORD *)(v260 + 832), v202); } v203 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"accountBtn_friends_001.png", *(double *)&v178); v247 = nullptr; v236 = v203; v204 = v180; v205 = CCMenuItemSpriteExtra::create((__int64)v203, 0, v180, (__int64)ProfilePage::onFriends, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v205, 1.1); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v204 + 552) + 456LL))( *(_QWORD *)(v204 + 552), v205); sub_1007FEBF0((__int64)v181, (__int64)v205); sub_1007FEBF0(*(_QWORD *)(v204 + 832), (__int64)v205); v206 = GameManager::sharedState(); if ( !sub_10036D850(v206) ) { v247 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"accountBtn_requests_001.png", COERCE_DOUBLE(1066192077)); v207 = CCMenuItemSpriteExtra::create((__int64)v247, 0, v204, (__int64)ProfilePage::onRequests, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v207, 1.1); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v204 + 552) + 456LL))( *(_QWORD *)(v204 + 552), v207); sub_1007FEBF0((__int64)v181, (__int64)v207); sub_1007FEBF0(*(_QWORD *)(v204 + 832), (__int64)v207); } v258 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"accountBtn_notifications_001.png", COERCE_DOUBLE(1066192077)); v208 = CCMenuItemSpriteExtra::create( (__int64)v258, 0, v204, (__int64)ProfilePage::onNotifications, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v208, 1.1); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v204 + 552) + 456LL))( *(_QWORD *)(v204 + 552), v208); sub_1007FEBF0((__int64)v181, (__int64)v208); sub_1007FEBF0(*(_QWORD *)(v204 + 832), (__int64)v208); v209 = GameManager::sharedState(); if ( !GameManager::safeModeEnabled(v209) ) { v210 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"accountBtn_settings_001.png", COERCE_DOUBLE(1066192077)); v211 = CCMenuItemSpriteExtra::create((__int64)v210, 0, v204, (__int64)ProfilePage::onSettings, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v211, 1.1); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v204 + 552) + 456LL))( *(_QWORD *)(v204 + 552), v211); sub_1007FEBF0((__int64)v181, (__int64)v211); sub_1007FEBF0(*(_QWORD *)(v204 + 832), (__int64)v211); } v255 = v181; v212 = *(_QWORD *)(v204 + 552); v213 = *(_QWORD *)(v204 + 584); sub_100278250( (float *)&v256, *(float *)&v257 * 0.5, (float)((float)(*((float *)&v257 + 1) * 0.5) + -145.0) + 10.0); cocos2d::CCNode::convertToWorldSpace((double *)&v252, v213, (unsigned int *)&v256); cocos2d::CCNode::convertToNodeSpace((double *)&v259, v212, (unsigned int *)&v252); v214 = 1101004800; GameToolbox::alignItemsHorisontally( (__int64)v255, (unsigned __int64 *)&v259, 0, (__m128)0x41A00000u); v215 = *(_DWORD **)(v204 + 728); v216 = 0; v217 = v204; LABEL_241: v218 = v215[173]; v219 = v242; while ( 1 ) { if ( v218 > 0 && v219 ) { v255 = (_QWORD *)v216; v223 = 3204448256LL; if ( v218 != 1 ) v223 = 0; LODWORD(v254) = v223; v216 = (__int64)cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"d_ball_01_001.png", *(double *)&v223); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v216 + 960LL))(v216, &unk_100A131C0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v216 + 160LL))(v216, 0.60000002); v224 = sub_10088E820("%i", v218); v225 = cocos2d::CCString::getCString((__int64)v224); v226 = cocos2d::CCLabelBMFont::create_3(v225, (__int64)"bigFont.fnt"); cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v226, 28.0, (__m128)0x3F4CCCCDu, (__m128)0LL); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v216 + 456LL))(v216, v226); cocos2d::CCNode::convertToNodeSpace((double *)&v252, v216, (unsigned int *)&qword_100BE6D28); sub_100278250((float *)&v256, *(float *)&v254, 1.0); sub_100278350((double *)&v259, (unsigned __int64 *)&v252, &v256); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v226 + 184LL))(v226, &v259); (*(void (__fastcall **)(char *, __int64, __int64))(*(_QWORD *)v219 + 464LL))(v219, v216, 1); v214 = 1108869120; sub_100278250((float *)&v259, 38.0, 38.0); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v216 + 184LL))(v216, &v259); v217 = v260; LODWORD(v216) = (_DWORD)v255; } v216 = (unsigned int)(v216 + 1); if ( (_DWORD)v216 == 4 ) break; v215 = *(_DWORD **)(v217 + 728); switch ( (int)v216 ) { case 0: goto LABEL_241; case 1: v218 = v215[175]; v219 = v236; break; case 2: v218 = v215[174]; v219 = v247; break; case 3: v220 = v215[176]; v221 = GameManager::sharedState(); if ( !(unsigned __int8)GameManager::getGameVariable(v221, "0240") ) { v222 = GameManager::sharedState(); if ( !GameManager::safeModeEnabled(v222) ) v220 += *(_DWORD *)(*(_QWORD *)(v260 + 728) + 708LL); } v218 = 99; if ( v220 < 99 ) v218 = v220; v219 = v258; v217 = v260; break; } } v227 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_chatBtn_001.png", *(double *)&v214); v228 = CCMenuItemSpriteExtra::create((__int64)v227, 0, v217, (__int64)ProfilePage::onComment, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v228, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v217 + 552) + 456LL))( *(_QWORD *)(v217 + 552), v228); v258 = *(char **)(v217 + 552); v229 = v217; v230 = *(_QWORD *)(v217 + 584); sub_100278250( (float *)&v256, (float)((float)(*(float *)&v257 * 0.5) + 220.0) + -10.0, (float)((float)((float)(0.5 * *((float *)&v257 + 1)) + -145.0) + 10.0) + 1.0); cocos2d::CCNode::convertToWorldSpace((double *)&v252, v230, (unsigned int *)&v256); cocos2d::CCNode::convertToNodeSpace((double *)&v259, (__int64)v258, (unsigned int *)&v252); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v228 + 184LL))(v228, &v259); sub_1007FEBF0(*(_QWORD *)(v229 + 832), (__int64)v228); v231 = GameManager::sharedState(); LOBYTE(v10) = GameManager::accountPostsRestricted(v231); if ( (_BYTE)v10 ) JUMPOUT(0x1008A1B7FLL); } else { ProfilePage::setupAccountButtons(v180); v183 = (char *)sub_1007FE900(); v258 = v183; *(_QWORD *)&v184 = (unsigned int)v257; *(float *)&v184 = (float)((float)((float)(*(float *)&v257 * 0.5) + 220.0) + -22.0) + -1.0; sub_100278250( (float *)&v259, *(float *)&v184, (float)((float)(0.5 * *((float *)&v257 + 1)) + -145.0) + 22.0); v185 = v180; v186 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"accountBtn_myLevels_001.png", v184); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v186 + 160LL))(v186, 0.75); v187 = CCMenuItemSpriteExtra::create((__int64)v186, 0, v185, (__int64)ProfilePage::onMyLevels, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v187, 1.2); (*(void (__fastcall **)(_QWORD, _QWORD *))(**(_QWORD **)(v185 + 552) + 456LL))( *(_QWORD *)(v185 + 552), v187); sub_1007FEBF0((__int64)v183, (__int64)v187); sub_1007FEBF0(*(_QWORD *)(v185 + 832), (__int64)v187); v188 = *(_QWORD *)(v185 + 552); cocos2d::CCNode::convertToWorldSpace( (double *)&v256, *(_QWORD *)(v185 + 584), (unsigned int *)&v259); cocos2d::CCNode::convertToNodeSpace((double *)&v252, v188, (unsigned int *)&v256); v189 = *v187; v255 = v187; v190 = (*(double (__fastcall **)(_QWORD *, __int128 *))(v189 + 184))(v187, &v252); v191 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_myLevelsTxt_001.png", v190); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v185 + 584) + 464LL))( *(_QWORD *)(v185 + 584), v191, 2); sub_100278250((float *)&v256, -1.0, 26.0); sub_100278350((double *)&v252, (unsigned __int64 *)&v259, &v256); (*(void (__fastcall **)(char *, __int128 *))(*(_QWORD *)v191 + 184LL))(v191, &v252); v192 = *(_QWORD *)(v185 + 832); v254 = v191; sub_1007FEBF0(v192, (__int64)v191); sub_100278250((float *)&v256, -42.0, 0.0); sub_100278350((double *)&v252, (unsigned __int64 *)&v259, &v256); v193 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"accountBtn_myLists_001.png", COERCE_DOUBLE(3257401344LL)); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v193 + 160LL))(v193, 0.75); v194 = CCMenuItemSpriteExtra::create((__int64)v193, 0, v185, (__int64)ProfilePage::onMyLists, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v194, 1.2); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v185 + 552) + 456LL))( *(_QWORD *)(v185 + 552), v194); sub_1007FEBF0((__int64)v258, (__int64)v194); sub_1007FEBF0(*(_QWORD *)(v185 + 832), (__int64)v194); v195 = *(_QWORD *)(v185 + 552); cocos2d::CCNode::convertToWorldSpace( (double *)&v239, *(_QWORD *)(v185 + 584), (unsigned int *)&v252); cocos2d::CCNode::convertToNodeSpace((double *)&v256, v195, (unsigned int *)&v239); v196 = (*(double (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v194 + 184LL))(v194, &v256); v197 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_myListsTxt_001.png", v196); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(v185 + 584) + 464LL))( *(_QWORD *)(v185 + 584), v197, 2); sub_100278250((float *)&v239, -46.0, 0.0); sub_100278350((double *)&v256, (unsigned __int64 *)&v252, &v239); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v197 + 184LL))(v197, &v256); sub_1007FEBF0(*(_QWORD *)(v185 + 832), (__int64)v197); v198 = GameManager::sharedState(); if ( (int)GameManager::modUIRank(v198) > 0 ) (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v197 + 344LL))(v197, 0); v199 = GameManager::sharedState(); if ( GameManager::onlyCuratedLevels(v199) || *(_QWORD *)(GameManager::sharedState() + 544) || (v10 = GameManager::sharedState(), *(_QWORD *)(v10 + 552)) ) { v200 = (__int64)v255; (*(void (__fastcall **)(_QWORD *, _QWORD))(*v255 + 344LL))(v255, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v200 + 1056LL))(v200, 0); (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v254 + 344LL))(v254, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v194 + 344LL))(v194, 0); (*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v194 + 1056LL))(v194, 0); LOBYTE(v10) = (*(__int64 (__fastcall **)(char *, _QWORD))(*(_QWORD *)v197 + 344LL))(v197, 0); } } return v10; } LABEL_75: operator delete(v259.__r_.__value_.__l.__data_); goto LABEL_76; } } operator delete(v249); goto LABEL_72; } LABEL_65: v42 = *((_QWORD *)&v248 + 1); if ( (*(_BYTE *)(v34 + 584) & 1) != 0 ) goto LABEL_57; goto LABEL_66; } LABEL_21: v5 = v14 != 2; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 344LL))(v15, v5); goto LABEL_22; } } v5 = (__int64)v259.__r_.__value_.__l.__data_; goto LABEL_38; } v7 = *(unsigned int **)(v6 + 56); if ( *v7 ) { v8 = *((_QWORD **)v7 + 2); v9 = (unsigned __int64)&v8[*v7 - 1]; do { if ( !*v8 ) break; (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v8 + 520LL))(*v8); ++v8; } while ( (unsigned __int64)v8 <= v9 ); v3 = v260; v6 = *(_QWORD *)(v260 + 832); } LOBYTE(v10) = sub_1007FF190(v6); if ( v2 ) goto LABEL_14; return v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source