// // SecretLayer5::showSuccessAnimation from 0x1403f5dd0 to 0x1403f676d (2461 bytes) // // 2 xrefs: // > SecretLayer5::handleSecretResponse @ 0x1403f57f3 // > @ 0x1406d8258 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=5 void SecretLayer5::showSuccessAnimation(SecretLayer5 *a1) { float v1; // xmm3_4 cocos2d::CCDirector *v3; // rax struct cocos2d::CCFadeTo *v4; // rax struct cocos2d::CCEaseInOut *v5; // rbx struct cocos2d::CCDelayTime *v6; // rax struct cocos2d::CCSequence *v7; // rax cocos2d::ccColor3B *v8; // r8 struct cocos2d::CCFadeTo *v9; // rax struct cocos2d::CCEaseInOut *v10; // rdi struct cocos2d::CCDelayTime *v11; // rbx struct cocos2d::CCFadeTo *v12; // rax struct cocos2d::CCEaseInOut *v13; // rax struct cocos2d::CCSequence *v14; // rax cocos2d::ccColor3B *v15; // r8 const struct cocos2d::CCPoint *v16; // rax const struct cocos2d::CCPoint *v17; // rax float v18; // r14d const struct cocos2d::CCPoint *v19; // rax struct cocos2d::CCMoveBy *v20; // rsi const struct cocos2d::CCPoint *v21; // rax struct cocos2d::CCMoveBy *v22; // rdi const struct cocos2d::CCPoint *v23; // rax struct cocos2d::CCMoveBy *v24; // rbx const struct cocos2d::CCPoint *v25; // rax struct cocos2d::CCMoveBy *v26; // rax unsigned int v27; // r12d struct cocos2d::CCSequence *v28; // rax cocos2d::ccColor3B *v29; // r8 struct cocos2d::CCScaleTo *v30; // rax struct cocos2d::CCEaseInOut *v31; // rsi struct cocos2d::CCDelayTime *v32; // rdi struct cocos2d::CCScaleTo *v33; // rax struct cocos2d::CCEaseOut *v34; // rbx struct cocos2d::CCDelayTime *v35; // rax struct cocos2d::CCSequence *v36; // rax cocos2d::ccColor3B *v37; // r8 double v38; // xmm0_8 cocos2d::CCPoint v39; // rax cocos2d::CCPoint v40; // rbx cocos2d::CCPoint v41; // rax cocos2d::CCLightning *v42; // rbx struct cocos2d::CCLayerColor *v43; // rsi __int64 v44; // rdi struct cocos2d::CCBlink *v45; // rbx struct cocos2d::CCDelayTime *v46; // rax struct cocos2d::CCSequence *v47; // rax cocos2d::ccColor3B *v48; // r8 struct cocos2d::CCTintTo *v49; // rax struct cocos2d::CCEaseInOut *v50; // rdi struct cocos2d::CCDelayTime *v51; // rbx struct cocos2d::CCTintTo *v52; // rax struct cocos2d::CCEaseInOut *v53; // rax struct cocos2d::CCSequence *v54; // rax cocos2d::ccColor3B *v55; // r8 MusicDownloadManager *v56; // rax _QWORD *v57; // rbx __int64 v58; // r8 __int64 v59; // r9 int v60; // ecx MusicDownloadManager *v61; // rax _QWORD *v62; // rdi int v63; // ebx __int64 v64; // r8 __int64 v65; // r9 MusicDownloadManager *v66; // rax _QWORD *v67; // rdi int v68; // ebx __int64 v69; // r8 __int64 v70; // r9 MusicDownloadManager *v71; // rax _QWORD *v72; // rdi int v73; // ebx __int64 v74; // r8 __int64 v75; // r9 struct cocos2d::CCTintTo *v76; // rax struct cocos2d::CCEaseInOut *v77; // rbx struct cocos2d::CCDelayTime *v78; // rax struct cocos2d::CCSequence *v79; // rax cocos2d::ccColor3B *v80; // r8 CCLightFlash *v81; // r14 __int64 v82; // rax __int16 v83; // dx unsigned __int8 v84; // r9 __int16 *v85; // rsi __int16 v86; // di struct cocos2d::CCTintTo *v87; // rax struct cocos2d::CCEaseInOut *v88; // rbx struct cocos2d::CCTintTo *v89; // rax struct cocos2d::CCEaseInOut *v90; // rax struct cocos2d::CCSequence *v91; // rax cocos2d::ccColor3B *v92; // r8 __int64 v93; // rbx struct cocos2d::CCDelayTime *v94; // rax struct cocos2d::CCSequence *v95; // rax cocos2d::ccColor3B *v96; // r8 __int64 v97; // rbx struct cocos2d::CCDelayTime *v98; // rax struct cocos2d::CCSequence *v99; // rax cocos2d::ccColor3B *v100; // r8 float v101; // [rsp+28h] [rbp-E0h] float v102; // [rsp+28h] [rbp-E0h] float v103; // [rsp+28h] [rbp-E0h] float v104; // [rsp+28h] [rbp-E0h] float v105; // [rsp+28h] [rbp-E0h] float v106; // [rsp+28h] [rbp-E0h] float v107; // [rsp+28h] [rbp-E0h] __int16 v108; // [rsp+48h] [rbp-C0h] __int16 v109; // [rsp+4Ch] [rbp-BCh] float v110; // [rsp+50h] [rbp-B8h] cocos2d::CCPoint v111; // [rsp+58h] [rbp-B0h] BYREF _QWORD v112[20]; // [rsp+70h] [rbp-98h] BYREF _QWORD *v113; // [rsp+158h] [rbp+50h] BYREF __int64 v114; // [rsp+160h] [rbp+58h] BYREF __int16 v115; // [rsp+168h] [rbp+60h] __int16 v116; // [rsp+170h] [rbp+68h] BYREF char v117; // [rsp+172h] [rbp+6Ah] a1->m_uiLocked = 1; v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v3); LOWORD(v113) = -81; BYTE2(v113) = -81; a1->m_wraithGraySprite->setColor(&a1->m_wraithGraySprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v113); cocos2d::CCNode::stopAllActions(a1->m_wraithGraySprite); v4 = cocos2d::CCFadeTo::create(1.8, 0); v5 = cocos2d::CCEaseInOut::create(v4, 2.0); v6 = cocos2d::CCDelayTime::create(0.80000001); v7 = cocos2d::CCSequence::create(v6, v5, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_wraithGraySprite, (cocos2d::CCPoint)v7, v8, v1, v101); cocos2d::CCNode::stopAllActions(a1->m_eyesSprite); a1->m_eyesSprite->setOpacity(&a1->m_eyesSprite->cocos2d::CCRGBAProtocol, 0); LOWORD(v113) = -206; BYTE2(v113) = 50; a1->m_eyesSprite->setColor(&a1->m_eyesSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v113); v9 = cocos2d::CCFadeTo::create(2.2, 0); v10 = cocos2d::CCEaseInOut::create(v9, 2.0); v11 = cocos2d::CCDelayTime::create(0.2); v12 = cocos2d::CCFadeTo::create(0.0099999998, 0xFFu); v13 = cocos2d::CCEaseInOut::create(v12, 2.0); v14 = cocos2d::CCSequence::create(v13, v11, v10, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_eyesSprite, (cocos2d::CCPoint)v14, v15, v1, v102); cocos2d::CCPoint::CCPoint(0.0099999998, -2.0); cocos2d::CCMoveBy::create(0.060000002, v16); cocos2d::CCPoint::CCPoint(0.060000002, 2.0); LODWORD(v18) = (unsigned int)cocos2d::CCMoveBy::create(0.060000002, v17); cocos2d::CCPoint::CCPoint(0.060000002, -5.0); v20 = cocos2d::CCMoveBy::create(0.050000001, v19); cocos2d::CCPoint::CCPoint(0.050000001, 5.0); v22 = cocos2d::CCMoveBy::create(0.050000001, v21); cocos2d::CCPoint::CCPoint(0.050000001, -5.0); v24 = cocos2d::CCMoveBy::create(0.0, v23); cocos2d::CCPoint::CCPoint(0.0, 5.0); v26 = cocos2d::CCMoveBy::create(0.0, v25); v27 = 0; v28 = cocos2d::CCSequence::create(v26, v24, v22, v20); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_wraithSprite, (cocos2d::CCPoint)v28, v29, v1, v18); v30 = cocos2d::CCScaleTo::create(1.2, 1.2); v31 = cocos2d::CCEaseInOut::create(v30, 2.0); v32 = cocos2d::CCDelayTime::create(0.15000001); v33 = cocos2d::CCScaleTo::create(0.2, 1.5); v34 = cocos2d::CCEaseOut::create(v33, 1.8); v35 = cocos2d::CCDelayTime::create(0.050000001); v36 = cocos2d::CCSequence::create(v35, v34, v32, v31); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_wraithSprite, (cocos2d::CCPoint)v36, v37, v1, 0.0); cocos2d::CCPoint::CCPoint(0.050000001, v110 * 0.5); v38 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v113); v40 = v39; cocos2d::CCPoint::CCPoint(*(float *)&v38, 0.0); v42 = cocos2d::CCLightning::lightningWithStrikePoint(v41, v40, 0.5); v42->setPosition_0(v42, &v111); v42->setColor(&v42->cocos2d::CCRGBAProtocol, &stru_140529C28); v42->m_lineWidth = 5.0; *(_WORD *)&v42->m_unkBool = 257; v42->m_opacityModify = 1.0; a1->addChild_0(a1, v42, 0); LODWORD(v113) = 845465750; v43 = cocos2d::CCLayerColor::create((const struct cocos2d::_ccColor4B *)&v113); v114 = 0x100000302LL; ((void (__fastcall *)(cocos2d::CCBlendProtocol *, __int64))v43->setBlendFunc)( &v43->cocos2d::CCBlendProtocol, 0x100000302LL); a1->addChild_0(a1, v43, 10); v44 = cocos2d::CCCallFunc::create(v43, sub_14003BE70); v45 = cocos2d::CCBlink::create(0.12, 1u); v46 = cocos2d::CCDelayTime::create(0.079999998); v47 = cocos2d::CCSequence::create(v46, v45, v44, 0); cocos2d::CCNode::runAction((CCLightFlash *)v43, (cocos2d::CCPoint)v47, v48, v1, v103); v49 = cocos2d::CCTintTo::create(0.80000001, 0x1Du, 0xEu, 0x2Fu); v50 = cocos2d::CCEaseInOut::create(v49, 2.0); v51 = cocos2d::CCDelayTime::create(0.1); v52 = cocos2d::CCTintTo::create(0.30000001, 0x1Du, 0x2Au, 0x2Fu); v53 = cocos2d::CCEaseInOut::create(v52, 2.0); v54 = cocos2d::CCSequence::create(v53, v51, v50, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_background, (cocos2d::CCPoint)v54, v55, v1, v104); v113 = v112; v56 = MusicDownloadManager::sharedState(); v57 = MusicDownloadManager::pathForSFX((__int64)v56, v112, 0x4E6u); v60 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v114 = (__int64)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine((FMODAudioEngine *)v114); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v60 = qword_1406C2E88; } FMODAudioEngine::playEffect(v60, (__int64)v57, v58, v59, 1065353216); v113 = v112; v61 = MusicDownloadManager::sharedState(); v62 = MusicDownloadManager::pathForSFX((__int64)v61, v112, 0x1DD4u); v63 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v114 = (__int64)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine((FMODAudioEngine *)v114); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v63 = qword_1406C2E88; } rand(); FMODAudioEngine::playEffect(v63, (__int64)v62, v64, v65, 1061997773); v113 = v112; v66 = MusicDownloadManager::sharedState(); v67 = MusicDownloadManager::pathForSFX((__int64)v66, v112, 0x4FDu); v68 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v114 = (__int64)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine((FMODAudioEngine *)v114); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v68 = qword_1406C2E88; } rand(); FMODAudioEngine::playEffect(v68, (__int64)v67, v69, v70, 1065353216); v113 = v112; v71 = MusicDownloadManager::sharedState(); v72 = MusicDownloadManager::pathForSFX((__int64)v71, v112, 0x51FAu); v73 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v114 = (__int64)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine((FMODAudioEngine *)v114); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v73 = qword_1406C2E88; } rand(); FMODAudioEngine::playEffect(v73, (__int64)v72, v74, v75, 1065353216); qmemcpy(&v113, ",8=", 3); a1->m_lockSprite->setColor(&a1->m_lockSprite->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v113); v76 = cocos2d::CCTintTo::create(2.2, 0x6Eu, 0x47u, 0x99u); v77 = cocos2d::CCEaseInOut::create(v76, 1.8); v78 = cocos2d::CCDelayTime::create(0.60000002); v79 = cocos2d::CCSequence::create(v78, v77, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1->m_lockSprite, (cocos2d::CCPoint)v79, v80, 0.0, v105); if ( cocos2d::CCArray::count(a1->m_torchFires) ) { do { v81 = (CCLightFlash *)cocos2d::CCArray::objectAtIndex(a1->m_torchFires, v27); v82 = (*(__int64 (__fastcall **)(cocos2d::CCArray **))&v81->m_lightStripArray->m_uID)(&v81->m_lightStripArray); v83 = *(_WORD *)v82; v108 = *(_WORD *)v82; v84 = *(_BYTE *)(v82 + 2); if ( (v27 & 1) != 0 ) { v115 = -106; v116 = -106; v117 = 0; v85 = &v116; } else { LOWORD(v113) = -256; LOWORD(v114) = -256; BYTE2(v114) = 0; v85 = (__int16 *)&v114; } v86 = *v85; v109 = *v85; v87 = cocos2d::CCTintTo::create(1.2, v83, HIBYTE(v108), v84); v88 = cocos2d::CCEaseInOut::create(v87, 2.0); v89 = cocos2d::CCTintTo::create(0.2, v86, HIBYTE(v109), *((_BYTE *)v85 + 2)); v90 = cocos2d::CCEaseInOut::create(v89, 2.0); v91 = cocos2d::CCSequence::create(v90, v88, 0); cocos2d::CCNode::runAction(v81, (cocos2d::CCPoint)v91, v92, 0.0, v106); ++v27; } while ( v27 < cocos2d::CCArray::count(a1->m_torchFires) ); } v93 = cocos2d::CCCallFunc::create(a1, SecretLayer5::playWinSFX); v94 = cocos2d::CCDelayTime::create(0.30000001); v95 = cocos2d::CCSequence::create(v94, v93, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v95, v96, 0.0, v106); v97 = cocos2d::CCCallFunc::create(a1, SecretLayer5::claimOnlineReward); v98 = cocos2d::CCDelayTime::create(1.0); v99 = cocos2d::CCSequence::create(v98, v97, 0); cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v99, v100, 0.0, v107); }
GD Web Decomp Icon

GD Web Decomp

Raw Source