// // SecretRewardsLayer::init from 0x10070ccd0 to 0x10070ebff (7983 bytes) // // 1 xrefs: // > SecretRewardsLayer::create @ 0x10070cc8b // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:36:05 +0000 // bool __fastcall SecretRewardsLayer::init(__int64 a1, int a2, __m128 a3) { bool result; // al _QWORD *v4; // rax __int64 v5; // rax __int64 v6; // rax __int64 v7; // rax __int64 v8; // rax __int64 v9; // rax __int64 v10; // rax _QWORD *v11; // rax _QWORD *v12; // r12 char *v13; // rbx __int64 v14; // rbx __int64 v15; // rdi double v16; // xmm0_8 char *v17; // r14 double v18; // xmm0_8 unsigned __int8 *v19; // rbx double v20; // xmm0_8 char *v21; // rax void *v22; // rbx int v23; // edx int v24; // ecx int v25; // r8d int v26; // r9d __int64 v27; // r14 __int64 v28; // rax __int64 v29; // rax float v30; // xmm1_4 __m128 v31; // xmm0 __int64 v32; // rax __int64 v33; // rax __int64 CString; // rax void *v35; // r14 __int64 v36; // r14 double v37; // xmm0_8 char *v38; // rax __int64 v39; // r14 unsigned __int64 *v40; // r15 __int64 v41; // rax __int64 v42; // rax __int64 v43; // rax void *v44; // rbx __int64 v45; // rax __int64 v46; // rbx double v47; // xmm0_8 char *v48; // rax __int64 v49; // rbx unsigned __int64 *v50; // r14 double v51; // xmm0_8 char *v52; // rbx double v53; // xmm0_8 float *v54; // rbx unsigned __int64 *v55; // rsi _QWORD *v56; // rax unsigned __int64 i; // r14 __m128 v58; // xmm0 unsigned int v59; // ebx __int64 v60; // r12 __int64 v61; // rdi unsigned int v62; // eax _QWORD *v63; // r14 __int64 v64; // rdx __int64 v65; // rcx __int64 v66; // r15 _QWORD *v67; // rsi unsigned __int64 v68; // rcx unsigned __int8 v69; // r14 double v70; // xmm0_8 __int64 v71; // rax __int64 v72; // rax char *v73; // rbx unsigned int v74; // ebx __int64 v75; // rax const char *v76; // r12 size_t v77; // rax std::string::size_type v78; // r15 char *data; // r13 size_t v80; // r14 _BYTE *v81; // rsi __int64 v82; // rax const char *v83; // r15 size_t v84; // rax std::string::size_type v85; // r12 char *v86; // r13 unsigned __int64 v87; // rax bool isSpecialChestUnlocked; // r13 __int64 v89; // r12 size_t v90; // r14 int v91; // r15d __int64 v92; // rax const std::string::value_type *v93; // rax __int64 v94; // rax void *v95; // rdi int v96; // xmm0_4 __int64 v97; // rax __int64 v98; // rax _QWORD *v99; // r15 _WORD *v100; // rbx __int64 v101; // rax double v102; // xmm0_8 double v103; // xmm1_8 _DWORD *v104; // r15 __int64 v105; // rax unsigned int *v106; // rax _QWORD *v107; // r14 unsigned __int64 v108; // r12 __int64 v109; // r15 char *v110; // r15 std::string::pointer v111; // rdi char *v112; // rbx unsigned __int64 *v113; // r15 __int64 v114; // rax int v115; // r15d __int64 v116; // rax int v117; // r13d __int64 v118; // rax __int64 v119; // rax unsigned __int64 *v120; // r12 unsigned __int64 *v121; // rbx int v122; // eax void *v123; // rax __int64 v124; // rbx double v125; // xmm0_8 char *v126; // rbx unsigned __int64 v127; // r14 _QWORD *v128; // rbx __int64 v129; // rdi __int64 v130; // rdx __int64 v131; // rcx __int64 v132; // r15 _QWORD *v133; // r12 _WORD *v134; // r14 double v135; // xmm0_8 double v136; // xmm1_8 double v137; // xmm0_8 __int64 v138; // rax _DWORD *v139; // r15 __int64 v140; // rax unsigned int *v141; // rax _QWORD *v142; // r13 _QWORD *v143; // r15 __int64 v144; // r12 char *v145; // r14 double v146; // xmm0_8 char *v147; // r15 unsigned __int64 *v148; // r14 void *v149; // rax __int64 v150; // r12 __int64 v151; // r14 __int64 *v152; // rbx __int64 v153; // rdi __int64 v154; // rdx __int64 v155; // rcx __int64 v156; // rsi __int64 v157; // rax int v158; // r12d float v159; // xmm0_4 const std::string::value_type *v160; // rsi std::string::pointer v161; // rdi char *v162; // r15 char *v163; // r14 double v164; // xmm0_8 std::string::pointer v165; // rdi char *v166; // r14 std::string::pointer v167; // rdi char *v168; // r14 std::string::pointer v169; // rdi char *v170; // r14 std::string::pointer v171; // rdi char *v172; // r14 std::string::pointer v173; // rdi char *v174; // r14 std::string::pointer v175; // rdi char *v176; // r14 void *v177; // rax __int64 v178; // r15 __int64 v179; // rbx __int64 v180; // rax float v181; // xmm1_4 __m128 v182; // xmm0 __int64 v183; // rbx __int64 v184; // rax __int64 v185; // rax __int64 v186; // rdx __int64 v187; // rbx char *v188; // rax void *v189; // rax __int64 v190; // r12 __int64 v191; // rax unsigned __int8 *v192; // r14 void *v193; // rax __int64 v194; // r14 __int64 v195; // rax int TotalPages; // eax int v197; // ebx char v198; // [rsp+0h] [rbp-170h] char v199; // [rsp+0h] [rbp-170h] char v200; // [rsp+0h] [rbp-170h] char v201; // [rsp+0h] [rbp-170h] char v202; // [rsp+8h] [rbp-168h] BYREF char v203[15]; // [rsp+9h] [rbp-167h] BYREF void *v204; // [rsp+18h] [rbp-158h] char v205; // [rsp+20h] [rbp-150h] BYREF char v206[15]; // [rsp+21h] [rbp-14Fh] BYREF void *v207; // [rsp+30h] [rbp-140h] char v208; // [rsp+38h] [rbp-138h] BYREF char v209[15]; // [rsp+39h] [rbp-137h] BYREF void *v210; // [rsp+48h] [rbp-128h] std::string __str; // [rsp+50h] [rbp-120h] BYREF unsigned __int64 v212; // [rsp+68h] [rbp-108h] BYREF unsigned __int8 v213; // [rsp+70h] [rbp-100h] BYREF _BYTE v214[23]; // [rsp+71h] [rbp-FFh] BYREF std::string v215; // [rsp+88h] [rbp-E8h] BYREF __int64 v216; // [rsp+A0h] [rbp-D0h] int v217; // [rsp+ACh] [rbp-C4h] __int64 v218; // [rsp+B0h] [rbp-C0h] __int64 v219; // [rsp+B8h] [rbp-B8h] unsigned __int64 v220; // [rsp+C0h] [rbp-B0h] BYREF unsigned __int64 v221; // [rsp+C8h] [rbp-A8h] unsigned __int64 v222; // [rsp+D0h] [rbp-A0h] BYREF unsigned __int64 v223; // [rsp+D8h] [rbp-98h] BYREF __int64 v224; // [rsp+E0h] [rbp-90h] __int64 v225; // [rsp+E8h] [rbp-88h] std::string v226; // [rsp+F0h] [rbp-80h] BYREF __int64 v227; // [rsp+108h] [rbp-68h] bool v228; // [rsp+117h] [rbp-59h] std::string __dst; // [rsp+118h] [rbp-58h] BYREF unsigned __int64 v230; // [rsp+130h] [rbp-40h] unsigned __int64 v231; // [rsp+138h] [rbp-38h] BYREF __int64 v232; // [rsp+140h] [rbp-30h] BYREF result = cocos2d::CCLayer::init((_WORD *)a1); if ( !result ) return result; v228 = result; *(_BYTE *)(a1 + 584) = 1; v4 = cocos2d::CCTextureCache::sharedTextureCache(); cocos2d::CCTextureCache::addImage((__int64)v4, "TreasureRoomSheet.png", 0); v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile_2(v5, "TreasureRoomSheet.plist", *(double *)a3.i64); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); v6 = *(_QWORD *)a1; v227 = a1; (*(void (__fastcall **)(__int64, __int64))(v6 + 1088))(a1, 1); v7 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v232, v7); v8 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getUGV(v8, "10") ) *(_DWORD *)(v227 + 568) = 4; v9 = GameManager::sharedState(); if ( (unsigned __int8)GameManager::getUGV(v9, "21") ) *(_DWORD *)(v227 + 572) = 3; v10 = GameManager::sharedState(); v213 = 28; strcpy(v214, "secretLoop.mp3"); GameManager::fadeInMusic(a3, v10, &v213); v217 = a2; if ( (v213 & 1) != 0 ) operator delete(*(void **)&v214[15]); v11 = cocos2d::CCLayer::create(); v12 = (_QWORD *)v227; *(_QWORD *)(v227 + 424) = v11; (*(void (__fastcall **)(_QWORD *, _QWORD *, _QWORD))(*v12 + 464LL))(v12, v11, 0); v13 = cocos2d::CCSprite::create_1((__int64)"GJ_gradientBG.png"); v12[70] = v13; sub_100278250((float *)&__dst, 0.0, 0.0); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v13 + 296LL))(v13, &__dst); (*(void (__fastcall **)(_QWORD *, _QWORD, __int64))(*v12 + 464LL))(v12, v12[70], 4294967293LL); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)v12[70] + 128LL))( v12[70], (float)(*(float *)&v232 + 10.0) / *(float *)(v12[70] + 432LL)); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)v12[70] + 144LL))( v12[70], (float)(*((float *)&v232 + 1) + 10.0) / *(float *)(v12[70] + 436LL)); v14 = v12[70]; sub_100278250((float *)&__dst, -5.0, -5.0); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v14 + 184LL))(v14, &__dst); v15 = v12[70]; __dst.__r_.__value_.__s.__data_[1] = 75; *(_WORD *)&__dst.__r_.__value_.__l.0 = 70; v16 = (*(double (__fastcall **)(__int64, std::string *))(*(_QWORD *)v15 + 960LL))(v15, &__dst); v17 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"treasureRoomSpiderweb_001.png", v16); sub_100278250((float *)&__dst, 1.0, 1.0); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v17 + 296LL))(v17, &__dst); sub_100278250((float *)&__dst, *(float *)&v232 + 5.0, *((float *)&v232 + 1) + 5.0); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v17 + 184LL))(v17, &__dst); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v17 + 912LL))(v17, 63); __dst.__r_.__value_.__s.__data_[1] = 0; *(_WORD *)&__dst.__r_.__value_.__l.0 = 0; (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v17 + 960LL))(v17, &__dst); (*(void (__fastcall **)(_QWORD *, char *, __int64))(*v12 + 464LL))(v12, v17, 0xFFFFFFFFLL); v18 = (*(double (__fastcall **)(char *, float))(*(_QWORD *)v17 + 160LL))(v17, 1.1); v19 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"treasureRoomSpiderweb_001.png", v18); sub_100278250((float *)&__dst, 0.0, 1.0); (*(void (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v19 + 296LL))(v19, &__dst); sub_100278250((float *)&__dst, -5.0, *((float *)&v232 + 1) + 5.0); (*(void (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v19 + 184LL))(v19, &__dst); (*(void (__fastcall **)(unsigned __int8 *, __int64))(*(_QWORD *)v19 + 912LL))(v19, 63); cocos2d::CCSprite::setFlipX(v19, 1u); __dst.__r_.__value_.__s.__data_[1] = 0; *(_WORD *)&__dst.__r_.__value_.__l.0 = 0; (*(void (__fastcall **)(unsigned __int8 *, std::string *))(*(_QWORD *)v19 + 960LL))(v19, &__dst); (*(void (__fastcall **)(_QWORD *, unsigned __int8 *, __int64))(*v12 + 464LL))(v12, v19, 0xFFFFFFFFLL); v20 = (*(double (__fastcall **)(unsigned __int8 *, float))(*(_QWORD *)v19 + 160LL))(v19, 1.1); v21 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_arrow_03_001.png", v20); v12[66] = v21; v22 = CCMenuItemSpriteExtra::create((__int64)v21, 0, (__int64)v12, (__int64)SecretRewardsLayer::onBack, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v22, 1.6); v27 = sub_1008735E0((_DWORD)v22, 0, v23, v24, v25, v26); (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*v12 + 464LL))(v12, v27, 1); v28 = cocos2d::CCDirector::sharedDirector(); *(float *)&v230 = sub_100479760(v28) + 24.0; v29 = cocos2d::CCDirector::sharedDirector(); v30 = sub_100479740(v29) + -23.0; v31 = (__m128)(unsigned int)v230; sub_100278250((float *)&__dst, *(float *)&v230, v30); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v27 + 184LL))(v27, &__dst); if ( PlatformToolbox::isControllerConnected() ) GameToolbox::addBackButton((__int64)v12, (__int64)v22, *(double *)v31.i64); v32 = GameStatsManager::sharedState(); GameStatsManager::getStat(v32, "21", v31); v33 = sub_10088E820("%i", v198); CString = cocos2d::CCString::getCString(v33); v35 = cocos2d::CCLabelBMFont::create_3(CString, (__int64)"bigFont.fnt"); v12[59] = v35; sub_100278250((float *)&__dst, *(float *)&v232 + -55.0, *((float *)&v232 + 1) + -18.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v35 + 184LL))(v35, &__dst); v36 = v12[59]; sub_100278250((float *)&__dst, 1.0, 0.5); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v36 + 296LL))(v36, &__dst); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)v12[59] + 160LL))(v12[59], 0.60000002); v37 = (*(double (__fastcall **)(_QWORD *, _QWORD))(*v12 + 456LL))(v12, v12[59]); v38 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_bigKey_001.png", v37); v12[61] = v38; (*(void (__fastcall **)(_QWORD *, char *, __int64))(*v12 + 464LL))(v12, v38, 3); v39 = v12[61]; v40 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v12[59] + 192LL))(v12[59]); sub_100278250((float *)&v226, 25.0, -0.5); sub_100278350((double *)&__dst, v40, (unsigned __int64 *)&v226); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v39 + 184LL))(v39, &__dst); v41 = GameStatsManager::sharedState(); GameStatsManager::getStat(v41, "43", (__m128)0x41C80000u); v42 = sub_10088E820("%i", v199); v43 = cocos2d::CCString::getCString(v42); v44 = cocos2d::CCLabelBMFont::create_3(v43, (__int64)"bigFont.fnt"); v12[60] = v44; v45 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v12[59] + 192LL))(v12[59]); (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v44 + 184LL))(v44, v45); v46 = v12[60]; sub_100278250((float *)&__dst, 1.0, 0.5); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v46 + 296LL))(v46, &__dst); (*(void (__fastcall **)(_QWORD, float))(*(_QWORD *)v12[60] + 160LL))(v12[60], 0.60000002); v47 = (*(double (__fastcall **)(_QWORD *, _QWORD))(*v12 + 456LL))(v12, v12[60]); v48 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_bigGoldKey_001.png", v47); v12[62] = v48; (*(void (__fastcall **)(_QWORD *, char *, __int64))(*v12 + 464LL))(v12, v48, 3); v49 = v12[62]; v50 = (unsigned __int64 *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v12[60] + 192LL))(v12[60]); sub_100278250((float *)&v226, 25.0, -0.5); sub_100278350((double *)&__dst, v50, (unsigned __int64 *)&v226); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v49 + 184LL))(v49, &__dst); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v12[60] + 344LL))(v12[60], 0); v51 = (*(double (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v12[62] + 344LL))(v12[62], 0); v52 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"treasureRoomLabel_001.png", v51); (*(void (__fastcall **)(_QWORD, char *, __int64))(*(_QWORD *)v12[53] + 464LL))(v12[53], v52, 2); sub_100278250((float *)&__dst, *(float *)&v232 * 0.5, *((float *)&v232 + 1) + -42.0); v53 = (*(double (__fastcall **)(char *, std::string *))(*(_QWORD *)v52 + 184LL))(v52, &__dst); v54 = (float *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)"treasureRoomGround_001.png", v53); (*(void (__fastcall **)(_QWORD *, float *, __int64))(*v12 + 464LL))(v12, v54, 2); sub_100278250((float *)&__dst, 0.0, 1.0); (*(void (__fastcall **)(float *, std::string *))(*(_QWORD *)v54 + 296LL))(v54, &__dst); sub_100278250((float *)&__dst, -10.0, 35.0); (*(void (__fastcall **)(float *, std::string *))(*(_QWORD *)v54 + 184LL))(v54, &__dst); (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v54 + 1080LL))(v54, 0x100000302LL); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v54 + 160LL))(v54, (float)(*(float *)&v232 + 20.0) / v54[108]); v55 = (unsigned __int64 *)150; (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)v54 + 912LL))(v54, 150); v219 = sub_1007FE900(v54); v216 = sub_1007FE900(v54); v56 = cocos2d::CCDictionary::create(); v12[58] = v56; cocos2d::CCObject::retain((__int64)v56); for ( i = 0; i != 9; i = v127 + 1 ) { v58 = 0; v58.f32[0] = (float)(int)i / 3.0; *(float *)&v221 = _mm_round_ss(v58, v58, 9).f32[0]; v59 = (int)*(float *)&v221; v60 = v219; v61 = v219; v62 = sub_1007FEF90(v219); v230 = i; if ( v62 < v59 + 1 ) { v63 = cocos2d::CCLayer::create(); v66 = cocos2d::CCMenu::create(v61, v55, v64, v65); (*(void (__fastcall **)(_QWORD *, __int64))(*v63 + 456LL))(v63, v66); v67 = v63; i = v230; sub_1007FEBF0(v60, v67); sub_1007FEBF0(v216, v66); } v224 = sub_1007FEFE0(v60, v59); v218 = sub_1007FEFE0(v216, v59); v68 = i; v69 = (unsigned __int8)i % 3u; if ( v69 == 0 && v68 < 6 ) { *(_QWORD *)&v70 = (unsigned int)v221; *(float *)&v70 = *(float *)&v221 + 1.0; v71 = sub_10088E820("tier%ilabel_001.png", v200); v72 = cocos2d::CCString::getCString(v71); v73 = cocos2d::CCSprite::createWithSpriteFrameName(v72, v70); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v224 + 464LL))(v224, v73, 2); sub_100278250((float *)&__dst, *(float *)&v232 * 0.5, (float)(*((float *)&v232 + 1) * 0.5) + 70.0); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v73 + 184LL))(v73, &__dst); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v73 + 160LL))(v73, 0.80000001); } sub_100278250( (float *)&v220, (float)((float)(v69 - 1) * 100.0) + (float)(*(float *)&v232 * 0.5), (float)(*((float *)&v232 + 1) * 0.5) + 10.0); v221 = v230 + 3; v74 = v230 + 3; if ( v230 >= 6 ) v74 = 2; v75 = sub_10088E820("chest_0%i_price_001.png", v200); v76 = (const char *)cocos2d::CCString::getCString(v75); v77 = strlen(v76); if ( v77 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v78 = v77; v225 = v69; if ( v77 >= 0x17 ) { v80 = (v77 | 7) + 1; if ( (v77 | 7) == 0x17 ) v80 = 26; data = (char *)operator new(v80); __dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data; __dst.__r_.__value_.__r.__words[0] = v80 + 1; __dst.__r_.__value_.__l.__size_ = v78; LABEL_25: memmove(data, v76, v78); goto LABEL_26; } __dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v77); data = __dst.__r_.__value_.__s.__data_; if ( v77 ) goto LABEL_25; LABEL_26: data[v78] = 0; v81 = (_BYTE *)v74; v82 = sub_10088E820("chest_0%i_02_001.png", v201); v83 = (const char *)cocos2d::CCString::getCString(v82); v84 = strlen(v83); if ( v84 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v85 = v84; if ( v84 >= 0x17 ) { v90 = (v84 | 7) + 1; if ( (v84 | 7) == 0x17 ) v90 = 26; v86 = (char *)operator new(v90); v226.__r_.__value_.__r.__words[2] = (std::string::size_type)v86; v226.__r_.__value_.__r.__words[0] = v90 | 1; v226.__r_.__value_.__l.__size_ = v85; } else { v226.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v84); v86 = v226.__r_.__value_.__s.__data_; if ( !v84 ) { v226.__r_.__value_.__s.__data_[0] = 0; v87 = v230; if ( v230 <= 2 ) goto LABEL_30; goto LABEL_35; } } v81 = v83; memmove(v86, v83, v85); v86[v85] = 0; v87 = v230; if ( v230 <= 2 ) { LABEL_30: BYTE2(v222) = -126; LOWORD(v222) = 14446; isSpecialChestUnlocked = 0; LODWORD(v225) = 1061997773; v89 = v218; goto LABEL_48; } LABEL_35: memset(&v222, 100, 3); v89 = v218; if ( v87 >= 6 ) { BYTE2(v222) = -76; LOWORD(v222) = 100; v91 = v225; v92 = sub_10088E820("chestSpecial_0%i_price_001.png", v200); v93 = (const std::string::value_type *)cocos2d::CCString::getCString(v92); std::string::assign(&__dst, v93); if ( v91 ) { if ( v91 == 1 ) { v94 = GameStatsManager::sharedState(); v205 = 8; strcpy(v206, "0005"); v81 = &v205; isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v94, (__int64)&v205); if ( (v205 & 1) != 0 ) { v95 = v207; LABEL_45: operator delete(v95); } } else { v98 = GameStatsManager::sharedState(); v208 = 8; strcpy(v209, "0006"); v81 = &v208; isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v98, (__int64)&v208); if ( (v208 & 1) != 0 ) { v95 = v210; goto LABEL_45; } } } else { v97 = GameStatsManager::sharedState(); v202 = 8; strcpy(v203, "0004"); v81 = &v202; isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v97, (__int64)&v202); if ( (v202 & 1) != 0 ) { v95 = v204; goto LABEL_45; } } v96 = 1065353216; goto LABEL_47; } isSpecialChestUnlocked = 0; v96 = 1061997773; LABEL_47: LODWORD(v225) = v96; LABEL_48: v99 = GJChestSprite::create(v74); (*(void (__fastcall **)(_QWORD *, _BYTE *, float))(*v99 + 160LL))(v99, v81, 0.60000002); v100 = CCMenuItemSpriteExtra::create((__int64)v99, 0, v227, (__int64)SecretRewardsLayer::onChestType, 0); __str.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28; strcpy(__str.__r_.__value_.__s.__data_, "chestClick.ogg"); std::string::operator=((std::string *)(v100 + 220), &__str); if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 ) operator delete(__str.__r_.__value_.__l.__data_); sub_100278260((float *)&v223, 60.000004, 48.0); (*(void (__fastcall **)(_WORD *, unsigned __int64 *))(*(_QWORD *)v100 + 320LL))(v100, &v223); LODWORD(v218) = *(_DWORD *)(*(__int64 (__fastcall **)(_WORD *))(*(_QWORD *)v100 + 328LL))(v100); v101 = (*(__int64 (__fastcall **)(_WORD *))(*(_QWORD *)v100 + 328LL))(v100); *(_QWORD *)&v102 = (unsigned int)v218; *(float *)&v102 = *(float *)&v218 * 0.5; *(_QWORD *)&v103 = *(unsigned int *)(v101 + 4); *(float *)&v103 = *(float *)&v103 * 0.5; sub_100278250((float *)&v223, *(float *)&v218 * 0.5, *(float *)&v103); (*(void (__fastcall **)(_QWORD *, unsigned __int64 *))(*v99 + 184LL))(v99, &v223); (*(void (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v89 + 456LL))(v89, v100); v100[204] = 256; cocos2d::CCNode::convertToNodeSpace((double *)&v223, v89, (unsigned int *)&v220); (*(void (__fastcall **)(_WORD *, unsigned __int64 *))(*(_QWORD *)v100 + 184LL))(v100, &v223); (*(void (__fastcall **)(_WORD *, unsigned __int64))(*(_QWORD *)v100 + 72LL))(v100, v230); if ( isSpecialChestUnlocked ) { v104 = (_DWORD *)(*(__int64 (__fastcall **)(_WORD *))(*(_QWORD *)v100 + 1072LL))(v100); GJChestSprite::switchToState(v104, 4, 1, v102, v103, (__m128)0x3F000000u); v105 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v104 + 488LL))(v104); if ( v105 ) { v106 = *(unsigned int **)(v105 + 56); if ( *v106 ) { v107 = *((_QWORD **)v106 + 2); v108 = (unsigned __int64)&v107[*v106 - 1]; do { v109 = *v107; if ( !*v107 ) break; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v109 + 912LL))(*v107, 100); BYTE2(v223) = -106; LOWORD(v223) = -26986; (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v109 + 960LL))(v109, &v223); ++v107; } while ( (unsigned __int64)v107 <= v108 ); } } (*(void (__fastcall **)(_WORD *, _QWORD))(*(_QWORD *)v100 + 1056LL))(v100, 0); } v110 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"chestPlatform_01_001.png", v102); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v224 + 464LL))(v224, v110, 2); sub_100278250((float *)&v231, 0.0, -34.0); sub_100278350((double *)&v223, &v220, &v231); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v110 + 184LL))(v110, &v223); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v110 + 960LL))(v110, &v222); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v110 + 912LL))(v110, 200); v111 = __dst.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) v111 = __dst.__r_.__value_.__l.__data_; v112 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v111, 0.0); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v224 + 464LL))(v224, v112, 2); v113 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v110 + 192LL))(v110); sub_100278250((float *)&v231, 0.0, -20.0); sub_100278350((double *)&v223, v113, &v231); v55 = &v223; (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v112 + 184LL))(v112, &v223); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v112 + 160LL))(v112, *(float *)&v225); if ( v230 > 5 ) { if ( v230 == 6 ) { sub_100278250( (float *)&v223, (float)(*(float *)&v232 * 0.5) + 10.0, (float)(*((float *)&v232 + 1) * 0.5) + 72.0); v123 = cocos2d::CCLabelBMFont::create_3((__int64)" ", (__int64)"bigFont.fnt"); *(_QWORD *)(v227 + 440) = v123; (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v123 + 184LL))(v123, &v223); v124 = *(_QWORD *)(v227 + 440); sub_100278250((float *)&v231, 1.0, 0.5); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v124 + 296LL))(v124, &v231); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v227 + 440) + 160LL))(*(_QWORD *)(v227 + 440), 0.5); v125 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v224 + 456LL))(v224, *(_QWORD *)(v227 + 440)); v126 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"chest03_small_001.png", v125); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v224 + 456LL))(v224, v126); sub_100278250((float *)&v212, 22.0, 0.0); sub_100278350((double *)&v231, &v223, &v212); v55 = &v231; (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v126 + 184LL))(v126, &v231); SecretRewardsLayer::updateUnlockedLabel(v227); } } else { v114 = GameStatsManager::sharedState(); v115 = GameStatsManager::countUnlockedSecretChests(v114, v221); v116 = GameStatsManager::sharedState(); v117 = GameStatsManager::countSecretChests(v116, v221); v118 = sub_10088E820("%i / %i", v200); v119 = cocos2d::CCString::getCString(v118); v120 = (unsigned __int64 *)cocos2d::CCLabelBMFont::create_3(v119, (__int64)"bigFont.fnt"); (*(void (__fastcall **)(__int64, unsigned __int64 *))(*(_QWORD *)v224 + 456LL))(v224, v120); (*(void (__fastcall **)(unsigned __int64 *, float))(*v120 + 160))(v120, 0.40000001); v121 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v112 + 192LL))(v112); sub_100278250((float *)&v231, 0.0, -35.0); sub_100278350((double *)&v223, v121, &v231); (*(void (__fastcall **)(unsigned __int64 *, unsigned __int64 *))(*v120 + 184))(v120, &v223); v122 = 65280; if ( v115 < v117 ) v122 = 7043771; LOWORD(v223) = v122; BYTE2(v223) = BYTE2(v122); (*(void (__fastcall **)(unsigned __int64 *, unsigned __int64 *))(*v120 + 1072))(v120, &v223); v55 = v120; cocos2d::CCDictionary::setObject_1(*(_QWORD *)(v227 + 464), (__int64)v120, v221); } if ( (*(_BYTE *)&v226.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v226.__r_.__value_.__l.__data_); v127 = v230; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) continue; } else { v127 = v230; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) == 0 ) continue; } operator delete(__dst.__r_.__value_.__l.__data_); } sub_100278250((float *)&v220, *(float *)&v232 * 0.5, (float)(*((float *)&v232 + 1) * 0.5) + 12.0); v128 = cocos2d::CCLayer::create(); v129 = v219; sub_1007FEBF0(v219, v128); v132 = cocos2d::CCMenu::create(v129, v128, v130, v131); (*(void (__fastcall **)(_QWORD *, __int64))(*v128 + 456LL))(v128, v132); v133 = GJChestSprite::create(9); (*(void (__fastcall **)(_QWORD *, float))(*v133 + 160LL))(v133, 0.72000003); v134 = CCMenuItemSpriteExtra::create((__int64)v133, 0, v227, (__int64)SecretRewardsLayer::onGoldChest, 0); v215.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)28; strcpy(v215.__r_.__value_.__s.__data_, "chestClick.ogg"); std::string::operator=((std::string *)(v134 + 220), &v215); if ( (*(_BYTE *)&v215.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v215.__r_.__value_.__l.__data_); *(float *)&v230 = (*(float (__fastcall **)(_QWORD *))(*v133 + 168LL))(v133) * 100.0; v135 = (*(double (__fastcall **)(_QWORD *))(*v133 + 168LL))(v133); sub_100278260((float *)&__dst, *(float *)&v230, *(float *)&v135 * 80.0); (*(void (__fastcall **)(_WORD *, std::string *))(*(_QWORD *)v134 + 320LL))(v134, &__dst); *(float *)&v230 = *(float *)(*(__int64 (__fastcall **)(_WORD *))(*(_QWORD *)v134 + 328LL))(v134) * 0.5; *(_QWORD *)&v136 = *(unsigned int *)((*(__int64 (__fastcall **)(_WORD *))(*(_QWORD *)v134 + 328LL))(v134) + 4); *(float *)&v136 = *(float *)&v136 * 0.5; *(_QWORD *)&v137 = (unsigned int)v230; sub_100278250((float *)&__dst, *(float *)&v230, *(float *)&v136); (*(void (__fastcall **)(_QWORD *, std::string *))(*v133 + 184LL))(v133, &__dst); (*(void (__fastcall **)(__int64, _WORD *))(*(_QWORD *)v132 + 456LL))(v132, v134); v134[204] = 256; cocos2d::CCNode::convertToNodeSpace((double *)&__dst, v132, (unsigned int *)&v220); (*(void (__fastcall **)(_WORD *, std::string *))(*(_QWORD *)v134 + 184LL))(v134, &__dst); v138 = GameStatsManager::sharedState(); if ( !(unsigned int)GameStatsManager::getNextGoldChestID(v138) ) { v139 = (_DWORD *)(*(__int64 (__fastcall **)(_WORD *))(*(_QWORD *)v134 + 1072LL))(v134); GJChestSprite::switchToState(v139, 4, 1, v137, v136, (__m128)0x3F000000u); v140 = (*(__int64 (__fastcall **)(_DWORD *))(*(_QWORD *)v139 + 488LL))(v139); if ( v140 ) { v141 = *(unsigned int **)(v140 + 56); if ( *v141 ) { v142 = *((_QWORD **)v141 + 2); v143 = &v142[*v141 - 1]; do { v144 = *v142; if ( !*v142 ) break; (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v144 + 912LL))(*v142, 100); __dst.__r_.__value_.__s.__data_[1] = -106; *(_WORD *)&__dst.__r_.__value_.__l.0 = -26986; (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v144 + 960LL))(v144, &__dst); ++v142; } while ( v142 <= v143 ); } } v137 = (*(double (__fastcall **)(_WORD *, _QWORD))(*(_QWORD *)v134 + 1056LL))(v134, 0); } v145 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"chestPlatform_01_001.png", v137); (*(void (__fastcall **)(_QWORD *, char *, __int64))(*v128 + 464LL))(v128, v145, 2); sub_100278250((float *)&v226, 0.0, -40.800003); sub_100278350((double *)&__dst, &v220, (unsigned __int64 *)&v226); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v145 + 184LL))(v145, &__dst); qmemcpy(&__dst, "\\Pg", 3); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v145 + 960LL))(v145, &__dst); (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v145 + 912LL))(v145, 200); v146 = (*(double (__fastcall **)(char *, float))(*(_QWORD *)v145 + 160LL))(v145, 1.2); v147 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"chest_09_price_001.png", v146); (*(void (__fastcall **)(_QWORD *, char *, __int64))(*v128 + 464LL))(v128, v147, 2); v148 = (unsigned __int64 *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v145 + 192LL))(v145); sub_100278250((float *)&v226, 0.0, -24.0); sub_100278350((double *)&__dst, v148, (unsigned __int64 *)&v226); (*(void (__fastcall **)(char *, std::string *))(*(_QWORD *)v147 + 184LL))(v147, &__dst); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v147 + 160LL))(v147, 0.96000004); sub_100278250((float *)&v223, *(float *)&v232 * 0.5, (float)(*((float *)&v232 + 1) * 0.5) + 72.0); v149 = cocos2d::CCLabelBMFont::create_3((__int64)" ", (__int64)"bigFont.fnt"); v150 = v227; *(_QWORD *)(v227 + 456) = v149; (*(void (__fastcall **)(void *, unsigned __int64 *))(*(_QWORD *)v149 + 184LL))(v149, &v223); v151 = *(_QWORD *)(v150 + 456); sub_100278250((float *)&__dst, 0.5, 0.5); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v151 + 296LL))(v151, &__dst); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(v150 + 456) + 160LL))(*(_QWORD *)(v150 + 456), 0.5); (*(void (__fastcall **)(_QWORD *, _QWORD))(*v128 + 456LL))(v128, *(_QWORD *)(v150 + 456)); SecretRewardsLayer::updateUnlockedGoldLabel(v150); v152 = cocos2d::CCLayer::create(); v153 = v219; sub_1007FEBF0(v219, v152); v156 = cocos2d::CCMenu::create(v153, v152, v154, v155); v157 = *v152; v230 = v156; (*(void (__fastcall **)(__int64 *))(v157 + 456))(v152); v158 = 0; while ( 2 ) { v159 = (float)v158++; *(float *)&v224 = (float)(v159 * 70.0) + -105.0; strcpy((char *)&__dst, "\"shopRope2_001.png"); strcpy((char *)&v226, "&shopRope2_2_001.png"); switch ( v158 ) { case 4: std::string::assign(&__dst, "shopRope5_001.png"); v160 = "shopRope5_2_001.png"; goto LABEL_87; case 3: std::string::assign(&__dst, "shopRope4_001.png"); v160 = "shopRope4_2_001.png"; LABEL_87: std::string::assign(&v226, v160); break; case 2: std::string::assign(&__dst, "shopRope3_001.png"); v160 = "shopRope3_2_001.png"; goto LABEL_87; } v161 = __dst.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) v161 = __dst.__r_.__value_.__l.__data_; v162 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v161, 4.262292055419886e180); v163 = (char *)CCMenuItemSpriteExtra::create((__int64)v162, 0, v227, (__int64)SecretRewardsLayer::onShop, 0); (*(void (__fastcall **)(char *, _QWORD))(*(_QWORD *)v163 + 72LL))(v163, (unsigned int)v158); (*(void (__fastcall **)(unsigned __int64, char *))(*(_QWORD *)v230 + 456LL))(v230, v163); CCMenuItemSpriteExtra::setSizeMult((__int64)v163, 1.5); sub_100278250((float *)&v212, *(float *)&v224 + (float)(*(float *)&v232 * 0.5), *((float *)&v232 + 1) + -100.0); cocos2d::CCNode::convertToNodeSpace((double *)&v231, v230, (unsigned int *)&v212); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v163 + 184LL))(v163, &v231); CCMenuItemSpriteExtra::useAnimationType(v163, 1); sub_100278250((float *)&v231, 0.0, -15.0); sub_100278300(v163 + 468, &v231); *(_QWORD *)(v163 + 476) = 0x3E99999A3E99999ALL; *(_QWORD *)&v164 = 1103626240; sub_100278250((float *)&v231, 25.0, 76.0); if ( v158 == 3 ) { *(_QWORD *)&v164 = (unsigned int)v231; *(float *)&v164 = *(float *)&v231 + -3.5; LABEL_94: LODWORD(v231) = LODWORD(v164); } else if ( v158 == 2 ) { *(_QWORD *)&v164 = (unsigned int)v231; *(float *)&v164 = *(float *)&v231 + -2.25; goto LABEL_94; } v165 = v226.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v226.__r_.__value_.__s.0 & 1) != 0 ) v165 = v226.__r_.__value_.__l.__data_; v166 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v165, v164); (*(void (__fastcall **)(char *, char *))(*(_QWORD *)v162 + 456LL))(v162, v166); sub_100278250((float *)&v222, 0.0, 0.0); sub_100278350((double *)&v212, &v231, &v222); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v166 + 184LL))(v166, &v212); v167 = v226.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v226.__r_.__value_.__s.0 & 1) != 0 ) v167 = v226.__r_.__value_.__l.__data_; v168 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v167, 0.0); (*(void (__fastcall **)(char *, char *))(*(_QWORD *)v162 + 456LL))(v162, v168); sub_100278250((float *)&v222, 0.0, 20.5); sub_100278350((double *)&v212, &v231, &v222); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v168 + 184LL))(v168, &v212); v169 = v226.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v226.__r_.__value_.__s.0 & 1) != 0 ) v169 = v226.__r_.__value_.__l.__data_; v170 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v169, 0.0); (*(void (__fastcall **)(char *, char *))(*(_QWORD *)v162 + 456LL))(v162, v170); sub_100278250((float *)&v222, 0.0, 41.0); sub_100278350((double *)&v212, &v231, &v222); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v170 + 184LL))(v170, &v212); v171 = v226.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v226.__r_.__value_.__s.0 & 1) != 0 ) v171 = v226.__r_.__value_.__l.__data_; v172 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v171, 0.0); (*(void (__fastcall **)(char *, char *))(*(_QWORD *)v162 + 456LL))(v162, v172); sub_100278250((float *)&v222, 0.0, 61.5); sub_100278350((double *)&v212, &v231, &v222); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v172 + 184LL))(v172, &v212); v173 = v226.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v226.__r_.__value_.__s.0 & 1) != 0 ) v173 = v226.__r_.__value_.__l.__data_; v174 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v173, 0.0); (*(void (__fastcall **)(char *, char *))(*(_QWORD *)v162 + 456LL))(v162, v174); sub_100278250((float *)&v222, 0.0, 82.0); sub_100278350((double *)&v212, &v231, &v222); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v174 + 184LL))(v174, &v212); v175 = v226.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&v226.__r_.__value_.__s.0 & 1) != 0 ) v175 = v226.__r_.__value_.__l.__data_; v176 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v175, 0.0); (*(void (__fastcall **)(char *, char *))(*(_QWORD *)v162 + 456LL))(v162, v176); sub_100278250((float *)&v222, 0.0, 102.5); sub_100278350((double *)&v212, &v231, &v222); (*(void (__fastcall **)(char *, unsigned __int64 *))(*(_QWORD *)v176 + 184LL))(v176, &v212); if ( (*(_BYTE *)&v226.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v226.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) goto LABEL_111; } else if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 ) { LABEL_111: operator delete(__dst.__r_.__value_.__l.__data_); } if ( v158 != 4 ) continue; break; } v177 = BoomScrollLayer::create(v219, 0, 1u, 0, 0); v178 = v227; *(_QWORD *)(v227 + 544) = v177; (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v178 + 424) + 456LL))(*(_QWORD *)(v178 + 424), v177); v179 = *(_QWORD *)(v178 + 544); *(float *)&v230 = *(float *)&v232 * 0.5; v180 = cocos2d::CCDirector::sharedDirector(); v181 = sub_100479750(v180) + 10.0; v182 = (__m128)(unsigned int)v230; sub_100278250((float *)&__dst, *(float *)&v230, v181); BoomScrollLayer::setPagesIndicatorPosition(v179, &__dst); v183 = *(_QWORD *)(v178 + 544); *(_DWORD *)(v183 + 540) = 1063675494; *(_BYTE *)(v183 + 608) = 1; v184 = cocos2d::CCDirector::sharedDirector(); LODWORD(v230) = sub_100479770(v184); v185 = cocos2d::CCDirector::sharedDirector(); v182.f32[0] = sub_100479740(v185); sub_100278270((__int64)&__dst, 0.0, 0.0, (__m128)(unsigned int)v230, v182); sub_100278810((__m128 *)(v183 + 612), (unsigned __int64 *)&__dst); *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v178 + 544) + 504LL) + 408LL) = v178 + 416; v187 = cocos2d::CCMenu::create(v183 + 612, &__dst, v186, v178 + 416); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v187 + 1024LL))(v187, 4294967167LL); *(float *)&v230 = (float)(0.5 * *((float *)&v232 + 1)) + -30.0; v188 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"GJ_arrow_01_001.png", COERCE_DOUBLE((unsigned __int64)(unsigned int)v230)); v189 = CCMenuItemSpriteExtra::create((__int64)v188, 0, v178, (__int64)SecretRewardsLayer::onSwitchPage, 0); *(_QWORD *)(v178 + 512) = v189; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v187 + 456LL))(v187, v189); v190 = *(_QWORD *)(v178 + 512); v191 = cocos2d::CCDirector::sharedDirector(); v182.f32[0] = sub_100479760(v191); sub_100278250((float *)&v226, v182.f32[0] + 24.0, *(float *)&v230); cocos2d::CCNode::convertToNodeSpace((double *)&__dst, v187, (unsigned int *)&v226); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v190 + 184LL))(v190, &__dst); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v178 + 512) + 72LL))(*(_QWORD *)(v178 + 512), 0); CCMenuItemSpriteExtra::setSizeMult(*(_QWORD *)(v178 + 512), 2.0); v192 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"GJ_arrow_01_001.png", COERCE_DOUBLE(0x40000000)); cocos2d::CCSprite::setFlipX(v192, 1u); v193 = CCMenuItemSpriteExtra::create((__int64)v192, 0, v178, (__int64)SecretRewardsLayer::onSwitchPage, 0); *(_QWORD *)(v178 + 520) = v193; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v187 + 456LL))(v187, v193); v194 = *(_QWORD *)(v178 + 520); v195 = cocos2d::CCDirector::sharedDirector(); v182.f32[0] = sub_100479770(v195); sub_100278250((float *)&v226, v182.f32[0] + -24.0, *(float *)&v230); cocos2d::CCNode::convertToNodeSpace((double *)&__dst, v187, (unsigned int *)&v226); (*(void (__fastcall **)(__int64, std::string *))(*(_QWORD *)v194 + 184LL))(v194, &__dst); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v178 + 520) + 72LL))(*(_QWORD *)(v178 + 520), 1); CCMenuItemSpriteExtra::setSizeMult(*(_QWORD *)(v178 + 520), 2.0); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v178 + 464LL))(v178, v187, 10); if ( (_BYTE)v217 ) { TotalPages = BoomScrollLayer::getTotalPages(*(_QWORD *)(v178 + 544)); v197 = TotalPages - 1; BoomScrollLayer::instantMoveToPage(*(_QWORD *)(v178 + 544), TotalPages - 2); BoomScrollLayer::instantMoveToPage(*(_QWORD *)(v178 + 544), v197); } return v228; }
GD Web Decomp Icon

GD Web Decomp

Raw Source