// // sub_777674 from 0x777674 to 0x7776c4 (80 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 // int __fastcall sub_777674(_DWORD *a1, unsigned int a2, unsigned int a3, wchar_t *s) { unsigned int v7; // r3 unsigned int v8; // r4 size_t v9; // r2 size_t v10; // r8 int result; // r0 v7 = *(_DWORD *)(*a1 - 12); if ( a2 > v7 ) sub_7732C4("%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::compare", a2, v7); v8 = v7 - a2; if ( v7 - a2 >= a3 ) v8 = a3; v9 = wcslen(s); v10 = v9; if ( v9 >= v8 ) v9 = v8; result = wmemcmp((const wchar_t *)(*a1 + 4 * a2), s, v9); if ( !result ) return v8 - v10; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source