{"type": "func", "start": 4296515920, "end": 4296516459, "name": "DS_Dictionary::splitWithForm", "pseudocode": "// \n// DS_Dictionary::splitWithForm from 0x10017a150 to 0x10017a36b (539 bytes)\n// \n// 3 xrefs:\n// > DS_Dictionary::rectFromString @ 0x10017a71e\n// > DS_Dictionary::rectFromString @ 0x10017a751\n// > DS_Dictionary::vec2FromString @ 0x10017a9e3\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\nbool __fastcall DS_Dictionary::splitWithForm(DS_Dictionary *a1, std::string *const a2, std::vector<std::string> *a3)\n{\n  double v3; // xmm0_8\n  unsigned int sizex2; // eax\n  bool v6; // r15\n  int v7; // r12d\n  int v8; // eax\n  int v9; // ecx\n  __int64 v10; // rbx\n  unsigned int v11; // r15d\n  std::size_t size; // r15\n  std::array<char, 23> *p_shortStorage; // r14\n  std::size_t v14; // rax\n  std::size_t v15; // r15\n  char *elems; // r12\n  unsigned int v17; // eax\n  size_t v18; // r13\n  int v19; // r12d\n  int v20; // eax\n  std::__vector_base<std::string>::pointer begin; // rax\n  unsigned int v22; // ecx\n  unsigned int v24; // ecx\n  std::size_t v25; // rcx\n  std::vector<std::string> *v27; // [rsp+8h] [rbp-48h]\n  std::string __dst[2]; // [rsp+10h] [rbp-40h] BYREF\n\n  sizex2 = a2->m_data.m_short.sizex2;\n  if ( (sizex2 & 1) != 0 )\n  {\n    v6 = 0;\n    if ( !a2->m_data.m_long.size )\n      return v6;\n  }\n  else\n  {\n    v6 = 0;\n    if ( !(sizex2 >> 1) )\n      return v6;\n  }\n  v7 = std::string::find((const std::string *)a2, 123, 0);\n  v8 = std::string::find((const std::string *)a2, 125, 0);\n  if ( v7 == -1 || v8 == -1 || v7 > v8 )\n    return v6;\n  v9 = v7 + 1;\n  v10 = v7 + 1;\n  v11 = a2->m_data.m_short.sizex2;\n  if ( (v11 & 1) == 0 )\n  {\n    size = v11 >> 1;\n    if ( v9 <= size )\n    {\n      p_shortStorage = &a2->m_data.m_short.shortStorage;\n      goto LABEL_11;\n    }\nLABEL_40:\n    sub_1000547C0();\n  }\n  size = a2->m_data.m_long.size;\n  if ( size < v9 )\n    goto LABEL_40;\n  p_shortStorage = (std::array<char, 23> *)a2->m_data.m_long.longStorage;\nLABEL_11:\n  v14 = ~v7 + v8;\n  v15 = size - v9;\n  if ( v15 >= v14 )\n    v15 = v14;\n  if ( v15 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v3);\n  if ( v15 >= 0x17 )\n  {\n    v27 = a3;\n    v18 = 26;\n    if ( (v15 | 7) != 0x17 )\n      v18 = (v15 | 7) + 1;\n    elems = (char *)operator new(v18);\n    __dst[0].m_data.m_long.longStorage = elems;\n    __dst[0].m_data.m_long.capacitym1 = v18 + 1;\n    a3 = v27;\n    __dst[0].m_data.m_long.size = v15;\n  }\n  else\n  {\n    __dst[0].m_data.m_short.sizex2 = 2 * v15;\n    elems = __dst[0].m_data.m_short.shortStorage.__elems_;\n    if ( !v15 )\n    {\n      __dst[0].m_data.m_short.shortStorage.__elems_[0] = 0;\n      v17 = __dst[0].m_data.m_short.sizex2;\n      if ( (__dst[0].m_data.m_short.sizex2 & 1) != 0 )\n        goto LABEL_17;\n      goto LABEL_23;\n    }\n  }\n  memmove(elems, &p_shortStorage->__elems_[v10], v15);\n  elems[v15] = 0;\n  v17 = __dst[0].m_data.m_short.sizex2;\n  if ( (__dst[0].m_data.m_short.sizex2 & 1) != 0 )\n  {\nLABEL_17:\n    v6 = 0;\n    if ( !__dst[0].m_data.m_long.size )\n      goto LABEL_34;\n    goto LABEL_24;\n  }\nLABEL_23:\n  v6 = 0;\n  if ( !(v17 >> 1) )\n    goto LABEL_34;\nLABEL_24:\n  v19 = std::string::find((const std::string *)__dst, 123, 0);\n  v20 = std::string::find((const std::string *)__dst, 125, 0);\n  if ( v19 == -1 && v20 == -1 )\n  {\n    DS_Dictionary::split((DS_Dictionary *)__dst, __dst, \",\", a3);\n    begin = a3->__begin_;\n    if ( (std::__vector_base<std::string>::pointer)((char *)a3->__end_ - (char *)a3->__begin_) == (std::__vector_base<std::string>::pointer)48 )\n    {\n      v22 = begin->m_data.m_short.sizex2;\n      if ( (v22 & 1) != 0 ? begin->m_data.m_long.size : v22 >> 1 )\n      {\n        v24 = begin[1].m_data.m_short.sizex2;\n        if ( (v24 & 1) != 0 )\n          v25 = begin[1].m_data.m_long.size;\n        else\n          v25 = v24 >> 1;\n        v6 = v25 != 0;\n        if ( (__dst[0].m_data.m_short.sizex2 & 1) != 0 )\n          goto LABEL_35;\n        return v6;\n      }\n    }\n    v6 = 0;\n  }\nLABEL_34:\n  if ( (__dst[0].m_data.m_short.sizex2 & 1) != 0 )\nLABEL_35:\n    operator delete(__dst[0].m_data.m_long.longStorage);\n  return v6;\n}", "assembly": "; \n; DS_Dictionary::splitWithForm from 0x10017a150 to 0x10017a36b (539 bytes)\n; \n; 3 xrefs:\n; > DS_Dictionary::rectFromString @ 0x10017a71e\n; > DS_Dictionary::rectFromString @ 0x10017a751\n; > DS_Dictionary::vec2FromString @ 0x10017a9e3\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, 0x10017a150\nmov     rbp, rsp                                                       ; +0x1, 0x10017a151\npush    r15                                                            ; +0x4, 0x10017a154\npush    r14                                                            ; +0x6, 0x10017a156\npush    r13                                                            ; +0x8, 0x10017a158\npush    r12                                                            ; +0xa, 0x10017a15a\npush    rbx                                                            ; +0xc, 0x10017a15c\nsub     rsp, 28h                                                       ; +0xd, 0x10017a15d\nmov     r13, rdx                                                       ; +0x11, 0x10017a161\nmov     r14, rsi                                                       ; +0x14, 0x10017a164\nmovzx   eax, byte ptr [rsi]                                            ; +0x17, 0x10017a167\ntest    al, 1                                                          ; +0x1a, 0x10017a16a\njz      short loc_10017A17F                                            ; +0x1c, 0x10017a16c\nmov     rax, [r14+8]                                                   ; +0x1e, 0x10017a16e\nxor     r15d, r15d                                                     ; +0x22, 0x10017a172\ntest    rax, rax                                                       ; +0x25, 0x10017a175\njnz     short loc_10017A18D                                            ; +0x28, 0x10017a178\njmp     loc_10017A33C                                                  ; +0x2a, 0x10017a17a\nshr     eax, 1                                                         ; +0x2f, 0x10017a17f\nxor     r15d, r15d                                                     ; +0x31, 0x10017a181\ntest    rax, rax                                                       ; +0x34, 0x10017a184\njz      loc_10017A33C                                                  ; +0x37, 0x10017a187\nmov     rdi, r14; this                                                 ; +0x3d, 0x10017a18d\nmov     esi, 7Bh ; '{'; __c                                            ; +0x40, 0x10017a190\nxor     edx, edx; __pos                                                ; +0x45, 0x10017a195\ncall    __ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcm; std::string::find(char,ulong) ; +0x47, 0x10017a197\nmov     r12, rax                                                       ; +0x4c, 0x10017a19c\nmov     rdi, r14; this                                                 ; +0x4f, 0x10017a19f\nmov     esi, 7Dh ; '}'; __c                                            ; +0x52, 0x10017a1a2\nxor     edx, edx; __pos                                                ; +0x57, 0x10017a1a7\ncall    __ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcm; std::string::find(char,ulong) ; +0x59, 0x10017a1a9\ncmp     r12d, 0FFFFFFFFh                                               ; +0x5e, 0x10017a1ae\nsetz    cl                                                             ; +0x62, 0x10017a1b2\ncmp     eax, 0FFFFFFFFh                                                ; +0x65, 0x10017a1b5\nsetz    dl                                                             ; +0x68, 0x10017a1b8\nor      dl, cl                                                         ; +0x6b, 0x10017a1bb\ncmp     r12d, eax                                                      ; +0x6d, 0x10017a1bd\nsetnle  cl                                                             ; +0x70, 0x10017a1c0\nor      cl, dl                                                         ; +0x73, 0x10017a1c3\njnz     loc_10017A33C                                                  ; +0x75, 0x10017a1c5\nlea     ecx, [r12+1]                                                   ; +0x7b, 0x10017a1cb\nmovsxd  rbx, ecx                                                       ; +0x80, 0x10017a1d0\nmovzx   r15d, byte ptr [r14]                                           ; +0x83, 0x10017a1d3\ntest    r15b, 1                                                        ; +0x87, 0x10017a1d7\njnz     short loc_10017A1EE                                            ; +0x8b, 0x10017a1db\nshr     r15d, 1                                                        ; +0x8d, 0x10017a1dd\ncmp     rbx, r15                                                       ; +0x90, 0x10017a1e0\nja      loc_10017A361                                                  ; +0x93, 0x10017a1e3\ninc     r14                                                            ; +0x99, 0x10017a1e9\njmp     short loc_10017A1FF                                            ; +0x9c, 0x10017a1ec\nmov     r15, [r14+8]                                                   ; +0x9e, 0x10017a1ee\ncmp     r15, rbx                                                       ; +0xa2, 0x10017a1f2\njb      loc_10017A361                                                  ; +0xa5, 0x10017a1f5\nmov     r14, [r14+10h]                                                 ; +0xab, 0x10017a1fb\nnot     r12d                                                           ; +0xaf, 0x10017a1ff\nadd     eax, r12d                                                      ; +0xb2, 0x10017a202\ncdqe                                                                   ; +0xb5, 0x10017a205\nsub     r15, rbx                                                       ; +0xb7, 0x10017a207\ncmp     r15, rax                                                       ; +0xba, 0x10017a20a\ncmovnb  r15, rax                                                       ; +0xbd, 0x10017a20d\ncmp     r15, 0FFFFFFFFFFFFFFF8h                                        ; +0xc1, 0x10017a211\njnb     loc_10017A366                                                  ; +0xc5, 0x10017a215\ncmp     r15, 17h                                                       ; +0xcb, 0x10017a21b\njnb     short loc_10017A24F                                            ; +0xcf, 0x10017a21f\nlea     eax, [r15+r15]                                                 ; +0xd1, 0x10017a221\nmov     byte ptr [rbp+__dst], al                                       ; +0xd5, 0x10017a225\nlea     r12, [rbp+__dst+1]                                             ; +0xd8, 0x10017a228\ntest    r15, r15                                                       ; +0xdc, 0x10017a22c\njnz     short loc_10017A28A                                            ; +0xdf, 0x10017a22f\nmov     byte ptr [r12+r15], 0                                          ; +0xe1, 0x10017a231\nmovzx   eax, byte ptr [rbp+__dst]                                      ; +0xe6, 0x10017a236\ntest    al, 1                                                          ; +0xea, 0x10017a23a\njz      short loc_10017A2A8                                            ; +0xec, 0x10017a23c\nmov     rax, [rbp+var_38]                                              ; +0xee, 0x10017a23e\nxor     r15d, r15d                                                     ; +0xf2, 0x10017a242\ntest    rax, rax                                                       ; +0xf5, 0x10017a245\njnz     short loc_10017A2B2                                            ; +0xf8, 0x10017a248\njmp     loc_10017A32D                                                  ; +0xfa, 0x10017a24a\nmov     rax, r15                                                       ; +0xff, 0x10017a24f\nor      rax, 7                                                         ; +0x102, 0x10017a252\nlea     rcx, [rax+1]                                                   ; +0x106, 0x10017a256\ncmp     rax, 17h                                                       ; +0x10a, 0x10017a25a\nmov     [rbp+var_48], r13                                              ; +0x10e, 0x10017a25e\nmov     r13d, 1Ah                                                      ; +0x112, 0x10017a262\ncmovnz  r13, rcx                                                       ; +0x118, 0x10017a268\nmov     rdi, r13; __sz                                                 ; +0x11c, 0x10017a26c\ncall    __Znwm; operator new(ulong)                                    ; +0x11f, 0x10017a26f\nmov     r12, rax                                                       ; +0x124, 0x10017a274\nmov     [rbp+__p], rax                                                 ; +0x127, 0x10017a277\ninc     r13                                                            ; +0x12b, 0x10017a27b\nmov     [rbp+__dst], r13                                               ; +0x12e, 0x10017a27e\nmov     r13, [rbp+var_48]                                              ; +0x132, 0x10017a282\nmov     [rbp+var_38], r15                                              ; +0x136, 0x10017a286\nadd     r14, rbx                                                       ; +0x13a, 0x10017a28a\nmov     rdi, r12; __dst                                                ; +0x13d, 0x10017a28d\nmov     rsi, r14; __src                                                ; +0x140, 0x10017a290\nmov     rdx, r15; __len                                                ; +0x143, 0x10017a293\ncall    _memmove                                                       ; +0x146, 0x10017a296\nmov     byte ptr [r12+r15], 0                                          ; +0x14b, 0x10017a29b\nmovzx   eax, byte ptr [rbp+__dst]                                      ; +0x150, 0x10017a2a0\ntest    al, 1                                                          ; +0x154, 0x10017a2a4\njnz     short loc_10017A23E                                            ; +0x156, 0x10017a2a6\nshr     eax, 1                                                         ; +0x158, 0x10017a2a8\nxor     r15d, r15d                                                     ; +0x15a, 0x10017a2aa\ntest    rax, rax                                                       ; +0x15d, 0x10017a2ad\njz      short loc_10017A32D                                            ; +0x160, 0x10017a2b0\nlea     r14, [rbp+__dst]                                               ; +0x162, 0x10017a2b2\nmov     rdi, r14; this                                                 ; +0x166, 0x10017a2b6\nmov     esi, 7Bh ; '{'; __c                                            ; +0x169, 0x10017a2b9\nxor     edx, edx; __pos                                                ; +0x16e, 0x10017a2be\ncall    __ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcm; std::string::find(char,ulong) ; +0x170, 0x10017a2c0\nmov     r12, rax                                                       ; +0x175, 0x10017a2c5\nmov     rdi, r14; this                                                 ; +0x178, 0x10017a2c8\nmov     esi, 7Dh ; '}'; __c                                            ; +0x17b, 0x10017a2cb\nxor     edx, edx; __pos                                                ; +0x180, 0x10017a2d0\ncall    __ZNKSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4findEcm; std::string::find(char,ulong) ; +0x182, 0x10017a2d2\ncmp     r12d, 0FFFFFFFFh                                               ; +0x187, 0x10017a2d7\njnz     short loc_10017A32D                                            ; +0x18b, 0x10017a2db\nmov     eax, eax                                                       ; +0x18d, 0x10017a2dd\ncmp     eax, 0FFFFFFFFh                                                ; +0x18f, 0x10017a2df\njnz     short loc_10017A32D                                            ; +0x192, 0x10017a2e2\nlea     rdx, asc_100868A42; \",\"                                        ; +0x194, 0x10017a2e4\nlea     rsi, [rbp+__dst]                                               ; +0x19b, 0x10017a2eb\nmov     rcx, r13                                                       ; +0x19f, 0x10017a2ef\ncall    DS_Dictionary__split                                           ; +0x1a2, 0x10017a2f2\nmov     rax, [r13+0]                                                   ; +0x1a7, 0x10017a2f7\nmov     rcx, [r13+8]                                                   ; +0x1ab, 0x10017a2fb\nsub     rcx, rax                                                       ; +0x1af, 0x10017a2ff\ncmp     rcx, 30h ; '0'                                                 ; +0x1b2, 0x10017a302\njnz     short loc_10017A32A                                            ; +0x1b6, 0x10017a306\nmovzx   ecx, byte ptr [rax]                                            ; +0x1b8, 0x10017a308\ntest    cl, 1                                                          ; +0x1bb, 0x10017a30b\njnz     short loc_10017A314                                            ; +0x1be, 0x10017a30e\nshr     ecx, 1                                                         ; +0x1c0, 0x10017a310\njmp     short loc_10017A318                                            ; +0x1c2, 0x10017a312\nmov     rcx, [rax+8]                                                   ; +0x1c4, 0x10017a314\ntest    rcx, rcx                                                       ; +0x1c8, 0x10017a318\njz      short loc_10017A32A                                            ; +0x1cb, 0x10017a31b\nmovzx   ecx, byte ptr [rax+18h]                                        ; +0x1cd, 0x10017a31d\ntest    cl, 1                                                          ; +0x1d1, 0x10017a321\njnz     short loc_10017A34E                                            ; +0x1d4, 0x10017a324\nshr     ecx, 1                                                         ; +0x1d6, 0x10017a326\njmp     short loc_10017A352                                            ; +0x1d8, 0x10017a328\nxor     r15d, r15d                                                     ; +0x1da, 0x10017a32a\ntest    byte ptr [rbp+__dst], 1                                        ; +0x1dd, 0x10017a32d\njz      short loc_10017A33C                                            ; +0x1e1, 0x10017a331\nmov     rdi, [rbp+__p]; __p                                            ; +0x1e3, 0x10017a333\ncall    __ZdlPv; operator delete(void *)                               ; +0x1e7, 0x10017a337\nmov     eax, r15d                                                      ; +0x1ec, 0x10017a33c\nadd     rsp, 28h                                                       ; +0x1ef, 0x10017a33f\npop     rbx                                                            ; +0x1f3, 0x10017a343\npop     r12                                                            ; +0x1f4, 0x10017a344\npop     r13                                                            ; +0x1f6, 0x10017a346\npop     r14                                                            ; +0x1f8, 0x10017a348\npop     r15                                                            ; +0x1fa, 0x10017a34a\npop     rbp                                                            ; +0x1fc, 0x10017a34c\nretn                                                                   ; +0x1fd, 0x10017a34d\nmov     rcx, [rax+20h]                                                 ; +0x1fe, 0x10017a34e\ntest    rcx, rcx                                                       ; +0x202, 0x10017a352\nsetnz   r15b                                                           ; +0x205, 0x10017a355\ntest    byte ptr [rbp+__dst], 1                                        ; +0x209, 0x10017a359\njz      short loc_10017A33C                                            ; +0x20d, 0x10017a35d\njmp     short loc_10017A333                                            ; +0x20f, 0x10017a35f\ncall    sub_1000547C0                                                  ; +0x211, 0x10017a361\ncall    sub_100006BF0                                                  ; +0x216, 0x10017a366", "xrefs": ["DS_Dictionary::rectFromString @ 0x10017a71e", "DS_Dictionary::rectFromString @ 0x10017a751", "DS_Dictionary::vec2FromString @ 0x10017a9e3"], "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"}