{"type": "func", "start": 6442565728, "end": 6442566043, "name": "DS_Dictionary::loadRootSubDictFromString", "pseudocode": "// \n// DS_Dictionary::loadRootSubDictFromString from 0x18001c060 to 0x18001c19b (315 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801aeaa0\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\nchar __fastcall DS_Dictionary::loadRootSubDictFromString(__int64 a1, _QWORD *a2)\n{\n  _QWORD *v2; // r14\n  _QWORD *v3; // rdi\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  _QWORD *v7; // rax\n  _BYTE *v8; // rdx\n  const struct __crt_strtox::big_integer *v9; // rdx\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  __int64 v12; // rax\n  __int64 v13; // rax\n  _BYTE v15[56]; // [rsp+30h] [rbp-38h] BYREF\n  cocos2d::CCThread v16; // [rsp+78h] [rbp+10h] BYREF\n  char v17; // [rsp+80h] [rbp+18h] BYREF\n\n  v2 = a2 + 2;\n  v3 = a2;\n  if ( !a2[2] )\n    return 0;\n  v5 = a1 + 208;\n  v6 = *(_QWORD *)(a1 + 208);\n  if ( v6 != *(_QWORD *)(a1 + 216) )\n    *(_QWORD *)(a1 + 216) = v6;\n  v7 = (_QWORD *)pugi::xml_node::xml_node(&v16);\n  v8 = *(_BYTE **)(v5 + 8);\n  if ( v8 == *(_BYTE **)(v5 + 16) )\n  {\n    sub_180015D80((const void **)v5, v8, v7);\n  }\n  else\n  {\n    *(_QWORD *)v8 = *v7;\n    *(_QWORD *)(v5 + 8) += 8LL;\n  }\n  if ( v3[3] > 0xFu )\n    v3 = (_QWORD *)*v3;\n  pugi::xml_document::load_buffer(a1, v15, v3, *v2, 116, 0);\n  if ( !__crt_strtox::is_zero((__crt_strtox *)v15, v9) )\n    return 0;\n  v10 = *(_QWORD *)(a1 + 216);\n  v11 = sub_18007FB10(a1, &v16, \"plist\");\n  *(_QWORD *)(v10 - 8) = *(_QWORD *)sub_18007FB10(v11, &v17, \"dict\");\n  v12 = sub_18007FB10(a1, &v16, \"plist\");\n  v13 = sub_18007FAB0(v12, &v17, \"gjver\");\n  *(_BYTE *)(a1 + 232) = (int)sub_18007FA30(v13, 0) < 2;\n  return 1;\n}", "assembly": "; \n; DS_Dictionary::loadRootSubDictFromString from 0x18001c060 to 0x18001c19b (315 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801aeaa0\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, 0x18001c060\npush    rsi                                                            ; +0x5, 0x18001c065\npush    rdi                                                            ; +0x6, 0x18001c066\npush    r14                                                            ; +0x7, 0x18001c067\nsub     rsp, 50h                                                       ; +0x9, 0x18001c069\ncmp     qword ptr [rdx+10h], 0                                         ; +0xd, 0x18001c06d\nlea     r14, [rdx+10h]                                                 ; +0x12, 0x18001c072\nmov     rdi, rdx                                                       ; +0x16, 0x18001c076\nmov     rsi, rcx                                                       ; +0x19, 0x18001c079\njz      loc_18001C18B                                                  ; +0x1c, 0x18001c07c\nlea     rbx, [rcx+0D0h]                                                ; +0x22, 0x18001c082\nmov     rax, [rbx]                                                     ; +0x29, 0x18001c089\ncmp     rax, [rbx+8]                                                   ; +0x2c, 0x18001c08c\njz      short loc_18001C096                                            ; +0x30, 0x18001c090\nmov     [rbx+8], rax                                                   ; +0x32, 0x18001c092\nlea     rcx, [rsp+68h+arg_8]; this                                     ; +0x36, 0x18001c096\ncall    pugi__xml_node__xml_node                                       ; +0x3b, 0x18001c09b\nmov     rdx, [rbx+8]                                                   ; +0x40, 0x18001c0a0\ncmp     rdx, [rbx+10h]                                                 ; +0x44, 0x18001c0a4\njz      short loc_18001C0B7                                            ; +0x48, 0x18001c0a8\nmov     rax, [rax]                                                     ; +0x4a, 0x18001c0aa\nmov     [rdx], rax                                                     ; +0x4d, 0x18001c0ad\nadd     qword ptr [rbx+8], 8                                           ; +0x50, 0x18001c0b0\njmp     short loc_18001C0C2                                            ; +0x55, 0x18001c0b5\nmov     r8, rax                                                        ; +0x57, 0x18001c0b7\nmov     rcx, rbx                                                       ; +0x5a, 0x18001c0ba\ncall    sub_180015D80                                                  ; +0x5d, 0x18001c0bd\ncmp     qword ptr [rdi+18h], 0Fh                                       ; +0x62, 0x18001c0c2\njbe     short loc_18001C0CC                                            ; +0x67, 0x18001c0c7\nmov     rdi, [rdi]                                                     ; +0x69, 0x18001c0c9\nmov     r9, [r14]                                                      ; +0x6c, 0x18001c0cc\nlea     rdx, [rsp+68h+var_38]                                          ; +0x6f, 0x18001c0cf\nmov     [rsp+68h+var_40], 0                                            ; +0x74, 0x18001c0d4\nmov     r8, rdi                                                        ; +0x7c, 0x18001c0dc\nmov     rcx, rsi                                                       ; +0x7f, 0x18001c0df\nmov     [rsp+68h+var_48], 74h ; 't'                                    ; +0x82, 0x18001c0e2\ncall    ?load_buffer@xml_document@pugi@@QEAA?AUxml_parse_result@2@PEBX_KIW4xml_encoding@2@@Z; pugi::xml_document::load_buffer(void const *,unsigned __int64,uint,pugi::xml_encoding) ; +0x8a, 0x18001c0ea\nlea     rcx, [rsp+68h+var_38]; this                                    ; +0x8f, 0x18001c0ef\ncall    ?is_zero@__crt_strtox@@YA_NAEBUbig_integer@1@@Z; __crt_strtox::is_zero(__crt_strtox::big_integer const &) ; +0x94, 0x18001c0f4\ntest    al, al                                                         ; +0x99, 0x18001c0f9\njz      loc_18001C18B                                                  ; +0x9b, 0x18001c0fb\nmov     rbx, [rsi+0D8h]                                                ; +0xa1, 0x18001c101\nlea     r8, aPlist; \"plist\"                                            ; +0xa8, 0x18001c108\nlea     rdx, [rsp+68h+arg_8]                                           ; +0xaf, 0x18001c10f\nmov     rcx, rsi                                                       ; +0xb4, 0x18001c114\ncall    sub_18007FB10                                                  ; +0xb7, 0x18001c117\nmov     rcx, rax                                                       ; +0xbc, 0x18001c11c\nlea     r8, aDict_1; \"dict\"                                            ; +0xbf, 0x18001c11f\nlea     rdx, [rsp+68h+arg_10]                                          ; +0xc6, 0x18001c126\ncall    sub_18007FB10                                                  ; +0xce, 0x18001c12e\nlea     r8, aPlist; \"plist\"                                            ; +0xd3, 0x18001c133\nlea     rdx, [rsp+68h+arg_8]                                           ; +0xda, 0x18001c13a\nmov     rcx, [rax]                                                     ; +0xdf, 0x18001c13f\nmov     [rbx-8], rcx                                                   ; +0xe2, 0x18001c142\nmov     rcx, rsi                                                       ; +0xe6, 0x18001c146\ncall    sub_18007FB10                                                  ; +0xe9, 0x18001c149\nmov     rcx, rax                                                       ; +0xee, 0x18001c14e\nlea     r8, aGjver; \"gjver\"                                            ; +0xf1, 0x18001c151\nlea     rdx, [rsp+68h+arg_10]                                          ; +0xf8, 0x18001c158\ncall    sub_18007FAB0                                                  ; +0x100, 0x18001c160\nmov     rcx, rax                                                       ; +0x105, 0x18001c165\nxor     edx, edx                                                       ; +0x108, 0x18001c168\ncall    sub_18007FA30                                                  ; +0x10a, 0x18001c16a\ncmp     eax, 2                                                         ; +0x10f, 0x18001c16f\nsetl    al                                                             ; +0x112, 0x18001c172\nmov     [rsi+0E8h], al                                                 ; +0x115, 0x18001c175\nmov     al, 1                                                          ; +0x11b, 0x18001c17b\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x11d, 0x18001c17d\nadd     rsp, 50h                                                       ; +0x122, 0x18001c182\npop     r14                                                            ; +0x126, 0x18001c186\npop     rdi                                                            ; +0x128, 0x18001c188\npop     rsi                                                            ; +0x129, 0x18001c189\nretn                                                                   ; +0x12a, 0x18001c18a\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x12b, 0x18001c18b\nxor     al, al                                                         ; +0x130, 0x18001c190\nadd     rsp, 50h                                                       ; +0x132, 0x18001c192\npop     r14                                                            ; +0x136, 0x18001c196\npop     rdi                                                            ; +0x138, 0x18001c198\npop     rsi                                                            ; +0x139, 0x18001c199\nretn                                                                   ; +0x13a, 0x18001c19a", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801aeaa0"], "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"}