// // tinyxml2::XMLDocument::Parse from 0xb27728 to 0xb2781c (244 bytes) // // 3 xrefs: // > cocos2d::CCSAXParser::parse @ 0xb04044 // > sub_B1F9A4 @ 0xb1fa44 // > @ 0x84d68 // // 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 // __int64 __fastcall tinyxml2::XMLDocument::Parse(tinyxml2::XMLDocument *this, char *a2, size_t a3) { void *v6; // x0 bool *v7; // x2 int v8; // w0 unsigned __int8 *BOM; // x0 int v11; // t1 tinyxml2::XMLNode::DeleteChildren((tinyxml2::XMLNode **)this); tinyxml2::XMLDocument::InitDocument(this); if ( !a2 || !*a2 ) goto LABEL_9; if ( a3 == -1 ) a3 = strlen(a2); v6 = (void *)operator new[](a3 + 1); *((_QWORD *)this + 15) = v6; memcpy(v6, a2, a3); *(_BYTE *)(*((_QWORD *)this + 15) + a3) = 0; v8 = (unsigned __int8)*a2; if ( (v8 & 0x80) == 0 ) { do { if ( !isspace(v8) ) break; v11 = (unsigned __int8)*++a2; v8 = v11; } while ( (v11 & 0x80) == 0 ); } BOM = tinyxml2::XMLUtil::ReadBOM((unsigned __int8 *)a2, (char *)this + 88, v7); if ( BOM && *BOM ) { (*(void (__fastcall **)(tinyxml2::XMLDocument *, _QWORD, _QWORD))(*(_QWORD *)this + 120LL))( this, *((_QWORD *)this + 15), 0); return *((unsigned int *)this + 23); } else { LABEL_9: tinyxml2::XMLDocument::SetError((__int64)this, 15, 0, 0); return *((unsigned int *)this + 23); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source