// // sub_777168 from 0x777168 to 0x7771aa (66 bytes) // // 2 xrefs: // > sub_7771AC @ 0x7771b2 // > sub_7771B8 @ 0x7771d2 // // 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_777168(int *a1, wchar_t *s, unsigned int a3, size_t n) { int v5; // r3 unsigned int v6; // r4 int v8; // r5 wchar_t v10; // r1 if ( !n ) return -1; v5 = *a1; v6 = a3; if ( a3 >= *(_DWORD *)(*a1 - 12) ) return -1; v8 = 4 * a3; while ( 1 ) { v10 = *(_DWORD *)(v5 + v8); v8 += 4; if ( wmemchr(s, v10, n) ) break; v5 = *a1; if ( ++v6 >= *(_DWORD *)(*a1 - 12) ) return -1; } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source