// // LevelCell::loadCustomLevelCell from 0x140149120 to 0x14014c7f0 (14032 bytes) // // 2 xrefs: // > LevelCell::loadFromLevel @ 0x140148af0 // > @ 0x140917624 // // 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:27:15 +0000 // // Hidden C++ exception states: #wind=33 void __fastcall LevelCell::loadCustomLevelCell(__int64 a1) { _DWORD *v2; // rdx float v3; // xmm14_4 int v4; // eax float v5; // xmm6_4 void **v6; // rcx cocos2d::CCLabelBMFont *v7; // rdi __int64 v8; // rbx __int64 v9; // rax char v10; // si const char *v11; // rcx cocos2d::CCLabelBMFont *v12; // rdi __int64 v13; // rbx __int64 v14; // rax float v15; // xmm2_4 void (__fastcall *v16)(cocos2d::CCLabelBMFont *, __int64); // rbx __int64 v17; // rax float v18; // xmm2_4 float v19; // xmm1_4 __int64 v20; // rax int v21; // edi __int64 v22; // rcx __int64 SavedDailyLevel; // rax __int64 v24; // rcx __int64 v25; // rcx char v26; // r12 unsigned int v27; // ebx __int64 v28; // rcx __int64 v29; // rcx __int64 v30; // rcx char v31; // r14 __int64 SavedLevel; // rdi __int64 v33; // rdx bool v34; // bl __int64 v35; // rdi unsigned __int64 v36; // rbx char *v37; // rcx const char *v38; // rax unsigned __int64 v39; // rcx __int64 v40; // rsi char *v41; // r14 void *v42; // rcx __int64 v43; // rax unsigned __int64 v44; // rbx char *v45; // rcx unsigned __int64 v46; // rcx __int64 v47; // rsi char *v48; // r14 void *v49; // rcx unsigned __int64 v50; // rsi void **v51; // rbx unsigned __int64 v52; // rcx __int64 v53; // rbx char *v54; // r14 void *v55; // rcx unsigned __int64 v56; // rsi void **v57; // rbx unsigned __int64 v58; // rcx __int64 v59; // rbx char *v60; // r14 void *v61; // rcx unsigned __int64 v62; // rsi void **v63; // rbx unsigned __int64 v64; // rcx _WORD *v65; // rbx void *v66; // rcx float v67; // xmm10_4 unsigned int v68; // ebx cocos2d::CCObject *v69; // rsi cocos2d::CCObject *v70; // rcx __int64 **v71; // r12 int v72; // xmm0_4 float v73; // xmm0_4 __int64 v74; // rdi __int64 *v75; // rbx __int64 v76; // rax __int64 v77; // rbx float v78; // xmm6_4 float *v79; // rax __int64 v80; // rax __int64 v81; // rax __int64 v82; // rsi __int64 v83; // rbx __int64 *v84; // rdi __int64 v85; // rax __int64 v86; // rax struct cocos2d::CCSprite *v87; // rdi cocos2d::CCObject *v88; // rbx __int64 v89; // r9 __int64 v90; // rdx cocos2d::CCString *v91; // rax const char *CString; // rax struct cocos2d::CCObject *v93; // rdi struct cocos2d::CCSprite *v94; // rsi _QWORD *v95; // r12 __int64 v96; // rdx void (__fastcall *v97)(_QWORD *, __int64); // r8 __int64 v98; // rdx void (__fastcall *v99)(_QWORD *, __int64); // r8 float v100; // xmm6_4 double v101; // xmm0_8 float v102; // xmm7_4 float v103; // xmm6_4 double v104; // xmm0_8 float v105; // xmm8_4 float v106; // xmm6_4 double v107; // xmm0_8 float v108; // xmm7_4 __int64 v109; // rbx __int64 v110; // rax __int64 v111; // rax __int64 v112; // rbx struct cocos2d::CCArray *v113; // rax __int64 v114; // rax __int64 v115; // rbx __int64 v116; // rax __int64 v117; // r9 void **v118; // rcx int v119; // edx __int64 v120; // rcx char hasCompletedLevel; // al cocos2d::CCObject *v122; // rdi __int64 v123; // rax __int64 v124; // rbx __int64 v125; // rax struct cocos2d::CCSprite *v126; // rdi __int64 *v127; // rax __int64 v128; // r9 cocos2d::CCObject *v129; // rbx cocos2d::CCObject *v130; // rdi __int64 v131; // rax __int64 v132; // rbx __int64 v133; // rax struct cocos2d::CCSprite *v134; // rdi cocos2d::CCObject *v135; // rbx __int64 v136; // r9 cocos2d::CCObject *v137; // rdi __int64 v138; // rax __int64 v139; // rbx __int64 v140; // rax cocos2d::CCObject *v141; // rbx cocos2d::CCObject *v142; // rsi __int64 v143; // rax __int64 v144; // rdi __int64 v145; // rbx __int64 v146; // rax __int64 v147; // rax _DWORD *v148; // rax int v149; // esi int v150; // ebx __int64 v151; // rcx cocos2d::CCString *v152; // rax void **v153; // rdx const char *p_Src; // rcx cocos2d::CCLabelBMFont *v155; // rdi float v156; // xmm6_4 double v157; // xmm0_8 __int64 v158; // rax cocos2d::CCLabelBMFont *v159; // r12 float v160; // xmm6_4 double v161; // xmm0_8 float v162; // xmm7_4 float v163; // xmm6_4 double v164; // xmm0_8 __int64 v165; // rbx __int64 v166; // rax cocos2d::CCObject *v167; // r14 __int64 v168; // rdi __int64 v169; // rbx __int64 v170; // rax __int64 v171; // rax float v172; // xmm6_4 __int64 v173; // rax float *v174; // rax __int64 v175; // rax float v176; // xmm6_4 float *v177; // rax __int64 v178; // rax __int64 v179; // rcx __int64 SongInfoObject; // rax __int64 v181; // rbx int v182; // eax const char *v183; // rcx struct cocos2d::CCSprite *v184; // rdi __int64 v185; // rax __int64 SongName; // rax struct cocos2d::CCLabelBMFont *v187; // rdi __int64 v188; // rbx __int64 v189; // rax void (__fastcall *v190)(char *, __int16 *); // r8 __int64 v191; // rax bool v192; // cc __int64 v193; // rax int v194; // ecx unsigned int v195; // edi _DWORD *v196; // rcx int v197; // ecx int v198; // ecx int v199; // ecx cocos2d::CCString *v200; // rax __int64 v201; // r13 __int64 v202; // rbx __int64 v203; // rax int v204; // eax __int64 v205; // rax __int64 v206; // rbx __int64 v207; // rax __int64 v208; // r8 __int64 v209; // r9 __int64 v210; // rcx bool v211; // dl float v212; // xmm0_4 size_t v213; // r14 __int64 v214; // rax __int64 v215; // rbx __int64 v216; // rcx __int64 v217; // rdx int v218; // ecx __int64 v219; // rcx __int64 v220; // rcx char hasCompletedStarLevel; // al float v222; // xmm10_4 const char *v223; // rcx struct cocos2d::CCSprite *v224; // rdi __int64 v225; // rax cocos2d::CCString *v226; // rax const char *v227; // rax struct cocos2d::CCLabelBMFont *v228; // rsi __int64 v229; // rbx __int64 v230; // rax __int64 v231; // rax __int64 v232; // rbx __int64 v233; // rax int v234; // eax int v235; // ebx __int64 v236; // rcx int v237; // ebx cocos2d::CCString *v238; // rax char *v239; // rax size_t v240; // r8 void **v241; // rcx struct cocos2d::CCLabelBMFont *v242; // rsi __int64 v243; // rbx __int64 v244; // rax float v245; // xmm6_4 double v246; // xmm0_8 __int64 v247; // rax __int64 v248; // rax __int64 v249; // rbx __int64 v250; // rax _DWORD *v251; // rcx float v252; // xmm10_4 int v253; // esi float v254; // xmm8_4 int v255; // eax int v256; // eax __int64 v257; // r8 _BYTE *CoinKey; // rax size_t v259; // r8 void **v260; // rbx __int64 v261; // rcx void **v262; // rbx __int64 v263; // rcx char v264; // r12 struct cocos2d::CCSprite *v265; // rdi __int64 v266; // rax struct cocos2d::CCLabelBMFont *v267; // rbx float v268; // xmm6_4 double v269; // xmm0_8 float v270; // xmm7_4 double v271; // xmm0_8 __int64 v272; // rax __int64 v273; // rbx __int64 v274; // rax __int16 *v275; // rdx char v276; // bl float *v277; // rax int v278; // ecx float v279; // xmm6_4 char v280; // cl int v281; // eax float v282; // xmm14_4 float v283; // xmm8_4 struct cocos2d::CCSprite *v284; // r13 __int64 v285; // rbx __int64 v286; // rax struct cocos2d::CCSprite *v287; // rsi __int64 v288; // rax __int64 v289; // rbx __int64 v290; // rax struct cocos2d::CCSprite *v291; // r12 __int64 v292; // rax __int64 v293; // rbx __int64 v294; // rax char v295; // r8 unsigned int *v296; // rdx int v297; // ecx float v298; // xmm11_4 __int64 v299; // rax cocos2d::CCLabelBMFont *v300; // rdi __int64 v301; // rbx __int64 v302; // rax __int64 v303; // rax __int64 v304; // rbx __int64 v305; // rax __int64 v306; // rbx float v307; // xmm8_4 float v308; // xmm6_4 double v309; // xmm0_8 float v310; // xmm7_4 __int64 v311; // rax __int16 *v312; // rax cocos2d::CCLabelBMFont *v313; // rdi __int64 v314; // rbx __int64 v315; // rax __int64 v316; // rax __int64 v317; // rbx __int64 v318; // rax int v319; // esi void (__fastcall *v320)(struct cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *); // rbx cocos2d::CCSpriteFrameCache *v321; // rax const char *v322; // rdx struct cocos2d::CCSpriteFrame *v323; // rax __int64 v324; // rbx float v325; // xmm8_4 float v326; // xmm6_4 double v327; // xmm0_8 float v328; // xmm7_4 __int64 v329; // rax __int16 *v330; // rax cocos2d::CCLabelBMFont *v331; // rsi __int64 v332; // rbx __int64 v333; // rax __int64 v334; // rax __int64 v335; // rbx __int64 v336; // rax double (__fastcall *v337)(cocos2d::CCLabelBMFont *); // rbx float v338; // xmm6_4 double v339; // xmm0_8 float v340; // xmm10_4 int v341; // ebx __int64 v342; // rcx unsigned int v343; // r13d __int64 v344; // rcx __int64 v345; // rdi __int64 v346; // rbx int BaseCurrencyForLevel; // eax int v348; // r13d struct cocos2d::CCSprite *v349; // rdi __int64 v350; // rax __int64 v351; // rbx __int64 v352; // rax __int64 v353; // rdi float v354; // xmm8_4 double (__fastcall *v355)(cocos2d::CCLabelBMFont *); // rbx float v356; // xmm6_4 double v357; // xmm0_8 float v358; // xmm7_4 __int64 v359; // rax cocos2d::CCString *v360; // rax char *v361; // rax cocos2d::CCString *v362; // rax void **v363; // rcx cocos2d::CCLabelBMFont *v364; // rdi __int64 v365; // rbx __int64 v366; // rax __int64 v367; // rax __int64 v368; // rbx __int64 v369; // rax float v370; // xmm8_4 bool v371; // zf float v372; // xmm6_4 double v373; // xmm0_8 void *v374; // rcx __int64 v375; // rax __int64 v376; // rbx __int64 v377; // rax cocos2d::CCLabelBMFont *v378; // rdi float v379; // xmm8_4 float v380; // xmm6_4 double v381; // xmm0_8 float v382; // xmm7_4 __int64 v383; // rdx float v384; // xmm2_4 float v385; // xmm1_4 __int64 v386; // rax struct cocos2d::CCSprite *v387; // rax struct cocos2d::CCSprite *v388; // rdi __int64 v389; // rbx __int64 v390; // rax cocos2d::CCString *v391; // rax const char *v392; // rax struct cocos2d::CCLabelBMFont *v393; // rdi __int64 v394; // rbx __int64 v395; // rax __int64 v396; // rax float v397; // xmm10_4 float v398; // xmm7_4 void (__fastcall ***v399)(__int64, __int16 *); // rbx float v400; // xmm6_4 double v401; // xmm0_8 struct cocos2d::CCSprite *v402; // rdi __int64 v403; // rbx __int64 v404; // rax __int64 v405; // rax struct cocos2d::CCSprite *v406; // rdi __int64 v407; // rbx __int64 v408; // rax __int64 v409; // rax __int64 v410; // [rsp+38h] [rbp-D0h] bool v411; // [rsp+58h] [rbp-B0h] bool v412; // [rsp+59h] [rbp-AFh] __int16 v413; // [rsp+5Ah] [rbp-AEh] BYREF char v414; // [rsp+5Ch] [rbp-ACh] void *v415; // [rsp+60h] [rbp-A8h] BYREF int v416; // [rsp+68h] [rbp-A0h] BYREF int v417; // [rsp+6Ch] [rbp-9Ch] void *v418; // [rsp+70h] [rbp-98h] BYREF __int64 v419; // [rsp+78h] [rbp-90h] void (__fastcall ***v420)(__int64, __int16 *); // [rsp+80h] [rbp-88h] BYREF struct cocos2d::CCSprite *v421; // [rsp+88h] [rbp-80h] BYREF float v422; // [rsp+90h] [rbp-78h] BYREF float v423; // [rsp+94h] [rbp-74h] struct cocos2d::CCSprite *v424; // [rsp+98h] [rbp-70h] _BYTE v425[4]; // [rsp+A0h] [rbp-68h] BYREF float v426; // [rsp+A4h] [rbp-64h] struct cocos2d::CCLabelBMFont *v427; // [rsp+A8h] [rbp-60h] BYREF int v428; // [rsp+B0h] [rbp-58h] BYREF float v429; // [rsp+B8h] [rbp-50h] BYREF __int16 v430; // [rsp+C0h] [rbp-48h] BYREF char v431; // [rsp+C2h] [rbp-46h] __int16 v432; // [rsp+C4h] [rbp-44h] int v433; // [rsp+C8h] [rbp-40h] _BYTE v434[12]; // [rsp+CCh] [rbp-3Ch] BYREF char v435[8]; // [rsp+D8h] [rbp-30h] BYREF float v436; // [rsp+E0h] [rbp-28h] BYREF __int64 v437; // [rsp+E8h] [rbp-20h] float v438[2]; // [rsp+F0h] [rbp-18h] BYREF cocos2d::CCLabelBMFont *v439; // [rsp+F8h] [rbp-10h] char v440[8]; // [rsp+100h] [rbp-8h] BYREF void *v441; // [rsp+108h] [rbp+0h] BYREF void *v442; // [rsp+110h] [rbp+8h] BYREF void *Block[2]; // [rsp+118h] [rbp+10h] BYREF __int64 v444; // [rsp+128h] [rbp+20h] unsigned __int64 v445; // [rsp+130h] [rbp+28h] void *Buf2[2]; // [rsp+138h] [rbp+30h] BYREF size_t Size; // [rsp+148h] [rbp+40h] unsigned __int64 v448; // [rsp+150h] [rbp+48h] __int16 Buf1[16]; // [rsp+158h] [rbp+50h] BYREF __int128 Src; // [rsp+178h] [rbp+70h] BYREF __int64 v451; // [rsp+188h] [rbp+80h] unsigned __int64 v452; // [rsp+190h] [rbp+88h] _QWORD v453[4]; // [rsp+198h] [rbp+90h] BYREF v436 = 0.0; v2 = *(_DWORD **)(a1 + 568); v416 = v2[248] - v2[249]; v428 = v2[243]; v3 = 0.44999999; if ( *(_BYTE *)(a1 + 608) ) { v4 = 15; if ( *(_BYTE *)(a1 + 577) ) v4 = -5; v5 = (float)v4; if ( !*(_BYTE *)(a1 + 577) ) { GameToolbox::intToString(Buf2, v2[335]); v6 = Buf2; if ( v448 > 0xF ) v6 = (void **)Buf2[0]; v7 = cocos2d::CCLabelBMFont::create((const char *)v6, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v7); cocos2d::CCLabelBMFont::limitLabelWidth(v7, 20.0, 0.44999999, 0.0); v8 = *(_QWORD *)v7; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, 16.0, *(float *)(a1 + 532) * 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v8 + 184))(v7, v9); sub_14003D310((__int64)Buf2); } } else { v5 = 0.0; } sub_14003F4F0((__int64)v453, *(_QWORD *)(a1 + 568) + 344LL); v10 = 4; v11 = (const char *)v453; if ( v453[3] > 0xFu ) v11 = (const char *)v453[0]; v12 = cocos2d::CCLabelBMFont::create(v11, (const char *)&qword_140704F78); v439 = v12; sub_14003D310((__int64)v453); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v12); v13 = *(_QWORD *)v12; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v13 + 288))(v12, v14); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v12 + 160LL))(v12); v15 = *(float *)(a1 + 532) * 0.5; v16 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(*(_QWORD *)v12 + 184LL); if ( *(_BYTE *)(a1 + 608) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, v5 + 50.0, v15 + 16.0); v16(v12, v20); v18 = 0.5; v19 = 120.0; } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, 50.0, v15 + 30.0); v16(v12, v17); v18 = 0.80000001; v19 = 190.0; } cocos2d::CCLabelBMFont::limitLabelWidth(v12, v19, v18, 0.0); *(_OWORD *)Block = 0; v444 = 0; v445 = 15; LOBYTE(Block[0]) = 0; v21 = *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1412LL); LODWORD(v419) = v21; v22 = *(_QWORD *)&qword_14090BFB0; if ( v21 > 0 ) { if ( !*(_QWORD *)&qword_14090BFB0 ) { v415 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v415); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v22 = *(_QWORD *)&qword_14090BFB0; } SavedDailyLevel = GameLevelManager::getSavedDailyLevel(v22, *(unsigned int *)(*(_QWORD *)(a1 + 568) + 1412LL)); v437 = SavedDailyLevel; if ( !SavedDailyLevel || *(_DWORD *)(SavedDailyLevel + 328) - *(_DWORD *)(SavedDailyLevel + 332) != *(_DWORD *)(*(_QWORD *)(a1 + 568) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 332LL) ) { v437 = 0; } v24 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v24 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::hasCompletedDailyStars(v24, (unsigned int)v21) ) goto LABEL_27; v25 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v25 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::isDailyRecall(v25, (unsigned int)v21) ) LABEL_27: v26 = 0; else v26 = 1; v27 = *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1412LL); if ( (int)v27 <= 100000 ) goto LABEL_39; v28 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v28 = qword_14090BFE0; } if ( !(unsigned __int8)GameStatsManager::isDailyRecall(v28, v27) ) goto LABEL_39; v29 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v29 = qword_14090BFE0; } if ( !(unsigned __int8)GameStatsManager::hasCompletedDailyStars(v29, v27) ) goto LABEL_39; v30 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v30 = qword_14090BFE0; } if ( !(unsigned __int8)GameStatsManager::hasCompletedDailyLevel(v30, v27) ) { v31 = 1; v417 = v21; LODWORD(v424) = v21; SavedLevel = v437; } else { LABEL_39: v31 = 0; v417 = v21; LODWORD(v424) = v21; SavedLevel = v437; } LABEL_47: v411 = v31; goto LABEL_48; } v417 = 0; LODWORD(v424) = 0; v26 = 0; v31 = 0; v411 = 0; if ( v416 <= 0 ) { if ( !*(_QWORD *)&qword_14090BFB0 ) { v415 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v415); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v22 = *(_QWORD *)&qword_14090BFB0; } SavedLevel = GameLevelManager::getSavedLevel( v22, (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 568) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 332LL))); v437 = SavedLevel; v417 = 0; goto LABEL_47; } if ( !*(_QWORD *)&qword_14090BFB0 ) { v415 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v415); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v22 = *(_QWORD *)&qword_14090BFB0; } SavedLevel = GameLevelManager::getSavedDailyLevel( v22, (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 568) + 992LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 996LL))); v437 = SavedLevel; LABEL_48: v33 = *(_QWORD *)(a1 + 568); v34 = true; if ( *(_DWORD *)(v33 + 1220) != 2 ) { *(_OWORD *)Buf2 = 0; Size = 0; v448 = 15; LOBYTE(Buf2[0]) = 0; LODWORD(v436) = 5; sub_14003F4F0((__int64)Buf1, v33 + 408); v10 = 23; if ( !sub_14003D160(Buf1, Buf2) && (!SavedLevel || *(_BYTE *)(SavedLevel + 1185) || *(_DWORD *)(SavedLevel + 860) != *(_DWORD *)(*(_QWORD *)(a1 + 568) + 860LL)) ) { v34 = false; } } if ( (v10 & 2) != 0 ) { v10 &= ~2u; sub_14003D310((__int64)Buf1); } if ( (v10 & 1) != 0 ) sub_14003D310((__int64)Buf2); if ( v34 ) { v35 = 0x7FFFFFFFFFFFFFFFLL; v36 = v445; if ( v445 >= 4 ) { v37 = (char *)Block; if ( v445 > 0xF ) v37 = (char *)Block[0]; v444 = 4; strcpy(v37, "View"); v38 = "GJ_button_01.png"; goto LABEL_117; } v39 = v445 >> 1; if ( v445 <= 0x7FFFFFFFFFFFFFFFLL - (v445 >> 1) ) { v40 = 15; if ( v39 + v445 > 0xF ) v40 = v39 + v445; } else { v40 = 0x7FFFFFFFFFFFFFFFLL; } v41 = (char *)sub_14003D460(v40 + 1); v444 = 4; v445 = v40; strcpy(v41, "View"); if ( v36 <= 0xF ) { LABEL_72: Block[0] = v41; v31 = v411; v38 = "GJ_button_01.png"; goto LABEL_117; } v42 = Block[0]; if ( v36 + 1 < 0x1000 || (v42 = *((void **)Block[0] - 1), (unsigned __int64)((char *)Block[0] - (char *)v42 - 8) <= 0x1F) ) { j_j_free(v42); goto LABEL_72; } LABEL_128: invoke_watson(nullptr, nullptr, nullptr, 0, 0); } v43 = *(_QWORD *)(a1 + 568); if ( *(int *)(v43 + 864) <= 22 ) { if ( !SavedLevel || *(_BYTE *)(SavedLevel + 1185) || *(_DWORD *)(SavedLevel + 860) >= *(_DWORD *)(v43 + 860) ) { v35 = 0x7FFFFFFFFFFFFFFFLL; v56 = v445; if ( v445 < 6 ) { v58 = v445 >> 1; if ( v445 <= 0x7FFFFFFFFFFFFFFFLL - (v445 >> 1) ) { v59 = 15; if ( v445 + v58 > 0xF ) v59 = v445 + v58; } else { v59 = 0x7FFFFFFFFFFFFFFFLL; } v60 = (char *)sub_14003D460(v59 + 1); v444 = 6; v445 = v59; strcpy(v60, "Get It"); if ( v56 > 0xF ) { v61 = Block[0]; if ( v56 + 1 >= 0x1000 ) { v61 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v61 - 8) > 0x1F ) goto LABEL_128; } j_j_free(v61); } Block[0] = v60; v31 = v411; } else { v57 = Block; if ( v445 > 0xF ) v57 = (void **)Block[0]; v444 = 6; memmove(v57, "Get It", 6u); *((_BYTE *)v57 + 6) = 0; } v38 = "GJ_button_02.png"; goto LABEL_117; } v35 = 0x7FFFFFFFFFFFFFFFLL; v50 = v445; if ( v445 < 6 ) { v52 = v445 >> 1; if ( v445 <= 0x7FFFFFFFFFFFFFFFLL - (v445 >> 1) ) { v53 = 15; if ( v52 + v445 > 0xF ) v53 = v52 + v445; } else { v53 = 0x7FFFFFFFFFFFFFFFLL; } v54 = (char *)sub_14003D460(v53 + 1); v444 = 6; v445 = v53; strcpy(v54, "Update"); if ( v50 > 0xF ) { v55 = Block[0]; if ( v50 + 1 >= 0x1000 ) { v55 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v55 - 8) > 0x1F ) goto LABEL_128; } j_j_free(v55); } Block[0] = v54; v31 = v411; v38 = "GJ_button_03.png"; goto LABEL_117; } v51 = Block; if ( v445 > 0xF ) v51 = (void **)Block[0]; v444 = 6; memmove(v51, "Update", 6u); *((_BYTE *)v51 + 6) = 0; v38 = "GJ_button_03.png"; } else { v35 = 0x7FFFFFFFFFFFFFFFLL; v44 = v445; if ( v445 < 2 ) { v46 = v445 >> 1; if ( v445 <= 0x7FFFFFFFFFFFFFFFLL - (v445 >> 1) ) { v47 = 15; if ( v445 + v46 > 0xF ) v47 = v445 + v46; } else { v47 = 0x7FFFFFFFFFFFFFFFLL; } v48 = (char *)sub_14003D460(v47 + 1); v444 = 2; v445 = v47; strcpy(v48, "NA"); if ( v44 > 0xF ) { v49 = Block[0]; if ( v44 + 1 >= 0x1000 ) { v49 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v49 - 8) > 0x1F ) goto LABEL_128; } j_j_free(v49); } Block[0] = v48; v31 = v411; v38 = "GJ_button_04.png"; goto LABEL_117; } v45 = (char *)Block; if ( v445 > 0xF ) v45 = (char *)Block[0]; v444 = 2; strcpy(v45, "NA"); v38 = "GJ_button_04.png"; } LABEL_117: if ( !*(_BYTE *)(a1 + 576) ) goto LABEL_132; v62 = v445; if ( v445 >= 3 ) { v63 = Block; if ( v445 > 0xF ) v63 = (void **)Block[0]; v444 = 3; memmove(v63, "Use", 3u); *((_BYTE *)v63 + 3) = 0; goto LABEL_131; } v64 = v445 >> 1; if ( v445 <= 0x7FFFFFFFFFFFFFFFLL - (v445 >> 1) ) { v35 = 15; if ( v64 + v445 > 0xF ) v35 = v64 + v445; } v65 = sub_14003D460(v35 + 1); v444 = 3; v445 = v35; *v65 = *(_WORD *)"Use"; v65[1] = (unsigned __int8)aUse[2]; if ( v62 > 0xF ) { v66 = Block[0]; if ( v62 + 1 >= 0x1000 ) { v66 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v66 - 8) > 0x1F ) goto LABEL_128; } j_j_free(v66); } Block[0] = v65; LABEL_131: v38 = "GJ_button_01.png"; LABEL_132: v67 = 0.0; v68 = 0; v411 = 0; v433 = 1050253722; if ( v416 > 0 ) { v69 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_playBtn2_001.png"); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v69 + 160LL))(v69); v67 = 18.0; v411 = *(_DWORD *)(*(_QWORD *)(a1 + 568) + 936LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 940LL) >= 100; v70 = CCMenuItemSpriteExtra::create((int)v69, 0, a1, (__int64)LevelCell::onClick); v71 = (__int64 **)(a1 + 560); *(_QWORD *)(a1 + 560) = v70; LABEL_134: v72 = 1065353216; goto LABEL_135; } if ( v26 ) { if ( v417 <= 200000 ) { v90 = 1; if ( v417 > 100000 ) v90 = 3; } else { v90 = 5; } v91 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, v90, 40); CString = cocos2d::CCString::getCString(v91); v93 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v93 + 160LL))(v93); v94 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_140737F28); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v94 + 160LL))(v94); v95 = (_QWORD *)cocos2d::CCSprite::create(); v96 = v95[40]; v97 = *(void (__fastcall **)(_QWORD *, __int64))(v96 + 72); LOBYTE(v96) = 1; v97(v95 + 40, v96); v98 = v95[40]; v99 = *(void (__fastcall **)(_QWORD *, __int64))(v98 + 96); LOBYTE(v98) = 1; v99(v95 + 40, v98); v100 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v93 + 320LL))(v93); v101 = (*(double (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v93 + 168LL))(v93); v102 = (float)(*(float *)&v101 * v100) + 3.0; v103 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v94 + 320LL))(v94); v104 = (*(double (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v94 + 168LL))(v94); v105 = (float)(*(float *)&v104 * v103) + v102; v106 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v94 + 320LL))(v94) + 4); v107 = (*(double (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v94 + 168LL))(v94); v108 = *(float *)&v107 * v106; v109 = *v95; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v415, v105, *(float *)&v107 * v106); (*(void (__fastcall **)(_QWORD *, __int64))(v109 + 312))(v95, v110); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCObject *))(*v95 + 464LL))(v95, v93); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSprite *))(*v95 + 464LL))(v95, v94); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, v105 * 0.5, v108 * 0.5); v112 = v111; v113 = cocos2d::CCArray::create(v93, v94, 0); GameToolbox::alignItemsHorisontally((__int64)v113, 3.0, v112, 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, 0.0, -2.0); v115 = v114; v116 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v94 + 200LL))(v94); cocos2d::CCPoint::operator+(v116, &v420, v115); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v94 + 184LL))(v94, (void **)&v420); v415 = operator new(0x2C8u); v69 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v415); if ( v69 ) { if ( ButtonSprite::init( (__int64 *)v69, (__int64)v95, 58, v117, 20.0, 1065353216, v410, "GJ_button_05.png", 0, 1106247680) ) { cocos2d::CCObject::autorelease(v69); v68 = 5; goto LABEL_165; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v69 + 8LL))(v69, 1); v69 = nullptr; } v68 = 5; } else if ( v31 ) { v69 = (cocos2d::CCObject *)GJChestSprite::create(3, v33, 40); (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v69 + 160LL))(v69); v68 = 6; v411 = 1; } else { v118 = Block; if ( v445 > 0xF ) LODWORD(v118) = Block[0]; v119 = 50; if ( *(_BYTE *)(a1 + 608) ) v119 = 40; v69 = ButtonSprite::create_1((int)v118, v119, 0, 0.60000002, 1, (__int64)&qword_140704F78, (__int64)v38, 1106247680); v120 = qword_14090BFE0; if ( (int)v419 <= 0 ) { if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v120 = qword_14090BFE0; } hasCompletedLevel = GameStatsManager::hasCompletedLevel(v120, *(_QWORD *)(a1 + 568)); } else { if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v120 = qword_14090BFE0; } hasCompletedLevel = GameStatsManager::hasCompletedDailyStars(v120, (unsigned int)v417); } v411 = hasCompletedLevel; } LABEL_165: v71 = (__int64 **)(a1 + 560); v70 = CCMenuItemSpriteExtra::create((int)v69, 0, a1, (__int64)LevelCell::onClick); *(_QWORD *)(a1 + 560) = v70; if ( *(_BYTE *)(*(_QWORD *)(a1 + 568) + 844LL) ) goto LABEL_134; v72 = 1068708659; LABEL_135: *((_DWORD *)v70 + 93) = v72; (*(void (__fastcall **)(__int64 *, _QWORD))(**v71 + 64))(*v71, v68); (*(void (__fastcall **)(_QWORD, __int64 *))(**(_QWORD **)(a1 + 600) + 464LL))(*(_QWORD *)(a1 + 600), *v71); v73 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v69 + 320LL))(v69); if ( v31 ) { v74 = **v71; v75 = *v71; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v415, 66.0, 30.0); (*(void (__fastcall **)(__int64 *, __int64))(v74 + 312))(v75, v76); v77 = *(_QWORD *)v69; v78 = *(float *)((*(__int64 (__fastcall **)(__int64 *))(**v71 + 320))(*v71) + 4) * 0.5; v79 = (float *)(*(__int64 (__fastcall **)(__int64 *))(**v71 + 320))(*v71); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, *v79 * 0.5, v78); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v77 + 184))(v69, v80); v73 = *(float *)(*(__int64 (__fastcall **)(__int64 *))(**v71 + 320))(*v71); } cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v415, (float)((float)(*(float *)(a1 + 528) - (float)(v73 * 0.5)) - 9.0) + v67, *(float *)(a1 + 532) * 0.5); cocos2d::CCPoint::operator=(a1 + 592, v81); v82 = **v71; v83 = *(_QWORD *)(a1 + 600); v84 = *v71; cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 544), &v415, a1 + 592); cocos2d::CCNode::convertToNodeSpace(v83, &v427, v85); (*(void (__fastcall **)(__int64 *, __int64))(v82 + 184))(v84, v86); if ( *(_DWORD *)(a1 + 552) == 29 ) { v87 = cocos2d::CCSprite::createWithSpriteFrameName("edit_flipYBtn_001.png"); v420 = (void (__fastcall ***)(__int64, __int16 *))operator new(0x2C8u); v88 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v420); if ( v88 ) { if ( ButtonSprite::init((__int64 *)v88, (__int64)v87, 30, v89, 30.0, 1065353216, v410, "GJ_button_05.png", 0, 0) ) { cocos2d::CCObject::autorelease(v88); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v88 + 8LL))(v88, 1); v88 = nullptr; } } (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v88 + 160LL))(v88); v122 = CCMenuItemSpriteExtra::create((int)v88, 0, a1, (__int64)LevelCell::onClick); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v122 + 64LL))(v122, 3); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 600) + 464LL))(*(_QWORD *)(a1 + 600), v122); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v421, 16.0, -8.0); v124 = v123; v125 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 560) + 200LL))(*(_QWORD *)(a1 + 560)); cocos2d::CCPoint::operator+(v125, &v420, v124); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v122 + 184LL))(v122, (void **)&v420); v126 = cocos2d::CCSprite::createWithSpriteFrameName("edit_downBtn_001.png"); v420 = (void (__fastcall ***)(__int64, __int16 *))operator new(0x2C8u); v127 = (__int64 *)ButtonSprite::ButtonSprite((__int64)v420); v129 = (cocos2d::CCObject *)v127; if ( v127 ) { if ( ButtonSprite::init(v127, (__int64)v126, 30, v128, 30.0, 1065353216, v410, "GJ_button_06.png", 0, 0) ) { cocos2d::CCObject::autorelease(v129); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v129 + 8LL))(v129, 1); v129 = nullptr; } } (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v129 + 160LL))(v129); v130 = CCMenuItemSpriteExtra::create((int)v129, 0, a1, (__int64)LevelCell::onClick); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v130 + 64LL))(v130, 2); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 600) + 464LL))(*(_QWORD *)(a1 + 600), v130); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v421, -12.0, -8.0); v132 = v131; v133 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 560) + 200LL))(*(_QWORD *)(a1 + 560)); cocos2d::CCPoint::operator+(v133, &v420, v132); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v130 + 184LL))(v130, (void **)&v420); v134 = cocos2d::CCSprite::createWithSpriteFrameName("edit_upBtn_001.png"); v420 = (void (__fastcall ***)(__int64, __int16 *))operator new(0x2C8u); v135 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v420); if ( v135 ) { if ( ButtonSprite::init( (__int64 *)v135, (__int64)v134, 30, v136, 30.0, 1065353216, v410, "GJ_button_01.png", 0, 0) ) { cocos2d::CCObject::autorelease(v135); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v135 + 8LL))(v135, 1); v135 = nullptr; } } (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v135 + 160LL))(v135); v137 = CCMenuItemSpriteExtra::create((int)v135, 0, a1, (__int64)LevelCell::onClick); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v137 + 64LL))(v137, 1); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 600) + 464LL))(*(_QWORD *)(a1 + 600), v137); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v421, -40.0, -8.0); v139 = v138; v140 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 560) + 200LL))(*(_QWORD *)(a1 + 560)); cocos2d::CCPoint::operator+(v140, &v420, v139); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v137 + 184LL))(v137, (void **)&v420); v420 = (void (__fastcall ***)(__int64, __int16 *))operator new(0x2C8u); v141 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v420); if ( v141 ) { if ( ButtonSprite::init_1( (__int64)v141, (__int64)"Delete", 40, 0, 1058642330, 1, &qword_140704F78, (__int64)"GJ_button_06.png", 1106247680) ) { cocos2d::CCObject::autorelease(v141); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v141 + 8LL))(v141, 1); LODWORD(v141) = 0; } } v142 = CCMenuItemSpriteExtra::create((int)v141, 0, a1, (__int64)LevelCell::onClick); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v142 + 64LL))(v142, 4); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 600) + 464LL))(*(_QWORD *)(a1 + 600), v142); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v421, -v67, 0.0); cocos2d::CCPoint::operator+(a1 + 592, &v420, v143); v144 = *(_QWORD *)v142; v145 = *(_QWORD *)(a1 + 600); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 544), &v436, &v420); cocos2d::CCNode::convertToNodeSpace(v145, &v422, v146); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v144 + 184))(v142, v147); LevelCell::updateCellMode(a1, *(unsigned int *)(a1 + 612)); } v148 = *(_DWORD **)(a1 + 568); v149 = v148[165] - v148[166]; if ( v149 <= 0 ) { v150 = v148[162] - v148[163]; v151 = *(_QWORD *)&qword_14090BFB0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v420 = (void (__fastcall ***)(__int64, __int16 *))operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v420); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); v151 = *(_QWORD *)&qword_14090BFB0; } v152 = cocos2d::CCDictionary::valueForKey(*(cocos2d::CCDictionary **)(v151 + 1080), v150); v149 = cocos2d::CCString::intValue(v152); } Src = 0; v451 = 0; v452 = 15; LOBYTE(Src) = 0; if ( !*(_BYTE *)(a1 + 608) ) sub_140044D80(&Src, "By ", 3u); sub_14003F4F0((__int64)Buf2, *(_QWORD *)(a1 + 568) + 440LL); v153 = Buf2; if ( v448 > 0xF ) v153 = (void **)Buf2[0]; sub_140044D80(&Src, v153, Size); sub_14003D310((__int64)Buf2); p_Src = (const char *)&Src; if ( v452 > 0xF ) p_Src = (const char *)Src; v155 = cocos2d::CCLabelBMFont::create(p_Src, "goldFont.fnt"); v420 = (void (__fastcall ***)(__int64, __int16 *))v155; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v438); if ( *(_BYTE *)(a1 + 608) ) { cocos2d::CCLabelBMFont::limitLabelWidth(v155, 80.0, 0.44999999, 0.0); v160 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v155 + 320LL))(v155) * 0.5; v161 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v155 + 168LL))(v155); v162 = *(float *)&v161 * v160; v159 = v439; v163 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v439 + 320LL))(v439); v164 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 168LL))(v159); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, (float)((float)(*(float *)&v164 * v163) + v162) + 5.0, 0.0); } else { cocos2d::CCLabelBMFont::limitLabelWidth(v155, 140.0, 0.69999999, 0.0); v156 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v155 + 320LL))(v155) * 0.5; v157 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v155 + 168LL))(v155); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, (float)(*(float *)&v157 * v156) + 2.0, -22.0); v159 = v439; } v165 = v158; v166 = (*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 200LL))(v159); cocos2d::CCPoint::operator+(v166, &v427, v165); cocos2d::CCPoint::operator=(v438, &v427); v167 = CCMenuItemSpriteExtra::create((int)v155, 0, a1, (__int64)LevelCell::onViewProfile); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 600) + 464LL))(*(_QWORD *)(a1 + 600), v167); v168 = *(_QWORD *)v167; v169 = *(_QWORD *)(a1 + 600); cocos2d::CCNode::convertToWorldSpace(*(_QWORD *)(a1 + 544), &v415, v438); cocos2d::CCNode::convertToNodeSpace(v169, &v427, v170); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v168 + 184))(v167, v171); if ( !v149 ) { v413 = -166; v414 = -1; (*v420[46])((__int64)(v420 + 46), &v413); (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)v167 + 936LL))(v167, 0); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v429); v172 = *(float *)(a1 + 532) * 0.5; v173 = *(_QWORD *)v159; if ( *(_BYTE *)(a1 + 608) ) { v177 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(v173 + 200))(v159); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v427, *v177 + 1.0, v172 - 1.0); cocos2d::CCPoint::operator=(&v429, v178); v176 = 150.0; v3 = 0.36000001; } else { v174 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(v173 + 200))(v159); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, *v174 + 2.0, v172 - 12.0); cocos2d::CCPoint::operator=(&v429, v175); v176 = 195.0; } v179 = qword_14090C070; if ( !qword_14090C070 ) { v421 = (struct cocos2d::CCSprite *)operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager(v421); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v179 = qword_14090C070; } SongInfoObject = MusicDownloadManager::getSongInfoObject(v179, *(unsigned int *)(*(_QWORD *)(a1 + 568) + 680LL)); v181 = SongInfoObject; v436 = 14.0; if ( SongInfoObject ) { v182 = *(_DWORD *)(SongInfoObject + 432); if ( v182 > 0 ) { v183 = "ncs_small_001.png"; if ( v182 == 2 ) v183 = "chompo_small_001.png"; v184 = cocos2d::CCSprite::createWithSpriteFrameName(v183); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v184); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, 14.0, -1.0); cocos2d::CCPoint::operator+(&v429, &v422, v185); if ( *(_DWORD *)(v181 + 432) == 2 ) { v422 = v422 + 3.0; v423 = v423 - 0.5; v429 = v429 + 40.0; v176 = v176 + -20.0; } else { v429 = v429 + 34.0; v176 = v176 + -15.0; } (*(void (__fastcall **)(struct cocos2d::CCSprite *, float *))(*(_QWORD *)v184 + 184LL))(v184, &v422); } } SongName = GJGameLevel::getSongName(*(_QWORD *)(a1 + 568), Buf1); if ( *(_QWORD *)(SongName + 24) > 0xFu ) SongName = *(_QWORD *)SongName; v187 = cocos2d::CCLabelBMFont::create((const char *)SongName, (const char *)&qword_140704F78); v427 = v187; sub_14003D310((__int64)Buf1); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v187); v188 = *(_QWORD *)v187; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v188 + 288))(v187, v189); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, float *))(*(_QWORD *)v187 + 184LL))(v187, &v429); cocos2d::CCLabelBMFont::limitLabelWidth(v187, v176, v3, 0.0); v190 = **((void (__fastcall ***)(char *, __int16 *))v187 + 46); v191 = *(_QWORD *)(a1 + 568); v414 = -1; v192 = *(_DWORD *)(v191 + 680) <= 0; v413 = -11736; if ( !v192 ) v413 = -32001; v190((char *)v187 + 368, &v413); v193 = *(_QWORD *)(a1 + 568); v194 = *(_DWORD *)(v193 + 708); if ( v194 >= 5 ) v195 = (int)roundf((float)*(int *)(v193 + 712) / (float)v194); else v195 = 0; v196 = *(_DWORD **)(a1 + 568); if ( v196[251] - v196[252] == 1 ) { v197 = v196[254] - 3; if ( v197 ) { v198 = v197 - 1; if ( v198 ) { v199 = v198 - 1; if ( v199 ) { if ( v199 == 1 ) v195 = 10; else v195 = 6; } else { v195 = 9; } } else { v195 = 8; } } else { v195 = 7; } } v200 = cocos2d::CCString::createWithFormat("difficulty_%02d_btn_001.png", v195); cocos2d::CCString::getCString(v200); v201 = cocos2d::CCNode::create(); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 544) + 456LL))(*(_QWORD *)(a1 + 544), v201, 2); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v201 + 312LL))(v201, &unk_14090A400); v202 = *(_QWORD *)v201; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, 26.0, *(float *)(a1 + 532) * 0.5); (*(void (__fastcall **)(__int64, __int64))(v202 + 184))(v201, v203); if ( *(_BYTE *)(a1 + 608) ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v201 + 160LL))(v201); v204 = 18; if ( *(_BYTE *)(a1 + 577) ) v204 = -2; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, (float)v204, 1.0); v206 = v205; v207 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v201 + 200LL))(v201); cocos2d::CCPoint::operator+(v207, &v421, v206); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite **))(*(_QWORD *)v201 + 184LL))(v201, &v421); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v425, 0.0, 0.0); v210 = *(_QWORD *)(a1 + 568); v211 = *(int *)(v210 + 1036) > 0 && !*(_BYTE *)(a1 + 608); if ( *(_DWORD *)(v210 + 1020) - *(_DWORD *)(v210 + 1024) > 0 ) { if ( v211 ) { v212 = v426 + 14.0; v426 = v426 + 14.0; goto LABEL_240; } goto LABEL_238; } if ( v211 ) { LABEL_238: v212 = v426 + 5.0; v426 = v426 + 5.0; goto LABEL_240; } v212 = v426; LABEL_240: if ( v416 > 0 ) v426 = v212 + 10.0; v213 = -1; if ( *(_BYTE *)(v210 + 1032) ) v195 = -1; v214 = GJDifficultySprite::create(v195, 0, v208, v209); v215 = v214; v216 = *(_QWORD *)(a1 + 568); if ( v216 ) { if ( *(int *)(v216 + 976) > 0 || *(int *)(v216 + 980) > 0 ) { v218 = *(_DWORD *)(v216 + 980); if ( v218 <= 0 ) { v217 = 1; } else { if ( v218 < 3 ) { v192 = v218 < 2; v219 = v214; if ( v192 ) v217 = 2; else v217 = 3; goto LABEL_256; } v217 = 4; } } else { v217 = 0; } v219 = v214; LABEL_256: GJDifficultySprite::updateFeatureState(v219, v217); } (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v201 + 456LL))(v201, v215, 3); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v215 + 184LL))(v215, v425); v220 = qword_14090BFE0; if ( (int)v419 <= 0 ) { if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v220 = qword_14090BFE0; } hasCompletedStarLevel = GameStatsManager::hasCompletedStarLevel(v220, *(_QWORD *)(a1 + 568)); } else { if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v220 = qword_14090BFE0; } hasCompletedStarLevel = GameStatsManager::hasCompletedDailyStars(v220, (unsigned int)v417); } v412 = hasCompletedStarLevel; v222 = 0.40000001; if ( *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1020LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1024LL) > 0 ) { v223 = "star_small01_001.png"; if ( v428 == 5 ) v223 = "moon_small01_001.png"; v224 = cocos2d::CCSprite::createWithSpriteFrameName(v223); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)v201 + 464LL))(v201, v224); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, 8.0, -30.0); cocos2d::CCPoint::operator+(v425, &v421, v225); (*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCSprite **))(*(_QWORD *)v224 + 184LL))( v224, &v421); v226 = cocos2d::CCString::createWithFormat( (const char *)&word_1406ED6F8, (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 568) + 1020LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1024LL))); v227 = cocos2d::CCString::getCString(v226); v228 = cocos2d::CCLabelBMFont::create(v227, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v201 + 464LL))(v201, v228); v229 = *(_QWORD *)v228; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v428, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v229 + 288))(v228, v230); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v422, -8.0, 0.0); v232 = v231; v233 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v224 + 200LL))(v224); cocos2d::CCPoint::operator+(v233, &v421, v232); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, struct cocos2d::CCSprite **))(*(_QWORD *)v228 + 184LL))( v228, &v421); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v228 + 160LL))(v228); if ( v412 ) { v413 = -1; v414 = 50; (**((void (__fastcall ***)(__int64, __int16 *))v228 + 46))((__int64)v228 + 368, &v413); } } v234 = v416; if ( v416 > 0 ) { v421 = cocos2d::CCSprite::createWithSpriteFrameName("diamond_small01_001.png"); (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)v201 + 464LL))(v201, v421); *(_OWORD *)Buf2 = 0; Size = 0; v448 = 15; LOBYTE(Buf2[0]) = 0; v235 = *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1020LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1024LL); v236 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v236 = qword_14090BFE0; } if ( (unsigned int)(v235 - 2) > 8 ) v237 = 0; else v237 = v235 + 2; v428 = v237; if ( !v236 ) { v415 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v415); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v236 = qword_14090BFE0; } LODWORD(v422) = GameStatsManager::getAwardedDiamondsForLevel(v236, *(_QWORD *)(a1 + 568)); v238 = cocos2d::CCString::createWithFormat("%i/%i", v422, v237); v239 = (char *)cocos2d::CCString::getCString(v238); v240 = -1; do ++v240; while ( v239[v240] ); sub_1400405A0(Buf2, v239, v240); v241 = Buf2; if ( v448 > 0xF ) v241 = (void **)Buf2[0]; v242 = cocos2d::CCLabelBMFont::create((const char *)v241, (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v201 + 464LL))(v201, v242); v243 = *(_QWORD *)v242; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v415, 1.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v243 + 288))(v242, v244); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v242 + 160LL))(v242); v245 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v242 + 320LL))(v242); v246 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v242 + 168LL))(v242); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v442, (float)((float)(*(float *)&v246 * v245) * 0.5) + 2.0, -44.5); cocos2d::CCPoint::operator+(v425, &v415, v247); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v421 + 184LL))(v421, &v415); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v441, -8.0, 0.0); v249 = v248; v250 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v421 + 200LL))(v421); cocos2d::CCPoint::operator+(v250, &v415, v249); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v242 + 184LL))(v242, &v415); if ( LODWORD(v422) == v428 ) { v413 = -156; v414 = -1; (**((void (__fastcall ***)(__int64, __int16 *))v242 + 46))((__int64)v242 + 368, &v413); } sub_14003D310((__int64)Buf2); v234 = v416; } v251 = *(_DWORD **)(a1 + 568); if ( (int)v251[259] > 0 ) { if ( v234 <= 0 ) { if ( v251[255] - v251[256] <= 0 ) v252 = -31.5; else v252 = -45.5; } else { v252 = -60.0; } v412 = v251[260] != v251[261]; v253 = 0; while ( 1 ) { if ( v253 >= 3 ) { LABEL_332: v222 = 0.40000001; v159 = v439; goto LABEL_333; } v254 = 0.0; if ( v253 ) { if ( v253 == 1 ) { v255 = v251[259]; if ( v255 == 2 ) { v254 = 5.0; } else if ( v255 >= 3 ) { v254 = 0.0; } } else if ( v253 == 2 ) { v254 = 10.0; } } else { v256 = v251[259]; if ( v256 == 2 ) { v254 = -5.0; } else if ( v256 >= 3 ) { v254 = -10.0; } } if ( (int)v419 <= 0 ) v257 = (unsigned int)(v251[248] - v251[249]); else v257 = (unsigned int)v424; CoinKey = (_BYTE *)GJGameLevel::getCoinKey(v251, (unsigned int)(v253 + 1), v257); *(_OWORD *)Buf2 = 0; Size = 0; v448 = 0; v259 = -1; do ++v259; while ( CoinKey[v259] ); sub_14003D230(Buf2, CoinKey, v259); v260 = Buf2; if ( v448 > 0xF ) v260 = (void **)Buf2[0]; v261 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v441 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v441); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v261 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::hasUserCoin(v261, v260) ) goto LABEL_320; v262 = Buf2; if ( v448 > 0xF ) v262 = (void **)Buf2[0]; v263 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v442 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v442); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v263 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::hasPendingUserCoin(v263, v262) ) LABEL_320: v264 = 1; else v264 = 0; v265 = cocos2d::CCSprite::createWithSpriteFrameName("usercoin_small01_001.png"); if ( *(_BYTE *)(a1 + 608) ) { (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v265); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v265 + 160LL))(v265); v267 = v427; v268 = *(float *)(*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v427 + 320LL))(v427); v269 = (*(double (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v267 + 168LL))(v267); v270 = (float)(*(float *)&v269 * v268) + 18.0; v271 = (*(double (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v265 + 168LL))(v265); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, (float)(*(float *)&v271 * v254) + v270, 0.0); v273 = v272; v274 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v427 + 200LL))(v427); cocos2d::CCPoint::operator+(v274, &v421, v273); (*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCSprite **))(*(_QWORD *)v265 + 184LL))( v265, &v421); } else { (*(void (__fastcall **)(__int64, struct cocos2d::CCSprite *))(*(_QWORD *)v201 + 464LL))(v201, v265); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v434, v254, v252); cocos2d::CCPoint::operator+(v425, &v415, v266); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v265 + 184LL))(v265, &v415); } if ( !v412 ) break; if ( !v264 ) { LOWORD(v428) = -23131; LOWORD(v416) = -23131; BYTE2(v416) = -91; v275 = (__int16 *)&v416; LABEL_330: (**((void (__fastcall ***)(__int64, __int16 *))v265 + 40))((__int64)v265 + 320, v275); } sub_14003D310((__int64)Buf2); ++v253; v251 = *(_DWORD **)(a1 + 568); if ( v253 >= v251[259] ) goto LABEL_332; } if ( v264 ) { v413 = -20481; v430 = -20481; v431 = 75; v275 = &v430; } else { v432 = 29093; LOWORD(v422) = 29093; BYTE2(v422) = 48; v275 = (__int16 *)&v422; } goto LABEL_330; } LABEL_333: v276 = *(_BYTE *)(a1 + 608); v277 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v159 + 200LL))(v159); v278 = 9; if ( v276 ) v278 = 6; v279 = (float)v278 + *v277; v280 = *(_BYTE *)(a1 + 608); v281 = 80; if ( v280 ) v281 = 60; v282 = (float)v281; if ( v280 ) { v283 = 8.5; v436 = 8.5; } else { v283 = 14.0; } v284 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v284); v285 = *(_QWORD *)v284; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, v279, v283); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v285 + 184))(v284, v286); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v284 + 160LL))(v284); v287 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_downloadsIcon_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v287); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v434, v282, 0.0); v289 = v288; v290 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v284 + 200LL))(v284); cocos2d::CCPoint::operator+(v290, &v415, v289); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v287 + 184LL))(v287, &v415); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v287 + 160LL))(v287); v291 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_likesIcon_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v291); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v441, v282, 0.0); v293 = v292; v294 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v287 + 200LL))(v287); cocos2d::CCPoint::operator+(v294, &v415, v293); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v291 + 184LL))(v291, &v415); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v291 + 160LL))(v291); v295 = *(_BYTE *)(a1 + 608); if ( v295 ) v222 = *(float *)&v433; else v433 = 1053609165; v296 = *(unsigned int **)(a1 + 568); v297 = 25; if ( (int)(v296[255] - v296[256]) > 0 ) v297 = 18; v298 = (float)v297; if ( v295 ) v298 = v298 * 0.80000001; v299 = GJGameLevel::lengthKeyToString(Buf1, v296[243]); if ( *(_QWORD *)(v299 + 24) > 0xFu ) v299 = *(_QWORD *)v299; v300 = cocos2d::CCLabelBMFont::create((const char *)v299, (const char *)&qword_140704F78); sub_14003D310((__int64)Buf1); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v300); v301 = *(_QWORD *)v300; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v301 + 288))(v300, v302); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v434, 10.0, 0.0); v304 = v303; v305 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v284 + 200LL))(v284); cocos2d::CCPoint::operator+(v305, &v415, v304); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v300 + 184LL))(v300, &v415); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v300 + 160LL))(v300); cocos2d::CCLabelBMFont::limitLabelWidth(v300, 50.0, v222, 0.0); v306 = *(_QWORD *)v287; v307 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v287 + 200LL))(v287) + 4); v308 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v300 + 320LL))(v300); v309 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v300 + 168LL))(v300); v310 = (float)((float)(*(float *)&v309 * v308) + *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v300 + 200LL))(v300)) + v298; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, v310, v307); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v306 + 184))(v287, v311); v312 = GameToolbox::intToShortString(Buf1, *(_DWORD *)(*(_QWORD *)(a1 + 568) + 716LL), 0); if ( *((_QWORD *)v312 + 3) > 0xFu ) v312 = *(__int16 **)v312; v313 = cocos2d::CCLabelBMFont::create((const char *)v312, (const char *)&qword_140704F78); sub_14003D310((__int64)Buf1); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v313); v314 = *(_QWORD *)v313; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v314 + 288))(v313, v315); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v434, 9.0, 0.0); v317 = v316; v318 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v287 + 200LL))(v287); cocos2d::CCPoint::operator+(v318, &v415, v317); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v313 + 184LL))(v313, &v415); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v313 + 160LL))(v313); cocos2d::CCLabelBMFont::limitLabelWidth(v313, 45.0, v222, 0.0); v319 = *(_DWORD *)(*(_QWORD *)(a1 + 568) + 964LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 968LL); v320 = *(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCSpriteFrame *))(*(_QWORD *)v291 + 1008LL); v321 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); if ( v319 < 0 ) v322 = "GJ_dislikesIcon_001.png"; else v322 = "GJ_likesIcon_001.png"; v323 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v321, v322); v320(v291, v323); v324 = *(_QWORD *)v291; v325 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v291 + 200LL))(v291) + 4); v326 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v313 + 320LL))(v313); v327 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v313 + 168LL))(v313); v328 = (float)((float)(*(float *)&v327 * v326) + *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v313 + 200LL))(v313)) + v298; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, v328, v325); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v324 + 184))(v291, v329); v330 = GameToolbox::intToShortString(Buf1, v319, 0); if ( *((_QWORD *)v330 + 3) > 0xFu ) v330 = *(__int16 **)v330; v331 = cocos2d::CCLabelBMFont::create((const char *)v330, (const char *)&qword_140704F78); sub_14003D310((__int64)Buf1); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v331); v332 = *(_QWORD *)v331; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v332 + 288))(v331, v333); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v434, 10.0, 0.0); v335 = v334; v336 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v291 + 200LL))(v291); cocos2d::CCPoint::operator+(v336, &v415, v335); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v331 + 184LL))(v331, &v415); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 160LL))(v331); cocos2d::CCLabelBMFont::limitLabelWidth(v331, 45.0, v222, 0.0); v337 = *(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 168LL); v338 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 320LL))(v331); v339 = v337(v331); v340 = (float)(*(float *)&v339 * v338) + *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 200LL))(v331); v341 = v419; if ( (int)v419 <= 0 ) goto LABEL_364; v342 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v418 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v418); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v342 = qword_14090BFE0; } v343 = v417; if ( (unsigned __int8)GameStatsManager::isDailyRecall(v342, (unsigned int)v417) ) goto LABEL_363; v344 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v418 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v418); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v344 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::hasCompletedDailyStars(v344, v343) ) { LABEL_364: v412 = 0; if ( v341 <= 0 ) { v417 = *(_DWORD *)(*(_QWORD *)(a1 + 568) + 992LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 996LL); v412 = 0; } } else { LABEL_363: v412 = 1; } v345 = *(_QWORD *)(a1 + 568); v346 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v418 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v418); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v346 = qword_14090BFE0; } BaseCurrencyForLevel = GameStatsManager::getBaseCurrencyForLevel(v346, v345); v348 = BaseCurrencyForLevel - (int)(float)((float)BaseCurrencyForLevel * -0.25); LODWORD(v419) = GameStatsManager::getAwardedCurrencyForLevel(v346, v345, (unsigned int)v417); if ( *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1020LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1024LL) > 1 ) { v349 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14071BE38); v424 = v349; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v349); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, v282, 0.0); v351 = v350; v352 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v291 + 200LL))(v291); cocos2d::CCPoint::operator+(v352, &v415, v351); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v349 + 184LL))(v349, &v415); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v349 + 160LL))(v349); v353 = *(_QWORD *)v349; v354 = *(float *)((*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(v353 + 200))(v424) + 4); v355 = *(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 168LL); v356 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 320LL))(v331); v357 = v355(v331); v358 = (float)((float)(*(float *)&v357 * v356) + *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v331 + 200LL))(v331)) + v298; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, v358, v354); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v353 + 184))(v424, v359); *(_OWORD *)Buf2 = 0; Size = 0; v448 = 15; LOBYTE(Buf2[0]) = 0; if ( v348 <= (int)v419 ) { v362 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)v348); v361 = (char *)cocos2d::CCString::getCString(v362); do ++v213; while ( v361[v213] ); } else { v360 = cocos2d::CCString::createWithFormat("%i/%i", v419, v348); v361 = (char *)cocos2d::CCString::getCString(v360); do ++v213; while ( v361[v213] ); } sub_1400405A0(Buf2, v361, v213); v363 = Buf2; if ( v448 > 0xF ) v363 = (void **)Buf2[0]; v364 = cocos2d::CCLabelBMFont::create((const char *)v363, (const char *)&qword_140704F78); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v364); v365 = *(_QWORD *)v364; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v365 + 288))(v364, v366); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v434, 10.0, 0.0); v368 = v367; v369 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v424 + 200LL))(v424); cocos2d::CCPoint::operator+(v369, &v415, v368); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v364 + 184LL))(v364, &v415); v370 = *(float *)&v433; (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v364 + 160LL))(v364); if ( v412 ) { v371 = v348 == (_DWORD)v419; if ( v348 > (int)v419 ) { LOWORD(v416) = -26986; BYTE2(v416) = -106; goto LABEL_383; } } else { v371 = v348 == (_DWORD)v419; } if ( !v371 ) goto LABEL_384; LOWORD(v416) = -156; BYTE2(v416) = -1; LABEL_383: (**((void (__fastcall ***)(__int64, int *))v364 + 46))((__int64)v364 + 368, &v416); LABEL_384: cocos2d::CCLabelBMFont::limitLabelWidth(v364, 45.0, v370, 0.0); v372 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v364 + 320LL))(v364); v373 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v364 + 168LL))(v364); v340 = (float)(*(float *)&v373 * v372) + *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v364 + 200LL))(v364); if ( v448 > 0xF ) { v374 = Buf2[0]; if ( v448 + 1 >= 0x1000 ) { v374 = *((void **)Buf2[0] - 1); if ( (unsigned __int64)((char *)Buf2[0] - (char *)v374 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v374); } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, 0.0, 1.0); v376 = v375; v377 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v291 + 200LL))(v291); cocos2d::CCPoint::operator+(v377, &v415, v376); (*(void (__fastcall **)(struct cocos2d::CCSprite *, void **))(*(_QWORD *)v291 + 184LL))(v291, &v415); v378 = v439; v379 = *(float *)((*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v439 + 200LL))(v439) + 4) - 1.0; v380 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v378 + 320LL))(v378); v381 = (*(double (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v378 + 168LL))(v378); v382 = (float)((float)(*(float *)&v381 * v380) + *(float *)(*(__int64 (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v378 + 200LL))(v378)) + 10.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v440, v382, v379); if ( *(_BYTE *)(a1 + 608) ) { if ( *(_BYTE *)(a1 + 577) ) { v384 = v436 + 1.0; v385 = (float)(v340 + v298) - 6.0; } else { v384 = 10.0; v385 = 16.0; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, v385, v384); cocos2d::CCPoint::operator=(v440, v386); } if ( v411 ) { v387 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png"); v388 = v387; if ( !*(_BYTE *)(a1 + 608) || *(_BYTE *)(a1 + 577) ) { v389 = *(_QWORD *)v387; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v389 + 288))(v388, v390); } (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v388); (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v388 + 184LL))(v388, v440); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v388 + 160LL))(v388); } else if ( v437 ) { v383 = (unsigned int)(*(_DWORD *)(v437 + 932) - *(_DWORD *)(v437 + 928)); if ( (_DWORD)v383 ) { v391 = cocos2d::CCString::createWithFormat("%i%%", v383); v392 = cocos2d::CCString::getCString(v391); v393 = cocos2d::CCLabelBMFont::create(v392, "goldFont.fnt"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 544) + 456LL))( *(_QWORD *)(a1 + 544), v393, 10); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v393 + 160LL))(v393); if ( !*(_BYTE *)(a1 + 608) || *(_BYTE *)(a1 + 577) ) { v394 = *(_QWORD *)v393; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v394 + 288))(v393, v395); } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, (float)(*(_BYTE *)(a1 + 608) != 0), 0.0); cocos2d::CCPoint::operator+(v440, &v415, v396); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, void **))(*(_QWORD *)v393 + 184LL))(v393, &v415); } } if ( *(_BYTE *)(a1 + 608) ) v397 = 0.80000001; else v397 = 1.0; v398 = v438[1] - 1.0; v399 = v420; v400 = *(float *)((__int64 (__fastcall *)(void *, __int64))(*v420)[40])(v420, v383) * 0.5; v401 = ((double (__fastcall *)(void (__fastcall ***)(__int64, __int16 *)))(*v399)[21])(v399); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v435, (float)((float)(*(float *)&v401 * v400) + v438[0]) + (float)(v397 * 6.0), v398); if ( *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1060LL) != *(_DWORD *)(*(_QWORD *)(a1 + 568) + 1064LL) ) { v402 = cocos2d::CCSprite::createWithSpriteFrameName("collaborationIcon_001.png"); v403 = *(_QWORD *)v402; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v403 + 288))(v402, v404); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v402); (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v402 + 184LL))(v402, v435); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v402 + 160LL))(v402); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v434, 15.0, 0.0); cocos2d::CCPoint::operator+(v435, &v415, v405); cocos2d::CCPoint::operator=(v435, &v415); } if ( *(_DWORD *)(*(_QWORD *)(a1 + 568) + 692LL) - *(_DWORD *)(*(_QWORD *)(a1 + 568) + 696LL) > 40000 ) { v406 = cocos2d::CCSprite::createWithSpriteFrameName("highObjectIcon_001.png"); v407 = *(_QWORD *)v406; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v418, 0.0, 0.5); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v407 + 288))(v406, v408); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSprite *, __int64))(**(_QWORD **)(a1 + 544) + 456LL))( *(_QWORD *)(a1 + 544), v406, 10); (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v406 + 184LL))(v406, v435); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v406 + 160LL))(v406); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v434, v397 * 18.0, 0.0); cocos2d::CCPoint::operator+(v435, &v415, v409); cocos2d::CCPoint::operator=(v435, &v415); } sub_14003D310((__int64)&Src); sub_14003D310((__int64)Block); }
GD Web Decomp Icon

GD Web Decomp

Raw Source