// // sub_7611DC from 0x7611dc to 0x76123e (98 bytes) // // 1 xrefs: // > sub_76DFAC @ 0x76e030 // // 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_7611DC(_DWORD *a1, wchar_t *s2, int a3) { int v6; // r5 int v7; // r4 int v8; // r2 wchar_t *v9; // r0 int v10; // r1 size_t v11; // r2 int v12; // r4 if ( a3 > 0 ) { v6 = 0; while ( 1 ) { v7 = a3 - v6; v8 = a1[6]; v9 = (wchar_t *)a1[5]; if ( (v8 - (int)v9) >> 2 ) { if ( v7 >= (v8 - (int)v9) >> 2 ) v7 = (v8 - (int)v9) >> 2; v6 += v7; v11 = v7; v12 = 4 * v7; wmemcpy(v9, s2, v11); a1[5] += v12; if ( a3 <= v6 ) return v6; s2 = (wchar_t *)((char *)s2 + v12); } v10 = *s2++; if ( (*(int (__fastcall **)(_DWORD *, int))(*a1 + 52))(a1, v10) != -1 && a3 > ++v6 ) continue; return v6; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source