// // tinyxml2::XMLDocument::NewDeclaration from 0x180099df0 to 0x180099ec5 (213 bytes) // // 5 xrefs: // > cocos2d::CCFileUtils::writeToFile @ 0x180072251 // > tinyxml2::XMLDeclaration::ShallowClone @ 0x18009ca26 // > cocos2d::CCUserDefault::createXMLFile @ 0x18009e840 // > @ 0x1801438a8 // > @ 0x1801b6edc // // 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 // struct tinyxml2::XMLDeclaration *__fastcall tinyxml2::XMLDocument::NewDeclaration( tinyxml2::XMLDocument *this, const char *a2) { char *v2; // rdi __int64 v5; // rax const char *v6; // rbp __int64 v7; // r14 __int64 v8; // rbx void *v9; // rax __int64 v10; // rcx v2 = (char *)this + 512; v5 = (*(__int64 (__fastcall **)(char *))(*((_QWORD *)this + 64) + 16LL))((char *)this + 512); v6 = "xml version=\"1.0\" encoding=\"UTF-8\""; v7 = v5; *(_QWORD *)(v5 + 8) = this; if ( a2 ) v6 = a2; *(_QWORD *)(v5 + 16) = 0; v8 = -1; *(_QWORD *)(v5 + 48) = 0; *(_QWORD *)(v5 + 56) = 0; *(_QWORD *)(v5 + 64) = 0; *(_QWORD *)(v5 + 72) = 0; *(_QWORD *)v5 = &tinyxml2::XMLDeclaration::`vftable'; *(_QWORD *)(v5 + 80) = v2; *(_DWORD *)(v5 + 24) = 0; *(_QWORD *)(v5 + 32) = 0; *(_QWORD *)(v5 + 40) = 0; do ++v8; while ( v6[v8] ); v9 = operator new(v8 + 1); *(_QWORD *)(v7 + 32) = v9; memcpy(v9, v6, v8 + 1); v10 = *(_QWORD *)(v7 + 32); *(_DWORD *)(v7 + 24) = 512; *(_QWORD *)(v7 + 40) = v8 + v10; return (struct tinyxml2::XMLDeclaration *)v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source