// // ProfilePage::loadPageFromUserInfo from 0x140552b60 to 0x140555cd4 (12660 bytes) // // 5 xrefs: // > ProfilePage::init @ 0x1405518f3 // > ProfilePage::followUserFinished @ 0x14055843a // > ProfilePage::getUserInfoFinished @ 0x140559cc0 // > ProfilePage::userInfoChanged @ 0x140559da7 // > @ 0x14092be20 // // 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 11:34:11 +0000 // // Hidden C++ exception states: #wind=45 void __fastcall ProfilePage::loadPageFromUserInfo(__int64 a1, cocos2d::CCObject *a2) { char v4; // r14 cocos2d::CCObject *v5; // rcx __int64 v6; // rax __int64 v7; // rbx unsigned int *v8; // rbx __int64 v9; // rax _QWORD *v10; // rbx _QWORD *i; // rdi __int64 v12; // rdx bool v13; // bl void **v14; // rdx int v15; // ebx __int64 v16; // rcx __int64 v17; // rcx __int64 v18; // rax __int64 v19; // rcx __int64 v20; // rcx char isFollowingUser; // al char v22; // dl __int64 v23; // rcx int v24; // edi __int64 v25; // rbx __int64 v26; // rdx bool v27; // si float v28; // xmm10_4 int v29; // eax float v30; // xmm13_4 __int64 v31; // r12 float v32; // xmm7_4 int v33; // r14d int v34; // edi char v35; // bl __int64 v36; // rax char *v37; // rax signed int v38; // edx char *v39; // rax char *v40; // rax char *v41; // rax char *v42; // rax char *v43; // rax char *v44; // rax char *v45; // rax float v46; // xmm6_4 __m128i *v47; // rax cocos2d::CCLabelBMFont *v48; // r13 __int64 v49; // rbx __int64 v50; // rax __int64 v51; // rax void **v52; // rcx __int64 *v53; // rsi float *v54; // rax __int64 v55; // rax cocos2d::CCObject *v56; // rdi __int64 v57; // rbx __int64 v58; // rax __int64 v59; // rbx __int64 v60; // rax cocos2d::CCArray *v61; // rsi __int64 v62; // rax float v63; // xmm6_4 float v64; // xmm7_4 void *v65; // rcx __int64 v66; // rbx __int64 v67; // rax unsigned int v68; // r13d struct cocos2d::CCObject *v69; // r14 __int64 v70; // rsi __int64 v71; // rdi void (__fastcall *v72)(__int64); // rbx __int64 v73; // rdi __int64 v74; // rbx __int64 v75; // rax __int64 v76; // rax __int64 v77; // rax __int64 v78; // rcx __int64 v79; // rcx __int64 v80; // rcx __int64 *v81; // r13 int v82; // r14d int v83; // eax float v84; // xmm6_4 unsigned int v85; // ebx int v86; // edi int v87; // eax unsigned int v88; // r12d __int64 *v89; // rdi __int64 v90; // rax __int64 v91; // rax bool v92; // al cocos2d::CCObject *v93; // rsi __int64 v94; // rbx __int64 v95; // rax __int64 v96; // rbx __int64 v97; // rax __int64 v98; // rdi __int64 v99; // rbx __int64 v100; // rax __int64 v101; // rax __int64 v102; // rbx bool v103; // di int v104; // esi unsigned int v105; // r14d bool v106; // bl bool v107; // bl bool v108; // bl bool v109; // bl bool v110; // bl const char *v111; // rcx __int64 *v112; // rbx __int64 *v113; // r14 __int64 v114; // rdi __int64 v115; // rbx __int64 v116; // rax __int64 v117; // rax const char *v118; // rcx __int64 *v119; // rbx cocos2d::CCObject *v120; // rsi __int64 v121; // rdi __int64 v122; // rbx __int64 v123; // rax __int64 v124; // rax struct cocos2d::CCObject *v125; // rbx __int64 v126; // rax bool v127; // bl __int64 v128; // rcx int v129; // eax __int64 v130; // rdi __int64 v131; // rdi __int64 v132; // rcx __int64 *v133; // rbx cocos2d::CCObject *v134; // r14 __int64 v135; // rsi __int64 v136; // rbx __int64 v137; // rdi __int64 v138; // rax __int64 v139; // rax __int64 v140; // rax int v141; // edi const char *v142; // rbx struct cocos2d::CCObject *v143; // rbx struct cocos2d::CCObject *v144; // rbx __int64 v145; // rax cocos2d::CCString *v146; // rax const char *CString; // rax struct cocos2d::CCObject *v148; // rbx __int64 v149; // rax cocos2d::CCLabelBMFont *v150; // rcx float *v151; // rax __int64 v152; // rax __int64 v153; // rbx __int64 v154; // rax int v155; // ecx unsigned __int64 v156; // rdi _BYTE *v157; // rbx unsigned __int64 v158; // rcx __int64 v159; // rbx _WORD *v160; // rsi void *v161; // rcx void **v162; // rcx __int64 *v163; // rbx __int64 *v164; // rsi unsigned __int64 v165; // rdi _BYTE *v166; // rbx unsigned __int64 v167; // rcx __int64 v168; // rbx __int64 v169; // rdi __int64 v170; // rbx __int64 v171; // rax __int64 v172; // rax void *v173; // rcx __int64 *v174; // rbx cocos2d::CCObject *v175; // rdi double v176; // xmm0_8 float v177; // xmm6_4 float *v178; // rax __int64 v179; // rax __int64 v180; // rbx __int64 v181; // rax __int64 v182; // rbx __int64 v183; // rax __int64 *v184; // rbx cocos2d::CCObject *v185; // rdi __int64 v186; // rax __int64 v187; // rbx __int64 v188; // rax __int64 v189; // rbx __int64 v190; // rax __int64 v191; // rcx __int64 v192; // rcx cocos2d::CCArray *v193; // r13 __int64 *v194; // rbx cocos2d::CCObject *v195; // r14 __int64 v196; // rdi __int64 v197; // rbx __int64 v198; // rax __int64 v199; // rax struct cocos2d::CCObject *v200; // r12 __int64 v201; // rax __int64 v202; // rax __int64 *v203; // rbx cocos2d::CCObject *v204; // rsi __int64 v205; // rdi __int64 v206; // rbx __int64 v207; // rax __int64 v208; // rax struct cocos2d::CCObject *v209; // rbx __int64 v210; // rax __int64 v211; // rdi __int64 v212; // rdi __int64 v213; // rax __int64 v214; // rax cocos2d::CCArray *v215; // rsi cocos2d::CCArray *v216; // r14 __int64 v217; // rbx cocos2d::CCObject *v218; // rbx __int64 *v219; // rdi cocos2d::CCObject *v220; // rbx __int64 v221; // rbx cocos2d::CCObject *v222; // rbx __int64 *v223; // rdi cocos2d::CCObject *v224; // rbx int v225; // r12d __int64 v226; // rbx __int64 *v227; // rdi cocos2d::CCObject *v228; // rbx __int64 v229; // rbx __int64 v230; // rdi __int64 v231; // rax __int64 v232; // rax __int64 v233; // rax int v234; // edi __int64 v235; // rcx __int64 v236; // rbx int v237; // ebx float v238; // xmm6_4 struct cocos2d::CCSprite *v239; // rsi cocos2d::CCString *v240; // rax const char *v241; // rax cocos2d::CCLabelBMFont *v242; // rdi __int64 v243; // rax __int64 v244; // rbx __int64 v245; // rax __int64 v246; // rbx __int64 v247; // rax __int64 *v248; // rbx cocos2d::CCObject *v249; // r14 __int64 v250; // rsi __int64 v251; // rbx __int64 v252; // rdi __int64 v253; // rax __int64 v254; // rax __int64 v255; // rax __int64 v256; // rbx void *v257; // [rsp+38h] [rbp-D0h] BYREF __int64 *v258; // [rsp+40h] [rbp-C8h] BYREF BOOL v259; // [rsp+48h] [rbp-C0h] float v260; // [rsp+50h] [rbp-B8h] BYREF float v261; // [rsp+54h] [rbp-B4h] cocos2d::CCArray *v262; // [rsp+58h] [rbp-B0h] BYREF int v263; // [rsp+60h] [rbp-A8h] BYREF unsigned int v264; // [rsp+68h] [rbp-A0h] __int64 v265; // [rsp+70h] [rbp-98h] BYREF void *v266; // [rsp+78h] [rbp-90h] BYREF int v267; // [rsp+80h] [rbp-88h] float v268; // [rsp+88h] [rbp-80h] BYREF char v269[4]; // [rsp+90h] [rbp-78h] BYREF char v270[4]; // [rsp+94h] [rbp-74h] BYREF int v271; // [rsp+98h] [rbp-70h] _BYTE v272[8]; // [rsp+A0h] [rbp-68h] BYREF __int64 *v273; // [rsp+A8h] [rbp-60h] BYREF void *v274; // [rsp+B0h] [rbp-58h] BYREF _BYTE v275[8]; // [rsp+B8h] [rbp-50h] BYREF _BYTE v276[8]; // [rsp+C0h] [rbp-48h] BYREF void *v277; // [rsp+C8h] [rbp-40h] BYREF _BYTE v278[8]; // [rsp+D0h] [rbp-38h] BYREF _BYTE v279[8]; // [rsp+D8h] [rbp-30h] BYREF void *Block[2]; // [rsp+E0h] [rbp-28h] BYREF __int64 v281; // [rsp+F0h] [rbp-18h] unsigned __int64 v282; // [rsp+F8h] [rbp-10h] __m128i v283; // [rsp+100h] [rbp-8h] BYREF __int64 v284; // [rsp+110h] [rbp+8h] _BYTE v285[16]; // [rsp+120h] [rbp+18h] BYREF __int64 v286; // [rsp+130h] [rbp+28h] _BYTE v287[16]; // [rsp+140h] [rbp+38h] BYREF __int64 v288; // [rsp+150h] [rbp+48h] _BYTE v289[16]; // [rsp+160h] [rbp+58h] BYREF __int64 v290; // [rsp+170h] [rbp+68h] v4 = 0; v267 = 0; (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 120LL))(*(_QWORD *)(a1 + 584)); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 584) + 136LL))(*(_QWORD *)(a1 + 584)); if ( a2 ) cocos2d::CCObject::retain(a2); v5 = *(cocos2d::CCObject **)(a1 + 728); if ( v5 ) { cocos2d::CCObject::release(v5); *(_QWORD *)(a1 + 728) = 0; } v6 = cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6, &v260); v7 = *(_QWORD *)(a1 + 840); if ( v7 ) { v8 = *(unsigned int **)(v7 + 56); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((_QWORD **)v8 + 2); for ( i = &v10[v9 - 1]; v10 <= i; ++v10 ) { if ( !*v10 ) break; (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*v10 + 512LL))(*v10); } } } cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(a1 + 840)); if ( !a2 ) return; *(_QWORD *)(a1 + 728) = a2; v13 = false; if ( *(_QWORD *)(a1 + 784) ) { sub_14003F4F0((__int64)Block, (__int64)a2 + 320); v4 = 1; if ( v281 ) v13 = true; } if ( (v4 & 1) != 0 ) sub_14003D310((__int64)Block); if ( v13 ) { sub_14003F4F0((__int64)Block, *(_QWORD *)(a1 + 728) + 320LL); v14 = Block; if ( v282 > 0xF ) v14 = (void **)Block[0]; (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 784) + 360LL))(*(_QWORD *)(a1 + 784) + 360LL, v14); sub_14003D310((__int64)Block); cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 784), 160.0, 0.80000001, 0.0); } v15 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 760LL); v16 = *(_QWORD *)(a1 + 816); if ( v16 ) { LOBYTE(v12) = v15 != 2; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 336LL))(v16, v12); } v17 = *(_QWORD *)(a1 + 824); if ( v17 ) { LOBYTE(v12) = v15 != 2; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v17 + 336LL))(v17, v12); } if ( v15 == 2 ) { ProfilePage::setupAccountButtons(a1); return; } if ( !*(_BYTE *)(a1 + 740) ) { v18 = GJAccountManager::sharedState(); if ( *(_DWORD *)(v18 + 360) - *(_DWORD *)(v18 + 364) > 0 ) { v19 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v258 = (__int64 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v258); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v19 = qword_14090BFD0; } if ( GameManager::getGameVariable(v19, "0241") ) { v20 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v258 = (__int64 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v258); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v20 = *(_QWORD *)&qword_14090BFB0; } isFollowingUser = GameLevelManager::isFollowingUser(v20); v22 = *(_BYTE *)(*(_QWORD *)(a1 + 728) + 792LL); if ( v22 != isFollowingUser ) { v23 = *(_QWORD *)&qword_14090BFB0; if ( v22 ) { if ( !*(_QWORD *)&qword_14090BFB0 ) { v258 = (__int64 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v258); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v23 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::followUser(v23); } else { if ( !*(_QWORD *)&qword_14090BFB0 ) { v258 = (__int64 *)operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v258); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v23 = *(_QWORD *)&qword_14090BFB0; } GameLevelManager::unfollowUser(v23); } ProfilePage::updateFollowButton(a1, *(unsigned __int8 *)(*(_QWORD *)(a1 + 728) + 792LL)); } } } } sub_14003F4F0((__int64)&v283, *(_QWORD *)(a1 + 728) + 480LL); sub_14003F4F0((__int64)v289, *(_QWORD *)(a1 + 728) + 512LL); sub_14003F4F0((__int64)v287, *(_QWORD *)(a1 + 728) + 544LL); sub_14003F4F0((__int64)v285, *(_QWORD *)(a1 + 728) + 608LL); sub_14003F4F0((__int64)Block, *(_QWORD *)(a1 + 728) + 640LL); v267 = (v281 != 0) + (v284 != 0) + (v290 != 0) + (v288 != 0) + (v286 != 0); sub_14003D310((__int64)Block); sub_14003D310((__int64)v285); sub_14003D310((__int64)v287); sub_14003D310((__int64)v289); sub_14003D310((__int64)&v283); v24 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 416LL); v25 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v258 = (__int64 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v258); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v25 = qword_14090BFD0; } v27 = !GameManager::getGameVariable(v25, "0218") && !GameManager::getGameVariable(v25, "0219") && *(int *)(*(_QWORD *)(a1 + 728) + 784LL) > 0; LOBYTE(v259) = v27; v28 = (float)(v261 * 0.5) + 85.0; v29 = 60; if ( v24 > 0 ) v29 = 50; v30 = (float)v29; v31 = cocos2d::CCNode::create(50, v26); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v31 + 312LL))(v31, &unk_14090B4C0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v272, 0.0, 0.0); v32 = 0.0; v271 = v27 + (v24 > 0) + 5; v262 = (cocos2d::CCArray *)cocos2d::CCArray::create((unsigned int)v271); v33 = 0; while ( 1 ) { *(_OWORD *)Block = 0; v281 = 0; v282 = 15; LOBYTE(Block[0]) = 0; v34 = 0; v264 = 0; v35 = 0; v36 = (unsigned int)v33; if ( v33 == 5 ) { v36 = (unsigned int)v27 + 5; } else if ( v33 == 6 ) { LABEL_64: v45 = (char *)sub_14003D460(0x20u); v281 = 21; v282 = 31; strcpy(v45, "GJ_hammerIcon_001.png"); Block[0] = v45; v38 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 416LL); goto LABEL_65; } switch ( v36 ) { case 0LL: v37 = (char *)sub_14003D460(0x20u); v281 = 20; v282 = 31; strcpy(v37, "GJ_starsIcon_001.png"); Block[0] = v37; v38 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 396LL); v34 = 1; v264 = 1; break; case 1LL: v39 = (char *)sub_14003D460(0x20u); v281 = 20; v282 = 31; strcpy(v39, "GJ_moonsIcon_001.png"); Block[0] = v39; v38 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 400LL); v34 = 2; v264 = 2; break; case 2LL: v40 = (char *)sub_14003D460(0x20u); v281 = 20; v282 = 31; strcpy(v40, "GJ_coinsIcon_001.png"); Block[0] = v40; v38 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 420LL); break; case 3LL: v41 = (char *)sub_14003D460(0x20u); v281 = 21; v282 = 31; strcpy(v41, "GJ_coinsIcon2_001.png"); Block[0] = v41; v38 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 424LL); break; case 4LL: v42 = (char *)sub_14003D460(0x20u); v281 = 20; v282 = 31; strcpy(v42, "GJ_demonIcon_001.png"); Block[0] = v42; v38 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 408LL); v34 = 3; v264 = 3; break; case 5LL: goto LABEL_64; case 6LL: v43 = (char *)sub_14003D460(0x20u); v281 = 21; v282 = 31; strcpy(v43, "GJ_followIcon_001.png"); Block[0] = v43; v38 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 784LL); v35 = 1; v34 = *(_BYTE *)(a1 + 740) != 0 ? 4 : 0; v264 = v34; break; default: v44 = (char *)sub_14003D460(0x20u); v281 = 20; v282 = 31; strcpy(v44, "GJ_starsIcon_001.png"); Block[0] = v44; v38 = 0; break; } LABEL_65: v46 = (float)(v35 != 0 ? 3 : 0); v47 = GameToolbox::pointsToString(&v283, v38); if ( v47[1].m128i_i64[1] > 0xFuLL ) v47 = (__m128i *)v47->m128i_i64[0]; v48 = cocos2d::CCLabelBMFont::create(v47->m128i_i8, (const char *)&qword_140704F78); sub_14003D310((__int64)&v283); (*(void (__fastcall **)(__int64, cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v31 + 456LL))(v31, v48, 2); v49 = *(_QWORD *)v48; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v279, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v49 + 288))(v48, v50); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v275, v46, 0.0); cocos2d::CCPoint::operator+(v272, &v273, v51); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 **))(*(_QWORD *)v48 + 184LL))(v48, &v273); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v48 + 160LL))(v48); cocos2d::CCLabelBMFont::limitLabelWidth(v48, v30, 0.60000002, 0.0); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v48); v52 = Block; if ( v282 > 0xF ) v52 = (void **)Block[0]; v53 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName((const char *)v52); (*(void (__fastcall **)(__int64 *))(*v53 + 160))(v53); v54 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_QWORD *)v48 + 328LL))(v48, v276); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, *v54 + 14.0, 0.0); cocos2d::CCPoint::operator+(v272, &v265, v55); if ( v34 ) { v274 = operator new(0x208u); v56 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v274); if ( v56 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v56, v53, 0, a1, (__int64)ProfilePage::onStatInfo) ) { cocos2d::CCObject::autorelease(v56); LABEL_75: (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v56 + 64LL))(v56, v264); v57 = *(_QWORD *)v56; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v266, 30.0, 30.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v57 + 312))(v56, v58); v59 = *v53; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v263, 15.0, 15.0); (*(void (__fastcall **)(__int64 *, __int64))(v59 + 184))(v53, v60); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v56); (*(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v56 + 184LL))(v56, &v265); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v56); v61 = v262; cocos2d::CCArray::addObject(v262, v56); goto LABEL_77; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v56 + 8LL))(v56, 1); } v56 = nullptr; goto LABEL_75; } (*(void (__fastcall **)(__int64, __int64 *, __int64))(*(_QWORD *)v31 + 456LL))(v31, v53, 2); (*(void (__fastcall **)(__int64 *, __int64 *))(*v53 + 184))(v53, &v265); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), (struct cocos2d::CCObject *)v53); v61 = v262; LABEL_77: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, 20.0, 0.0); cocos2d::CCPoint::operator+(&v265, &v258, v62); cocos2d::CCPoint::operator=(v272, &v258); v63 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v48 + 320LL))(v48); v64 = v32 + (float)((float)((*(float (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v48 + 168LL))(v48) * v63) + 14.0); if ( v33 <= 0 ) v32 = v64 + 10.0; else v32 = v64 + 20.0; if ( v282 > 0xF ) { v65 = Block[0]; if ( v282 + 1 >= 0x1000 ) { v65 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v65 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v65); } if ( ++v33 >= v271 ) break; v27 = v259; } if ( v32 > 420.0 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v31 + 160LL))(v31); v32 = 420.0; } v66 = *(_QWORD *)v31; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, (float)(v260 * 0.5) - (float)(v32 * 0.5), v28); (*(void (__fastcall **)(__int64, __int64))(v66 + 184))(v31, v67); v68 = 0; if ( cocos2d::CCArray::count(v61) ) { do { v69 = cocos2d::CCArray::objectAtIndex(v61, v68); v70 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v69 + 952LL))(v69); v71 = *(_QWORD *)v70; v72 = *(void (__fastcall **)(__int64))(*(_QWORD *)v70 + 168LL); (*(void (__fastcall **)(__int64))(*(_QWORD *)v31 + 168LL))(v31); v72(v70); (*(void (__fastcall **)(__int64))(v71 + 160))(v70); v73 = *(_QWORD *)v69; v74 = *(_QWORD *)(a1 + 552); v75 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v69 + 200LL))(v69); cocos2d::CCNode::convertToWorldSpace(v31, &v257, v75); cocos2d::CCNode::convertToNodeSpace(v74, &v263, v76); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(v73 + 184))(v69, v77); ++v68; v61 = v262; } while ( v68 < cocos2d::CCArray::count(v262) ); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v278, v260 * 0.5, (float)(v261 * 0.5) + 40.0); v78 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v78 = qword_14090BFD0; } GameManager::colorForIdx(v78, v269, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 432LL)); v79 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v79 = qword_14090BFD0; } GameManager::colorForIdx(v79, v270, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 436LL)); v81 = nullptr; v82 = 0; while ( 2 ) { v83 = -3; if ( (unsigned int)v82 < 5 ) v83 = 3; v84 = (float)v83; switch ( v82 ) { case 0: v85 = 0; v86 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 704LL); break; case 1: v85 = 1; v86 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 708LL); break; case 2: v85 = 2; v86 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 712LL); break; case 3: v85 = 3; v86 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 716LL); break; case 4: v85 = 4; v86 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 720LL); break; case 5: v85 = 5; v86 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 724LL); break; case 6: v85 = 6; v86 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 728LL); break; case 7: v85 = 7; v86 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 732LL); v84 = v84 + 2.0; break; case 8: v85 = 8; v86 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 736LL); break; } if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } v87 = GameManager::countForType(v80, v85); if ( v86 < v87 ) v87 = v86; v88 = 1; if ( v87 > 1 ) v88 = v87; v89 = (__int64 *)SimplePlayer::create(v88); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v263, (float)((float)((float)((float)v82 * 44.0) - 176.0) + v84) - 1.0, 0.0); cocos2d::CCPoint::operator+(v278, &v258, v90); (*(void (__fastcall **)(__int64 *, char *))v89[40])(v89 + 40, v269); (**(void (__fastcall ***)(__int64, char *))(v89[76] + 320))(v89[76] + 320, v270); SimplePlayer::updateColors((__int64)v89); v91 = *(_QWORD *)(a1 + 728); v92 = *(_DWORD *)(v91 + 444) == 2 || *(_BYTE *)(v91 + 744); *((_BYTE *)v89 + 660) = v92; SimplePlayer::tryEnableCustomGlowColor((__int64)v89, *(_DWORD *)(*(_QWORD *)(a1 + 728) + 440LL)); SimplePlayer::updatePlayerFrame((__int64)v89, v88, v85); SimplePlayer::updateColors((__int64)v89); (*(void (__fastcall **)(__int64 *))(*v89 + 160))(v89); v266 = operator new(0x208u); v93 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v266); if ( v93 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v93, v89, 0, a1, (__int64)ProfilePage::onIconInfo) ) { cocos2d::CCObject::autorelease(v93); goto LABEL_123; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v93 + 8LL))(v93, 1); } v93 = nullptr; LABEL_123: (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v93 + 64LL))(v93, v85); *((_DWORD *)v93 + 128) = v88; v94 = *(_QWORD *)v93; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v274, 30.0, 30.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v94 + 312))(v93, v95); v96 = *v89; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v277, 15.0, 15.0); (*(void (__fastcall **)(__int64 *, __int64))(v96 + 184))(v89, v97); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v93); v98 = *(_QWORD *)v93; v99 = *(_QWORD *)(a1 + 552); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 584), v276, &v258); cocos2d::CCNode::convertToNodeSpace(v99, v275, v100); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v98 + 184))(v93, v101); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v93); if ( ++v82 <= 8 ) continue; break; } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v268, (float)((float)(v260 * 0.5) + 220.0) - 22.0, (float)((float)(v261 * 0.5) + 145.0) - 22.0); v102 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v102 = qword_14090BFD0; } v103 = GameManager::getGameVariable(v102, "0218") || GameManager::getGameVariable(v102, "0219"); v104 = -1; v105 = v267; if ( v267 == 1 ) { sub_14003F4F0((__int64)&v283, *(_QWORD *)(a1 + 728) + 480LL); v106 = v284 != 0; sub_14003D310((__int64)&v283); if ( v106 ) { v104 = 0; } else { sub_14003F4F0((__int64)&v283, *(_QWORD *)(a1 + 728) + 512LL); v107 = v284 != 0; sub_14003D310((__int64)&v283); if ( v107 ) { v104 = 1; } else { sub_14003F4F0((__int64)&v283, *(_QWORD *)(a1 + 728) + 544LL); v108 = v284 != 0; sub_14003D310((__int64)&v283); if ( v108 ) { v104 = 2; } else { sub_14003F4F0((__int64)&v283, *(_QWORD *)(a1 + 728) + 608LL); v109 = v284 != 0; sub_14003D310((__int64)&v283); if ( v109 ) { v104 = 3; } else { sub_14003F4F0((__int64)&v283, *(_QWORD *)(a1 + 728) + 640LL); v110 = v284 != 0; sub_14003D310((__int64)&v283); if ( v110 ) v104 = 4; } } } } } if ( v103 ) goto LABEL_173; if ( v105 != 1 ) { if ( v105 <= 1 ) goto LABEL_173; v119 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_social_001.png"); v257 = operator new(0x208u); v120 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v120 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v120, v119, 0, a1, (__int64)ProfilePage::onMyStuff) ) { cocos2d::CCObject::autorelease(v120); LABEL_171: (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v120); v121 = *(_QWORD *)v120; v122 = *(_QWORD *)(a1 + 552); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 584), &v257, &v268); cocos2d::CCNode::convertToNodeSpace(v122, &v263, v123); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v121 + 184))(v120, v124); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v120); v118 = "GJ_stuffTxt_001.png"; goto LABEL_172; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v120 + 8LL))(v120, 1); } v120 = nullptr; goto LABEL_171; } if ( v104 < 0 ) goto LABEL_173; if ( v104 ) { switch ( v104 ) { case 1: v111 = "gj_twIcon_001.png"; break; case 2: v111 = "gj_twitchIcon_001.png"; break; case 3: v111 = "gj_instaIcon_001.png"; break; default: v111 = "gj_tiktokIcon_001.png"; break; } } else { v111 = "gj_ytIcon_001.png"; } v112 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName(v111); v257 = operator new(0x208u); v113 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( !v113 ) { LABEL_157: v113 = nullptr; goto LABEL_158; } if ( !CCMenuItemSpriteExtra::init(v113, v112, 0, a1, (__int64)ProfilePage::onSocialPage) ) { (*(void (__fastcall **)(__int64 *, __int64))(*v113 + 8))(v113, 1); goto LABEL_157; } cocos2d::CCObject::autorelease((cocos2d::CCObject *)v113); LABEL_158: (*(void (__fastcall **)(__int64 *, _QWORD))(*v113 + 64))(v113, (unsigned int)v104); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v113); v114 = *v113; v115 = *(_QWORD *)(a1 + 552); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 584), &v257, &v268); cocos2d::CCNode::convertToNodeSpace(v115, &v263, v116); (*(void (__fastcall **)(__int64 *, __int64))(v114 + 184))(v113, v117); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), (struct cocos2d::CCObject *)v113); if ( v104 ) { if ( v104 == 1 ) { v118 = "GJ_twitterTxt_001.png"; } else { v118 = "GJ_twitchTxt_001.png"; if ( v104 != 2 ) v118 = "GJ_stuffTxt_001.png"; } } else { v118 = "GJ_youtubeTxt_001.png"; } LABEL_172: v125 = cocos2d::CCSprite::createWithSpriteFrameName(v118); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v125, 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, -60.0, 0.0); cocos2d::CCPoint::operator+(&v268, &v258, v126); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64 **))(*(_QWORD *)v125 + 184LL))(v125, &v258); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v125); LABEL_173: v127 = 1; v128 = *(_QWORD *)(a1 + 728); v129 = *(_DWORD *)(v128 + 460); if ( v129 == 2 ) { v127 = 0; } else if ( v129 == 1 ) { v127 = *(_DWORD *)(v128 + 760) == 1; } v130 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v130 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v130, "0218") && !GameManager::getGameVariable(v130, "0219") && !GameManager::getGameVariable(v130, "0076") ) { v131 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v131 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v131, "0218") && !GameManager::getGameVariable(v131, "0219") && !GameManager::getGameVariable(v131, "0075") ) { if ( v127 || *(_BYTE *)(a1 + 740) ) goto LABEL_192; v132 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v132 = qword_14090BFD0; } if ( *(_DWORD *)(v132 + 1064) - *(_DWORD *)(v132 + 1068) == 2 ) { LABEL_192: v133 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("btn_chatHistory_001.png"); v257 = operator new(0x208u); v134 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v134 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v134, v133, 0, a1, (__int64)ProfilePage::onCommentHistory) ) { cocos2d::CCObject::autorelease(v134); goto LABEL_197; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v134 + 8LL))(v134, 1); } v134 = nullptr; LABEL_197: (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v134); v135 = *(_QWORD *)v134; v136 = *(_QWORD *)(a1 + 584); v137 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, v268, (float)(v261 * 0.5) - 10.0); cocos2d::CCNode::convertToWorldSpace(v136, &v263, v138); cocos2d::CCNode::convertToNodeSpace(v137, &v266, v139); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v135 + 184))(v134, v140); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v134); } } } v141 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 756LL); if ( v141 > 0 ) { if ( v141 == 1 ) { v142 = "rankIcon_1_001.png"; } else if ( v141 > 10 ) { if ( v141 > 50 ) { if ( v141 > 100 ) { if ( v141 > 200 ) { if ( v141 > 500 ) { if ( v141 > 1000 ) { if ( v141 > 5000 ) { if ( v141 > 10000 ) { v142 = "rankIcon_top10000_001.png"; if ( v141 > 50000 ) v142 = "rankIcon_all_001.png"; } else { v142 = "rankIcon_top5000_001.png"; } } else { v142 = "rankIcon_top2500_001.png"; } } else { v142 = "rankIcon_top1000_001.png"; } } else { v142 = "rankIcon_top500_001.png"; } } else { v142 = "rankIcon_top200_001.png"; } } else { v142 = (const char *)&xmmword_14073A240; } } else { v142 = (const char *)&xmmword_14073A258; } } else { v142 = (const char *)&xmmword_14073A210; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v262, (float)(v260 * 0.5) - 164.0, (float)(v261 * 0.5) + 123.0); v143 = cocos2d::CCSprite::createWithSpriteFrameName(v142); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v143, 10); (*(void (__fastcall **)(struct cocos2d::CCObject *, cocos2d::CCArray **))(*(_QWORD *)v143 + 184LL))(v143, &v262); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v143); v144 = cocos2d::CCSprite::createWithSpriteFrameName("gj_globalRankTxt_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v144, 10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, 40.0, 6.0); cocos2d::CCPoint::operator+(&v262, &v258, v145); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64 **))(*(_QWORD *)v144 + 184LL))(v144, &v258); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v144); v146 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)v141); CString = cocos2d::CCString::getCString(v146); v148 = cocos2d::CCLabelBMFont::create(CString, "chatFont.fnt"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v148, 10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, 40.0, -6.0); cocos2d::CCPoint::operator+(&v262, &v258, v149); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64 **))(*(_QWORD *)v148 + 184LL))(v148, &v258); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v148 + 160LL))(v148); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v148); } if ( *(int *)(*(_QWORD *)(a1 + 728) + 752LL) <= 0 ) goto LABEL_256; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v262, (float)(v260 * 0.5) - 180.0, (float)(v261 * 0.5) + 100.0); v150 = *(cocos2d::CCLabelBMFont **)(a1 + 784); if ( v150 ) { cocos2d::CCLabelBMFont::limitLabelWidth(v150, 140.0, 0.89999998, 0.0); v151 = (float *)(*(__int64 (__fastcall **)(_QWORD, void **))(**(_QWORD **)(a1 + 784) + 328LL))( *(_QWORD *)(a1 + 784), &v257); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v263, (float)((float)-*v151 * 0.5) - 16.0, -1.0); v153 = v152; v154 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 200LL))(*(_QWORD *)(a1 + 784)); cocos2d::CCPoint::operator+(v154, &v258, v153); cocos2d::CCPoint::operator=(&v262, &v258); } *(_OWORD *)Block = 0; v281 = 0; v282 = 0; Block[0] = sub_14003D460(0x20u); v281 = 19; v282 = 31; strcpy((char *)Block[0], "modBadge_01_001.png"); v155 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 752LL); if ( v155 == 3 ) { v156 = v282; if ( v282 >= 0x13 ) { v157 = Block[0]; v281 = 19; memmove(Block[0], "modBadge_03_001.png", 0x13u); v157[19] = 0; goto LABEL_234; } v158 = v282 >> 1; v159 = 0x7FFFFFFFFFFFFFFFLL; if ( v282 <= 0x7FFFFFFFFFFFFFFFLL - (v282 >> 1) ) { v159 = 31; if ( v282 + v158 > 0x1F ) v159 = v282 + v158; } v160 = sub_14003D460(v159 + 1); v281 = 19; v282 = v159; qmemcpy(v160, "modBadge_03_001.pn", 18); v160[9] = (unsigned __int8)aModbadge03001P[18]; if ( v156 > 0xF ) { v161 = Block[0]; if ( v156 + 1 < 0x1000 ) goto LABEL_232; v161 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v161 - 8) <= 0x1F ) goto LABEL_232; LABEL_248: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } goto LABEL_233; } if ( v155 == 2 ) { v165 = v282; if ( v282 < 0x13 ) { v167 = v282 >> 1; v168 = 0x7FFFFFFFFFFFFFFFLL; if ( v282 <= 0x7FFFFFFFFFFFFFFFLL - (v282 >> 1) ) { v168 = 31; if ( v282 + v167 > 0x1F ) v168 = v282 + v167; } v160 = sub_14003D460(v168 + 1); v281 = 19; v282 = v168; qmemcpy(v160, "modBadge_02_001.pn", 18); v160[9] = (unsigned __int8)aModbadge02001P[18]; if ( v165 > 0xF ) { v161 = Block[0]; if ( v165 + 1 >= 0x1000 ) { v161 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v161 - 8) > 0x1F ) goto LABEL_248; } LABEL_232: j_j_free(v161); } LABEL_233: Block[0] = v160; } else { v166 = Block[0]; v281 = 19; memmove(Block[0], "modBadge_02_001.png", 0x13u); v166[19] = 0; } } LABEL_234: v162 = Block; if ( v282 > 0xF ) v162 = (void **)Block[0]; v163 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName((const char *)v162); v257 = operator new(0x208u); v164 = (__int64 *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( !v164 ) { LABEL_250: v164 = nullptr; goto LABEL_251; } if ( !CCMenuItemSpriteExtra::init(v164, v163, 0, a1, (__int64)ProfilePage::onModInfo) ) { (*(void (__fastcall **)(__int64 *, __int64))(*v164 + 8))(v164, 1); goto LABEL_250; } cocos2d::CCObject::autorelease((cocos2d::CCObject *)v164); LABEL_251: (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v164); v169 = *v164; v170 = *(_QWORD *)(a1 + 552); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 584), &v257, &v262); cocos2d::CCNode::convertToNodeSpace(v170, &v263, v171); (*(void (__fastcall **)(__int64 *, __int64))(v169 + 184))(v164, v172); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), (struct cocos2d::CCObject *)v164); if ( v282 > 0xF ) { v173 = Block[0]; if ( v282 + 1 >= 0x1000 ) { v173 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v173 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v173); } LABEL_256: *(_OWORD *)Block = 0; v281 = 0; v282 = 0; Block[0] = sub_14003D460(0x20u); v281 = 19; v282 = 31; strcpy((char *)Block[0], "GJ_infoIcon_001.png"); v174 = (__int64 *)CCSpriteGrayscale::createWithSpriteFrameName((__int64)Block); sub_14003D310((__int64)Block); (*(void (__fastcall **)(__int64 *))(*v174 + 160))(v174); v257 = operator new(0x208u); v175 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v175 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v175, v174, 0, a1, (__int64)ProfilePage::onInfo) ) { cocos2d::CCObject::autorelease(v175); goto LABEL_261; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v175 + 8LL))(v175, 1); } v175 = nullptr; LABEL_261: *((_DWORD *)v175 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v175); v176 = (*(double (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 168LL))(*(_QWORD *)(a1 + 784)); v177 = (float)((float)(*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 320LL))(*(_QWORD *)(a1 + 784)) + 4) * 0.5) * *(float *)&v176) - 5.0; v178 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 320LL))(*(_QWORD *)(a1 + 784)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, (float)((float)(*v178 * 0.5) * *(float *)&v176) + 8.0, v177); v180 = v179; v181 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 200LL))(*(_QWORD *)(a1 + 784)); cocos2d::CCPoint::operator+(v181, &v258, v180); v182 = *(_QWORD *)v175; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v263, &v258); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v182 + 184))(v175, v183); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v175); v184 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("whiteSquare60_001.png"); (*(void (__fastcall **)(__int64 *))(*v184 + 136))(v184); (*(void (__fastcall **)(__int64 *, _QWORD))(*v184 + 336))(v184, 0); v257 = operator new(0x208u); v185 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v185 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v185, v184, 0, a1, (__int64)ProfilePage::onCopyName) ) { cocos2d::CCObject::autorelease(v185); goto LABEL_266; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v185 + 8LL))(v185, 1); } v185 = nullptr; LABEL_266: *((_BYTE *)v185 + 408) = 0; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v185); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, 0.0, -2.0); v187 = v186; v188 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 784) + 200LL))(*(_QWORD *)(a1 + 784)); cocos2d::CCPoint::operator+(v188, &v258, v187); v189 = *(_QWORD *)v185; cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), &v263, &v258); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v189 + 184))(v185, v190); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v185); if ( !*(_BYTE *)(a1 + 740) ) { ProfilePage::setupAccountButtons(a1); v193 = (cocos2d::CCArray *)cocos2d::CCArray::create(v192); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v262, (float)((float)((float)(v260 * 0.5) + 220.0) - 22.0) - 1.0, (float)((float)(v261 * 0.5) - 145.0) + 22.0); v194 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_myLevels_001.png"); (*(void (__fastcall **)(__int64 *))(*v194 + 160))(v194); v257 = operator new(0x208u); v195 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v195 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v195, v194, 0, a1, (__int64)ProfilePage::onMyLevels) ) { cocos2d::CCObject::autorelease(v195); goto LABEL_272; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v195 + 8LL))(v195, 1); } v195 = nullptr; LABEL_272: *((_DWORD *)v195 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v195); cocos2d::CCArray::addObject(v193, v195); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v195); v196 = *(_QWORD *)v195; v197 = *(_QWORD *)(a1 + 552); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 584), &v257, &v262); cocos2d::CCNode::convertToNodeSpace(v197, &v263, v198); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v196 + 184))(v195, v199); v200 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_myLevelsTxt_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v200, 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, -1.0, 26.0); cocos2d::CCPoint::operator+(&v262, &v258, v201); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64 **))(*(_QWORD *)v200 + 184LL))(v200, &v258); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v200); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v274, -42.0, 0.0); cocos2d::CCPoint::operator+(&v262, &v265, v202); v203 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_myLists_001.png"); (*(void (__fastcall **)(__int64 *))(*v203 + 160))(v203); v257 = operator new(0x208u); v204 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v204 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v204, v203, 0, a1, (__int64)ProfilePage::onMyLists) ) { cocos2d::CCObject::autorelease(v204); LABEL_277: *((_DWORD *)v204 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v204); cocos2d::CCArray::addObject(v193, v204); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v204); v205 = *(_QWORD *)v204; v206 = *(_QWORD *)(a1 + 552); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 584), &v257, &v265); cocos2d::CCNode::convertToNodeSpace(v206, &v263, v207); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v205 + 184))(v204, v208); v209 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_myListsTxt_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v209, 2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v266, -46.0, 0.0); cocos2d::CCPoint::operator+(&v265, &v258, v210); (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64 **))(*(_QWORD *)v209 + 184LL))(v209, &v258); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v209); v211 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v211 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v211, "0235") && *(_DWORD *)(v211 + 1064) - *(_DWORD *)(v211 + 1068) > 0 ) (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v209 + 336LL))(v209, 0); v212 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v212 = qword_14090BFD0; } if ( GameManager::getGameVariable(v212, "0218") || GameManager::getGameVariable(v212, "0219") || GameManager::getGameVariable(v212, "0077") ) { goto LABEL_291; } v213 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v213 = qword_14090BFD0; } if ( *(_QWORD *)(v213 + 560) || *(_QWORD *)(v213 + 568) ) { LABEL_291: (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v195 + 336LL))(v195, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v195 + 936LL))(v195, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v200 + 336LL))(v200, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v204 + 336LL))(v204, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v204 + 936LL))(v204, 0); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v209 + 336LL))(v209, 0); } return; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v204 + 8LL))(v204, 1); } v204 = nullptr; goto LABEL_277; } v214 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v257 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v257); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v214 = *(_QWORD *)&qword_14090BFB0; } *(_QWORD *)(v214 + 1376) = a1 + 680; v215 = (cocos2d::CCArray *)cocos2d::CCArray::create(v191); v216 = nullptr; v262 = nullptr; v217 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v217 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v217, "0218") && !GameManager::getGameVariable(v217, "0219") && !GameManager::getGameVariable(v217, "0243") ) { v216 = cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_messages_001.png"); v262 = v216; v257 = operator new(0x208u); v218 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v218 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v218, (__int64 *)v216, 0, a1, (__int64)ProfilePage::onMessages) ) { cocos2d::CCObject::autorelease(v218); goto LABEL_304; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v218 + 8LL))(v218, 1); } v218 = nullptr; LABEL_304: *((_DWORD *)v218 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v218); cocos2d::CCArray::addObject(v215, v218); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v218); } v219 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_friends_001.png"); v273 = v219; v257 = operator new(0x208u); v220 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v220 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v220, v219, 0, a1, (__int64)ProfilePage::onFriends) ) { cocos2d::CCObject::autorelease(v220); goto LABEL_310; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v220 + 8LL))(v220, 1); } v220 = nullptr; LABEL_310: *((_DWORD *)v220 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v220); cocos2d::CCArray::addObject(v215, v220); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v220); v221 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v221 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v221, "0218") && !GameManager::getGameVariable(v221, "0219") && !GameManager::getGameVariable(v221, "0243") ) { v81 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_requests_001.png"); v257 = operator new(0x208u); v222 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v222 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v222, v81, 0, a1, (__int64)ProfilePage::onRequests) ) { cocos2d::CCObject::autorelease(v222); goto LABEL_320; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v222 + 8LL))(v222, 1); } v222 = nullptr; LABEL_320: *((_DWORD *)v222 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v222); cocos2d::CCArray::addObject(v215, v222); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v222); } v223 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_notifications_001.png"); v258 = v223; v257 = operator new(0x208u); v224 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v224 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v224, v223, 0, a1, (__int64)ProfilePage::onNotifications) ) { cocos2d::CCObject::autorelease(v224); v225 = 0; goto LABEL_326; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v224 + 8LL))(v224, 1); } v225 = 0; v224 = nullptr; LABEL_326: *((_DWORD *)v224 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v224); cocos2d::CCArray::addObject(v215, v224); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v224); v226 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v226 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v226, "0218") && !GameManager::getGameVariable(v226, "0219") ) { v227 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("accountBtn_settings_001.png"); v257 = operator new(0x208u); v228 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v228 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v228, v227, 0, a1, (__int64)ProfilePage::onSettings) ) { cocos2d::CCObject::autorelease(v228); goto LABEL_335; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v228 + 8LL))(v228, 1); } v228 = nullptr; LABEL_335: *((_DWORD *)v228 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v228); cocos2d::CCArray::addObject(v215, v228); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v228); } v229 = *(_QWORD *)(a1 + 584); v230 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v257, v260 * 0.5, (float)((float)(v261 * 0.5) - 145.0) + 10.0); cocos2d::CCNode::convertToWorldSpace(v229, &v263, v231); cocos2d::CCNode::convertToNodeSpace(v230, &v266, v232); GameToolbox::alignItemsHorisontally((__int64)v215, 20.0, v233, 0); while ( 2 ) { switch ( v225 ) { case 0: v237 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 764LL); goto LABEL_355; case 1: v237 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 772LL); v216 = (cocos2d::CCArray *)v273; goto LABEL_355; case 2: v237 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 768LL); v216 = (cocos2d::CCArray *)v81; goto LABEL_355; case 3: v234 = *(_DWORD *)(*(_QWORD *)(a1 + 728) + 776LL); v235 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v274 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v274); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v235 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v235, "0240") ) { v236 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v277 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v277); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v236 = qword_14090BFD0; } if ( !GameManager::getGameVariable(v236, "0218") && !GameManager::getGameVariable(v236, "0219") ) v234 += *(_DWORD *)(*(_QWORD *)(a1 + 728) + 780LL); } v237 = 99; if ( v234 < 99 ) v237 = v234; v216 = (cocos2d::CCArray *)v258; LABEL_355: if ( v237 > 0 && v216 ) { if ( v237 == 1 ) v238 = -0.5; else v238 = 0.0; v239 = cocos2d::CCSprite::createWithSpriteFrameName("d_ball_01_001.png"); (**((void (__fastcall ***)(__int64, void *))v239 + 40))((__int64)v239 + 320, &unk_1407045F0); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v239 + 160LL))(v239); v240 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)v237); v241 = cocos2d::CCString::getCString(v240); v242 = cocos2d::CCLabelBMFont::create(v241, (const char *)&qword_140704F78); cocos2d::CCLabelBMFont::limitLabelWidth(v242, 28.0, 0.80000001, 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, cocos2d::CCLabelBMFont *))(*(_QWORD *)v239 + 464LL))( v239, v242); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v276, v238, 1.0); v244 = v243; cocos2d::CCNode::convertToNodeSpace(v239, v275, &unk_14090B4A8); cocos2d::CCPoint::operator+(v245, &v265, v244); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64 *))(*(_QWORD *)v242 + 184LL))(v242, &v265); (*(void (__fastcall **)(cocos2d::CCArray *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v216 + 456LL))( v216, v239, 1); v246 = *(_QWORD *)v239; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v279, 38.0, 38.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v246 + 184))(v239, v247); } break; } ++v225; v216 = v262; if ( v225 < 4 ) continue; break; } v248 = (__int64 *)cocos2d::CCSprite::createWithSpriteFrameName("GJ_chatBtn_001.png"); v257 = operator new(0x208u); v249 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra((__int64)v257); if ( v249 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v249, v248, 0, a1, (__int64)ProfilePage::onComment) ) { cocos2d::CCObject::autorelease(v249); goto LABEL_367; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v249 + 8LL))(v249, 1); } v249 = nullptr; LABEL_367: *((_DWORD *)v249 + 93) = 1069547520; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v249); v250 = *(_QWORD *)v249; v251 = *(_QWORD *)(a1 + 584); v252 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v257, (float)((float)(v260 * 0.5) + 220.0) - 10.0, (float)((float)((float)(v261 * 0.5) - 145.0) + 10.0) + 1.0); cocos2d::CCNode::convertToWorldSpace(v251, &v263, v253); cocos2d::CCNode::convertToNodeSpace(v252, &v266, v254); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v250 + 184))(v249, v255); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 840), v249); v256 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v257 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v257); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v256 = qword_14090BFD0; } if ( GameManager::getGameVariable(v256, "0218") || GameManager::getGameVariable(v256, "0219") || GameManager::getGameVariable(v256, "0076") ) { (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v249 + 336LL))(v249, 0); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v249 + 936LL))(v249, 0); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source