// // EffectGameObject::customSetup from 0x1404a87e0 to 0x1404a8ac1 (737 bytes) // // 38 xrefs: // > EnterEffectObject::customSetup @ 0x1404982d9 // > ShaderGameObject::customSetup @ 0x140499b49 // > ItemTriggerGameObject::customSetup @ 0x1404bfcb9 // > @ 0x14060e8b8 // > @ 0x14060f0f0 // > @ 0x14060f798 // > @ 0x140610c68 // > @ 0x1406114c8 // > @ 0x140611c00 // > @ 0x140612a90 // > @ 0x140613138 // > @ 0x1406138a8 // > @ 0x140613f50 // > @ 0x140614738 // > @ 0x140614f70 // > @ 0x1406156b8 // > @ 0x140615d60 // > @ 0x1406164a8 // > @ 0x1406179b8 // > @ 0x140618128 // > @ 0x1406187d0 // > @ 0x140618f18 // > @ 0x1406199b8 // > @ 0x14061a060 // > @ 0x14061a708 // > @ 0x14061ae28 // > @ 0x14061b4d0 // > @ 0x14061bc18 // > @ 0x14061c3b0 // > @ 0x14061ca58 // > @ 0x14061d100 // > @ 0x14061d7a8 // > @ 0x14061de50 // > @ 0x14061e4f8 // > @ 0x14061eba0 // > @ 0x14061f3b0 // > @ 0x14061fb48 // > @ 0x1406dc914 // // 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 EffectGameObject::customSetup(EffectGameObject *a1) { int m_objectID; // edx int v3; // edx int v4; // edx int v5; // edx int v6; // edx int v7; // edx int v8; // edx int v9; // edx int v10; // edx int v11; // edx __int64 v12; // rax _DWORD *v13; // rcx GJSpriteColor *m_baseColor; // rcx int v15; // edx int v16; // edx int v17; // ecx int v18; // ecx int v19; // ecx int v20; // ecx bool v21; // zf int v22; // ecx int v23; // ecx int v24; // ecx int v25; // ecx bool v26; // zf int v27; // ecx int v28; // ecx void *v29; // [rsp+30h] [rbp+8h] BYREF EnhancedGameObject::customSetup(a1); m_objectID = a1->m_objectID; if ( m_objectID > 900 ) { if ( m_objectID > 2066 ) { v15 = m_objectID - 3607; if ( v15 ) { v16 = v15 - 33; if ( v16 ) { if ( v16 == 3 ) *(_WORD *)&a1->m_isTouchTriggered = 1; goto LABEL_46; } *(_WORD *)&a1->m_isTouchTriggered = 1; } a1->m_isMultiTriggered = 1; goto LABEL_46; } if ( m_objectID == 2066 ) { a1->m_gravityValue = 1.0; goto LABEL_46; } v9 = m_objectID - 915; if ( !v9 ) { a1->m_targetColor = 1002; a1->m_usesBlending = 1; goto LABEL_46; } v10 = v9 - 414; if ( !v10 ) { a1->m_objectType = Collectible|0x1; a1->m_defaultZOrder = 9; if ( !a1->m_editorEnabled ) { v12 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v29 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v29); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v12 = qword_1406C2ED8; } v13 = *(_DWORD **)(*(_QWORD *)(v12 + 520) + 2168LL); if ( v13[231] == v13[232] && v13[277] != 2 ) { LOWORD(v29) = -20481; BYTE2(v29) = 75; a1->setObjectColor(a1, (const cocos2d::ccColor3B *)&v29); } } a1->m_isObjectBlack = 1; LABEL_35: m_baseColor = a1->m_baseColor; if ( m_baseColor ) *(_QWORD *)&m_baseColor->m_colorID = 0; a1->m_hasCustomAnimation = 1; goto LABEL_46; } v11 = v10 - 5; if ( !v11 ) goto LABEL_27; if ( v11 == 578 ) a1->m_duration = 50.0; } else { if ( m_objectID == 900 ) { a1->m_targetColor = 1009; goto LABEL_13; } if ( m_objectID <= 200 ) { if ( m_objectID != 200 ) { v3 = m_objectID - 29; if ( v3 ) { v4 = v3 - 1; if ( v4 ) { v5 = v4 - 75; if ( v5 ) { if ( v5 != 37 ) goto LABEL_46; a1->m_objectType = SecretCoin; a1->m_defaultZOrder = 9; goto LABEL_35; } a1->m_targetColor = 1004; } else { a1->m_targetColor = 1001; } } else { a1->m_targetColor = 1000; } LABEL_13: a1->m_usesBlending = 0; a1->m_opacity = 1.0; goto LABEL_46; } LABEL_27: a1->m_isTouchTriggered = 1; goto LABEL_46; } v6 = m_objectID - 201; if ( !v6 ) goto LABEL_27; v7 = v6 - 1; if ( !v7 ) goto LABEL_27; v8 = v7 - 1; if ( !v8 ) goto LABEL_27; if ( v8 == 541 ) a1->m_targetColor = 1003; } LABEL_46: v17 = a1->m_objectID; if ( v17 > 1912 ) { if ( v17 > 3609 ) { v28 = v17 - 3620; if ( !v28 ) goto LABEL_68; v27 = v28 - 20; v26 = v27 == 0; } else { if ( v17 == 3609 ) goto LABEL_68; v24 = v17 - 2063; if ( !v24 ) goto LABEL_68; v25 = v24 - 5; if ( !v25 ) goto LABEL_68; v27 = v25 - 1536; v26 = v27 == 0; } if ( v26 ) goto LABEL_68; v21 = v27 == 3; } else { if ( v17 == 1912 ) goto LABEL_68; if ( v17 > 1595 ) { v22 = v17 - 1611; if ( !v22 ) goto LABEL_68; v23 = v22 - 200; if ( !v23 ) goto LABEL_68; v21 = v23 == 4; } else { if ( v17 == 1595 ) goto LABEL_68; v18 = v17 - 142; if ( !v18 ) goto LABEL_68; v19 = v18 - 1126; if ( !v19 ) goto LABEL_68; v20 = v19 - 61; if ( !v20 ) goto LABEL_68; v21 = v20 == 265; } } if ( !v21 ) { a1->m_canSpawnTriggers = a1->m_objectType == Collectible; return; } LABEL_68: a1->m_canSpawnTriggers = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source