// // sub_1005FEB38 from 0x1005feb38 to 0x1005fed38 (512 bytes) // // 4 xrefs: // > sub_1005FEAC8 @ 0x1005feaf0 // > sub_1005FEAC8 @ 0x1005feb04 // > sub_1005FED38 @ 0x1005fed88 // > sub_1005FF040 @ 0x1005ff084 // // This function is hookable on this platform (idp: arm, 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 11:09:56 +0000 // __int64 __fastcall sub_1005FEB38(unsigned __int8 *a1) { int v2; // w8 int v3; // w9 char v4; // w10 char v5; // w9 char v7; // w9 char v9; // w9 unsigned int v11; // w8 if ( ((char)*a1 & 0x80000000) == 0 ) return 1; v2 = *a1; if ( (v2 & 0xE0) == 0xC0 && (a1[1] & 0xC0) == 0x80 ) return 2 * (unsigned int)((v2 & 0xFE) != 192); if ( (v2 & 0xF0) == 0xE0 ) { v3 = a1[1]; if ( (v3 & 0xC0) == 0x80 ) { v4 = a1[2]; if ( (v4 & 0xC0) == 0x80 ) { if ( v2 != 224 || (v3 & 0xE0) != 0x80 ) { if ( v2 == 239 ) { if ( v3 != 191 || (v4 & 0xFE) != 0xBE ) return 3; } else if ( v2 != 237 || (v3 & 0xE0) != 0xA0 ) { return 3; } } return 0; } } } if ( (v2 & 0xF8) == 0xF0 && (v5 = a1[1], (v5 & 0xC0) == 0x80) && (a1[2] & 0xC0) == 0x80 && (a1[3] & 0xC0) == 0x80 ) { if ( (v5 & 0xF0) == 0x80 && v2 == 240 ) return 0; else return 4; } else if ( (v2 & 0xFC) == 0xF8 && (v7 = a1[1], (v7 & 0xC0) == 0x80) && (a1[2] & 0xC0) == 0x80 && (a1[3] & 0xC0) == 0x80 && (a1[4] & 0xC0) == 0x80 ) { if ( (v7 & 0xF8) == 0x80 && v2 == 248 ) return 0; else return 5; } else { if ( (v2 & 0xFE) != 0xFC ) return 0; v9 = a1[1]; if ( (v9 & 0xC0) != 0x80 || (a1[2] & 0xC0) != 0x80 || (a1[3] & 0xC0) != 0x80 || (a1[4] & 0xC0) != 0x80 ) return 0; if ( (v9 & 0xFC) == 0x80 && v2 == 252 ) v11 = 0; else v11 = 6; if ( (a1[5] & 0xC0) == 0x80 ) return v11; else return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source