// // sub_10060857C from 0x10060857c to 0x100608688 (268 bytes) // // 1 xrefs: // > sub_100607C2C @ 0x100607c6c // // 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_10060857C(char *a1, size_t a2, char *__s2, __int64 a4) { __int64 v4; // x12 __int64 v5; // x10 int v6; // w8 int v7; // w13 size_t v8; // x9 char *v9; // x10 size_t v10; // x11 unsigned __int8 *v11; // x10 size_t v12; // x11 char *i; // x12 int v14; // w13 int v15; // t1 size_t v17; // x8 if ( a2 == a4 ) { v4 = 0; while ( 1 ) { v5 = v4; if ( !(a2 + v4) ) break; v6 = (unsigned __int8)a1[a2 - 1 + v4]; if ( v6 != 64 ) { v7 = (unsigned __int8)__s2[a2 - 1 + v4--]; if ( v7 != 64 ) continue; } v8 = a2 - 1 + v5; v9 = &a1[a2 - 1 + v5]; v10 = a2; if ( v8 != a2 ) { if ( v6 ) { v11 = (unsigned __int8 *)(v9 + 1); v12 = a2 - 1; for ( i = __s2; ; ++i ) { v14 = (unsigned __int8)i[v8]; if ( (unsigned __int8)v6 != v14 ) { if ( (unsigned __int8)(v6 - 65) <= 0x19u ) LOBYTE(v6) = v6 + 32; if ( (unsigned int)(v14 - 65) <= 0x19 ) LOBYTE(v14) = v14 + 32; if ( (unsigned __int8)v6 != (unsigned __int8)v14 ) break; } if ( v8 == v12 ) { v10 = v8; goto LABEL_20; } v15 = *v11++; LOBYTE(v6) = v15; --v12; if ( !v15 ) return 0; } } return 0; } LABEL_20: if ( v10 ) v17 = v10; else v17 = a2; return memcmp(a1, __s2, v17) == 0; } v10 = 0; goto LABEL_20; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source