// // sub_77B1F4 from 0x77b1f4 to 0x77b264 (112 bytes) // // 4 xrefs: // > sub_77ABEC @ 0x77ac0c // > sub_77AC30 @ 0x77ac58 // > sub_77AC68 @ 0x77ac8a // > sub_77AC68 @ 0x77acc8 // // 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 // wctype_t __fastcall sub_77B1F4(int a1) { int v2; // r5 wint_t v3; // r4 wint_t v4; // r0 int v5; // r0 int v6; // r5 int i; // r4 int v8; // r0 int v9; // r7 int v10; // r5 int v11; // r4 int v12; // r1 wctype_t result; // r0 v2 = a1 + 12; v3 = 0; do { v4 = v3++; v5 = wctob(v4); if ( v5 == -1 ) { *(_BYTE *)(a1 + 12) = 0; goto LABEL_5; } *(_BYTE *)++v2 = v5; } while ( v3 != 128 ); *(_BYTE *)(a1 + 12) = 1; LABEL_5: v6 = a1 + 140; for ( i = 0; i != 256; ++i ) { v8 = i; *(_DWORD *)(v6 + 4) = btowc(v8); v6 += 4; } v9 = a1 + 1167; v10 = a1 + 1180; v11 = 0; do { v12 = 1 << v11++; *(_BYTE *)++v9 = v12; result = sub_77AEF8(a1, (unsigned __int8)v12); *(_DWORD *)(v10 + 4) = result; v10 += 4; } while ( v11 != 16 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source