{"type": "func", "start": 6442685008, "end": 6442685249, "name": "cocos2d::CCProgressTo::copyWithZone", "pseudocode": "// \n// cocos2d::CCProgressTo::copyWithZone from 0x180039250 to 0x180039341 (241 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ea138\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0ca8\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=2\ncocos2d::CCActionInterval *__fastcall cocos2d::CCProgressTo::copyWithZone(cocos2d::CCProgressTo *this, void **a2)\n{\n  tinyxml2::XMLHandle *v2; // rax\n  tinyxml2::XMLHandle *v4; // rdi\n  cocos2d::CCActionInterval *v5; // rbx\n  tinyxml2::XMLHandle *v6; // rax\n  int v7; // xmm6_4\n\n  v2 = (tinyxml2::XMLHandle *)a2;\n  v4 = nullptr;\n  if ( !a2 || (v5 = (cocos2d::CCActionInterval *)*a2) == nullptr )\n  {\n    v5 = (cocos2d::CCActionInterval *)operator new(0x68u);\n    if ( v5 )\n    {\n      *(_OWORD *)&v5->__vftable = 0;\n      *(_OWORD *)&v5->cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag = 0;\n      *(_OWORD *)&v5->m_uIndexInArray = 0;\n      *(_OWORD *)&v5->m_uOrderOfArrival = 0;\n      *(_OWORD *)&v5->m_pTarget = 0;\n      *(_OWORD *)&v5->m_fDuration = 0;\n      v5[1].__vftable = nullptr;\n      cocos2d::CCAction::CCAction(v5);\n      v5->m_fDuration = 0.0;\n      v5->__vftable = (cocos2d::CCActionInterval_vtbl *)&cocos2d::CCProgressTo::`vftable';\n    }\n    else\n    {\n      v5 = nullptr;\n    }\n    v6 = (tinyxml2::XMLHandle *)operator new(8u);\n    if ( v6 )\n      v2 = tinyxml2::XMLHandle::XMLHandle(v6, (struct tinyxml2::XMLNode *)v5);\n    else\n      v2 = nullptr;\n    v4 = v2;\n  }\n  cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);\n  v7 = *((_DWORD *)this + 24);\n  if ( cocos2d::CCActionInterval::initWithDuration(v5, this->m_fDuration) )\n    LODWORD(v5[1].__vftable) = v7;\n  if ( v4 )\n    j_j_free_0(v4);\n  return v5;\n}", "assembly": "; \n; cocos2d::CCProgressTo::copyWithZone from 0x180039250 to 0x180039341 (241 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ea138\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0ca8\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_8], rbx                                               ; +0x0, 0x180039250\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180039255\npush    rdi                                                            ; +0xa, 0x18003925a\nsub     rsp, 30h                                                       ; +0xb, 0x18003925b\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x18003925f\nmov     rax, rdx                                                       ; +0x14, 0x180039264\nmov     rsi, rcx                                                       ; +0x17, 0x180039267\nxor     edi, edi                                                       ; +0x1a, 0x18003926a\ntest    rdx, rdx                                                       ; +0x1c, 0x18003926c\njz      short loc_180039279                                            ; +0x1f, 0x18003926f\nmov     rbx, [rdx]                                                     ; +0x21, 0x180039271\ntest    rbx, rbx                                                       ; +0x24, 0x180039274\njnz     short loc_1800392F1                                            ; +0x27, 0x180039277\nmov     ecx, 68h ; 'h'; Size                                           ; +0x29, 0x180039279\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2e, 0x18003927e\nmov     rbx, rax                                                       ; +0x33, 0x180039283\nmov     [rsp+38h+arg_0], rax                                           ; +0x36, 0x180039286\ntest    rax, rax                                                       ; +0x3b, 0x18003928b\njz      short loc_1800392C7                                            ; +0x3e, 0x18003928e\nxorps   xmm0, xmm0                                                     ; +0x40, 0x180039290\nxor     eax, eax                                                       ; +0x43, 0x180039293\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x45, 0x180039295\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x48, 0x180039298\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x4c, 0x18003929c\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x50, 0x1800392a0\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x54, 0x1800392a4\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x58, 0x1800392a8\nmov     [rbx+60h], rax                                                 ; +0x5c, 0x1800392ac\nmov     rcx, rbx; this                                                 ; +0x60, 0x1800392b0\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x63, 0x1800392b3\nmov     [rbx+50h], edi                                                 ; +0x68, 0x1800392b8\nlea     rax, ??_7CCProgressTo@cocos2d@@6B@; const cocos2d::CCProgressTo::`vftable' ; +0x6b, 0x1800392bb\nmov     [rbx], rax                                                     ; +0x72, 0x1800392c2\njmp     short loc_1800392CA                                            ; +0x75, 0x1800392c5\nmov     rbx, rdi                                                       ; +0x77, 0x1800392c7\nmov     ecx, 8; Size                                                   ; +0x7a, 0x1800392ca\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7f, 0x1800392cf\nmov     [rsp+38h+arg_0], rax                                           ; +0x84, 0x1800392d4\ntest    rax, rax                                                       ; +0x89, 0x1800392d9\njz      short loc_1800392EB                                            ; +0x8c, 0x1800392dc\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x8e, 0x1800392de\nmov     rcx, rax; this                                                 ; +0x91, 0x1800392e1\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x94, 0x1800392e4\njmp     short loc_1800392EE                                            ; +0x99, 0x1800392e9\nmov     rax, rdi                                                       ; +0x9b, 0x1800392eb\nmov     rdi, rax                                                       ; +0x9e, 0x1800392ee\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xa1, 0x1800392f1\nmov     rcx, rsi; this                                                 ; +0xa4, 0x1800392f4\ncall    ?copyWithZone@CCActionInterval@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInterval::copyWithZone(cocos2d::CCZone *) ; +0xa7, 0x1800392f7\nmovss   xmm6, dword ptr [rsi+60h]                                      ; +0xac, 0x1800392fc\nmovss   xmm1, dword ptr [rsi+50h]; float                               ; +0xb1, 0x180039301\nmov     rcx, rbx; this                                                 ; +0xb6, 0x180039306\ncall    ?initWithDuration@CCActionInterval@cocos2d@@QEAA_NM@Z; cocos2d::CCActionInterval::initWithDuration(float) ; +0xb9, 0x180039309\ntest    al, al                                                         ; +0xbe, 0x18003930e\njz      short loc_180039317                                            ; +0xc0, 0x180039310\nmovss   dword ptr [rbx+60h], xmm6                                      ; +0xc2, 0x180039312\ntest    rdi, rdi                                                       ; +0xc7, 0x180039317\njz      short loc_180039329                                            ; +0xca, 0x18003931a\nmov     edx, 8                                                         ; +0xcc, 0x18003931c\nmov     rcx, rdi; Block                                                ; +0xd1, 0x180039321\ncall    j_j_free_0                                                     ; +0xd4, 0x180039324\nmov     rax, rbx                                                       ; +0xd9, 0x180039329\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xdc, 0x18003932c\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xe1, 0x180039331\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0xe6, 0x180039336\nadd     rsp, 30h                                                       ; +0xeb, 0x18003933b\npop     rdi                                                            ; +0xef, 0x18003933f\nretn                                                                   ; +0xf0, 0x180039340", "xrefs": ["<???> @ 0x1800ea138", "<???> @ 0x1801438a8", "<???> @ 0x1801b0ca8"], "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"}