// // cocos2d::cc_utf8_strlen from 0xb1d0bc to 0xb1d188 (204 bytes) // // 2 xrefs: // > cocos2d::extension::CCEditBoxImplAndroid::setText @ 0xaaaabc // > @ 0x983e8 // // 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 // __int64 cocos2d::cc_utf8_strlen(const char *a1, int a2) { __int64 CharacterCountInUTF8String; // x20 char *v3; // x0 unsigned int *v5; // x2 int v6; // w1 const char *v7; // [xsp+30h] [xbp+30h] BYREF if ( !a1 ) return 0; sub_D153B8((int)&v7, (char *)a1); CharacterCountInUTF8String = cocos2d::getCharacterCountInUTF8String(&v7); v3 = (char *)(v7 - 24); if ( v7 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v5 = (unsigned int *)(v7 - 8); do v6 = __ldaxr(v5); while ( __stlxr(v6 - 1, v5) ); } else { v6 = *((_DWORD *)v7 - 2); *((_DWORD *)v7 - 2) = v6 - 1; } if ( v6 <= 0 ) operator delete(v3); } return CharacterCountInUTF8String; }
GD Web Decomp Icon

GD Web Decomp

Raw Source