// // sub_C1076 from 0xc1076 to 0xc10e2 (108 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_C1076(int a1, int a2, char *a3, unsigned int a4) { unsigned int v7; // r1 int v8; // r2 __int64 v9; // kr00_8 unsigned int v10; // r5 int v11; // r6 int v12; // r5 if ( *(_BYTE *)(a2 + 20) ) return 1; v9 = *(_QWORD *)(a2 + 4); v7 = *(_DWORD *)(a2 + 8); v8 = v9; v10 = a4; if ( v7 < a4 ) v10 = v7; if ( v10 + (unsigned int)v9 >= v7 ) { v11 = v7 - v9; qmemcpy((void *)(*(_DWORD *)(a2 + 16) + *(_DWORD *)(a2 + 12) * v9), a3, *(_DWORD *)(a2 + 12) * (v7 - v9)); v8 = 0; *(_DWORD *)(a2 + 4) = 0; } else { v11 = 0; } v12 = v10 - v11; qmemcpy( (void *)(*(_DWORD *)(a2 + 16) + *(_DWORD *)(a2 + 12) * v8), &a3[*(_DWORD *)(a2 + 12) * v11], *(_DWORD *)(a2 + 12) * v12); *(_DWORD *)(a2 + 4) += v12; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source