// // cocos2d::CCUserDefault::getBoolForKey from 0x18009e8e0 to 0x18009e978 (152 bytes) // // 3 xrefs: // > cocos2d::CCUserDefault::getBoolForKey @ 0x18009e8d3 // > @ 0x1801438a8 // > @ 0x1801b75d8 // // 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 // _BOOL8 __fastcall cocos2d::CCUserDefault::getBoolForKey(cocos2d::CCUserDefault *this, const char *a2, bool a3) { __int64 v4; // rbx const char *Str; // rdi __int64 v6; // rax __int64 v7; // rcx char v8; // cl bool v9; // zf char v11[24]; // [rsp+20h] [rbp-18h] BYREF __int64 v12; // [rsp+58h] [rbp+20h] BYREF v4 = 0; Str = nullptr; v6 = sub_18009EE00(a2, v11, &v12); if ( v6 ) { v7 = *(_QWORD *)(v6 + 48); if ( v7 ) Str = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v7 + 24)); } if ( Str ) { while ( 1 ) { v8 = Str[v4++]; v9 = v8 == aTrue[v4 - 1]; if ( v8 != aTrue[v4 - 1] ) break; if ( v4 == 5 ) { v9 = v8 == aTrue[4]; break; } } a3 = v9; } if ( v12 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 128LL))(v12, 1); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source