// // GJBaseGameLayer::activateTimerTrigger from 0x140234e60 to 0x140235233 (979 bytes) // // 2 xrefs: // > TimerTriggerGameObject::triggerObject @ 0x1404bf26d // > @ 0x1406ce034 // // 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=1 void GJBaseGameLayer::activateTimerTrigger(GJBaseGameLayer *a1, TimerTriggerGameObject *a2, std::vector *const a3) { int m_controlType; // eax unsigned int v5; // r8d GJEffectManager *m_effectManager; // r9 std::_Vector_val>>>>>::pointer Myfirst; // rcx __int64 v8; // rdx unsigned int v9; // r8d GJEffectManager *v10; // r9 std::_Vector_val>>>>>::pointer v11; // rcx __int64 v12; // rdx int m_controlID; // esi int m_uniqueID; // ebp int m_targetGroupID; // r14d bool m_multiActivate; // r15 double m_targetTime; // xmm6_8 __int64 v18; // rax __int64 v19; // rbx __int64 v20; // r10 int v21; // eax int v22; // [rsp+70h] [rbp-78h] BYREF int v23; // [rsp+78h] [rbp-70h] BYREF int v24; // [rsp+80h] [rbp-68h] BYREF _QWORD v25[2]; // [rsp+88h] [rbp-60h] BYREF _BYTE v26[24]; // [rsp+98h] [rbp-50h] BYREF __int64 v27; // [rsp+F8h] [rbp+10h] BYREF int m_itemID; // [rsp+108h] [rbp+20h] BYREF if ( a2->m_objectID == 3614 ) { GJEffectManager::startTimer( a1->m_effectManager, a2->m_itemID, a2->m_startTime, a2->m_targetTime, a2->m_stopTimeEnabled, !a2->m_startPaused, a2->m_dontOverride, a2->m_timeMod, a2->m_ignoreTimeWarp, a2->m_targetGroupID, a3, a2->m_uniqueID, a2->m_controlID); return; } if ( a2->m_objectID == 3615 ) { m_controlID = a2->m_controlID; v22 = m_controlID; m_uniqueID = a2->m_uniqueID; v23 = m_uniqueID; m_targetGroupID = a2->m_targetGroupID; v24 = m_targetGroupID; m_multiActivate = a2->m_multiActivate; LOBYTE(v27) = m_multiActivate; m_targetTime = a2->m_targetTime; *(double *)v25 = m_targetTime; m_itemID = a2->m_itemID; v18 = sub_140267110(&a1->m_effectManager->m_unkMap3f8, v26, &m_itemID); v19 = *(_QWORD *)v18; v20 = *(_QWORD *)(*(_QWORD *)v18 + 32LL); if ( v20 == *(_QWORD *)(*(_QWORD *)v18 + 40LL) ) { sub_14026CCB0( v19 + 24, v20, (unsigned int)&v24, (unsigned int)v25, (__int64)&v27, (__int64)&m_itemID, (__int64)a3, (__int64)&v23, (__int64)&v22); } else { v27 = *(_QWORD *)(*(_QWORD *)v18 + 32LL); v21 = m_itemID; *(_BYTE *)v20 = 0; *(_DWORD *)(v20 + 4) = 0; *(_QWORD *)(v20 + 32) = 0; *(_QWORD *)(v20 + 40) = 0; *(_QWORD *)(v20 + 48) = 0; *(_DWORD *)(v20 + 12) = m_targetGroupID; *(float *)(v20 + 8) = m_targetTime; *(_BYTE *)(v20 + 28) = m_multiActivate; *(_DWORD *)(v20 + 24) = v21; *(_DWORD *)(v20 + 16) = m_uniqueID; *(_DWORD *)(v20 + 20) = m_controlID; sub_1400846D0((void **)(v20 + 32), (char **)a3); *(_QWORD *)(v19 + 32) += 56LL; } return; } if ( a2->m_objectID != 3617 ) return; m_controlType = a2->m_controlType; if ( !m_controlType ) { v5 = a2->m_itemID; LODWORD(v27) = v5; m_effectManager = a1->m_effectManager; Myfirst = m_effectManager->m_timerItemMap._Vec._Mypair._Myval2._Myfirst; v8 = *((_QWORD *)Myfirst + 2 * ((0x100000001B3LL * (((unsigned __int64)v5 >> 24) ^ (0x100000001B3LL * (BYTE2(v5) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v5 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v5))))))) & m_effectManager->m_timerItemMap._Mask) + 1); if ( (std::_List_val>>::_Nodeptr)v8 != m_effectManager->m_timerItemMap._List._Mypair._Myval2._Myhead ) { if ( v5 == *(_DWORD *)(v8 + 16) ) goto LABEL_11; while ( v8 != *((_QWORD *)Myfirst + 2 * ((0x100000001B3LL * (((unsigned __int64)v5 >> 24) ^ (0x100000001B3LL * (BYTE2(v5) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v5 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v5))))))) & m_effectManager->m_timerItemMap._Mask)) ) { v8 = *(_QWORD *)(v8 + 8); if ( v5 == *(_DWORD *)(v8 + 16) ) goto LABEL_11; } } v8 = 0; LABEL_11: if ( v8 ) *(_BYTE *)(*(_QWORD *)sub_140267360(&m_effectManager->m_timerItemMap, v25, &v27) + 40LL) = 1; return; } if ( m_controlType != 1 ) return; v9 = a2->m_itemID; LODWORD(v27) = v9; v10 = a1->m_effectManager; v11 = v10->m_timerItemMap._Vec._Mypair._Myval2._Myfirst; v12 = *((_QWORD *)v11 + 2 * ((0x100000001B3LL * (((unsigned __int64)v9 >> 24) ^ (0x100000001B3LL * (BYTE2(v9) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v9 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v9))))))) & v10->m_timerItemMap._Mask) + 1); if ( (std::_List_val>>::_Nodeptr)v12 != v10->m_timerItemMap._List._Mypair._Myval2._Myhead ) { if ( v9 == *(_DWORD *)(v12 + 16) ) goto LABEL_20; while ( v12 != *((_QWORD *)v11 + 2 * ((0x100000001B3LL * (((unsigned __int64)v9 >> 24) ^ (0x100000001B3LL * (BYTE2(v9) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v9 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v9))))))) & v10->m_timerItemMap._Mask)) ) { v12 = *(_QWORD *)(v12 + 8); if ( v9 == *(_DWORD *)(v12 + 16) ) goto LABEL_20; } } v12 = 0; LABEL_20: if ( v12 ) *(_BYTE *)(*(_QWORD *)sub_140267360(&v10->m_timerItemMap, v25, &v27) + 40LL) = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source