// // PlayerObject::toggleGhostEffect from 0x1404fd180 to 0x1404fd44f (719 bytes) // // 13 xrefs: // > PlayerObject::playCompleteEffect @ 0x1404e24e5 // > PlayerObject::resetObject @ 0x1404f56a1 // > PlayerObject::playerDestroyed @ 0x1404f608c // > PlayerObject::loadFromCheckpoint @ 0x14050100f // > PlayLayer::playEndAnimationToPos @ 0x14050a581 // > PlayLayer::playPlatformerEndAnimationToPos @ 0x14050ae73 // > PlayLayer::removeAllObjects @ 0x14051b3eb // > PlayLayer::removeAllObjects @ 0x14051b47c // > EffectGameObject::triggerObject @ 0x140647ead // > EffectGameObject::triggerObject @ 0x140647ec8 // > EffectGameObject::triggerObject @ 0x140647f2f // > EffectGameObject::triggerObject @ 0x140647f4a // > @ 0x14092a4b8 // // 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:33:23 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall PlayerObject::toggleGhostEffect(__int64 a1, int a2) { cocos2d::CCNode *v3; // rdi void (__fastcall ***v4)(_QWORD, cocos2d::CCNode *); // rcx __int64 v5; // rax char *v6; // rax __int64 v7; // rcx __int64 v8; // rcx __int64 v9; // rdx char *v10; // rax __int64 v11; // rcx __int64 v12; // rcx __int64 v13; // rax void (__fastcall *v14)(__int64); // rdx void *v15; // [rsp+30h] [rbp+8h] if ( *(_DWORD *)(a1 + 1844) != a2 ) { *(_DWORD *)(a1 + 1844) = a2; v3 = *(cocos2d::CCNode **)(a1 + 1848); if ( v3 ) { v4 = *((void (__fastcall ****)(_QWORD, cocos2d::CCNode *))v3 + 48); if ( v4 ) (**v4)(v4, v3); cocos2d::CCNode::unscheduleAllSelectors(v3); cocos2d::CCNode::stopAllActions(v3); (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v3 + 528LL))(v3); *(_QWORD *)(a1 + 1848) = 0; } if ( *(_DWORD *)(a1 + 1844) == 1 ) { v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a1 + 1856) + 320LL) + 8LL))(*(_QWORD *)(a1 + 1856) + 320LL); if ( *(_WORD *)v5 || *(_BYTE *)(v5 + 2) ) { v10 = GhostTrailEffect::create(); *(_QWORD *)(a1 + 1848) = v10; *((_QWORD *)v10 + 45) = a1; *(_QWORD *)(*(_QWORD *)(a1 + 1848) + 340LL) = 0x100000302LL; *(_DWORD *)(*(_QWORD *)(a1 + 1848) + 336LL) = *(_DWORD *)(a1 + 2552); *(_DWORD *)(*(_QWORD *)(a1 + 1848) + 376LL) = 1128792064; v11 = *(_QWORD *)(a1 + 1848); *(_WORD *)(v11 + 392) = *(_WORD *)(a1 + 2706); *(_BYTE *)(v11 + 394) = *(_BYTE *)(a1 + 2708); v12 = *(_QWORD *)(a1 + 1848); *(_QWORD *)(v12 + 352) = *(_QWORD *)(a1 + 1856); *(_DWORD *)(v12 + 320) = 1028443341; *(_DWORD *)(v12 + 324) = 1053609165; *(_DWORD *)(v12 + 328) = 1058642330; *(_BYTE *)(v12 + 332) = 0; cocos2d::CCNode::schedule(v12, GhostTrailEffect::trailSnapshot); v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) { LABEL_12: v15 = operator new(0x6E8u); v13 = GameManager::GameManager((__int64)v15); v14 = *(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 72LL); qword_14090BFD0 = v13; v14(v13); v9 = qword_14090BFD0; } } else { v6 = GhostTrailEffect::create(); *(_QWORD *)(a1 + 1848) = v6; *((_QWORD *)v6 + 45) = a1; *(_DWORD *)(*(_QWORD *)(a1 + 1848) + 336LL) = *(_DWORD *)(a1 + 2552); *(_DWORD *)(*(_QWORD *)(a1 + 1848) + 376LL) = 1128792064; v7 = *(_QWORD *)(a1 + 1848); *(_WORD *)(v7 + 392) = 0; *(_BYTE *)(v7 + 394) = 0; v8 = *(_QWORD *)(a1 + 1848); *(_QWORD *)(v8 + 352) = *(_QWORD *)(a1 + 1856); *(_DWORD *)(v8 + 320) = 1028443341; *(_DWORD *)(v8 + 324) = 1053609165; *(_DWORD *)(v8 + 328) = 1058642330; *(_BYTE *)(v8 + 332) = 0; cocos2d::CCNode::schedule(v8, GhostTrailEffect::trailSnapshot); v9 = qword_14090BFD0; if ( !qword_14090BFD0 ) goto LABEL_12; } *(_QWORD *)(*(_QWORD *)(a1 + 1848) + 368LL) = *(_QWORD *)(*(_QWORD *)(v9 + 560) + 4296LL); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(v9 + 560) + 4296LL) + 464LL))( *(_QWORD *)(*(_QWORD *)(v9 + 560) + 4296LL), *(_QWORD *)(a1 + 1848)); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source