// // sub_10052FFF4 from 0x10052fff4 to 0x100530178 (388 bytes) // // 1 xrefs: // > sub_1005234DC @ 0x100523b20 // // 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 // __int64 __fastcall sub_10052FFF4(__int64 a1, _BYTE *a2, __int64 a3) { __int64 v3; // x10 int v4; // w11 __int64 v5; // x9 __int64 v6; // x8 unsigned __int8 *v7; // x8 unsigned __int64 v8; // x9 unsigned __int64 v9; // x9 unsigned __int64 v10; // x10 if ( a3 != 3 || *a2 != 3 ) return 0; v3 = *(_QWORD *)(a1 + 256); v4 = *(_DWORD *)(v3 + 108) & 0x30000; if ( v4 ) { if ( !a2[1] ) { v5 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 128) + 936LL) + 16LL); if ( v5 == 50380844 ) { if ( a2[2] == 24 ) { LABEL_10: v7 = (unsigned __int8 *)&unk_100669968; v8 = 2; switch ( v4 ) { case 196608: goto LABEL_26; case 131072: v7 = (unsigned __int8 *)&unk_10066996A; LABEL_15: v8 = 1; goto LABEL_26; case 65536: v7 = (unsigned __int8 *)&unk_100669968; goto LABEL_15; } goto LABEL_16; } } else { v6 = 0; if ( v5 != 50380843 ) return v6; if ( a2[2] == 23 ) goto LABEL_10; } } return 0; } LABEL_16: v7 = *(unsigned __int8 **)(a1 + 560); if ( !v7 ) { v8 = 13; if ( *(_DWORD *)(a1 + 56) ) { v8 = 13; if ( *(_DWORD *)(v3 + 104) ) { v7 = (unsigned __int8 *)&unk_10066996C; } else { v8 = 28; v7 = (unsigned __int8 *)&unk_10066990C; } } else { v7 = (unsigned __int8 *)&unk_10066996C; } goto LABEL_26; } v9 = *(_QWORD *)(a1 + 552); if ( (v9 & 1) != 0 ) { sub_1005E0E48(20, 338, 68, "t1_lib.c", 512); return 0; } v8 = v9 >> 1; if ( !v8 ) return 0; LABEL_26: v10 = 0; while ( (unsigned __int8)a2[1] != *v7 || (unsigned __int8)a2[2] != v7[1] ) { ++v10; v7 += 2; if ( v10 >= v8 ) return 0; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source