{"type": "func", "start": 6442517072, "end": 6442517181, "name": "cocos2d::CCString::copyWithZone", "pseudocode": "// \n// cocos2d::CCString::copyWithZone from 0x180010250 to 0x1800102bd (109 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x1800e6688\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae0ec\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\nstruct cocos2d::CCObject *__fastcall cocos2d::CCString::copyWithZone(\n        cocos2d::CCString *this,\n        struct cocos2d::CCZone *a2)\n{\n  cocos2d::CCObject *v3; // rax\n  _QWORD *v4; // rdi\n  std::string *p_m_sString; // rbx\n\n  v3 = (cocos2d::CCObject *)operator new(0x58u);\n  v4 = &v3->__vftable;\n  if ( !v3 )\n    return nullptr;\n  p_m_sString = &this->m_sString;\n  if ( p_m_sString->m_data.m_capacity > 0xF )\n    p_m_sString = (std::string *)p_m_sString->m_data.m_bigStorage;\n  cocos2d::CCObject::CCObject(v3);\n  *v4 = &cocos2d::CCString::`vftable';\n  sub_180005910(v4 + 7, p_m_sString);\n  return (struct cocos2d::CCObject *)v4;\n}", "assembly": "; \n; cocos2d::CCString::copyWithZone from 0x180010250 to 0x1800102bd (109 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x1800e6688\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae0ec\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, 0x180010250\npush    rdi                                                            ; +0x5, 0x180010255\nsub     rsp, 20h                                                       ; +0x6, 0x180010256\nmov     rbx, rcx                                                       ; +0xa, 0x18001025a\nmov     ecx, 58h ; 'X'; Size                                           ; +0xd, 0x18001025d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x180010262\nmov     rdi, rax                                                       ; +0x17, 0x180010267\nmov     [rsp+28h+arg_10], rax                                          ; +0x1a, 0x18001026a\ntest    rax, rax                                                       ; +0x1f, 0x18001026f\njz      short loc_1800102B0                                            ; +0x22, 0x180010272\nadd     rbx, 38h ; '8'                                                 ; +0x24, 0x180010274\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x28, 0x180010278\njbe     short loc_180010282                                            ; +0x2d, 0x18001027d\nmov     rbx, [rbx]                                                     ; +0x2f, 0x18001027f\nmov     rcx, rdi; this                                                 ; +0x32, 0x180010282\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x35, 0x180010285\nnop                                                                    ; +0x3a, 0x18001028a\nlea     rax, ??_7CCString@cocos2d@@6B@; const cocos2d::CCString::`vftable' ; +0x3b, 0x18001028b\nmov     [rdi], rax                                                     ; +0x42, 0x180010292\nlea     rcx, [rdi+38h]                                                 ; +0x45, 0x180010295\nmov     rdx, rbx                                                       ; +0x49, 0x180010299\ncall    sub_180005910                                                  ; +0x4c, 0x18001029c\nnop                                                                    ; +0x51, 0x1800102a1\nmov     rax, rdi                                                       ; +0x52, 0x1800102a2\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x55, 0x1800102a5\nadd     rsp, 20h                                                       ; +0x5a, 0x1800102aa\npop     rdi                                                            ; +0x5e, 0x1800102ae\nretn                                                                   ; +0x5f, 0x1800102af\nxor     eax, eax                                                       ; +0x60, 0x1800102b0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x62, 0x1800102b2\nadd     rsp, 20h                                                       ; +0x67, 0x1800102b7\npop     rdi                                                            ; +0x6b, 0x1800102bb\nretn                                                                   ; +0x6c, 0x1800102bc", "xrefs": ["<???> @ 0x1800e6688", "<???> @ 0x1801438a8", "<???> @ 0x1801ae0ec"], "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"}