// // sub_10005FED0 from 0x10005fed0 to 0x10005ff39 (105 bytes) // // 15 xrefs: // > cocos2d::CCUserDefault::getBoolForKey @ 0x1006afe05 // > cocos2d::CCUserDefault::getBoolForKey @ 0x1006afe2d // > cocos2d::CCUserDefault::setBoolForKey @ 0x1006b00b1 // > cocos2d::CCUserDefault::getIntegerForKey @ 0x1006b0259 // > cocos2d::CCUserDefault::getIntegerForKey @ 0x1006b0284 // > cocos2d::CCUserDefault::setIntegerForKey @ 0x1006b0371 // > cocos2d::CCUserDefault::getFloatForKey @ 0x1006b04dd // > cocos2d::CCUserDefault::getFloatForKey @ 0x1006b0508 // > cocos2d::CCUserDefault::setFloatForKey @ 0x1006b05f3 // > cocos2d::CCUserDefault::getDoubleForKey @ 0x1006b0769 // > cocos2d::CCUserDefault::getDoubleForKey @ 0x1006b0794 // > cocos2d::CCUserDefault::setDoubleForKey @ 0x1006b0883 // > cocos2d::CCUserDefault::getStringForKey @ 0x1006b0aa3 // > cocos2d::CCUserDefault::getStringForKey @ 0x1006b0ace // > cocos2d::CCUserDefault::setStringForKey @ 0x1006b0c90 // // 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 12:19:41 +0000 // __int64 __fastcall sub_10005FED0(__int64 a1, const char *a2, unsigned __int8 a3) { FILE *v4; // rax __int64 v5; // rdx FILE *v6; // r14 v4 = fopen(a2, "w"); if ( v4 ) { v5 = a3; v6 = v4; sub_10005FF40(a1, v4, v5); fclose(v6); return *(unsigned int *)(a1 + 92); } else { *(_DWORD *)(a1 + 92) = 4; *(_QWORD *)(a1 + 104) = a2; *(_QWORD *)(a1 + 112) = 0; return 4; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source