// // sub_777494 from 0x777494 to 0x7774da (70 bytes) // // 0 xrefs: // // 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 // unsigned int __fastcall sub_777494(int *a1, wchar_t *s, unsigned int a3, size_t n) { int v5; // r1 int v6; // r4 unsigned int v8; // r4 int v11; // r5 wchar_t v12; // r1 v5 = *a1; v6 = *(_DWORD *)(*a1 - 12); if ( !v6 ) return -1; v8 = v6 - 1; if ( v8 >= a3 ) v8 = a3; v11 = 4 * v8; while ( 1 ) { v12 = *(_DWORD *)(v5 + v11); v11 -= 4; if ( !wmemchr(s, v12, n) ) break; if ( !v8 ) return -1; v5 = *a1; --v8; } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source