// // setSBCS from 0x18013a328 to 0x18013a3b8 (144 bytes) // // 2 xrefs: // > _setmbcp_nolock @ 0x18013ab1d // > @ 0x180203848 // // 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 setSBCS(struct threadmbcinfostruct *a1) { _BYTE *v1; // rbx __int64 v3; // rbp _WORD *v4; // rdi __int64 v5; // rcx signed __int64 v6; // rdi _BYTE *v7; // rcx __int64 v8; // rdx v1 = (char *)a1 + 24; v3 = 257; memset((char *)a1 + 24, 0, 0x101u); v4 = (_WORD *)((char *)a1 + 12); *(_QWORD *)((char *)a1 + 4) = 0; v5 = 6; *((_QWORD *)a1 + 68) = 0; while ( v5 ) { *v4++ = 0; --v5; } v6 = &unk_1801B1A50 - (_UNKNOWN *)a1; do { *v1 = v1[v6]; ++v1; --v3; } while ( v3 ); v7 = (char *)a1 + 281; v8 = 256; do { *v7 = v7[v6]; ++v7; --v8; } while ( v8 ); }