// // lws_hdr_copy from 0x85840c to 0x858464 (88 bytes) // // 1 xrefs: // > sub_859ADC @ 0x859d08 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:02:37 +0000 // 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