// // ParticleGameObject::customObjectSetup from 0x1001b1790 to 0x1001b19b1 (545 bytes) // // 1 xrefs: // > @ 0x1008c85b0 // // 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 // void __fastcall ParticleGameObject::customObjectSetup( ParticleGameObject *a1, std::vector *a2, std::vector *a3) { double v3; // xmm0_8 std::__vector_base::pointer begin; // rax std::__vector_base::pointer v7; // rax std::string *p_m_particleData; // r14 std::__vector_base::pointer v9; // r12 std::__vector_base::pointer v10; // rdi const char *elems; // rdi std::__vector_base::pointer v12; // rdi const char *v13; // rdi std::__vector_base::pointer v14; // rdi const char *v15; // rdi unsigned int sizex2; // eax __int128 v17; // [rsp+0h] [rbp-40h] BYREF char *longStorage; // [rsp+10h] [rbp-30h] EnhancedGameObject::customObjectSetup(a1, a2, a3); if ( !*((_QWORD *)a3->__begin_ + 145) ) { LOWORD(v17) = 0; p_m_particleData = &a1->m_particleData; if ( (a1->m_particleData.m_data.m_short.sizex2 & 1) == 0 ) goto LABEL_7; goto LABEL_6; } begin = a2->__begin_; if ( (a2->__begin_[145].m_data.m_short.sizex2 & 1) == 0 ) { v7 = begin + 145; longStorage = v7->m_data.m_long.longStorage; v17 = *(_OWORD *)&v7->m_data.m_short.sizex2; p_m_particleData = &a1->m_particleData; if ( (a1->m_particleData.m_data.m_short.sizex2 & 1) == 0 ) goto LABEL_7; LABEL_6: operator delete(a1->m_particleData.m_data.m_long.longStorage); goto LABEL_7; } sub_100006B70(&v17, begin[145].m_data.m_long.longStorage, begin[145].m_data.m_long.size, v3); p_m_particleData = &a1->m_particleData; if ( (a1->m_particleData.m_data.m_short.sizex2 & 1) != 0 ) goto LABEL_6; LABEL_7: p_m_particleData->m_data.m_long.longStorage = longStorage; *(_OWORD *)&p_m_particleData->m_data.m_short.sizex2 = v17; v9 = a3->__begin_; if ( !v9[146] ) { a1->m_particleUseObjectColor = 0; if ( v9[147] ) goto LABEL_18; LABEL_11: a1->m_hasUniformObjectColor = 0; if ( v9[211] ) goto LABEL_22; goto LABEL_12; } v10 = a2->__begin_; if ( (a2->__begin_[146].m_data.m_short.sizex2 & 1) != 0 ) elems = v10[146].m_data.m_long.longStorage; else elems = v10[146].m_data.m_short.shortStorage.__elems_; a1->m_particleUseObjectColor = atoi(elems) != 0; if ( !v9[147] ) goto LABEL_11; LABEL_18: v12 = a2->__begin_; if ( (a2->__begin_[147].m_data.m_short.sizex2 & 1) != 0 ) v13 = v12[147].m_data.m_long.longStorage; else v13 = v12[147].m_data.m_short.shortStorage.__elems_; a1->m_hasUniformObjectColor = atoi(v13) != 0; if ( v9[211] ) { LABEL_22: v14 = a2->__begin_; if ( (a2->__begin_[211].m_data.m_short.sizex2 & 1) != 0 ) v15 = v14[211].m_data.m_long.longStorage; else v15 = v14[211].m_data.m_short.shortStorage.__elems_; a1->m_shouldQuickStart = atoi(v15) != 0; if ( a1->m_editorEnabled ) return; goto LABEL_26; } LABEL_12: a1->m_shouldQuickStart = 0; if ( a1->m_editorEnabled ) return; LABEL_26: sizex2 = p_m_particleData->m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) { if ( !a1->m_particleData.m_data.m_long.size ) return; } else if ( !(sizex2 >> 1) ) { return; } a1->m_hasParticles = 1; if ( a1->m_updatedParticleData ) { a1->m_updatedParticleData = 0; GameToolbox::particleStringToStruct(p_m_particleData, &a1->m_particleStruct); } a1->m_hasParticles = 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source