// // sub_777058 from 0x777058 to 0x77709c (68 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_777058(_DWORD *a1, const wchar_t **a2, size_t a3) { const wchar_t *v3; // r7 size_t v4; // r6 size_t v5; // r3 size_t v7; // r3 size_t v8; // r4 int v9; // r5 const wchar_t *v10; // r0 v3 = *a2; v4 = *(*a2 - 3); v5 = *(_DWORD *)(*a1 - 12); if ( v4 > v5 ) return -1; v7 = v5 - v4; if ( a3 >= v7 ) a3 = v7; v8 = a3; v9 = *a1 + 4 * a3; while ( 1 ) { v10 = (const wchar_t *)v9; v9 -= 4; if ( !wmemcmp(v10, v3, v4) ) break; if ( !v8 ) return -1; --v8; } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source