{"type": "func", "start": 6442684736, "end": 6442684997, "name": "cocos2d::CCProgressFromTo::copyWithZone", "pseudocode": "// \n// cocos2d::CCProgressFromTo::copyWithZone from 0x180039140 to 0x180039245 (261 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800ea1b0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b0c9c\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::CCProgressFromTo::copyWithZone(\n        cocos2d::CCProgressFromTo *this,\n        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  int v8; // xmm7_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::CCProgressFromTo::`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  v8 = *((_DWORD *)this + 25);\n  if ( cocos2d::CCActionInterval::initWithDuration(v5, this->m_fDuration) )\n  {\n    LODWORD(v5[1].__vftable) = v7;\n    HIDWORD(v5[1].__vftable) = v8;\n  }\n  if ( v4 )\n    j_j_free_0(v4);\n  return v5;\n}", "assembly": "; \n; cocos2d::CCProgressFromTo::copyWithZone from 0x180039140 to 0x180039245 (261 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800ea1b0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b0c9c\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, 0x180039140\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x180039145\npush    rdi                                                            ; +0xa, 0x18003914a\nsub     rsp, 40h                                                       ; +0xb, 0x18003914b\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0xf, 0x18003914f\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x14, 0x180039154\nmov     rax, rdx                                                       ; +0x19, 0x180039159\nmov     rsi, rcx                                                       ; +0x1c, 0x18003915c\nxor     edi, edi                                                       ; +0x1f, 0x18003915f\ntest    rdx, rdx                                                       ; +0x21, 0x180039161\njz      short loc_18003916E                                            ; +0x24, 0x180039164\nmov     rbx, [rdx]                                                     ; +0x26, 0x180039166\ntest    rbx, rbx                                                       ; +0x29, 0x180039169\njnz     short loc_1800391E6                                            ; +0x2c, 0x18003916c\nmov     ecx, 68h ; 'h'; Size                                           ; +0x2e, 0x18003916e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x33, 0x180039173\nmov     rbx, rax                                                       ; +0x38, 0x180039178\nmov     [rsp+48h+arg_0], rax                                           ; +0x3b, 0x18003917b\ntest    rax, rax                                                       ; +0x40, 0x180039180\njz      short loc_1800391BC                                            ; +0x43, 0x180039183\nxorps   xmm0, xmm0                                                     ; +0x45, 0x180039185\nxor     eax, eax                                                       ; +0x48, 0x180039188\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x4a, 0x18003918a\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x4d, 0x18003918d\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x51, 0x180039191\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x55, 0x180039195\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x59, 0x180039199\nmovups  xmmword ptr [rbx+50h], xmm0                                    ; +0x5d, 0x18003919d\nmov     [rbx+60h], rax                                                 ; +0x61, 0x1800391a1\nmov     rcx, rbx; this                                                 ; +0x65, 0x1800391a5\ncall    ??0CCAction@cocos2d@@QEAA@XZ; cocos2d::CCAction::CCAction(void) ; +0x68, 0x1800391a8\nmov     [rbx+50h], edi                                                 ; +0x6d, 0x1800391ad\nlea     rax, ??_7CCProgressFromTo@cocos2d@@6B@; const cocos2d::CCProgressFromTo::`vftable' ; +0x70, 0x1800391b0\nmov     [rbx], rax                                                     ; +0x77, 0x1800391b7\njmp     short loc_1800391BF                                            ; +0x7a, 0x1800391ba\nmov     rbx, rdi                                                       ; +0x7c, 0x1800391bc\nmov     ecx, 8; Size                                                   ; +0x7f, 0x1800391bf\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x84, 0x1800391c4\nmov     [rsp+48h+arg_0], rax                                           ; +0x89, 0x1800391c9\ntest    rax, rax                                                       ; +0x8e, 0x1800391ce\njz      short loc_1800391E0                                            ; +0x91, 0x1800391d1\nmov     rdx, rbx; struct tinyxml2::XMLNode *                           ; +0x93, 0x1800391d3\nmov     rcx, rax; this                                                 ; +0x96, 0x1800391d6\ncall    ??0XMLHandle@tinyxml2@@QEAA@PEAVXMLNode@1@@Z; tinyxml2::XMLHandle::XMLHandle(tinyxml2::XMLNode *) ; +0x99, 0x1800391d9\njmp     short loc_1800391E3                                            ; +0x9e, 0x1800391de\nmov     rax, rdi                                                       ; +0xa0, 0x1800391e0\nmov     rdi, rax                                                       ; +0xa3, 0x1800391e3\nmov     rdx, rax; struct cocos2d::CCZone *                             ; +0xa6, 0x1800391e6\nmov     rcx, rsi; this                                                 ; +0xa9, 0x1800391e9\ncall    ?copyWithZone@CCActionInterval@cocos2d@@UEAAPEAVCCObject@2@PEAVCCZone@2@@Z; cocos2d::CCActionInterval::copyWithZone(cocos2d::CCZone *) ; +0xac, 0x1800391ec\nmovss   xmm6, dword ptr [rsi+60h]                                      ; +0xb1, 0x1800391f1\nmovss   xmm7, dword ptr [rsi+64h]                                      ; +0xb6, 0x1800391f6\nmovss   xmm1, dword ptr [rsi+50h]; float                               ; +0xbb, 0x1800391fb\nmov     rcx, rbx; this                                                 ; +0xc0, 0x180039200\ncall    ?initWithDuration@CCActionInterval@cocos2d@@QEAA_NM@Z; cocos2d::CCActionInterval::initWithDuration(float) ; +0xc3, 0x180039203\ntest    al, al                                                         ; +0xc8, 0x180039208\njz      short loc_180039216                                            ; +0xca, 0x18003920a\nmovss   dword ptr [rbx+60h], xmm6                                      ; +0xcc, 0x18003920c\nmovss   dword ptr [rbx+64h], xmm7                                      ; +0xd1, 0x180039211\ntest    rdi, rdi                                                       ; +0xd6, 0x180039216\njz      short loc_180039228                                            ; +0xd9, 0x180039219\nmov     edx, 8                                                         ; +0xdb, 0x18003921b\nmov     rcx, rdi; Block                                                ; +0xe0, 0x180039220\ncall    j_j_free_0                                                     ; +0xe3, 0x180039223\nmov     rax, rbx                                                       ; +0xe8, 0x180039228\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xeb, 0x18003922b\nmov     rsi, [rsp+48h+arg_10]                                          ; +0xf0, 0x180039230\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xf5, 0x180039235\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xfa, 0x18003923a\nadd     rsp, 40h                                                       ; +0xff, 0x18003923f\npop     rdi                                                            ; +0x103, 0x180039243\nretn                                                                   ; +0x104, 0x180039244", "xrefs": ["<???> @ 0x1800ea1b0", "<???> @ 0x1801438a8", "<???> @ 0x1801b0c9c"], "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"}