// // sub_1000994D0 from 0x1000994d0 to 0x100099608 (312 bytes) // // 13 xrefs: // > sub_100099990 @ 0x1000999b6 // > sub_1000999D0 @ 0x100099a2f // > sub_100099A70 @ 0x100099acf // > sub_100099B10 @ 0x100099b6f // > sub_100099BB0 @ 0x100099c0d // > sub_100099D30 @ 0x100099dc0 // > sub_100099DD0 @ 0x100099e3b // > sub_100099E60 @ 0x100099ecb // > sub_100099EF0 @ 0x100099f5b // > sub_100099F80 @ 0x100099fed // > sub_10009A020 @ 0x10009a089 // > sub_10009A240 @ 0x10009a2b4 // > sub_10009A2F0 @ 0x10009a37c // // 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 // char __fastcall sub_1000994D0(__int64 a1, const char *a2, int a3) { const char *v3; // r14 unsigned __int8 v4; // al __int64 v5; // r13 const char *v6; // r15 char result; // al char **v8; // rax __int64 v9; // kr08_8 v3 = a2; if ( *(_BYTE *)(a1 + 32) != 1 ) { v6 = a2; return sub_1000992C0(a1, "%s", v6); } v4 = *a2; if ( *a2 ) { v5 = a1 + (unsigned int)(a3 << 6) + 34; v6 = a2; do { if ( v4 <= 0x3Fu && *(_BYTE *)(v5 + v4) == 1 ) { if ( v6 < v3 ) { do sub_1000992C0(a1, "%c", (unsigned int)*v6++); while ( v6 < v3 ); v4 = *v3; } v9 = (unsigned int)v4 - 34; v8 = &off_1008B4350; switch ( v9 ) { case 0LL: goto LABEL_7; case 4LL: v8 = &off_1008B4360; goto LABEL_7; case 5LL: v8 = &off_1008B4370; goto LABEL_7; case 26LL: v8 = &off_1008B4380; goto LABEL_7; case 28LL: v8 = &off_1008B4390; LABEL_7: sub_1000992C0(a1, "&%s;", *v8); break; default: break; } ++v6; } v4 = *++v3; } while ( v4 ); result = *(_BYTE *)(a1 + 32); if ( (result & 1) == 0 ) return sub_1000992C0(a1, "%s", v6); } else { result = 1; v6 = a2; } if ( v3 - v6 > 0 ) return sub_1000992C0(a1, "%s", v6); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source