// // sub_1800A2AE0 from 0x1800a2ae0 to 0x1800a2c53 (371 bytes) // // 9 xrefs: // > cocos2d::CCUserDefault::getBoolForKey @ 0x1800a25ad // > cocos2d::CCUserDefault::getDoubleForKey @ 0x1800a264d // > cocos2d::CCUserDefault::getIntegerForKey @ 0x1800a271c // > cocos2d::CCUserDefault::getStringForKey @ 0x1800a2895 // > cocos2d::CCUserDefault::setBoolForKey @ 0x1800a2ffd // > cocos2d::CCUserDefault::setDoubleForKey @ 0x1800a3186 // > cocos2d::CCUserDefault::setIntegerForKey @ 0x1800a32c1 // > cocos2d::CCUserDefault::setStringForKey @ 0x1800a33cf // > @ 0x1801c18cc // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 11:22:14 +0000 // // Hidden C++ exception states: #wind=1 const struct tinyxml2::XMLElement *__fastcall sub_1800A2AE0(char *Str2, tinyxml2::XMLNode **a2, tinyxml2::XMLNode **a3) { const struct tinyxml2::XMLElement *i; // rbx __int64 v8; // rax tinyxml2::XMLNode *v9; // rsi char **v10; // rbp const char *v11; // rcx FILE *v12; // rax struct cocos2d::CCFileUtils *v13; // rax __int64 v14; // rax void *v15; // rbp tinyxml2::XMLNode *ChildElement; // rax const char *Str; // rax unsigned int v18; // [rsp+50h] [rbp+8h] BYREF cocos2d::CCUserDefault *v19; // [rsp+68h] [rbp+20h] i = nullptr; if ( !Str2 ) return nullptr; v8 = sub_1800E4AC0(0x280u); v19 = (cocos2d::CCUserDefault *)v8; if ( v8 ) v9 = (tinyxml2::XMLNode *)tinyxml2::XMLDocument::XMLDocument(v8, 1, 0); else v9 = nullptr; *a3 = v9; cocos2d::CCUserDefault::initXMLFilePath(); v10 = &cocos2d::CCUserDefault::m_sFilePath; v11 = (const char *)&cocos2d::CCUserDefault::m_sFilePath; if ( *((_QWORD *)&xmmword_1801B2AA0 + 1) > 0xFu ) v11 = cocos2d::CCUserDefault::m_sFilePath; v12 = fopen(v11, "r"); if ( v12 ) { fclose(v12); goto LABEL_11; } if ( cocos2d::CCUserDefault::createXMLFile() ) { LABEL_11: if ( !cocos2d::CCUserDefault::m_spUserDefault ) { v19 = (cocos2d::CCUserDefault *)sub_1800E4AC0(1u); cocos2d::CCUserDefault::m_spUserDefault = v19; } } v13 = cocos2d::CCFileUtils::sharedFileUtils(); if ( *((_QWORD *)&xmmword_1801B2AA0 + 1) > 0xFu ) v10 = (char **)cocos2d::CCUserDefault::m_sFilePath; v14 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, char **, const char *, unsigned int *))(*(_QWORD *)v13 + 24LL))( v13, v10, "rb", &v18); v15 = (void *)v14; if ( v14 ) { tinyxml2::XMLDocument::Parse((__int64)v9, v14, v18); j_j_free_0(v15); ChildElement = tinyxml2::XMLNode::FirstChildElement(v9, nullptr); *a2 = ChildElement; if ( ChildElement ) { for ( i = tinyxml2::XMLNode::FirstChildElement(ChildElement, nullptr); i; i = tinyxml2::XMLNode::NextSiblingElement(i, nullptr) ) { Str = tinyxml2::StrPair::GetStr((const struct tinyxml2::XMLElement *)((char *)i + 24)); if ( !strcmp(Str, Str2) ) break; } } } return i; }
GD Web Decomp Icon

GD Web Decomp

Raw Source