// // cocos2d::CCWaves::copyWithZone from 0x18002c500 to 0x18002c643 (323 bytes) // // 3 xrefs: // > @ 0x1800e8c28 // > @ 0x1801438a8 // > @ 0x1801afcd0 // // 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=3 struct cocos2d::CCObject *__fastcall cocos2d::CCWaves::copyWithZone(cocos2d::CCWaves *this, void **a2) { tinyxml2::XMLHandle *v2; // rax tinyxml2::XMLHandle *v4; // rdi void *v5; // rbx tinyxml2::XMLHandle *v6; // rax char v7; // bp char v8; // r14 int v9; // xmm6_4 int v10; // r15d v2 = (tinyxml2::XMLHandle *)a2; v4 = nullptr; if ( !a2 || (v5 = *a2) == nullptr ) { v5 = operator new(0x78u); if ( v5 ) { *(_OWORD *)v5 = 0; *((_OWORD *)v5 + 1) = 0; *((_OWORD *)v5 + 2) = 0; *((_OWORD *)v5 + 3) = 0; *((_OWORD *)v5 + 4) = 0; *((_OWORD *)v5 + 5) = 0; *((_OWORD *)v5 + 6) = 0; *((_QWORD *)v5 + 14) = 0; cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5); *((_DWORD *)v5 + 20) = 0; *(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable'; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12); *(_QWORD *)v5 = &cocos2d::CCWaves::`vftable'; } else { v5 = nullptr; } v6 = (tinyxml2::XMLHandle *)operator new(8u); if ( v6 ) v2 = tinyxml2::XMLHandle::XMLHandle(v6, (struct tinyxml2::XMLNode *)v5); else v2 = nullptr; v4 = v2; } cocos2d::CCGridAction::copyWithZone(this, (void **)v2); v7 = *((_BYTE *)this + 116); v8 = *((_BYTE *)this + 117); v9 = *((_DWORD *)this + 27); v10 = *((_DWORD *)this + 26); if ( cocos2d::CCGridAction::initWithDuration( (cocos2d::CCGridAction *)v5, this->m_fDuration, (struct cocos2d::CCSize *)this + 12) ) { *((_DWORD *)v5 + 26) = v10; *((_DWORD *)v5 + 27) = v9; *((_DWORD *)v5 + 28) = 1065353216; *((_BYTE *)v5 + 117) = v8; *((_BYTE *)v5 + 116) = v7; } if ( v4 ) j_j_free_0(v4); return (struct cocos2d::CCObject *)v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source