// // tinyxml2::XMLDocument::LoadFile from 0x7f9a20 to 0x7f9aa2 (130 bytes) // // 1 xrefs: // > tinyxml2::XMLDocument::LoadFile @ 0x7f9ad2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:01:13 +0000 // int __fastcall tinyxml2::XMLDocument::LoadFile(int a1, FILE *a2) { size_t v4; // r5 void *v5; // r0 size_t v6; // r0 const char *v7; // r1 _DWORD *v8; // r0 int v9; // r1 unsigned __int8 *v10; // r0 bool *v11; // r2 unsigned __int8 *BOM; // r0 tinyxml2::XMLNode::DeleteChildren(a1); tinyxml2::XMLDocument::InitDocument((tinyxml2::XMLDocument *)a1); fseek(a2, 0, 2); v4 = ftell(a2); fseek(a2, 0, 0); if ( v4 ) { v5 = (void *)operator new[](v4 + 1); *(_DWORD *)(a1 + 64) = v5; v6 = fread(v5, 1u, v4, a2); if ( v6 == v4 ) { *(_BYTE *)(*(_DWORD *)(a1 + 64) + v6) = 0; v10 = (unsigned __int8 *)tinyxml2::XMLUtil::SkipWhiteSpace(*(tinyxml2::XMLUtil **)(a1 + 64), v7); BOM = tinyxml2::XMLUtil::ReadBOM(v10, (char *)(a1 + 44), v11); if ( BOM && *BOM ) { (*(void (__fastcall **)(int, unsigned __int8 *, _DWORD))(*(_DWORD *)a1 + 60))(a1, BOM, 0); return *(_DWORD *)(a1 + 48); } v8 = (_DWORD *)a1; v9 = 15; } else { v8 = (_DWORD *)a1; v9 = 5; } tinyxml2::XMLDocument::SetError(v8, v9, 0, 0); } return *(_DWORD *)(a1 + 48); }
GD Web Decomp Icon

GD Web Decomp

Raw Source