{"type": "func", "start": 6442647136, "end": 6442647325, "name": "cocos2d::CCShow::copyWithZone", "pseudocode": "// \n// cocos2d::CCShow::copyWithZone from 0x18002fe60 to 0x18002ff1d (189 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800eee20\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801ba15c\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:21:33 +0000\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  cocos2d::CCAction *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 *)sub_1800E4AC0(0x58u);\n    v6 = 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 *)sub_1800E4AC0(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 v6;\n  }\n}", "assembly": "; \n; cocos2d::CCShow::copyWithZone from 0x18002fe60 to 0x18002ff1d (189 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800eee20\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801ba15c\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:21:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18002fe60\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x18002fe65\npush    rdi                                                            ; +0xa, 0x18002fe6a\nsub     rsp, 20h                                                       ; +0xb, 0x18002fe6b\nmov     rsi, rcx                                                       ; +0xf, 0x18002fe6f\ntest    rdx, rdx                                                       ; +0x12, 0x18002fe72\njz      short loc_18002FE97                                            ; +0x15, 0x18002fe75\nmov     rbx, [rdx]                                                     ; +0x17, 0x18002fe77\ntest    rbx, rbx                                                       ; +0x1a, 0x18002fe7a\njz      short loc_18002FE97                                            ; +0x1d, 0x18002fe7d\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x1f, 0x18002fe7f\nmov     rax, rbx                                                       ; +0x24, 0x18002fe84\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x27, 0x18002fe87\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x2c, 0x18002fe8c\nadd     rsp, 20h                                                       ; +0x31, 0x18002fe91\npop     rdi                                                            ; +0x35, 0x18002fe95\nretn                                                                   ; +0x36, 0x18002fe96\nmov     ecx, 58h ; 'X'; Size                                           ; +0x37, 0x18002fe97\ncall    sub_1800E4AC0                                                  ; +0x3c, 0x18002fe9c\nmov     rbx, rax                                                       ; +0x41, 0x18002fea1\nmov     [rsp+28h+arg_8], rax                                           ; +0x44, 0x18002fea4\ntest    rax, rax                                                       ; +0x49, 0x18002fea9\njz      short loc_18002FEC7                                            ; +0x4c, 0x18002feac\nmov     rcx, rax; this                                                 ; +0x4e, 0x18002feae\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x51, 0x18002feb1\nxor     edi, edi                                                       ; +0x56, 0x18002feb6\nmov     [rbx+50h], edi                                                 ; +0x58, 0x18002feb8\nlea     rax, ??_7CCShow@cocos2d@@6B@; const cocos2d::CCShow::`vftable' ; +0x5b, 0x18002febb\nmov     [rbx], rax                                                     ; +0x62, 0x18002fec2\njmp     short loc_18002FECB                                            ; +0x65, 0x18002fec5\nxor     edi, edi                                                       ; +0x67, 0x18002fec7\nmov     ebx, edi                                                       ; +0x69, 0x18002fec9\nmov     ecx, 8; Size                                                   ; +0x6b, 0x18002fecb\ncall    sub_1800E4AC0                                                  ; +0x70, 0x18002fed0\nmov     [rsp+28h+arg_8], rax                                           ; +0x75, 0x18002fed5\ntest    rax, rax                                                       ; +0x7a, 0x18002feda\njz      short loc_18002FEED                                            ; +0x7d, 0x18002fedd\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x7f, 0x18002fedf\nmov     rcx, rax; this                                                 ; +0x82, 0x18002fee2\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x85, 0x18002fee5\nmov     rdi, rax                                                       ; +0x8a, 0x18002feea\nmov     rdx, rdi; struct cocos2d::CCZone *                             ; +0x8d, 0x18002feed\nmov     rcx, rsi; this                                                 ; +0x90, 0x18002fef0\ncall    ?copyWithZone@CCActionInstant@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInstant::copyWithZone(cocos2d::CCZone *) ; +0x93, 0x18002fef3\ntest    rdi, rdi                                                       ; +0x98, 0x18002fef8\njz      short loc_18002FF0A                                            ; +0x9b, 0x18002fefb\nmov     edx, 8                                                         ; +0x9d, 0x18002fefd\nmov     rcx, rdi; Block                                                ; +0xa2, 0x18002ff02\ncall    j_j_free_0                                                     ; +0xa5, 0x18002ff05\nmov     rax, rbx                                                       ; +0xaa, 0x18002ff0a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xad, 0x18002ff0d\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xb2, 0x18002ff12\nadd     rsp, 20h                                                       ; +0xb7, 0x18002ff17\npop     rdi                                                            ; +0xbb, 0x18002ff1b\nretn                                                                   ; +0xbc, 0x18002ff1c", "xrefs": ["<???> @ 0x1800eee20", "<???> @ 0x18014cf68", "<???> @ 0x1801ba15c"], "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"}