// // cocos2d::CCConfiguration::getBool from 0x10051afe0 to 0x10051b0fe (286 bytes) // // 2 xrefs: // > cocos2d::CCDirector::setDefaultValues @ 0x100477216 // > cocos2d::CCDirector::setDefaultValues @ 0x1004772f9 // // 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:31:41 +0000 // __int64 __fastcall cocos2d::CCConfiguration::getBool(__int64 a1, const char *a2, unsigned int a3) { __int64 v4; // r14 size_t v5; // rax size_t v6; // r12 char *v7; // r13 unsigned int v8; // r14d size_t v9; // rbx const void *v10; // r14 unsigned __int8 *v11; // rax void *v12; // rax __int64 v14; // [rsp+8h] [rbp-48h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v4 = *(_QWORD *)(a1 + 88); v5 = strlen(a2); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v6 = v5; if ( v5 >= 0x17 ) { v14 = *(_QWORD *)(a1 + 88); v8 = a3; v9 = 26; if ( (v5 | 7) != 0x17 ) v9 = (v5 | 7) + 1; v7 = (char *)operator new(v9); __p = v7; __dst[0] = v9 + 1; a3 = v8; v4 = v14; __dst[1] = v6; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( v5 ) LABEL_8: memcpy(v7, a2, v6); v7[v6] = 0; v10 = (const void *)cocos2d::CCDictionary::objectForKey(v4, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); if ( v10 ) { v11 = (unsigned __int8 *)__dynamic_cast( v10, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCBool, 0); if ( v11 ) { return v11[56]; } else { v12 = __dynamic_cast( v10, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCString, 0); if ( v12 ) return (unsigned int)cocos2d::CCString::boolValue(v12); } } return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source