// // tinyxml2::XMLDocument::Parse from 0x18009a270 to 0x18009a370 (256 bytes) // // 4 xrefs: // > cocos2d::CCSAXParser::parse @ 0x180072906 // > sub_18009EE00 @ 0x18009ef04 // > @ 0x1801438a8 // > @ 0x1801b6f24 // // 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(__int64 a1, _BYTE *a2, size_t a3) { void *v6; // rcx void *v7; // rax char i; // al tinyxml2::XMLNode::DeleteChildren((tinyxml2::XMLNode *)a1); v6 = *(void **)(a1 + 120); *(_DWORD *)(a1 + 92) = 0; *(_QWORD *)(a1 + 104) = 0; *(_QWORD *)(a1 + 112) = 0; j_j_free_0(v6); *(_QWORD *)(a1 + 120) = 0; if ( !a2 || !*a2 ) goto LABEL_15; if ( a3 == -1 ) { do ++a3; while ( a2[a3] ); } v7 = operator new(a3 + 1); *(_QWORD *)(a1 + 120) = v7; memcpy(v7, a2, a3); *(_BYTE *)(a3 + *(_QWORD *)(a1 + 120)) = 0; for ( i = *a2; i >= 0; i = *++a2 ) { if ( !isspace((unsigned __int8)i) ) break; } *(_BYTE *)(a1 + 88) = 0; if ( *a2 == 0xEF && a2[1] == 0xBB && a2[2] == 0xBF ) { *(_BYTE *)(a1 + 88) = 1; a2 += 3; } if ( a2 && *a2 ) { (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)a1 + 120LL))(a1, *(_QWORD *)(a1 + 120), 0); return *(unsigned int *)(a1 + 92); } else { LABEL_15: *(_QWORD *)(a1 + 112) = 0; *(_DWORD *)(a1 + 92) = 15; *(_QWORD *)(a1 + 104) = 0; return 15; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source