// // lws_hdr_copy from 0x64838c to 0x6483e4 (88 bytes) // // 1 xrefs: // > sub_649A5C @ 0x649c88 // // 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 lws_hdr_copy(int *a1, char *a2, int a3, int a4) { int v8; // r7 _DWORD *v9; // r2 int v10; // r4 int v11; // r3 int v12; // r4 int v13; // r4 v8 = lws_hdr_total_length(a1, a4); if ( v8 >= a3 ) return -1; v9 = (_DWORD *)*a1; v10 = a4 + *a1; v11 = *(unsigned __int8 *)(v10 + 988); if ( !*(_BYTE *)(v10 + 988) ) return *(unsigned __int8 *)(v10 + 988); do { v12 = 6 * v11; strcpy(a2, (const char *)(*v9 + *((unsigned __int16 *)v9 + 3 * v11 + 2))); v9 = (_DWORD *)*a1; v13 = v12 + *a1; v11 = *(unsigned __int8 *)(v13 + 8); a2 += *(unsigned __int16 *)(v13 + 6); } while ( *(_BYTE *)(v13 + 8) ); return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source