// // sub_C9FFC0 from 0xc9ffc0 to 0xca0324 (868 bytes) // // 3 xrefs: // > sub_CA0328 @ 0xca0ae4 // > sub_CA0328 @ 0xca0b54 // > sub_CA0328 @ 0xca0c20 // // 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_C9FFC0(__int64 a1, int a2, int *a3) { int v4; // w21 unsigned __int8 *v5; // x19 __int64 result; // x0 __int64 v8; // x22 int v9; // w21 char *i; // x24 int v11; // w1 unsigned int v12; // w23 int v13; // w20 unsigned int v14; // t1 __int64 v15; // x2 int v16; // w20 int v17; // w26 unsigned __int8 *v18; // x28 bool v19; // zf __int64 v20; // x2 unsigned int v21; // t1 __int64 v22; // x1 v4 = *a3; v5 = (unsigned __int8 *)(*((_QWORD *)a3 + 3) + 33LL * *a3 + 11LL * a2); result = sub_CB67B0(a1, a3[1] >= 0, *v5); if ( (_DWORD)result ) { if ( v4 <= 15 ) { v8 = 2LL * v4; v9 = v4 + 1; for ( i = &byte_F53EC0[v9]; ; ++i ) { while ( 1 ) { v11 = *(__int16 *)(*((_QWORD *)a3 + 1) + v8); v12 = (unsigned int)v11 >> 31; v13 = (v11 ^ (v11 >> 31)) + ((unsigned int)v11 >> 31); if ( (unsigned int)sub_CB67B0(a1, v13 != 0, v5[1]) ) break; v14 = (unsigned __int8)*i++; v8 += 2; v5 = (unsigned __int8 *)(*((_QWORD *)a3 + 3) + 33LL * v14); if ( v9 == 16 ) return 1; ++v9; } if ( (unsigned int)sub_CB67B0(a1, v13 > 1, v5[2]) ) { if ( !(unsigned int)sub_CB67B0(a1, v13 > 4, v5[3]) ) { if ( (unsigned int)sub_CB67B0(a1, v13 != 2, v5[4]) ) { sub_CB67B0(a1, v13 == 4, v5[5]); v5 = (unsigned __int8 *)(*((_QWORD *)a3 + 3) + 33LL * (unsigned __int8)*i + 22); goto LABEL_11; } goto LABEL_16; } if ( !(unsigned int)sub_CB67B0(a1, v13 > 10, v5[6]) ) { if ( (unsigned int)sub_CB67B0(a1, v13 > 6, v5[7]) ) { sub_CB67B0(a1, v13 > 8, 165); sub_CB67B0(a1, !(v13 & 1), 145); } else { sub_CB67B0(a1, v13 == 6, 159); } LABEL_16: v5 = (unsigned __int8 *)(*((_QWORD *)a3 + 3) + 33LL * (unsigned __int8)*i + 22); goto LABEL_11; } v15 = v5[8]; if ( v13 <= 18 ) { v16 = v13 - 11; v18 = (unsigned __int8 *)&unk_F567B0; v17 = 4; sub_CB67B0(a1, 0, v15); sub_CB67B0(a1, 0, v5[9]); } else if ( v13 <= 34 ) { v18 = (unsigned __int8 *)&unk_F56790; v16 = v13 - 19; sub_CB67B0(a1, 0, v15); v17 = 8; sub_CB67B0(a1, 1, v5[9]); } else if ( v13 > 66 ) { v16 = v13 - 67; v17 = 1024; v18 = (unsigned __int8 *)&unk_F567C0; sub_CB67B0(a1, 1, v15); sub_CB67B0(a1, 1, v5[10]); } else { v16 = v13 - 35; v17 = 16; v18 = (unsigned __int8 *)&unk_F567A0; sub_CB67B0(a1, 1, v15); sub_CB67B0(a1, 0, v5[10]); } do { v19 = (v17 & v16) == 0; v21 = *v18++; v20 = v21; v17 >>= 1; v22 = !v19; sub_CB67B0(a1, v22, v20); } while ( v17 ); v5 = (unsigned __int8 *)(*((_QWORD *)a3 + 3) + 33LL * (unsigned __int8)*i + 22); } else { v5 = (unsigned __int8 *)(*((_QWORD *)a3 + 3) + 33LL * (unsigned __int8)*i + 11); } LABEL_11: sub_CB6994(a1, v12); if ( v9 == 16 || !(unsigned int)sub_CB67B0(a1, a3[1] >= v9, *v5) ) return 1; v8 += 2; ++v9; } } return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source