{"type": "func", "start": 4295220880, "end": 4295221239, "name": "EditorUI::copyObjectsDetailed", "pseudocode": "// \n// EditorUI::copyObjectsDetailed from 0x10003de90 to 0x10003dff7 (359 bytes)\n// \n// 1 xrefs:\n// > EditorUI::addObjectsToSmartTemplate @ 0x10004267a\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\nstd::string *__fastcall EditorUI::copyObjectsDetailed(std::string *this, __int64 a2, __int64 a3)\n{\n  void **v4; // rax\n  size_t v5; // rsi\n  unsigned int *v6; // rax\n  _QWORD *v7; // r14\n  unsigned __int64 v8; // r15\n  _DWORD *v9; // r13\n  __int64 v10; // rsi\n  __int64 v11; // rax\n  const std::string::value_type *p_s; // rsi\n  std::string::size_type v13; // rdx\n  char v15; // [rsp+8h] [rbp-58h] BYREF\n  _BYTE v16[8]; // [rsp+10h] [rbp-50h] BYREF\n  __int64 v17; // [rsp+18h] [rbp-48h]\n  unsigned __int8 v18; // [rsp+20h] [rbp-40h] BYREF\n  std::string::value_type __s; // [rsp+21h] [rbp-3Fh] BYREF\n  std::string::size_type v20; // [rsp+28h] [rbp-38h]\n  void *__p; // [rsp+30h] [rbp-30h]\n  double v22; // 0:xmm0_8.8\n\n  v17 = a2;\n  v4 = *(void ***)(a3 + 56);\n  v5 = *(unsigned int *)v4;\n  qsort(v4[2], v5, 8u, (int (__cdecl *)(const void *, const void *))_compar);\n  *(cocos2d::CCPoint *)&v22 = EditorUI::getGroupCenter((EditorUI *)&v15, (cocos2d::CCArray *)v5, a3);\n  *(_WORD *)&this->__r_.__value_.__l.0 = 0;\n  v6 = *(unsigned int **)(a3 + 56);\n  if ( *v6 )\n  {\n    v7 = *((_QWORD **)v6 + 2);\n    v8 = (unsigned __int64)&v7[*v6 - 1];\n    do\n    {\n      v9 = (_DWORD *)*v7;\n      if ( !*v7 )\n        break;\n      if ( v9[257] != 749 )\n      {\n        v10 = (*(__int64 (__fastcall **)(_QWORD, double))(*(_QWORD *)v9 + 192LL))(*v7, v22);\n        v22 = sub_10028CC60(v16);\n        v11 = (*(__int64 (__fastcall **)(_DWORD *, __int64, double))(*(_QWORD *)v9 + 192LL))(v9, v10, v22);\n        sub_10028CD00(&v18, v11, &v15);\n        (*(void (__fastcall **)(_DWORD *, unsigned __int8 *))(*(_QWORD *)v9 + 184LL))(v9, &v18);\n        (*(void (__fastcall **)(unsigned __int8 *, _DWORD *, _QWORD))(*(_QWORD *)v9 + 1376LL))(\n          &v18,\n          v9,\n          *(_QWORD *)(v17 + 1256));\n        (*(void (__fastcall **)(_DWORD *, _BYTE *))(*(_QWORD *)v9 + 184LL))(v9, v16);\n        if ( (v18 & 1) != 0 )\n        {\n          p_s = (const std::string::value_type *)__p;\n          v13 = v20;\n        }\n        else\n        {\n          v13 = v18 >> 1;\n          p_s = &__s;\n        }\n        std::string::append(this, p_s, v13);\n        std::string::append(this, \";\");\n        if ( (v18 & 1) != 0 )\n          operator delete(__p);\n      }\n      ++v7;\n    }\n    while ( (unsigned __int64)v7 <= v8 );\n  }\n  return this;\n}", "assembly": "; \n; EditorUI::copyObjectsDetailed from 0x10003de90 to 0x10003dff7 (359 bytes)\n; \n; 1 xrefs:\n; > EditorUI::addObjectsToSmartTemplate @ 0x10004267a\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\npush    rbp                                                            ; +0x0, 0x10003de90\nmov     rbp, rsp                                                       ; +0x1, 0x10003de91\npush    r15                                                            ; +0x4, 0x10003de94\npush    r14                                                            ; +0x6, 0x10003de96\npush    r13                                                            ; +0x8, 0x10003de98\npush    r12                                                            ; +0xa, 0x10003de9a\npush    rbx                                                            ; +0xc, 0x10003de9c\nsub     rsp, 38h                                                       ; +0xd, 0x10003de9d\nmov     r15, rdx                                                       ; +0x11, 0x10003dea1\nmov     [rbp+var_48], rsi                                              ; +0x14, 0x10003dea4\nmov     rbx, rdi                                                       ; +0x18, 0x10003dea8\nmov     rax, [rdx+38h]                                                 ; +0x1b, 0x10003deab\nmov     rdi, [rax+10h]; __base                                         ; +0x1f, 0x10003deaf\nmov     esi, [rax]; __nel                                              ; +0x23, 0x10003deb3\nlea     rcx, __compar; __compar                                        ; +0x25, 0x10003deb5\nmov     edx, 8; __width                                                ; +0x2c, 0x10003debc\ncall    _qsort                                                         ; +0x31, 0x10003dec1\nlea     rdi, [rbp+var_58]                                              ; +0x36, 0x10003dec6\nmov     rdx, r15                                                       ; +0x3a, 0x10003deca\nxor     ecx, ecx                                                       ; +0x3d, 0x10003decd\ncall    EditorUI__getGroupCenter                                       ; +0x3f, 0x10003decf\nmov     word ptr [rbx], 0                                              ; +0x44, 0x10003ded4\nmov     rax, [r15+38h]                                                 ; +0x49, 0x10003ded9\nmov     ecx, [rax]                                                     ; +0x4d, 0x10003dedd\ntest    rcx, rcx                                                       ; +0x4f, 0x10003dedf\njz      loc_10003DFE5                                                  ; +0x52, 0x10003dee2\nmov     r14, [rax+10h]                                                 ; +0x58, 0x10003dee8\nlea     r15, [r14+rcx*8]                                               ; +0x5c, 0x10003deec\nadd     r15, 0FFFFFFFFFFFFFFF8h                                        ; +0x60, 0x10003def0\nlea     r12, [rbp+var_40]                                              ; +0x64, 0x10003def4\njmp     short loc_10003DF0D                                            ; +0x68, 0x10003def8\nalign 20h                                                              ; +0x6a, 0x10003defa\nadd     r14, 8                                                         ; +0x70, 0x10003df00\ncmp     r14, r15                                                       ; +0x74, 0x10003df04\nja      loc_10003DFE5                                                  ; +0x77, 0x10003df07\nmov     r13, [r14]                                                     ; +0x7d, 0x10003df0d\ntest    r13, r13                                                       ; +0x80, 0x10003df10\njz      loc_10003DFE5                                                  ; +0x83, 0x10003df13\ncmp     dword ptr [r13+404h], 2EDh                                     ; +0x89, 0x10003df19\njz      short loc_10003DF00                                            ; +0x94, 0x10003df24\nmov     rax, [r13+0]                                                   ; +0x96, 0x10003df26\nmov     rdi, r13                                                       ; +0x9a, 0x10003df2a\ncall    qword ptr [rax+0C0h]                                           ; +0x9d, 0x10003df2d\nlea     rdi, [rbp+var_50]                                              ; +0xa3, 0x10003df33\nmov     rsi, rax                                                       ; +0xa7, 0x10003df37\ncall    sub_10028CC60                                                  ; +0xaa, 0x10003df3a\nmov     rax, [r13+0]                                                   ; +0xaf, 0x10003df3f\nmov     rdi, r13                                                       ; +0xb3, 0x10003df43\ncall    qword ptr [rax+0C0h]                                           ; +0xb6, 0x10003df46\nmov     rdi, r12                                                       ; +0xbc, 0x10003df4c\nmov     rsi, rax                                                       ; +0xbf, 0x10003df4f\nlea     rdx, [rbp+var_58]                                              ; +0xc2, 0x10003df52\ncall    sub_10028CD00                                                  ; +0xc6, 0x10003df56\nmov     rax, [r13+0]                                                   ; +0xcb, 0x10003df5b\nmov     rdi, r13                                                       ; +0xcf, 0x10003df5f\nmov     rsi, r12                                                       ; +0xd2, 0x10003df62\ncall    qword ptr [rax+0B8h]                                           ; +0xd5, 0x10003df65\nmov     rax, [rbp+var_48]                                              ; +0xdb, 0x10003df6b\nmov     rdx, [rax+4E8h]                                                ; +0xdf, 0x10003df6f\nmov     rax, [r13+0]                                                   ; +0xe6, 0x10003df76\nmov     rdi, r12                                                       ; +0xea, 0x10003df7a\nmov     rsi, r13                                                       ; +0xed, 0x10003df7d\ncall    qword ptr [rax+560h]                                           ; +0xf0, 0x10003df80\nmov     rax, [r13+0]                                                   ; +0xf6, 0x10003df86\nmov     rdi, r13                                                       ; +0xfa, 0x10003df8a\nlea     rsi, [rbp+var_50]                                              ; +0xfd, 0x10003df8d\ncall    qword ptr [rax+0B8h]                                           ; +0x101, 0x10003df91\nmovzx   edx, [rbp+var_40]                                              ; +0x107, 0x10003df97\ntest    dl, 1                                                          ; +0x10b, 0x10003df9b\njz      short loc_10003DFB0                                            ; +0x10e, 0x10003df9e\nmov     rsi, [rbp+__p]                                                 ; +0x110, 0x10003dfa0\nmov     rdx, [rbp+var_38]                                              ; +0x114, 0x10003dfa4\njmp     short loc_10003DFB6                                            ; +0x118, 0x10003dfa8\nalign 10h                                                              ; +0x11a, 0x10003dfaa\nshr     edx, 1; __n                                                    ; +0x120, 0x10003dfb0\nlea     rsi, [rbp+__s]; __s                                            ; +0x122, 0x10003dfb2\nmov     rdi, rbx; this                                                 ; +0x126, 0x10003dfb6\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKcm; std::string::append(char const*,ulong) ; +0x129, 0x10003dfb9\nmov     rdi, rbx; this                                                 ; +0x12e, 0x10003dfbe\nlea     rsi, asc_10086A4C2; \";\"                                        ; +0x131, 0x10003dfc1\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x138, 0x10003dfc8\ntest    [rbp+var_40], 1                                                ; +0x13d, 0x10003dfcd\njz      loc_10003DF00                                                  ; +0x141, 0x10003dfd1\nmov     rdi, [rbp+__p]; __p                                            ; +0x147, 0x10003dfd7\ncall    __ZdlPv; operator delete(void *)                               ; +0x14b, 0x10003dfdb\njmp     loc_10003DF00                                                  ; +0x150, 0x10003dfe0\nmov     rax, rbx                                                       ; +0x155, 0x10003dfe5\nadd     rsp, 38h                                                       ; +0x158, 0x10003dfe8\npop     rbx                                                            ; +0x15c, 0x10003dfec\npop     r12                                                            ; +0x15d, 0x10003dfed\npop     r13                                                            ; +0x15f, 0x10003dfef\npop     r14                                                            ; +0x161, 0x10003dff1\npop     r15                                                            ; +0x163, 0x10003dff3\npop     rbp                                                            ; +0x165, 0x10003dff5\nretn                                                                   ; +0x166, 0x10003dff6", "xrefs": ["EditorUI::addObjectsToSmartTemplate @ 0x10004267a"], "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"}