// // sub_77A848 from 0x77a848 to 0x77a8be (118 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 // void __fastcall sub_77A848( int a1, int *a2, char *s, unsigned int a4, const char **a5, wchar_t *pwc, unsigned int a7, wchar_t **a8) { wchar_t *v9; // r7 const char *v10; // r4 int v11; // r1 bool v12; // cf int count; // r3 size_t v15; // r0 bool v16; // cc mbstate_t p; // [sp+4h] [bp-4h] BYREF v9 = pwc; v10 = s; v11 = *a2; v12 = (unsigned int)pwc >= a7; if ( (unsigned int)pwc < a7 ) v12 = (unsigned int)s >= a4; p.__count = v11; if ( !v12 ) { do { v15 = mbrtowc(v9, v10, a4 - (_DWORD)v10, &p); if ( v15 >= 0xFFFFFFFE ) break; count = p.__count; if ( !v15 ) { *v9 = 0; v15 = 1; } v10 += v15; ++v9; *a2 = count; v16 = a7 > (unsigned int)v9; if ( a7 > (unsigned int)v9 ) v16 = a4 > (unsigned int)v10; } while ( v16 ); } *a5 = v10; *a8 = v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source