// // cocos2d::CCParticleSystem::initWithFile from 0x18006aa80 to 0x18006ad48 (712 bytes) // // 4 xrefs: // > cocos2d::CCParticleSystem::create @ 0x180067e7e // > cocos2d::CCParticleSystemQuad::create @ 0x18006c637 // > @ 0x18014cf68 // > @ 0x1801bdf24 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:21:54 +0000 // // Hidden C++ exception states: #wind=1 __int64 __fastcall cocos2d::CCParticleSystem::initWithFile( cocos2d::CCParticleSystem *this, char *a2, unsigned __int8 a3) { struct cocos2d::CCFileUtils *v6; // rax __int64 v7; // rax void *v8; // rcx CCContentManager *v9; // rax struct cocos2d::CCDictionary *v10; // r14 size_t v11; // rax __int64 v12; // r8 void **v13; // rdi char *v14; // rbx __int64 v15; // rax __int64 v16; // r8 void **v17; // rdi void **v18; // rcx unsigned __int64 v19; // r9 unsigned __int64 v20; // rax __int64 v21; // rsi char *v22; // rbx __int64 v23; // rax size_t v24; // r8 void **v25; // rdx void *v26; // rcx const char *v27; // r8 unsigned __int8 v28; // bl void *v29; // r8 void *v31[2]; // [rsp+38h] [rbp-48h] BYREF __m128i v32; // [rsp+48h] [rbp-38h] void *Block[2]; // [rsp+58h] [rbp-28h] BYREF __m128i v34; // [rsp+68h] [rbp-18h] v6 = cocos2d::CCFileUtils::sharedFileUtils(); v7 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, void **, char *, _QWORD))(*(_QWORD *)v6 + 40LL))( v6, Block, a2, 0); sub_180067AE0((__int64)this + 328, v7); if ( v34.m128i_i64[1] > 0xFuLL ) { v8 = Block[0]; if ( (unsigned __int64)(v34.m128i_i64[1] + 1) >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v8); } v9 = CCContentManager::sharedManager(); v10 = CCContentManager::addDictDS(v9, a2); *(_OWORD *)v31 = 0; v32 = 0u; v11 = strlen(a2); sub_18000CEF0(v31, a2, v11); v13 = v31; if ( v32.m128i_i64[1] > 0xFuLL ) v13 = (void **)v31[0]; if ( !v32.m128i_i64[0] || (v14 = (char *)v13 + v32.m128i_i64[0], LOBYTE(v12) = 47, v15 = sub_1800E4920(v13, (char *)v13 + v32.m128i_i64[0], v12), (char *)v15 == v14) || v15 - (_QWORD)v13 == -1 ) { v27 = Text; } else { v17 = v31; v18 = (void **)v31[0]; v19 = v32.m128i_u64[1]; if ( v32.m128i_i64[1] > 0xFuLL ) v17 = (void **)v31[0]; v20 = v32.m128i_i64[0]; v21 = -1; if ( v32.m128i_i64[0] ) { v22 = (char *)v17 + v32.m128i_i64[0]; LOBYTE(v16) = 47; v23 = sub_1800E4910(v17, (char *)v17 + v32.m128i_i64[0], v16); if ( (char *)v23 != v22 ) v21 = v23 - (_QWORD)v17; v19 = v32.m128i_u64[1]; v20 = v32.m128i_i64[0]; v18 = (void **)v31[0]; } *(_OWORD *)Block = 0; v34 = 0; v24 = v21 + 1; if ( v20 < v21 + 1 ) v24 = v20; v25 = v31; if ( v19 > 0xF ) v25 = v18; sub_18000CEF0(Block, v25, v24); if ( v32.m128i_i64[1] > 0xFuLL ) { v26 = v31[0]; if ( (unsigned __int64)(v32.m128i_i64[1] + 1) >= 0x1000 ) { v26 = *((void **)v31[0] - 1); if ( (unsigned __int64)((char *)v31[0] - (char *)v26 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v26); } *(_OWORD *)v31 = *(_OWORD *)Block; v32 = v34; v27 = (const char *)v31; if ( _mm_srli_si128(v34, 8).m128i_u64[0] > 0xF ) v27 = (const char *)Block[0]; } v28 = cocos2d::CCParticleSystem::initWithDictionary(this, v10, v27, a3); if ( v32.m128i_i64[1] > 0xFuLL ) { v29 = v31[0]; if ( (unsigned __int64)(v32.m128i_i64[1] + 1) >= 0x1000 ) { v29 = *((void **)v31[0] - 1); if ( (unsigned __int64)((char *)v31[0] - (char *)v29 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free_0(v29); } return v28; }
GD Web Decomp Icon

GD Web Decomp

Raw Source