// // sub_CF9348 from 0xcf9348 to 0xcf9420 (216 bytes) // // 3 xrefs: // > sub_D0C240 @ 0xd0c32c // > @ 0x111e990 // > @ 0x121d880 // // 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_CF9348(_QWORD *a1, unsigned __int8 *a2, __int64 a3) { __int64 v5; // x19 unsigned __int8 *v6; // x23 signed __int64 v7; // x20 __int64 v8; // x2 void *v9; // x0 signed __int64 v10; // x2 v5 = 0; v6 = a2; if ( a3 > 0 ) { v7 = a3; v8 = a1[6]; v9 = (void *)a1[5]; v10 = v8 - (_QWORD)v9; if ( v10 ) goto LABEL_6; while ( (*(unsigned int (__fastcall **)(_QWORD *, _QWORD))(*a1 + 104LL))(a1, *v6++) != -1 ) { if ( a3 <= ++v5 ) break; v7 = a3 - v5; a2 = v6; v9 = (void *)a1[5]; v10 = a1[6] - (_QWORD)v9; if ( v10 ) { LABEL_6: if ( v7 > v10 ) v7 = v10; v5 += v7; memcpy(v9, a2, v7); a1[5] += v7; if ( a3 <= v5 ) return v5; v6 += v7; } } } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source