// // ParticleGameObject::customObjectSetup from 0x14049fc80 to 0x14049fe6b (491 bytes) // // 2 xrefs: // > @ 0x14060d8c0 // > @ 0x1406dc494 // // 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 ParticleGameObject::customObjectSetup( ParticleGameObject *a1, std::vector *a2, std::vector *a3) { int v6; // esi __int64 v7; // rax char v8; // di void *v9; // rcx int v10; // eax std::_Vector_val>::pointer m_bigStorage; // rcx int v12; // eax std::_Vector_val>::pointer v13; // rcx std::_Vector_val>::pointer v14; // rcx void *Block[2]; // [rsp+28h] [rbp-70h] BYREF __int64 v16; // [rsp+38h] [rbp-60h] unsigned __int64 v17; // [rsp+40h] [rbp-58h] _BYTE v18[32]; // [rsp+48h] [rbp-50h] BYREF v6 = 0; EnhancedGameObject::customObjectSetup(a1, a2, a3); if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 145) ) { v7 = sub_14003BDB0((__int64)v18, (__int64)&a2->_Mypair._Myval2._Myfirst[145]); v8 = 2; } else { *(_OWORD *)Block = 0; v16 = 0; v17 = 15; LOBYTE(Block[0]) = 0; v7 = (__int64)Block; v8 = 1; } sub_140051590((__int64)&a1->m_particleData, v7); if ( (v8 & 2) != 0 ) { v8 &= ~2u; sub_14003A830((__int64)v18); } if ( (v8 & 1) != 0 && v17 > 0xF ) { v9 = Block[0]; if ( v17 + 1 >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v9); } if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 146) ) { m_bigStorage = a2->_Mypair._Myval2._Myfirst + 146; if ( a2->_Mypair._Myval2._Myfirst[146].m_data.m_capacity > 0xF ) m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage; v10 = atoi(m_bigStorage->m_data.m_smallStorage._Elems); } else { v10 = 0; } a1->m_particleUseObjectColor = v10 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 147) ) { v13 = a2->_Mypair._Myval2._Myfirst + 147; if ( a2->_Mypair._Myval2._Myfirst[147].m_data.m_capacity > 0xF ) v13 = (std::_Vector_val>::pointer)v13->m_data.m_bigStorage; v12 = atoi(v13->m_data.m_smallStorage._Elems); } else { v12 = 0; } a1->m_hasUniformObjectColor = v12 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 211) ) { v14 = a2->_Mypair._Myval2._Myfirst + 211; if ( a2->_Mypair._Myval2._Myfirst[211].m_data.m_capacity > 0xF ) v14 = (std::_Vector_val>::pointer)v14->m_data.m_bigStorage; v6 = atoi(v14->m_data.m_smallStorage._Elems); } a1->m_shouldQuickStart = v6 != 0; if ( !a1->m_editorEnabled && a1->m_particleData.m_data.m_size ) { a1->m_hasParticles = 1; if ( a1->m_updatedParticleData ) { a1->m_updatedParticleData = 0; GameToolbox::particleStringToStruct( (__int64 *)&a1->m_particleData.m_data.m_bigStorage, (__int64)&a1->m_particleStruct); } a1->m_hasParticles = 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source