// // DS_Dictionary::getAllKeys from 0xb474bc to 0xb4762c (368 bytes) // // 1 xrefs: // > @ 0xa05a8 // // 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 // std::vector *DS_Dictionary::getAllKeys(std::vector *__return_ptr retstr, DS_Dictionary *a2) { pugi::xml_node_struct *v3; // x1 char *v4; // x0 std::string *m_finish; // x0 pugi::xml_node_struct *root; // x1 char *v7; // x0 unsigned int *v8; // x1 int v9; // w2 pugi::xml_node v11; // [xsp+68h] [xbp+68h] BYREF pugi::xml_node v12[2]; // [xsp+70h] [xbp+70h] BYREF retstr->m_finish = nullptr; v3 = (pugi::xml_node_struct *)_stack_chk_guard; retstr->m_reserveEnd = nullptr; retstr->m_start = nullptr; v12[1]._root = v3; for ( v11._root = (pugi::xml_node_struct *)pugi::xml_node::first_child(a2->dictTree.m_finish - 1); pugi::xml_node::operator void (*)(pugi::xml_node***)(&v11); v11._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(v12) ) { v4 = (char *)pugi::xml_node::child_value(&v11); sub_D153B8((int)v12, v4); m_finish = retstr->m_finish; if ( m_finish == retstr->m_reserveEnd ) { std::vector::_M_emplace_back_aux((__int64)retstr, v12); root = v12[0]._root; } else { root = v12[0]._root; if ( m_finish ) { m_finish->m_data.m_data = v12[0]._root; root = (pugi::xml_node_struct *)&byte_124B6C8; v12[0]._root = (pugi::xml_node_struct *)&byte_124B6C8; } retstr->m_finish = m_finish + 1; } v7 = (char *)root - 24; if ( (__int64 *)((char *)root - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)((char *)root - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *((_DWORD *)root - 2); *((_DWORD *)root - 2) = v9 - 1; } if ( v9 <= 0 ) operator delete(v7); } v12[0]._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v11); } return retstr; }