// // TimerTriggerGameObject::getSaveString from 0x786150 to 0x7868bc (1900 bytes) // // 2 xrefs: // > @ 0x94980 // > @ 0x11723b0 // // 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 // __int64 __usercall TimerTriggerGameObject::getSaveString@( TimerTriggerGameObject *this@, GJBaseGameLayer *a2@, __int64 a3@) { char *v5; // x0 int m_objectID; // w0 size_t v7; // x20 double m_targetTime; // d0 double m_timeMod; // d0 double v11; // d0 double m_startTime; // d0 unsigned int *v13; // x2 int v14; // w1 const char *v15; // [xsp+F0h] [xbp+F0h] BYREF _DWORD v16[5]; // [xsp+F8h] [xbp+F8h] BYREF char v17; // [xsp+10Ch] [xbp+10Ch] _DWORD v18[5]; // [xsp+110h] [xbp+110h] BYREF char v19; // [xsp+124h] [xbp+124h] _DWORD v20[5]; // [xsp+128h] [xbp+128h] BYREF char v21; // [xsp+13Ch] [xbp+13Ch] _DWORD v22[5]; // [xsp+140h] [xbp+140h] BYREF char v23; // [xsp+154h] [xbp+154h] size_t v24; // [xsp+158h] [xbp+158h] BYREF unsigned __int64 v25; // [xsp+160h] [xbp+160h] char *v26; // [xsp+168h] [xbp+168h] _BYTE v27[504]; // [xsp+170h] [xbp+170h] BYREF v24 = 0; v25 = 500; v26 = v27; EffectGameObject::getSaveString(this, a2, (__int64)&v15); fmt::BasicWriter::operator<<(&v24, v15, *((_QWORD *)v15 - 3)); v5 = (char *)(v15 - 24); if ( v15 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v15 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *((_DWORD *)v15 - 2); *((_DWORD *)v15 - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v5); } if ( !this->m_itemID ) { m_objectID = this->m_objectID; if ( m_objectID != 3615 ) goto LABEL_4; LABEL_29: if ( this->m_targetTime != 0.0 ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1D9u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); m_targetTime = this->m_targetTime; v22[0] = 0; v22[1] = 32; v22[2] = 0; v22[3] = 0; v22[4] = -1; v23 = 0; fmt::BasicWriter::FormatDouble(&v24, v22, m_targetTime); } if ( this->m_multiActivate ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1DBu); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v24, this->m_multiActivate); } if ( this->m_targetGroupID ) goto LABEL_27; goto LABEL_6; } fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x50u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, this->m_itemID); m_objectID = this->m_objectID; if ( m_objectID == 3615 ) goto LABEL_29; LABEL_4: if ( m_objectID == 3617 ) { if ( this->m_controlType ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1D8u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v24, this->m_controlType); } } else if ( m_objectID == 3614 ) { if ( this->m_startTime != 0.0 ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1D3u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); m_startTime = this->m_startTime; v16[0] = 0; v16[1] = 32; v16[2] = 0; v16[3] = 0; v16[4] = -1; v17 = 0; fmt::BasicWriter::FormatDouble(&v24, v16, m_startTime); } if ( this->m_targetTime != 0.0 ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1D9u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); v11 = this->m_targetTime; v18[0] = 0; v18[1] = 32; v18[2] = 0; v18[3] = 0; v18[4] = -1; v19 = 0; fmt::BasicWriter::FormatDouble(&v24, v18, v11); } if ( this->m_stopTimeEnabled ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1DAu); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v24, this->m_stopTimeEnabled); } if ( this->m_dontOverride ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1D4u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v24, this->m_dontOverride); } if ( this->m_ignoreTimeWarp ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1D5u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v24, this->m_ignoreTimeWarp); } if ( this->m_timeMod != 0.0 ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1D6u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); m_timeMod = this->m_timeMod; v20[1] = 32; v20[0] = 0; v20[2] = 0; v20[3] = 0; v20[4] = -1; v21 = 0; fmt::BasicWriter::FormatDouble(&v24, v20, m_timeMod); } if ( this->m_startPaused ) { fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x1D7u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v24, this->m_startPaused); } if ( this->m_targetGroupID ) { LABEL_27: fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v24, 0x33u); fmt::BasicWriter::operator<<(&v24, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v24, this->m_targetGroupID); } } LABEL_6: v7 = v24; if ( v25 < v24 + 1 ) fmt::internal::Array::grow(&v24, v24 + 1); v26[v7] = 0; sub_D153B8(a3, v26); if ( v26 != v27 && v26 ) operator delete[](v26); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source