// // RewardUnlockLayer::playRewardEffect from 0x1405646f0 to 0x140565dd8 (5864 bytes) // // 18 xrefs: // > DailyLevelPage::claimLevelReward @ 0x1401726bb // > FollowRewardPage::onSpecialItem @ 0x14020e9e2 // > GauntletSelectLayer::onPlay @ 0x1402ffe33 // > GJPathRewardPopup::onClaim @ 0x14039841f // > GJShopLayer::dialogClosed @ 0x1403b4ce6 // > LevelBrowserLayer::claimRecallChest @ 0x1403eb52a // > NotificationsPage::notificationRewardFinished @ 0x140478e58 // > RewardUnlockLayer::showCollectReward @ 0x1405644a5 // > RewardUnlockLayer::step3 @ 0x1405646de // > SecretRewardsLayer::onSelectItem @ 0x14056c06f // > SecretRewardsLayer::onSpecialItem @ 0x14056c92c // > SecretRewardsLayer::onGoldChest @ 0x14056d10b // > SecretLayer3::onChest01 @ 0x1405812b7 // > SecretLayer3::onChest02 @ 0x140581437 // > SecretLayer4::onChest01 @ 0x14058660a // > SecretLayer5::claimOnlineReward @ 0x14058c21d // > SupportLayer::onGetReward @ 0x14066b23b // > @ 0x14092c540 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:34:17 +0000 // // Hidden C++ exception states: #wind=19 struct cocos2d::CCAction *__fastcall RewardUnlockLayer::playRewardEffect(cocos2d::CCNode *a1) { int v2; // ecx int v3; // esi int v4; // ecx __int64 v5; // rcx _QWORD *v6; // rdi __int64 v7; // rbx int v8; // eax __int64 v9; // rdi cocos2d::CCArray *v10; // r13 int v11; // r15d unsigned int v12; // ebx struct cocos2d::CCObject *v13; // rax __int64 v14; // rdi cocos2d::CCArray *v15; // rcx int v16; // r14d unsigned int v17; // ebx struct cocos2d::CCObject *v18; // rax __int64 v19; // rdi cocos2d::CCArray *v20; // rcx unsigned int v21; // ebx struct cocos2d::CCObject *v22; // rax int v23; // edi unsigned int v24; // ebx struct cocos2d::CCObject *v25; // rax int v26; // ecx int v27; // edi int v28; // eax BOOL v29; // ebx int v30; // ecx int v31; // ecx __int128 *v32; // rdx int v33; // ecx int v34; // ecx int v35; // ecx __int64 v36; // rax void (__fastcall *v37)(__int64); // rdx int v38; // xmm6_4 const struct cocos2d::CCPoint *v39; // rax const struct cocos2d::CCPoint *v40; // rax char *v41; // rdi unsigned int v42; // ebx struct cocos2d::CCObject *v43; // rax unsigned int v44; // esi int v45; // r14d char *v46; // r15 const struct cocos2d::CCPoint *v47; // rax const struct cocos2d::CCPoint *v48; // rax __int64 v49; // rax __int64 v50; // rcx __int64 v51; // rax __int64 v52; // rcx int v53; // ebx cocos2d::CCArray *v54; // rdi __int64 v55; // rcx unsigned int v56; // esi unsigned int v57; // ebx cocos2d::CCArray *v58; // rsi struct cocos2d::CCObject *v59; // rax struct cocos2d::CCObject *v60; // rax struct cocos2d::CCObject *v61; // rax struct cocos2d::CCObject *v62; // rax struct cocos2d::CCObject *v63; // rax struct cocos2d::CCObject *v64; // rax int v65; // ebx signed int v66; // r13d __int64 v67; // rax __int64 v68; // rax __int64 v69; // rax __int64 v70; // rax __int64 v71; // rax __int64 v72; // rax __int64 v73; // rax __int64 v74; // rax __int64 v75; // rax __int64 v76; // rax int v77; // ebx char *v78; // rdx float v79; // xmm6_4 __int64 v80; // rax __int64 v81; // rax __int64 v82; // rax __int64 v83; // rax struct cocos2d::CCObject *v84; // rax unsigned int v85; // esi int v86; // r14d char *v87; // r15 __int64 v88; // rax const struct cocos2d::CCPoint *v89; // rax __int64 v90; // rdi float v91; // xmm7_4 __int64 v92; // rcx cocos2d::CCArray *v93; // rbx float v94; // xmm6_4 int v95; // eax __int64 v96; // rax struct cocos2d::CCObject *v97; // rax struct cocos2d::CCObject *v98; // rax struct cocos2d::CCObject *v99; // rax struct cocos2d::CCAction *v100; // rax float v101; // xmm6_4 int v102; // eax const struct cocos2d::CCPoint *v103; // rax const struct cocos2d::CCPoint *v104; // rbx const struct cocos2d::CCPoint *v105; // rax cocos2d::CCObject *v106; // rbx __int64 v107; // rbx struct cocos2d::CCFiniteTimeAction *v108; // rax struct cocos2d::CCAction *v109; // rax __int64 v111; // [rsp+38h] [rbp-F0h] float v112; // [rsp+A8h] [rbp-80h] BYREF float v113; // [rsp+ACh] [rbp-7Ch] __int16 v114; // [rsp+B8h] [rbp-70h] BYREF char v115; // [rsp+BAh] [rbp-6Eh] int v116; // [rsp+C8h] [rbp-60h] BYREF __int128 v117; // [rsp+D0h] [rbp-58h] BYREF __int64 v118; // [rsp+E0h] [rbp-48h] __int64 v119; // [rsp+E8h] [rbp-40h] int v120; // [rsp+F0h] [rbp-38h] __int128 v121; // [rsp+F8h] [rbp-30h] BYREF __int64 v122; // [rsp+108h] [rbp-20h] __int64 v123; // [rsp+110h] [rbp-18h] int v124; // [rsp+118h] [rbp-10h] int v125; // [rsp+11Ch] [rbp-Ch] int v126; // [rsp+120h] [rbp-8h] cocos2d::CCArray *v127; // [rsp+128h] [rbp+0h] float v128; // [rsp+130h] [rbp+8h] BYREF float v129; // [rsp+134h] [rbp+Ch] int v130; // [rsp+138h] [rbp+10h] char v131[8]; // [rsp+140h] [rbp+18h] BYREF char *v132; // [rsp+148h] [rbp+20h] BYREF char v133[8]; // [rsp+150h] [rbp+28h] BYREF int v134; // [rsp+158h] [rbp+30h] char v135[8]; // [rsp+160h] [rbp+38h] BYREF char v136[8]; // [rsp+168h] [rbp+40h] BYREF char v137[8]; // [rsp+170h] [rbp+48h] BYREF char v138[8]; // [rsp+178h] [rbp+50h] BYREF char v139[8]; // [rsp+180h] [rbp+58h] BYREF char *v140; // [rsp+188h] [rbp+60h] BYREF char v141[8]; // [rsp+190h] [rbp+68h] BYREF char v142[8]; // [rsp+198h] [rbp+70h] BYREF char *v143; // [rsp+1A0h] [rbp+78h] BYREF _BYTE v144[136]; // [rsp+1A8h] [rbp+80h] BYREF __int128 *v145; // [rsp+278h] [rbp+150h] BYREF void *v146; // [rsp+280h] [rbp+158h] BYREF void *v147; // [rsp+288h] [rbp+160h] BYREF int v148; // [rsp+290h] [rbp+168h] BYREF v2 = *(_DWORD *)(*((_QWORD *)a1 + 88) + 64LL); v3 = 0; switch ( v2 ) { case 7: v145 = &v117; v118 = 11; v119 = 15; *(_QWORD *)&v117 = 0x2E37307473656863LL; *((_QWORD *)&v117 + 1) = 6776687; v4 = qword_14090BF60; if ( !qword_14090BF60 ) goto LABEL_6; goto LABEL_7; case 8: v145 = &v117; v118 = 11; v119 = 15; *(_QWORD *)&v117 = 0x2E38307473656863LL; *((_QWORD *)&v117 + 1) = 6776687; v4 = qword_14090BF60; if ( !qword_14090BF60 ) { LABEL_6: v146 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v146); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v4 = qword_14090BF60; } LABEL_7: FMODAudioEngine::playEffect_1(v4, (__int64)&v117); break; case 9: v145 = &v121; v5 = qword_14090C070; if ( !qword_14090C070 ) { v146 = operator new(0x3D0u); qword_14090C070 = MusicDownloadManager::MusicDownloadManager((__int64)v146); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090C070 + 72LL))(qword_14090C070); v5 = qword_14090C070; } v6 = MusicDownloadManager::pathForSFX(v5, &v121, 0x24FEu); v7 = qword_14090BF60; if ( !qword_14090BF60 ) { v146 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v146); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v7 = qword_14090BF60; } v8 = rand(); FMODAudioEngine::playEffectAdvanced( v7, v6, (float)((float)((float)v8 / 32767.0) * 0.2) + 0.89999998, 0.0, 0.69999999, 0.0, 0, 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.0, 0); break; } GJChestSprite::switchToState(*((_QWORD *)a1 + 86), 4, 0); v9 = *((_QWORD *)a1 + 88); v10 = *(cocos2d::CCArray **)(v9 + 72); v11 = 0; v126 = 0; if ( v10 ) { v12 = 0; if ( cocos2d::CCArray::count(v10) ) { do { v13 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v9 + 72), v12); if ( *((_DWORD *)v13 + 14) == 7 ) v11 += *((_DWORD *)v13 + 17); ++v12; } while ( v12 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(v9 + 72)) ); v126 = v11; } } v14 = *((_QWORD *)a1 + 88); v15 = *(cocos2d::CCArray **)(v14 + 72); v16 = 0; v125 = 0; if ( v15 ) { v17 = 0; if ( cocos2d::CCArray::count(v15) ) { do { v18 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v14 + 72), v17); if ( *((_DWORD *)v18 + 14) == 8 ) v16 += *((_DWORD *)v18 + 17); ++v17; } while ( v17 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(v14 + 72)) ); v125 = v16; } } v19 = *((_QWORD *)a1 + 88); v20 = *(cocos2d::CCArray **)(v19 + 72); LODWORD(v127) = 0; if ( v20 ) { v21 = 0; if ( cocos2d::CCArray::count(v20) ) { do { v22 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v19 + 72), v21); if ( *((_DWORD *)v22 + 14) == 9 ) v3 += *((_DWORD *)v22 + 17); ++v21; } while ( v21 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(v19 + 72)) ); LODWORD(v127) = v3; } } v23 = 0; v148 = 0; v116 = 0; LODWORD(v146) = 0; v124 = 0; if ( v10 ) { v24 = 0; if ( cocos2d::CCArray::count(v10) ) { while ( 2 ) { v25 = cocos2d::CCArray::objectAtIndex(v10, v24); switch ( *((_DWORD *)v25 + 14) ) { case 1: case 2: case 3: case 4: case 5: case 6: case 0xA: case 0xB: case 0xC: case 0xD: case 0xE: case 0xF: v26 = *((_DWORD *)v25 + 17); if ( !v23 ) { v23 = *((_DWORD *)v25 + 14); v148 = v23; LODWORD(v146) = v26; goto LABEL_37; } v116 = *((_DWORD *)v25 + 14); v124 = v26; break; default: LABEL_37: if ( ++v24 < cocos2d::CCArray::count(v10) ) continue; break; } break; } } } v27 = CurrencySprite::rewardToSpriteType(v23); v134 = v27; v28 = CurrencySprite::rewardToSpriteType(v116); v130 = v28; v29 = *(_DWORD *)(*((_QWORD *)a1 + 88) + 64LL) == 3; if ( v3 > 0 ) { v145 = &v117; v118 = 12; v119 = 15; strcpy((char *)&v117, "reward01.ogg"); BYTE13(v117) = 0; HIWORD(v117) = 0; v30 = qword_14090BF60; if ( qword_14090BF60 ) { LABEL_69: v32 = &v117; LABEL_70: FMODAudioEngine::playEffect_1(v30, (__int64)v32); goto LABEL_71; } LABEL_68: v147 = operator new(0x8A8u); v36 = FMODAudioEngine::FMODAudioEngine((__int64)v147); v37 = *(void (__fastcall **)(__int64))(*(_QWORD *)v36 + 72LL); qword_14090BF60 = v36; v37(v36); v30 = qword_14090BF60; goto LABEL_69; } if ( v27 == 16 || v28 == 16 ) { v145 = &v121; *((_QWORD *)&v121 + 1) = 26471; v122 = 10; v123 = 15; *(_QWORD *)&v121 = 0x6F2E3130646C6F67LL; v35 = qword_14090BF60; if ( !qword_14090BF60 ) { v147 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v147); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v35 = qword_14090BF60; } FMODAudioEngine::playEffect_1(v35, (__int64)&v121); v145 = &v117; v118 = 11; v119 = 15; *(_QWORD *)&v117 = 0x2E79654B646C6F67LL; *((_QWORD *)&v117 + 1) = 6776687; v30 = qword_14090BF60; if ( qword_14090BF60 ) goto LABEL_69; goto LABEL_68; } if ( v27 == 9 || v28 == 9 ) { v145 = &v121; *((_QWORD *)&v121 + 1) = 26471; v122 = 10; v123 = 15; *(_QWORD *)&v121 = 0x6F2E3130646C6F67LL; v34 = qword_14090BF60; if ( !qword_14090BF60 ) { v147 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v147); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v34 = qword_14090BF60; } FMODAudioEngine::playEffect_1(v34, (__int64)&v121); v145 = &v117; v118 = 13; v119 = 15; strcpy((char *)&v117, "secretKey.ogg"); HIWORD(v117) = 0; v30 = qword_14090BF60; if ( qword_14090BF60 ) goto LABEL_69; goto LABEL_68; } if ( v27 ) { v145 = &v121; v121 = 0; v122 = 0; v123 = 0; *(_QWORD *)&v121 = sub_14003D460(0x20u); v122 = 18; v123 = 31; strcpy((char *)v121, "magicExplosion.ogg"); v31 = qword_14090BF60; if ( !qword_14090BF60 ) { v147 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v147); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v31 = qword_14090BF60; } FMODAudioEngine::playEffect_1(v31, (__int64)&v121); v145 = &v117; v118 = 13; v119 = 15; strcpy((char *)&v117, "crystal01.ogg"); HIWORD(v117) = 0; v30 = qword_14090BF60; if ( qword_14090BF60 ) goto LABEL_69; goto LABEL_68; } if ( v16 > 0 ) { v145 = &v121; *((_QWORD *)&v121 + 1) = 26471; v122 = 10; v123 = 15; *(_QWORD *)&v121 = 0x6F2E3230646C6F67LL; v30 = qword_14090BF60; if ( !qword_14090BF60 ) { v147 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v147); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v30 = qword_14090BF60; } v32 = &v121; goto LABEL_70; } if ( v11 > 0 ) { v145 = &v121; *((_QWORD *)&v121 + 1) = 26471; v122 = 10; v123 = 15; *(_QWORD *)&v121 = 0x6F2E3130646C6F67LL; v33 = qword_14090BF60; if ( !qword_14090BF60 ) { v147 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v147); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v33 = qword_14090BF60; } FMODAudioEngine::playEffect_1(v33, (__int64)&v121); v145 = &v117; v117 = 0; v118 = 0; v119 = 0; *(_QWORD *)&v117 = sub_14003D460(0x20u); v118 = 18; v119 = 31; strcpy((char *)v117, "magicExplosion.ogg"); v30 = qword_14090BF60; if ( qword_14090BF60 ) goto LABEL_69; goto LABEL_68; } LABEL_71: v38 = *((_DWORD *)a1 + 184); v39 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 86) + 200LL))(*((_QWORD *)a1 + 86)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v139, v39); v41 = CurrencyRewardLayer::create(v11, 0, 0, v16, v27, (int)v146, v130, v124, v40, v29, v38, 1065353216); v132 = v41; if ( v3 > 0 ) { v42 = 0; v120 = 0; if ( cocos2d::CCArray::count(v10) ) { do { v43 = cocos2d::CCArray::objectAtIndex(v10, v42); if ( *((_DWORD *)v43 + 14) == 9 ) { LOWORD(v145) = -20561; v44 = *((_DWORD *)v43 + 16); v45 = *((_DWORD *)v43 + 15); v46 = (char *)operator new(0x278u); v140 = v46; cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v46); *(_QWORD *)v46 = &GJItemIcon::`vftable'; *((_QWORD *)v46 + 40) = &GJItemIcon::`vftable'; *((_QWORD *)v46 + 43) = &GJItemIcon::`vftable'; *((_QWORD *)v46 + 75) = 0; *((_DWORD *)v46 + 152) = 0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v46 + 612)); v46[620] = 0; *((_QWORD *)v46 + 78) = 0; LOWORD(v147) = -1; BYTE2(v147) = -1; v114 = (__int16)v145; v115 = -81; if ( GJItemIcon::init((__int64)v46, v45, v44, (__int64)&v114, (__int64)&v147, 0, v111, 1) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v46); } else { (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v46 + 8LL))(v46, 1); v46 = nullptr; } v47 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 86) + 200LL))(*((_QWORD *)a1 + 86)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v141, v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v142, v48); v41 = v132; CurrencyRewardLayer::createObjectsFull((__int64)v132, 0, 1, (__int64)v46, v49, 0.40000001); v42 = v120; } v120 = ++v42; } while ( v42 < cocos2d::CCArray::count(v10) ); v3 = (int)v127; v16 = v125; v11 = v126; } } (*(void (__fastcall **)(cocos2d::CCNode *, char *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v41, 100); *((_QWORD *)v41 + 51) = (char *)a1 + 664; v51 = cocos2d::CCDirector::sharedDirector(v50); cocos2d::CCDirector::getWinSize(v51, &v128); LOBYTE(v145) = v116 > 0; v53 = v148; if ( v148 > 0 && v116 > 0 && v148 == v116 ) { LOBYTE(v145) = 0; LODWORD(v146) = v124 + (_DWORD)v146; } v54 = (cocos2d::CCArray *)cocos2d::CCArray::create(v52); v132 = (char *)v54; v127 = (cocos2d::CCArray *)cocos2d::CCArray::create(v55); if ( v3 <= 0 ) goto LABEL_91; v56 = 0; v57 = 0; if ( cocos2d::CCArray::count(v10) ) { v58 = v127; do { v59 = cocos2d::CCArray::objectAtIndex(v10, v57); if ( *((_DWORD *)v59 + 14) == 9 ) { cocos2d::CCArray::addObject(v58, v59); v60 = cocos2d::CCInteger::create(0); cocos2d::CCArray::addObject(v54, v60); } ++v57; } while ( v57 < cocos2d::CCArray::count(v10) ); v53 = v148; LABEL_91: v56 = 0; goto LABEL_92; } v53 = v148; LABEL_92: if ( v11 > 0 ) { v61 = cocos2d::CCInteger::create(1); cocos2d::CCArray::addObject(v54, v61); } if ( v16 > 0 ) { v62 = cocos2d::CCInteger::create(3); cocos2d::CCArray::addObject(v54, v62); } if ( v53 > 0 ) { v63 = cocos2d::CCInteger::create(9998); cocos2d::CCArray::addObject(v54, v63); } if ( (_BYTE)v145 ) { v64 = cocos2d::CCInteger::create(9999); cocos2d::CCArray::addObject(v54, v64); } v65 = cocos2d::CCArray::count(v54); v120 = v65; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v131); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v133); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v135); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v138); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v137); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v136); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, v128 * 0.5, (float)(v129 * 0.5) + 68.0); switch ( v65 ) { case 1: cocos2d::CCPoint::operator=(v131, &v112); v148 = 0; v66 = 0; break; case 2: v112 = v112 + -45.0; cocos2d::CCPoint::operator=(v131, &v112); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 90.0, 0.0); cocos2d::CCPoint::operator+(&v112, &v145, v67); cocos2d::CCPoint::operator=(v133, &v145); v148 = 0; v66 = 0; break; case 3: v112 = v112 + -75.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 0.0, -10.0); cocos2d::CCPoint::operator+(&v112, &v145, v68); cocos2d::CCPoint::operator=(v131, &v145); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 75.0, 10.0); cocos2d::CCPoint::operator+(&v112, &v145, v69); cocos2d::CCPoint::operator=(v133, &v145); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 150.0, -10.0); cocos2d::CCPoint::operator+(&v112, &v145, v70); cocos2d::CCPoint::operator=(v135, &v145); v148 = 0; v66 = 0; break; default: v113 = v113 + -5.0; v112 = v112 + -109.5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 0.0, -15.0); cocos2d::CCPoint::operator+(&v112, &v145, v71); cocos2d::CCPoint::operator=(v131, &v145); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 73.0, 15.0); cocos2d::CCPoint::operator+(&v112, &v145, v72); cocos2d::CCPoint::operator=(v133, &v145); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 146.0, 15.0); cocos2d::CCPoint::operator+(&v112, &v145, v73); cocos2d::CCPoint::operator=(v135, &v145); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 219.0, -15.0); cocos2d::CCPoint::operator+(&v112, &v145, v74); cocos2d::CCPoint::operator=(v138, &v145); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 219.0, -70.0); cocos2d::CCPoint::operator+(&v112, &v145, v75); cocos2d::CCPoint::operator=(v137, &v145); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v147, 0.0, -70.0); cocos2d::CCPoint::operator+(&v112, &v145, v76); cocos2d::CCPoint::operator=(v136, &v145); v148 = 0; v66 = 0; if ( v65 <= 0 ) goto LABEL_135; break; } do { v77 = *((_DWORD *)cocos2d::CCArray::objectAtIndex(v54, v66) + 14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116); if ( v66 ) { switch ( v66 ) { case 1: v78 = v133; break; case 2: v78 = v135; break; case 3: v78 = v138; break; case 4: v78 = v137; break; default: v78 = v136; break; } } else { v78 = v131; } cocos2d::CCPoint::operator=(&v116, v78); v79 = (float)((float)v66 * 0.2) + 0.5; switch ( v77 ) { case 1: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v142, (const struct cocos2d::CCPoint *)&v116); RewardUnlockLayer::playLabelEffect((_DWORD)a1, v11, 1, 0, v80, LODWORD(v79)); break; case 3: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v141, (const struct cocos2d::CCPoint *)&v116); RewardUnlockLayer::playLabelEffect((_DWORD)a1, v16, 3, 0, v81, LODWORD(v79)); break; case 9998: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v140, (const struct cocos2d::CCPoint *)&v116); RewardUnlockLayer::playLabelEffect((_DWORD)a1, (_DWORD)v146, v134, 0, v82, LODWORD(v79)); break; case 9999: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v139, (const struct cocos2d::CCPoint *)&v116); RewardUnlockLayer::playLabelEffect((_DWORD)a1, v124, v130, 0, v83, LODWORD(v79)); break; case 0: v84 = cocos2d::CCArray::objectAtIndex(v127, v56); LOWORD(v145) = -20561; v85 = *((_DWORD *)v84 + 16); v86 = *((_DWORD *)v84 + 15); v87 = (char *)operator new(0x278u); v143 = v87; cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v87); *(_QWORD *)v87 = &GJItemIcon::`vftable'; *((_QWORD *)v87 + 40) = &GJItemIcon::`vftable'; *((_QWORD *)v87 + 43) = &GJItemIcon::`vftable'; *((_QWORD *)v87 + 75) = 0; *((_DWORD *)v87 + 152) = 0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v87 + 612)); v87[620] = 0; *((_QWORD *)v87 + 78) = 0; LOWORD(v147) = -1; BYTE2(v147) = -1; v114 = (__int16)v145; v115 = -81; if ( GJItemIcon::init((__int64)v87, v86, v85, (__int64)&v114, (__int64)&v147, 0, v111, 1) ) { cocos2d::CCObject::autorelease((cocos2d::CCObject *)v87); } else { (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v87 + 8LL))(v87, 1); LODWORD(v87) = 0; } if ( v120 <= 1 ) v79 = 2.2; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, (const struct cocos2d::CCPoint *)&v116); RewardUnlockLayer::playLabelEffect((_DWORD)a1, 1, 0, (_DWORD)v87, v88, LODWORD(v79)); v56 = ++v148; v54 = (cocos2d::CCArray *)v132; v16 = v125; v11 = v126; break; } ++v66; } while ( v66 < v120 ); LABEL_135: if ( *(int *)(*((_QWORD *)a1 + 88) + 64LL) > 5 ) { v89 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)a1 + 73) + 200LL))(*((_QWORD *)a1 + 73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v146, v89); v90 = *(unsigned int *)(*((_QWORD *)a1 + 88) + 64LL); v91 = (float)((float)*(int *)(*((_QWORD *)a1 + 88) + 64LL) * 0.1) + 3.0; v93 = (cocos2d::CCArray *)cocos2d::CCArray::create(v92); if ( (int)v90 > 0 ) { do { v94 = (float)rand(); v95 = rand(); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v147, (float)((float)((float)((float)v95 / 32767.0) + (float)((float)v95 / 32767.0)) - 1.0) * v91, (float)((float)((float)(v94 / 32767.0) + (float)(v94 / 32767.0)) - 1.0) * v91); cocos2d::CCPoint::operator+(&v146, &v145, v96); v97 = cocos2d::CCMoveTo::create(0.0, (const struct cocos2d::CCPoint *)&v145); cocos2d::CCArray::addObject(v93, v97); v98 = cocos2d::CCDelayTime::create(0.029999999); cocos2d::CCArray::addObject(v93, v98); --v90; } while ( v90 ); } v99 = cocos2d::CCMoveTo::create(0.0, (const struct cocos2d::CCPoint *)&v146); cocos2d::CCArray::addObject(v93, v99); v100 = cocos2d::CCSequence::create(v93); cocos2d::CCNode::runAction(*((cocos2d::CCNode **)a1 + 73), v100); if ( *(_DWORD *)(*((_QWORD *)a1 + 88) + 64LL) == 8 ) { v101 = v129 + 5.0; v102 = rand(); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v147, (float)((float)((float)((float)((float)v102 / 32767.0) + (float)((float)v102 / 32767.0)) - 1.0) * 50.0) + (float)(v128 * 0.5), v101); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v148, v128 * 0.5, v129 * 0.5); cocos2d::CCPoint::operator-(&v148, &v132, &v147); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v144, (const struct cocos2d::CCPoint *)&unk_14090B588); v104 = v103; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v143, (const struct cocos2d::CCPoint *)&v132); v106 = cocos2d::CCLightning::lightningWithStrikePoint(v105, v104); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v106 + 184LL))(v106, &v147); LOWORD(v145) = 255; BYTE2(v145) = -1; (**((void (__fastcall ***)(__int64, __int128 **))v106 + 40))((__int64)v106 + 320, &v145); *((_DWORD *)v106 + 92) = 1084227584; *((_WORD *)v106 + 186) = 257; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**((_QWORD **)a1 + 73) + 456LL))( *((_QWORD *)a1 + 73), v106, 3); } } v107 = cocos2d::CCCallFunc::create(a1, RewardUnlockLayer::showCloseButton); v108 = cocos2d::CCDelayTime::create(1.5); v109 = cocos2d::CCSequence::create(v108, v107, 0); return cocos2d::CCNode::runAction(a1, v109); }
GD Web Decomp Icon

GD Web Decomp

Raw Source