// // sub_100656B48 from 0x100656b48 to 0x100656d34 (492 bytes) // // 5 xrefs: // > sub_1006569E8 @ 0x100656a70 // > sub_1006569E8 @ 0x100656ac0 // > sub_1006570D8 @ 0x100657184 // > sub_10065B140 @ 0x10065b560 // > sub_10065B140 @ 0x10065b6a0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:10:53 +0000 // bool __fastcall sub_100656B48(__int64 a1, unsigned __int8 *a2, unsigned __int8 *a3) { __int64 v3; // x8 __int64 v4; // x9 unsigned __int64 v5; // x8 unsigned __int64 i; // x10 __int64 v8; // x10 int v9; // w11 unsigned __int8 *v10; // x8 unsigned __int64 v11; // x9 unsigned __int64 j; // x10 unsigned __int64 v13; // x9 __int64 v14; // x10 unsigned __int64 v15; // x8 unsigned __int64 v16; // x8 unsigned __int64 v17; // x9 unsigned __int8 *v18; // x10 int v19; // w8 bool v20; // zf if ( a3 ) { v3 = *(_QWORD *)(a1 + 304); v4 = *(_QWORD *)(v3 + 296); if ( v4 ) { v5 = *(_QWORD *)(v3 + 288); if ( v5 ) { for ( i = 0; i < v5; ++i ) { if ( *a3 == *(unsigned __int8 *)(v4 + i) ) break; } } else { i = 0; } if ( i == v5 ) return 0; } } if ( !a2 ) return 1; v8 = *(_QWORD *)(a1 + 256); v9 = *(_DWORD *)(v8 + 108) & 0x30000; v10 = (unsigned __int8 *)&unk_100792968; v11 = 2; switch ( v9 ) { case 196608: goto LABEL_18; case 131072: v10 = (unsigned __int8 *)&unk_10079296A; LABEL_17: v11 = 1; goto LABEL_18; case 65536: v10 = (unsigned __int8 *)&unk_100792968; goto LABEL_17; } v10 = *(unsigned __int8 **)(a1 + 560); if ( v10 ) { v13 = *(_QWORD *)(a1 + 552); if ( (v13 & 1) != 0 ) goto LABEL_38; v11 = v13 >> 1; if ( !v11 ) { v11 = 0; j = 0; goto LABEL_27; } } else { v11 = 13; if ( *(_DWORD *)(a1 + 56) ) { v19 = *(_DWORD *)(v8 + 104); v20 = v19 == 0; if ( v19 ) v10 = (unsigned __int8 *)&unk_10079296C; else v10 = (unsigned __int8 *)&unk_10079290C; if ( v20 ) v11 = 28; else v11 = 13; } else { v10 = (unsigned __int8 *)&unk_10079296C; } } LABEL_18: for ( j = 0; j < v11; ++j ) { if ( *v10 == *a2 && v10[1] == a2[1] ) break; v10 += 2; } LABEL_27: if ( j == v11 ) return 0; if ( !*(_DWORD *)(a1 + 56) ) return 1; v14 = *(_QWORD *)(a1 + 304); v15 = *(_QWORD *)(v14 + 304); if ( (v15 & 1) != 0 ) { LABEL_38: sub_100706FB0(20, 338, 68, "t1_lib.c", 512); return 0; } v16 = v15 >> 1; if ( !v16 ) return 1; v17 = 0; v18 = *(unsigned __int8 **)(v14 + 312); do { if ( *v18 == *a2 && v18[1] == a2[1] ) break; ++v17; v18 += 2; } while ( v17 < v16 ); return v17 != v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source