// // SecretLayer3::dialogClosed from 0x1403ef190 to 0x1403ef618 (1160 bytes) // // 2 xrefs: // > @ 0x1405d2e90 // > @ 0x1406d80f0 // // 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=2 void SecretLayer3::dialogClosed(SecretLayer3 *a1, DialogLayer *a2) { float v2; // xmm3_4 int v5; // r14d char v6; // al struct cocos2d::CCLayerColor *v7; // rsi struct cocos2d::CCFadeTo *v8; // rdi __int64 v9; // rax struct cocos2d::CCSequence *v10; // rax cocos2d::ccColor3B *v11; // r8 __int64 v12; // rdx __int64 v13; // rcx __int64 v14; // rdx __int64 v15; // rax float v16; // xmm0_4 GameManager *v17; // rcx __int64 v18; // rdx struct cocos2d::CCFadeIn *v19; // rax struct cocos2d::CCEaseInOut *v20; // rax cocos2d::ccColor3B *v21; // r8 unsigned int v22; // r14d struct cocos2d::CCObject *v23; // rbx __int64 v24; // rdx __int64 v25; // rdx CCLightFlash *v26; // rsi struct cocos2d::CCDelayTime *v27; // rdi struct cocos2d::CCScaleTo *v28; // rax struct cocos2d::CCEaseBounceOut *v29; // rbx struct cocos2d::CCFadeIn *v30; // rax struct cocos2d::CCSpawn *v31; // rbx struct cocos2d::CCSequence *v32; // rax cocos2d::ccColor3B *v33; // r8 __int64 v34; // rbx struct cocos2d::CCDelayTime *v35; // rax struct cocos2d::CCSequence *v36; // rax cocos2d::ccColor3B *v37; // r8 GameManager *v38; // rcx float v39; // [rsp+20h] [rbp-78h] int v40; // [rsp+A8h] [rbp+10h] void *v41; // [rsp+A8h] [rbp+10h] void *v42; // [rsp+A8h] [rbp+10h] __int64 v43; // [rsp+B0h] [rbp+18h] BYREF if ( a2->getTag(a2) == 4 ) { v5 = 0; LOWORD(v40) = -1; BYTE2(v40) = -1; v43 = 0x100000302LL; do { v6 = 80; if ( !v5 ) v6 = -1; HIBYTE(v40) = v6; LODWORD(v43) = v40; v7 = cocos2d::CCLayerColor::create((const struct cocos2d::_ccColor4B *)&v43); (*(void (__fastcall **)(float *, struct cocos2d::CCLayerColor *, __int64))(*(_QWORD *)&a1[-1].m_fRotationX + 440LL))( &a1[-1].m_fRotationX, v7, 100); ((void (__fastcall *)(cocos2d::CCBlendProtocol *, __int64))v7->setBlendFunc)( &v7->cocos2d::CCBlendProtocol, 0x100000302LL); v8 = cocos2d::CCFadeTo::create(2.0, 0); v9 = cocos2d::CCCallFunc::create(v7, sub_14003BE70); v10 = cocos2d::CCSequence::create(v8, v9, 0); cocos2d::CCNode::runAction((CCLightFlash *)v7, (cocos2d::CCPoint)v10, v11, v2, v39); ++v5; } while ( v5 < 2 ); cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)&a1->m_uIndexInArray); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_uIndexInArray + 320LL))( *(_QWORD *)&a1->m_uIndexInArray, 0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_unknown2 + 320LL))(*(_QWORD *)&a1->m_unknown2, 0); v13 = *(_QWORD *)&a1->m_uOrderOfArrival; if ( v13 ) { LOBYTE(v12) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 320LL))(v13, v12); LOBYTE(v14) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_uOrderOfArrival + 920LL))( *(_QWORD *)&a1->m_uOrderOfArrival, v14); } v15 = cocos2d::CCCallFunc::create(&a1[-1].m_fRotationX, SecretLayer3::revealStep5); v16 = 3.0; goto LABEL_19; } if ( a2->getTag(a2) == 5 ) { v17 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v41 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v41); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v17 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v17, "13", 1); } else { if ( a2->getTag(a2) == 3 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)&a1->m_unknown2 + 320LL) + 40LL))( *(_QWORD *)&a1->m_unknown2 + 320LL, 0); LOBYTE(v18) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_unknown2 + 320LL))(*(_QWORD *)&a1->m_unknown2, v18); v19 = cocos2d::CCFadeIn::create(3.0); v20 = cocos2d::CCEaseInOut::create(v19, 1.5); cocos2d::CCNode::runAction(*(CCLightFlash **)&a1->m_unknown2, (cocos2d::CCPoint)v20, v21, v2, v39); v15 = cocos2d::CCCallFunc::create(&a1[-1].m_fRotationX, SecretLayer3::revealStep4); v16 = 4.0; LABEL_19: v34 = v15; v35 = cocos2d::CCDelayTime::create(v16); v36 = cocos2d::CCSequence::create(v35, v34, 0); cocos2d::CCNode::runAction((CCLightFlash *)&a1[-1].m_fRotationX, (cocos2d::CCPoint)v36, v37, v2, v39); return; } if ( a2->getTag(a2) == 1 ) { v22 = 0; while ( v22 < cocos2d::CCArray::count(*(cocos2d::CCArray **)&a1->m_uAutoReleaseCount) ) { v23 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)&a1->m_uAutoReleaseCount, v22); LOBYTE(v24) = 1; ((void (__fastcall *)(struct cocos2d::CCObject *, __int64))v23->__vftable[12].getTag)(v23, v24); LOBYTE(v25) = 1; ((void (__fastcall *)(struct cocos2d::CCObject *, __int64))v23->__vftable[4].update)(v23, v25); v26 = (CCLightFlash *)((__int64 (__fastcall *)(struct cocos2d::CCObject *))v23->__vftable[13].copyWithZone)(v23); v27 = cocos2d::CCDelayTime::create((float)(int)++v22 * 0.1); v28 = cocos2d::CCScaleTo::create(0.5, 1.0); v29 = cocos2d::CCEaseBounceOut::create(v28); v30 = cocos2d::CCFadeIn::create(0.15000001); v31 = cocos2d::CCSpawn::createWithTwoActions(v29, v30); ((void (__fastcall *)(CCLightFlash *))v26->setScale_0)(v26); (*(void (__fastcall **)(cocos2d::CCArray **, _QWORD))&v26->m_lightStripArray->m_unknown2)( &v26->m_lightStripArray, 0); v32 = cocos2d::CCSequence::create(v27, v31, 0); cocos2d::CCNode::runAction(v26, (cocos2d::CCPoint)v32, v33, v2, v39); } v15 = cocos2d::CCCallFunc::create(&a1[-1].m_fRotationX, SecretLayer3::firstInteractionStep4); v16 = 2.0; goto LABEL_19; } if ( a2->getTag(a2) == 2 ) { v38 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v42 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v42); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v38 = (GameManager *)qword_1406C2ED8; } GameManager::setUGV(v38, "12", 1); } else if ( a2->getTag(a2) != 6 ) { return; } } LOBYTE(a1->m_nTag) = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source