// // EndLevelLayer::playEndEffect from 0x140207e00 to 0x1402080b4 (692 bytes) // // 4 xrefs: // > EndLevelLayer::starEnterFinished @ 0x140206f12 // > EndLevelLayer::currencyEnterFinished @ 0x140207931 // > EndLevelLayer::diamondEnterFinished @ 0x140207de1 // > @ 0x14091b2cc // // 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:28:15 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall EndLevelLayer::playEndEffect(__int64 a1) { int v2; // ecx int v3; // ecx int *v4; // rsi int v5; // ecx char v6; // bl const struct cocos2d::CCPoint *v7; // rax char *v8; // rax __int128 v9; // [rsp+60h] [rbp-9h] BYREF __int64 v10; // [rsp+70h] [rbp+7h] __int64 v11; // [rsp+78h] [rbp+Fh] _QWORD v12[8]; // [rsp+80h] [rbp+17h] BYREF char v13; // [rsp+D0h] [rbp+67h] BYREF __int128 *v14; // [rsp+D8h] [rbp+6Fh] BYREF void *v15; // [rsp+E0h] [rbp+77h] if ( !*(_BYTE *)(a1 + 621) ) { *(_BYTE *)(a1 + 621) = 1; v14 = (__int128 *)v12; v12[1] = 26471; v12[2] = 10; v12[3] = 15; v12[0] = 0x6F2E3230646C6F67LL; v2 = qword_14090BF60; if ( !qword_14090BF60 ) { v15 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v2 = qword_14090BF60; } FMODAudioEngine::playEffect_1(v2, (__int64)v12); if ( *(_BYTE *)(a1 + 680) ) { v14 = &v9; v10 = 13; v11 = 15; strcpy((char *)&v9, "secretKey.ogg"); HIWORD(v9) = 0; v3 = qword_14090BF60; if ( !qword_14090BF60 ) { v15 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v3 = qword_14090BF60; } FMODAudioEngine::playEffect_1(v3, (__int64)&v9); v4 = (int *)(a1 + 664); } else { v4 = (int *)(a1 + 664); if ( *(int *)(a1 + 664) > 0 ) { v14 = &v9; v9 = 0; v10 = 0; v11 = 0; *(_QWORD *)&v9 = sub_14003D460(0x20u); v10 = 18; v11 = 31; strcpy((char *)v9, "magicExplosion.ogg"); v5 = qword_14090BF60; if ( !qword_14090BF60 ) { v15 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v5 = qword_14090BF60; } FMODAudioEngine::playEffect_1(v5, (__int64)&v9); } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, (const struct cocos2d::CCPoint *)(a1 + 648)); if ( *v4 <= 0 ) cocos2d::CCPoint::operator=(&v13, a1 + 640); v6 = *(_BYTE *)(a1 + 680); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v14, (const struct cocos2d::CCPoint *)&v13); v8 = CurrencyRewardLayer::create( *v4, *(_DWORD *)(a1 + 668), *(_DWORD *)(a1 + 672), *(_DWORD *)(a1 + 676), v6 != 0 ? 9 : 0, v6 != 0, 0, 0, v7, 0, 0, 1065353216); (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v8, 100); } }