// // sub_D1B258 from 0xd1b258 to 0xd1b314 (188 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 // __int64 __fastcall sub_D1B258(_QWORD *a1, unsigned __int64 a2, size_t a3, wchar_t *s) { unsigned __int64 v6; // x4 size_t v7; // x4 size_t v8; // x19 size_t v9; // x0 size_t v10; // x21 size_t v11; // x2 __int64 result; // x0 __int64 v13; // x19 v6 = *(_QWORD *)(*a1 - 24LL); if ( a2 > v6 ) sub_D13C5C("%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::compare", a2, v6); v7 = v6 - a2; if ( v7 > a3 ) v8 = a3; else v8 = v7; v9 = wcslen(s); v10 = v9; if ( v9 > v8 ) v11 = v8; else v11 = v9; result = wmemcmp((const wchar_t *)(*a1 + 4 * a2), s, v11); if ( !(_DWORD)result ) { result = 0x7FFFFFFF; v13 = v8 - v10; if ( v13 <= 0x7FFFFFFF ) { if ( v13 >= (__int64)0xFFFFFFFF80000000LL ) return (unsigned int)v13; else return 0x80000000LL; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source