// // DS_Dictionary::DS_Dictionary from 0x100179900 to 0x100179ac2 (450 bytes) // // 1 xrefs: // > sub_100179B00 @ 0x100179b05 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // DS_Dictionary *__fastcall DS_Dictionary::DS_Dictionary(DS_Dictionary *a1) { std::__vector_base::pointer end; // r14 pugi::xml_node *value; // rax pugi::xml_node *v3; // r15 signed __int64 v4; // r14 __int64 v5; // r13 __int64 v6; // rax unsigned __int64 v7; // r15 pugi::xml_node *v8; // r12 DS_Dictionary *result; // rax std::__vector_base::pointer __src; // [rsp+0h] [rbp-50h] pugi::xml_node *v11; // [rsp+8h] [rbp-48h] std::vector *p_dictTree; // [rsp+10h] [rbp-40h] __int64 v13; // [rsp+18h] [rbp-38h] BYREF _QWORD v14[6]; // [rsp+20h] [rbp-30h] BYREF pugi::xml_document::xml_document(); p_dictTree = &a1->dictTree; *(_OWORD *)((char *)&a1->dictTree.__end_ + 1) = 0; *(_OWORD *)&a1->dictTree.__begin_ = 0; pugi::xml_node::xml_node(v14); end = a1->dictTree.__end_; value = a1->dictTree.__end_cap_.__value_; if ( end >= value ) { v4 = (char *)end - (char *)p_dictTree->__begin_; v5 = v4 >> 3; if ( (unsigned __int64)((v4 >> 3) + 1) >> 61 ) sub_100183910(); v6 = (char *)value - (char *)p_dictTree->__begin_; v7 = v6 >> 2; if ( v6 >> 2 <= (unsigned __int64)((v4 >> 3) + 1) ) v7 = (v4 >> 3) + 1; if ( (unsigned __int64)v6 >= 0x7FFFFFFFFFFFFFF8LL ) v7 = 0x1FFFFFFFFFFFFFFFLL; __src = p_dictTree->__begin_; if ( v7 ) { if ( v7 > 0x1FFFFFFFFFFFFFFFLL ) sub_100054850(); v8 = (pugi::xml_node *)operator new(8 * v7); } else { v8 = nullptr; } v11 = &v8[v7]; v8[v5] = (pugi::xml_node)v14[0]; v3 = &v8[v5 + 1]; memcpy(v8, __src, v4); a1->dictTree.__begin_ = v8; a1->dictTree.__end_ = v3; a1->dictTree.__end_cap_.__value_ = v11; if ( __src ) operator delete(__src); } else { end->_root = (pugi::xml_node_struct *)v14[0]; v3 = end + 1; } a1->dictTree.__end_ = v3; v14[0] = sub_10063C660(a1, "plist"); v13 = sub_10063BA80(v14, "version"); sub_10063AAD0(&v13, "1.0"); sub_10063C660(v14, "dict"); v13 = sub_10063B550(a1, "plist"); result = (DS_Dictionary *)sub_10063B550(&v13, "dict"); a1->dictTree.__end_[-1]._root = (pugi::xml_node_struct *)result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source