{"type": "func", "start": 5373557504, "end": 5373557792, "name": "ParticleGameObject::create", "pseudocode": "// \n// ParticleGameObject::create from 0x14049fb00 to 0x14049fc20 (288 bytes)\n// \n// 3 xrefs:\n// > GameObject::createWithKey @ 0x14018c0a7\n// > CreateParticlePopup::onCopySettings @ 0x140431b71\n// > <???> @ 0x1406dc47c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nParticleGameObject *ParticleGameObject::create()\n{\n  char *v0; // rbx\n  bool (*v1)(ParticleGameObject *); // rdx\n\n  v0 = (char *)operator new(0x720u);\n  EnhancedGameObject::EnhancedGameObject((EnhancedGameObject *)v0);\n  *(_QWORD *)v0 = &ParticleGameObject::`vftable';\n  *((_QWORD *)v0 + 40) = &ParticleGameObject::`vftable';\n  *((_QWORD *)v0 + 43) = &ParticleGameObject::`vftable';\n  *(_OWORD *)(v0 + 1464) = 0;\n  *((_QWORD *)v0 + 185) = 0;\n  *((_QWORD *)v0 + 186) = 15;\n  v0[1464] = 0;\n  v0[1496] = 1;\n  sub_140063B90((__int64)(v0 + 1504));\n  v0[1800] = 0;\n  *((_DWORD *)v0 + 451) = 0;\n  v0[1808] = 0;\n  *((_DWORD *)v0 + 453) = -1082130432;\n  *((_WORD *)v0 + 908) = 0;\n  v1 = *(bool (**)(ParticleGameObject *))(*(_QWORD *)v0 + 72LL);\n  if ( v1 == ParticleGameObject::init )\n  {\n    if ( EnhancedGameObject::init((EnhancedGameObject *)v0, \"edit_eCParticleBtn_001.png\") )\n    {\n      v0[1402] = 1;\n      v0[313] = 0;\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n      return (ParticleGameObject *)v0;\n    }\n  }\n  else if ( v1((ParticleGameObject *)v0) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n    return (ParticleGameObject *)v0;\n  }\n  (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);\n  return nullptr;\n}", "assembly": "; \n; ParticleGameObject::create from 0x14049fb00 to 0x14049fc20 (288 bytes)\n; \n; 3 xrefs:\n; > GameObject::createWithKey @ 0x14018c0a7\n; > CreateParticlePopup::onCopySettings @ 0x140431b71\n; > <???> @ 0x1406dc47c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x14049fb00\nsub     rsp, 20h                                                       ; +0x2, 0x14049fb02\nmov     ecx, 720h; Size                                                ; +0x6, 0x14049fb06\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb, 0x14049fb0b\nmov     rbx, rax                                                       ; +0x10, 0x14049fb10\nmov     [rsp+28h+arg_0], rax                                           ; +0x13, 0x14049fb13\nmov     rcx, rax                                                       ; +0x18, 0x14049fb18\ncall    EnhancedGameObject__EnhancedGameObject                         ; +0x1b, 0x14049fb1b\nlea     rax, ??_7ParticleGameObject@@6B@; const ParticleGameObject::`vftable' ; +0x20, 0x14049fb20\nmov     [rbx], rax                                                     ; +0x27, 0x14049fb27\nlea     rax, ??_7ParticleGameObject@@6B@_0; const ParticleGameObject::`vftable' ; +0x2a, 0x14049fb2a\nmov     [rbx+140h], rax                                                ; +0x31, 0x14049fb31\nlea     rax, ??_7ParticleGameObject@@6B@_1; const ParticleGameObject::`vftable' ; +0x38, 0x14049fb38\nmov     [rbx+158h], rax                                                ; +0x3f, 0x14049fb3f\nxorps   xmm0, xmm0                                                     ; +0x46, 0x14049fb46\nmovups  xmmword ptr [rbx+5B8h], xmm0                                   ; +0x49, 0x14049fb49\nmov     qword ptr [rbx+5C8h], 0                                        ; +0x50, 0x14049fb50\nmov     qword ptr [rbx+5D0h], 0Fh                                      ; +0x5b, 0x14049fb5b\nmov     byte ptr [rbx+5B8h], 0                                         ; +0x66, 0x14049fb66\nmov     byte ptr [rbx+5D8h], 1                                         ; +0x6d, 0x14049fb6d\nlea     rcx, [rbx+5E0h]                                                ; +0x74, 0x14049fb74\ncall    sub_140063B90                                                  ; +0x7b, 0x14049fb7b\nmov     byte ptr [rbx+708h], 0                                         ; +0x80, 0x14049fb80\nmov     dword ptr [rbx+70Ch], 0                                        ; +0x87, 0x14049fb87\nmov     byte ptr [rbx+710h], 0                                         ; +0x91, 0x14049fb91\nmov     dword ptr [rbx+714h], 0BF800000h                               ; +0x98, 0x14049fb98\nmov     word ptr [rbx+718h], 0                                         ; +0xa2, 0x14049fba2\nmov     rax, [rbx]                                                     ; +0xab, 0x14049fbab\nmov     rdx, [rax+48h]                                                 ; +0xae, 0x14049fbae\nlea     rax, ParticleGameObject__init                                  ; +0xb2, 0x14049fbb2\nmov     rcx, rbx                                                       ; +0xb9, 0x14049fbb9\ncmp     rdx, rax                                                       ; +0xbc, 0x14049fbbc\njnz     short loc_14049FBF1                                            ; +0xbf, 0x14049fbbf\nlea     rdx, aEditEcparticle; \"edit_eCParticleBtn_001.png\"             ; +0xc1, 0x14049fbc1\ncall    EnhancedGameObject__init                                       ; +0xc8, 0x14049fbc8\ntest    al, al                                                         ; +0xcd, 0x14049fbcd\njz      short loc_14049FC09                                            ; +0xcf, 0x14049fbcf\nmov     byte ptr [rbx+57Ah], 1                                         ; +0xd1, 0x14049fbd1\nmov     byte ptr [rbx+139h], 0                                         ; +0xd8, 0x14049fbd8\nmov     rcx, rbx                                                       ; +0xdf, 0x14049fbdf\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe2, 0x14049fbe2\nmov     rax, rbx                                                       ; +0xe8, 0x14049fbe8\nadd     rsp, 20h                                                       ; +0xeb, 0x14049fbeb\npop     rbx                                                            ; +0xef, 0x14049fbef\nretn                                                                   ; +0xf0, 0x14049fbf0\ncall    rdx                                                            ; +0xf1, 0x14049fbf1\ntest    al, al                                                         ; +0xf3, 0x14049fbf3\njz      short loc_14049FC09                                            ; +0xf5, 0x14049fbf5\nmov     rcx, rbx                                                       ; +0xf7, 0x14049fbf7\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xfa, 0x14049fbfa\nmov     rax, rbx                                                       ; +0x100, 0x14049fc00\nadd     rsp, 20h                                                       ; +0x103, 0x14049fc03\npop     rbx                                                            ; +0x107, 0x14049fc07\nretn                                                                   ; +0x108, 0x14049fc08\nmov     r8, [rbx]                                                      ; +0x109, 0x14049fc09\nmov     edx, 1                                                         ; +0x10c, 0x14049fc0c\nmov     rcx, rbx                                                       ; +0x111, 0x14049fc11\ncall    qword ptr [r8+8]                                               ; +0x114, 0x14049fc14\nxor     eax, eax                                                       ; +0x118, 0x14049fc18\nadd     rsp, 20h                                                       ; +0x11a, 0x14049fc1a\npop     rbx                                                            ; +0x11e, 0x14049fc1e\nretn                                                                   ; +0x11f, 0x14049fc1f", "xrefs": ["GameObject::createWithKey @ 0x14018c0a7", "CreateParticlePopup::onCopySettings @ 0x140431b71", "<???> @ 0x1406dc47c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}