// // sub_10068E0C0 from 0x10068e0c0 to 0x10068eb94 (2772 bytes) // // 2 xrefs: // > sub_10068E0A4 @ 0x10068e0b4 // > sub_10068E0C0 @ 0x10068e180 // // 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:11:30 +0000 // __int64 __fastcall sub_10068E0C0(unsigned __int8 *a1, _BYTE *a2) { int i; // w24 int v5; // w8 unsigned __int8 *v6; // x0 int v7; // w8 int v8; // w8 int v9; // w21 char v10; // w23 unsigned __int8 *v11; // x28 __int64 v12; // x25 int v13; // w27 __uint32_t v14; // w0 int v15; // t1 __uint32_t v17; // w0 __int64 v18; // x24 __uint32_t v19; // w0 int v20; // w8 __int64 v21; // x27 __int64 v22; // x25 char v23; // w24 __uint32_t v24; // w0 __uint32_t v25; // w0 __uint32_t v26; // w0 __uint32_t v27; // w0 __uint32_t v28; // w0 __int64 v30; // x24 unsigned int v33; // w8 __int64 v34; // x23 __uint32_t v35; // w0 __int64 v36; // x0 int v37; // w8 __uint32_t v38; // w0 __int64 v39; // x0 __uint32_t v40; // w0 unsigned __int64 v41; // x1 __int64 v42; // x0 __uint32_t v43; // w0 int v44; // t1 unsigned __int8 v46; // [xsp+58h] [xbp-188h] _BYTE v47[91]; // [xsp+69h] [xbp-177h] BYREF char v48; // [xsp+C4h] [xbp-11Ch] char v49; // [xsp+C6h] [xbp-11Ah] char v50; // [xsp+169h] [xbp-77h] char v51; // [xsp+16Ah] [xbp-76h] char v52; // [xsp+16Bh] [xbp-75h] char v53; // [xsp+16Ch] [xbp-74h] char v54; // [xsp+16Dh] [xbp-73h] char v55; // [xsp+16Eh] [xbp-72h] char v56; // [xsp+16Fh] [xbp-71h] char v57; // [xsp+170h] [xbp-70h] char v58; // [xsp+171h] [xbp-6Fh] char v59; // [xsp+172h] [xbp-6Eh] char v60; // [xsp+173h] [xbp-6Dh] char __s1[8]; // [xsp+178h] [xbp-68h] BYREF __int16 v62; // [xsp+180h] [xbp-60h] bzero(v47, 0x10Fu); for ( i = 0; ; i = 1 ) { while ( 1 ) { while ( 1 ) { if ( i ) { v39 = *a1; if ( (char)*a1 < 0 ) v40 = __maskrune(v39, 0x40000u); else v40 = _DefaultRuneLocale.__runetype[v39] & 0x40000; if ( !v40 ) return 2; if ( *a1 != (unsigned __int8)*a2 ) return 1; goto LABEL_180; } v5 = *a1; if ( (char)*a1 > 41 ) break; if ( !*a1 ) return *a2 != 0; LABEL_167: v44 = (unsigned __int8)*a2++; if ( v5 != v44 ) return 1; i = 0; ++a1; } if ( (char)v5 > 90 ) break; if ( v5 == 42 ) { --a1; do { v6 = a1 + 2; v7 = a1[2]; ++a1; } while ( v7 == 42 ); if ( !(*a2 | (unsigned __int8)v7) ) return 0; if ( !(unsigned int)sub_10068E0C0(v6, a2) ) return 0; if ( !*a2 ) return 1; LABEL_2: ++a2; } else { if ( v5 != 63 ) goto LABEL_167; v42 = (unsigned __int8)*a2; if ( (char)*a2 < 0 ) v43 = __maskrune(v42, 0x40000u); else v43 = _DefaultRuneLocale.__runetype[v42] & 0x40000; if ( !v43 ) { if ( *a2 ) return 2; else return 1; } LABEL_180: i = 0; ++a2; ++a1; } } if ( v5 == 91 ) break; if ( v5 != 92 ) goto LABEL_167; ++a1; } v8 = 0; v9 = 0; v46 = 0; v10 = 0; v11 = a1 + 1; while ( 2 ) { v12 = *v11; LOBYTE(v13) = *v11; switch ( v8 ) { case 0: if ( (char)v12 < 0 ) v14 = __maskrune(*v11, 0x500u); else v14 = _DefaultRuneLocale.__runetype[v12] & 0x500; if ( v14 ) { v8 = 1; v47[v12] = 1; ++v11; v9 = (char)v12; v10 = 1; continue; } if ( (char)v12 > 90 ) { switch ( (char)v12 ) { case '[': if ( v11[1] == 58 ) { v20 = 0; v62 = 0; *(_QWORD *)__s1 = 0; v21 = -1; while ( 1 ) { v22 = v11[v21 + 3]; v23 = v11[v21 + 3]; if ( v20 == 1 ) break; if ( (char)v22 < 0 ) v24 = __maskrune(v11[v21 + 3], 0x100u); else v24 = _DefaultRuneLocale.__runetype[v22] & 0x100; if ( v24 && ((char)v22 < 0 ? (v25 = __maskrune(v22, 0x1000u)) : (v25 = _DefaultRuneLocale.__runetype[v22] & 0x1000), v25) ) { v20 = 0; __s1[v21 + 1] = v23; } else { if ( v23 != 58 ) return 2; v20 = 1; } if ( ++v21 > 8 ) return 2; } if ( v11[v21 + 3] != 93 ) return 2; if ( !strcmp(__s1, "digit") ) { v52 = 1; } else if ( !strcmp(__s1, "alnum") ) { v51 = 1; } else if ( !strcmp(__s1, "alpha") ) { v54 = 1; } else if ( !strcmp(__s1, "xdigit") ) { v53 = 1; } else if ( !strcmp(__s1, "print") ) { v55 = 1; } else if ( !strcmp(__s1, "graph") ) { v58 = 1; } else if ( !strcmp(__s1, "space") ) { v59 = 1; } else if ( !strcmp(__s1, "blank") ) { v56 = 1; } else if ( !strcmp(__s1, "upper") ) { v60 = 1; } else { if ( strcmp(__s1, "lower") ) return 2; v57 = 1; } v8 = 0; v11 += v21 + 4; v10 = 1; } else { v8 = 0; v10 = 1; v48 = 1; ++v11; } break; case '\\': v9 = (char)v11[1]; v34 = v11[1]; if ( v9 < 0 ) v35 = __maskrune(v11[1], 0x40000u); else v35 = _DefaultRuneLocale.__runetype[v34] & 0x40000; if ( !v35 ) return 2; v8 = 1; v47[v34] = 1; v11 += 2; v10 = 1; continue; case ']': if ( (v10 & 1) != 0 ) goto LABEL_144; v10 = 1; v49 = 1; ++v11; v8 = 3; continue; case '^': goto LABEL_88; default: goto LABEL_91; } } else { if ( (char)v12 > 41 ) goto LABEL_91; if ( (unsigned __int8)v12 != 33 ) { if ( !(_BYTE)v12 ) return 2; LABEL_91: v8 = 0; v10 = 1; v47[v12] = 1; ++v11; continue; } LABEL_88: if ( (v10 & 1) != 0 || v50 ) { v10 = 1; v47[v12] = 1; } else { v10 = 0; v50 = 1; } LABEL_117: v8 = 0; ++v11; } continue; case 1: v8 = 0; if ( *v11 == 91 ) continue; if ( *v11 == 45 ) { v47[45] = 1; ++v11; v46 = 45; v8 = 2; continue; } if ( (char)v12 < 0 ) v28 = __maskrune(*v11, 0x500u); else v28 = _DefaultRuneLocale.__runetype[v12] & 0x500; if ( v28 ) { v8 = 1; v47[v12] = 1; ++v11; continue; } if ( (unsigned __int8)v13 != 93 ) { if ( (unsigned __int8)v13 != 92 ) return 2; v30 = v11[1]; if ( !((char)v11[1] < 0 ? __maskrune(v11[1], 0x40000u) : _DefaultRuneLocale.__runetype[v30] & 0x40000) ) return 2; v8 = 1; v47[v30] = 1; v11 += 2; continue; } LABEL_144: v36 = (unsigned __int8)*a2; if ( v47[v36] ) { v37 = 1; goto LABEL_160; } if ( v51 ) { if ( ((char)v36 & 0x80000000) == 0 ) { v38 = _DefaultRuneLocale.__runetype[v36] & 0x500; goto LABEL_159; } v41 = 1280; LABEL_158: v38 = __maskrune(v36, v41); goto LABEL_159; } if ( v54 ) { if ( (char)v36 < 0 ) { v41 = 256; goto LABEL_158; } v38 = _DefaultRuneLocale.__runetype[v36] & 0x100; goto LABEL_159; } if ( v52 ) { v37 = (unsigned int)(v36 - 48) < 0xA; } else if ( v53 ) { v37 = HIWORD(_DefaultRuneLocale.__runetype[v36]) & 1; } else { if ( v55 ) { if ( (char)v36 < 0 ) { v41 = 0x40000; goto LABEL_158; } v38 = _DefaultRuneLocale.__runetype[v36] & 0x40000; goto LABEL_159; } if ( v59 ) { if ( (char)v36 < 0 ) { v41 = 0x4000; goto LABEL_158; } v38 = _DefaultRuneLocale.__runetype[v36] & 0x4000; goto LABEL_159; } if ( v60 ) { if ( (char)v36 < 0 ) { v41 = 0x8000; goto LABEL_158; } v38 = _DefaultRuneLocale.__runetype[v36] & 0x8000; goto LABEL_159; } if ( v57 ) { if ( (char)v36 < 0 ) { v41 = 4096; goto LABEL_158; } v38 = _DefaultRuneLocale.__runetype[v36] & 0x1000; goto LABEL_159; } if ( v56 ) { v37 = (_DWORD)v36 == 32 || (_DWORD)v36 == 9; } else if ( v58 ) { if ( (char)v36 < 0 ) { v41 = 2048; goto LABEL_158; } v38 = _DefaultRuneLocale.__runetype[v36] & 0x800; LABEL_159: v37 = v38 != 0; } else { v37 = 0; } } LABEL_160: if ( v37 != (v50 != 0) ) { a1 = v11 + 1; bzero(v47, 0x10Fu); i = 0; goto LABEL_2; } return 1; case 2: if ( *v11 == 92 ) { v15 = (char)*++v11; LOBYTE(v13) = v15; if ( !(v15 < 0 ? __maskrune((unsigned __int8)v13, 0x40000u) : _DefaultRuneLocale.__runetype[(unsigned __int8)v13] & 0x40000) ) return 2; } if ( (unsigned __int8)v13 == 93 ) goto LABEL_144; if ( (unsigned __int8)v13 == 92 ) { v13 = (char)v11[1]; v18 = v11[1]; if ( v13 < 0 ) v19 = __maskrune(v11[1], 0x40000u); else v19 = _DefaultRuneLocale.__runetype[v18] & 0x40000; if ( !v19 ) return 2; v8 = 0; v47[v18] = 1; v11 += 2; } else { v8 = 2; } if ( (unsigned __int8)v13 < (unsigned int)(unsigned __int8)v9 ) continue; if ( (char)v13 < 0 ) v26 = __maskrune((unsigned __int8)v13, 0x1000u); else v26 = _DefaultRuneLocale.__runetype[(unsigned __int8)v13] & 0x1000; if ( !v26 || ((char)v9 < 0 ? (v27 = __maskrune((unsigned __int8)v9, 0x1000u)) : (v27 = _DefaultRuneLocale.__runetype[(unsigned __int8)v9] & 0x1000), !v27) ) { if ( (unsigned int)(unsigned __int8)v9 - 48 > 9 || (unsigned int)(unsigned __int8)v13 - 48 >= 0xA ) { if ( !((char)v13 < 0 ? __maskrune((unsigned __int8)v13, 0x8000u) : _DefaultRuneLocale.__runetype[(unsigned __int8)v13] & 0x8000) ) return 2; if ( !((char)v9 < 0 ? __maskrune((unsigned __int8)v9, 0x8000u) : _DefaultRuneLocale.__runetype[(unsigned __int8)v9] & 0x8000) ) return 2; } } v47[v46] = 0; v33 = (unsigned __int8)(v9 + 1); v9 += 2; while ( v33 <= (unsigned __int8)v13 ) { v33 = (unsigned __int8)v9; v47[(unsigned __int8)v9++ - 1] = 1; } goto LABEL_117; case 3: switch ( *v11 ) { case 0x5Du: goto LABEL_144; case 0u: return 2; case 0x5Bu: v48 = 1; ++v11; v8 = 4; break; default: if ( (char)v12 < 0 ) v17 = __maskrune(*v11, 0x40000u); else v17 = _DefaultRuneLocale.__runetype[v12] & 0x40000; if ( !v17 ) return 2; LABEL_17: v8 = 0; v47[v12] = 1; ++v11; break; } continue; case 4: if ( *v11 == 93 ) goto LABEL_144; goto LABEL_17; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source