{"type": "func", "start": 6442645280, "end": 6442645469, "name": "cocos2d::CCShow::copyWithZone", "pseudocode": "// \n// cocos2d::CCShow::copyWithZone from 0x18002f720 to 0x18002f7dd (189 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e8db8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0048\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\nstruct cocos2d::CCObject *__fastcall cocos2d::CCShow::copyWithZone(\n        cocos2d::CCShow *this,\n        struct cocos2d::CCObject **a2)\n{\n  struct cocos2d::CCObject *v3; // rbx\n  cocos2d::CCAction *v5; // rax\n  struct tinyxml2::XMLNode *v6; // rbx\n  struct cocos2d::CCObject **v7; // rdi\n  tinyxml2::XMLHandle *v8; // rax\n\n  if ( a2 && (v3 = *a2) != nullptr )\n  {\n    cocos2d::CCActionInstant::copyWithZone(this, a2);\n    return v3;\n  }\n  else\n  {\n    v5 = (cocos2d::CCAction *)operator new(0x58u);\n    v6 = (struct tinyxml2::XMLNode *)v5;\n    if ( v5 )\n    {\n      cocos2d::CCAction::CCAction(v5);\n      v7 = nullptr;\n      *((_DWORD *)v6 + 20) = 0;\n      *(_QWORD *)v6 = &cocos2d::CCShow::`vftable';\n    }\n    else\n    {\n      v7 = nullptr;\n      v6 = nullptr;\n    }\n    v8 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v8 )\n      v7 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, v6);\n    cocos2d::CCActionInstant::copyWithZone(this, v7);\n    if ( v7 )\n      j_j_free_0(v7);\n    return (struct cocos2d::CCObject *)v6;\n  }\n}", "assembly": "; \n; cocos2d::CCShow::copyWithZone from 0x18002f720 to 0x18002f7dd (189 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e8db8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0048\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18002f720\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002f725\npush    rdi                                                            ; +0xa, 0x18002f72a\nsub     rsp, 20h                                                       ; +0xb, 0x18002f72b\nmov     rsi, rcx                                                       ; +0xf, 0x18002f72f\ntest    rdx, rdx                                                       ; +0x12, 0x18002f732\njz      short loc_18002F757                                            ; +0x15, 0x18002f735\nmov     rbx, [rdx]                                                     ; +0x17, 0x18002f737\ntest    rbx, rbx                                                       ; +0x1a, 0x18002f73a\njz      short loc_18002F757                                            ; +0x1d, 0x18002f73d\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x1f, 0x18002f73f\nmov     rax, rbx                                                       ; +0x24, 0x18002f744\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x27, 0x18002f747\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x2c, 0x18002f74c\nadd     rsp, 20h                                                       ; +0x31, 0x18002f751\npop     rdi                                                            ; +0x35, 0x18002f755\nretn                                                                   ; +0x36, 0x18002f756\nmov     ecx, 58h ; 'X'; Size                                           ; +0x37, 0x18002f757\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3c, 0x18002f75c\nmov     rbx, rax                                                       ; +0x41, 0x18002f761\nmov     [rsp+28h+arg_8], rax                                           ; +0x44, 0x18002f764\ntest    rax, rax                                                       ; +0x49, 0x18002f769\njz      short loc_18002F787                                            ; +0x4c, 0x18002f76c\nmov     rcx, rax; this                                                 ; +0x4e, 0x18002f76e\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x51, 0x18002f771\nxor     edi, edi                                                       ; +0x56, 0x18002f776\nmov     [rbx+50h], edi                                                 ; +0x58, 0x18002f778\nlea     rax, ??_7CCShow@cocos2d@@6B@; const cocos2d::CCShow::`vftable' ; +0x5b, 0x18002f77b\nmov     [rbx], rax                                                     ; +0x62, 0x18002f782\njmp     short loc_18002F78B                                            ; +0x65, 0x18002f785\nxor     edi, edi                                                       ; +0x67, 0x18002f787\nmov     ebx, edi                                                       ; +0x69, 0x18002f789\nmov     ecx, 8; Size                                                   ; +0x6b, 0x18002f78b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x70, 0x18002f790\nmov     [rsp+28h+arg_8], rax                                           ; +0x75, 0x18002f795\ntest    rax, rax                                                       ; +0x7a, 0x18002f79a\njz      short loc_18002F7AD                                            ; +0x7d, 0x18002f79d\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x7f, 0x18002f79f\nmov     rcx, rax; this                                                 ; +0x82, 0x18002f7a2\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x85, 0x18002f7a5\nmov     rdi, rax                                                       ; +0x8a, 0x18002f7aa\nmov     rdx, rdi; struct cocos2d::CCZone *                             ; +0x8d, 0x18002f7ad\nmov     rcx, rsi; this                                                 ; +0x90, 0x18002f7b0\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x93, 0x18002f7b3\ntest    rdi, rdi                                                       ; +0x98, 0x18002f7b8\njz      short loc_18002F7CA                                            ; +0x9b, 0x18002f7bb\nmov     edx, 8                                                         ; +0x9d, 0x18002f7bd\nmov     rcx, rdi; Block                                                ; +0xa2, 0x18002f7c2\ncall    j_j_free_0                                                     ; +0xa5, 0x18002f7c5\nmov     rax, rbx                                                       ; +0xaa, 0x18002f7ca\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xad, 0x18002f7cd\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb2, 0x18002f7d2\nadd     rsp, 20h                                                       ; +0xb7, 0x18002f7d7\npop     rdi                                                            ; +0xbb, 0x18002f7db\nretn                                                                   ; +0xbc, 0x18002f7dc", "xrefs": ["<???> @ 0x1800e8db8", "<???> @ 0x1801438a8", "<???> @ 0x1801b0048"], "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"}