// // sub_1800957E0 from 0x1800957e0 to 0x18009586a (138 bytes) // // 1 xrefs: // > cocos2d::cc_utf8_strlen @ 0x1800951cc // // 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 // bool __fastcall sub_1800957E0(_BYTE *a1, int a2) { _BYTE *v3; // r8 int v4; // edx int v5; // edx int v6; // edx char v7; // al char v8; // al unsigned __int8 v9; // dl int v10; // ecx int v11; // ecx int v12; // ecx bool v14; // cf v3 = &a1[a2]; v4 = a2 - 1; if ( !v4 ) goto LABEL_19; v5 = v4 - 1; if ( v5 ) { v6 = v5 - 1; if ( v6 ) { if ( v6 != 1 ) return 0; v7 = *--v3; if ( (unsigned __int8)(v7 + 0x80) > 0x3Fu ) return 0; } v8 = *--v3; if ( (unsigned __int8)(v8 + 0x80) > 0x3Fu ) return 0; } v9 = *(v3 - 1); if ( (unsigned __int8)(v9 + 0x80) > 0x3Fu ) return 0; v10 = (unsigned __int8)*a1 - 224; if ( !v10 ) { v14 = v9 < 0xA0u; LABEL_18: if ( !v14 ) goto LABEL_19; return 0; } v11 = v10 - 13; if ( !v11 ) { if ( v9 <= 0x9Fu ) goto LABEL_19; return 0; } v12 = v11 - 3; if ( !v12 ) { v14 = v9 < 0x90u; goto LABEL_18; } if ( v12 == 4 && v9 > 0x8Fu ) return 0; LABEL_19: if ( (unsigned __int8)(*a1 + 0x80) <= 0x41u ) return 0; return *a1 <= 0xF4u; }
GD Web Decomp Icon

GD Web Decomp

Raw Source