// // tinyxml2::XMLElement::ParseAttributes from 0xb27b44 to 0xb27eb0 (876 bytes) // // 2 xrefs: // > tinyxml2::XMLElement::ParseDeep @ 0xb27ef8 // > @ 0x66558 // // 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 // char *__fastcall tinyxml2::XMLElement::ParseAttributes(tinyxml2::XMLElement *this, char *a2) { char *v4; // x20 _QWORD *i; // x23 int v6; // w19 __int64 v7; // x27 __int64 v8; // x2 _QWORD *v9; // x19 int v10; // w1 int v11; // w0 int v12; // w0 __int64 *v13; // x2 __int64 v14; // x4 __int64 v15; // x1 __int64 v16; // x2 int *v17; // x3 const char *v18; // x0 int *v19; // x3 __int64 v20; // x21 int v22; // t1 __int64 v23; // x1 __int64 v24; // x2 int *v25; // x3 __int64 v26; // x19 __int64 Str; // x0 _QWORD *v28; // x28 int v29; // w1 int v30; // w19 _QWORD *v31; // x2 int v32; // w19 unsigned __int64 v33; // x0 void *v34; // x0 void *v35; // [xsp+68h] [xbp+68h] if ( !a2 ) return nullptr; v4 = a2; for ( i = nullptr; ; i = v9 ) { v6 = (unsigned __int8)*v4; if ( (v6 & 0x80) == 0 ) { while ( isspace(v6) ) { v22 = (unsigned __int8)*++v4; v6 = v22; if ( (v22 & 0x80) != 0 ) goto LABEL_4; } if ( !v6 ) { v26 = *((_QWORD *)this + 1); Str = tinyxml2::StrPair::GetStr((tinyxml2::XMLElement *)((char *)this + 24), v23, v24, v25); tinyxml2::XMLDocument::SetError(v26, 7, (__int64)a2, Str); return nullptr; } } LABEL_4: if ( (v6 & 0x80) == 0 && !isalpha(v6) ) break; v7 = *((_QWORD *)this + 1); v8 = v7; v9 = *(_QWORD **)(v7 + 360); if ( !v9 ) { v28 = (_QWORD *)operator new(0x3F0u); memset(v28, 0, 0x3F0u); v29 = *(_DWORD *)(v7 + 356); v30 = v29 + 1; if ( v29 + 1 > *(_DWORD *)(v7 + 352) ) { v32 = 2 * v30; v33 = 8LL * v32; if ( (unsigned __int64)v32 > 0xFE0000000000000LL ) v33 = -1; v35 = (void *)operator new[](v33); memcpy(v35, *(const void **)(v7 + 264), 8LL * *(int *)(v7 + 356)); v34 = *(void **)(v7 + 264); if ( v34 != (void *)(v7 + 272) && v34 ) operator delete[](v34); v29 = *(_DWORD *)(v7 + 356); *(_QWORD *)(v7 + 264) = v35; *(_DWORD *)(v7 + 352) = v32; v31 = v35; v30 = v29 + 1; } else { v31 = *(_QWORD **)(v7 + 264); } *(_DWORD *)(v7 + 356) = v30; v31[v29] = v28; *v28 = v28 + 9; v28[18] = v28 + 27; v28[9] = v28 + 18; v28[27] = v28 + 36; v28[45] = v28 + 54; v28[54] = v28 + 63; v28[63] = v28 + 72; v28[72] = v28 + 81; v28[36] = v28 + 45; v28[81] = v28 + 90; v9 = v28; v28[90] = v28 + 99; v28[99] = v28 + 108; v28[108] = v28 + 117; v28[117] = 0; *(_QWORD *)(v7 + 360) = v28; v8 = *((_QWORD *)this + 1); } v10 = *(_DWORD *)(v7 + 376); v11 = *(_DWORD *)(v7 + 368) + 1; *(_QWORD *)(v7 + 360) = *v9; *(_DWORD *)(v7 + 368) = v11; if ( v11 > v10 ) *(_DWORD *)(v7 + 376) = v11; v12 = *(_DWORD *)(v7 + 380); v13 = (__int64 *)(v8 + 256); ++*(_DWORD *)(v7 + 372); *(_DWORD *)(v7 + 380) = v12 + 1; v14 = *v13; *v9 = off_1219350; *((_DWORD *)v9 + 2) = 0; v9[2] = 0; v9[3] = 0; v9[8] = v13; v9[5] = 0; v9[6] = 0; v9[7] = 0; *((_DWORD *)v9 + 8) = 0; (*(void (__fastcall **)(__int64 *))(v14 + 40))(v13); v4 = tinyxml2::XMLAttribute::ParseDeep((tinyxml2::XMLAttribute *)v9, v4, *(_BYTE *)(*((_QWORD *)this + 1) + 89LL)); if ( !v4 || (v18 = (const char *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v9 + 1), v15, v16, v17), tinyxml2::XMLElement::Attribute(this, v18, nullptr, v19)) ) { v20 = v9[8]; (*(void (__fastcall **)(_QWORD *))*v9)(v9); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v20 + 32LL))(v20, v9); tinyxml2::XMLDocument::SetError(*((_QWORD *)this + 1), 8, (__int64)a2, (__int64)v4); return nullptr; } if ( i ) i[7] = v9; else *((_QWORD *)this + 12) = v9; } if ( v6 != 47 ) { if ( v6 == 62 ) return v4 + 1; goto LABEL_35; } if ( v4[1] != 62 ) { LABEL_35: tinyxml2::XMLDocument::SetError(*((_QWORD *)this + 1), 7, (__int64)a2, (__int64)v4); return nullptr; } *((_DWORD *)this + 22) = 1; return v4 + 2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source