{"type": "func", "start": 5369195136, "end": 5369195372, "name": "GhostTrailEffect::create", "pseudocode": "// \n// GhostTrailEffect::create from 0x140076a80 to 0x140076b6c (236 bytes)\n// \n// 3 xrefs:\n// > PlayerObject::toggleGhostEffect @ 0x1404fd22c\n// > PlayerObject::toggleGhostEffect @ 0x1404fd301\n// > <???> @ 0x140911b4c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:51 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nchar *GhostTrailEffect::create()\n{\n  char *v0; // rbx\n  __int64 (__fastcall *v1)(char *); // rdx\n  char v2; // al\n\n  v0 = (char *)operator new(0x198u);\n  memset(v0, 0, 0x198u);\n  cocos2d::CCNode::CCNode((cocos2d::CCNode *)v0);\n  *(_QWORD *)v0 = &GhostTrailEffect::`vftable';\n  *((_QWORD *)v0 + 40) = 0;\n  *((_DWORD *)v0 + 82) = 0;\n  v0[332] = 0;\n  *((_DWORD *)v0 + 84) = 0;\n  *((_QWORD *)v0 + 44) = 0;\n  *((_QWORD *)v0 + 45) = 0;\n  *((_QWORD *)v0 + 46) = 0;\n  *((_DWORD *)v0 + 94) = 0;\n  *((_QWORD *)v0 + 48) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 396));\n  v0[404] = 0;\n  v1 = *(__int64 (__fastcall **)(char *))(*(_QWORD *)v0 + 72LL);\n  if ( (char *)v1 == (char *)GhostTrailEffect::init )\n    v2 = GhostTrailEffect::init(v0);\n  else\n    v2 = v1(v0);\n  if ( v2 )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n    return v0;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GhostTrailEffect::create from 0x140076a80 to 0x140076b6c (236 bytes)\n; \n; 3 xrefs:\n; > PlayerObject::toggleGhostEffect @ 0x1404fd22c\n; > PlayerObject::toggleGhostEffect @ 0x1404fd301\n; > <???> @ 0x140911b4c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:51 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140076a80\npush    rdi                                                            ; +0x5, 0x140076a85\nsub     rsp, 20h                                                       ; +0x6, 0x140076a86\nmov     ecx, 198h; Size                                                ; +0xa, 0x140076a8a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x140076a8f\nmov     rbx, rax                                                       ; +0x14, 0x140076a94\nmov     [rsp+28h+arg_0], rax                                           ; +0x17, 0x140076a97\nxor     edx, edx; Val                                                  ; +0x1c, 0x140076a9c\nmov     r8d, 198h; Size                                                ; +0x1e, 0x140076a9e\nmov     rcx, rax; void *                                               ; +0x24, 0x140076aa4\ncall    memset                                                         ; +0x27, 0x140076aa7\nmov     rcx, rbx                                                       ; +0x2c, 0x140076aac\ncall    cs:??0CCNode@cocos2d@@QEAA@XZ; cocos2d::CCNode::CCNode(void)   ; +0x2f, 0x140076aaf\nnop                                                                    ; +0x35, 0x140076ab5\nlea     rax, ??_7GhostTrailEffect@@6B@; const GhostTrailEffect::`vftable' ; +0x36, 0x140076ab6\nmov     [rbx], rax                                                     ; +0x3d, 0x140076abd\nxor     edi, edi                                                       ; +0x40, 0x140076ac0\nmov     [rbx+140h], rdi                                                ; +0x42, 0x140076ac2\nmov     [rbx+148h], edi                                                ; +0x49, 0x140076ac9\nmov     [rbx+14Ch], dil                                                ; +0x4f, 0x140076acf\nmov     [rbx+150h], edi                                                ; +0x56, 0x140076ad6\nmov     [rbx+160h], rdi                                                ; +0x5c, 0x140076adc\nmov     [rbx+168h], rdi                                                ; +0x63, 0x140076ae3\nmov     [rbx+170h], rdi                                                ; +0x6a, 0x140076aea\nmov     [rbx+178h], edi                                                ; +0x71, 0x140076af1\nmov     [rbx+180h], rdi                                                ; +0x77, 0x140076af7\nlea     rcx, [rbx+18Ch]                                                ; +0x7e, 0x140076afe\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x85, 0x140076b05\nmov     [rbx+194h], dil                                                ; +0x8b, 0x140076b0b\nmov     rax, [rbx]                                                     ; +0x92, 0x140076b12\nmov     rdx, [rax+48h]                                                 ; +0x95, 0x140076b15\nlea     rax, GhostTrailEffect__init                                    ; +0x99, 0x140076b19\nmov     rcx, rbx                                                       ; +0xa0, 0x140076b20\ncmp     rdx, rax                                                       ; +0xa3, 0x140076b23\njnz     short loc_140076B2F                                            ; +0xa6, 0x140076b26\ncall    GhostTrailEffect__init                                         ; +0xa8, 0x140076b28\njmp     short loc_140076B31                                            ; +0xad, 0x140076b2d\ncall    rdx                                                            ; +0xaf, 0x140076b2f\ntest    al, al                                                         ; +0xb1, 0x140076b31\njz      short loc_140076B4C                                            ; +0xb3, 0x140076b33\nmov     rcx, rbx                                                       ; +0xb5, 0x140076b35\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xb8, 0x140076b38\nmov     rax, rbx                                                       ; +0xbe, 0x140076b3e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc1, 0x140076b41\nadd     rsp, 20h                                                       ; +0xc6, 0x140076b46\npop     rdi                                                            ; +0xca, 0x140076b4a\nretn                                                                   ; +0xcb, 0x140076b4b\nmov     rcx, [rbx]                                                     ; +0xcc, 0x140076b4c\nmov     r8, [rcx+8]                                                    ; +0xcf, 0x140076b4f\nmov     edx, 1                                                         ; +0xd3, 0x140076b53\nmov     rcx, rbx                                                       ; +0xd8, 0x140076b58\ncall    r8                                                             ; +0xdb, 0x140076b5b\nmov     rax, rdi                                                       ; +0xde, 0x140076b5e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xe1, 0x140076b61\nadd     rsp, 20h                                                       ; +0xe6, 0x140076b66\npop     rdi                                                            ; +0xea, 0x140076b6a\nretn                                                                   ; +0xeb, 0x140076b6b", "xrefs": ["PlayerObject::toggleGhostEffect @ 0x1404fd22c", "PlayerObject::toggleGhostEffect @ 0x1404fd301", "<???> @ 0x140911b4c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}