// // sub_1005AB508 from 0x1005ab508 to 0x1005ab5f4 (236 bytes) // // 10 xrefs: // > sub_1005B30BC @ 0x1005b31cc // > sub_1005B3828 @ 0x1005b38e8 // > sub_1005B3828 @ 0x1005b39ec // > sub_1005B55E4 @ 0x1005b5634 // > sub_1005BD8D4 @ 0x1005bdc28 // > sub_1005BD8D4 @ 0x1005bdc38 // > sub_1005BD8D4 @ 0x1005bdc48 // > sub_1005BD8D4 @ 0x1005bdd1c // > sub_1005BD8D4 @ 0x1005bdd2c // > sub_1005BD8D4 @ 0x1005bdd3c // // 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_1005AB508(__int64 a1, int a2) { char v2; // w20 int v4; // w24 int v5; // w23 int v6; // w8 int v7; // w21 int v8; // w9 _BYTE *v10; // x22 v2 = a2; if ( a2 < 0 ) return 0; if ( a2 >= 0 ) v4 = a2; else v4 = a2 + 63; v5 = v4 >> 6; v6 = *(_DWORD *)(a1 + 8); if ( v6 > v4 >> 6 ) goto LABEL_18; v7 = v5 + 1; v8 = *(_DWORD *)(a1 + 12); if ( v5 < v8 || v8 >= v7 ) { LABEL_15: if ( v6 < v7 ) bzero((void *)(*(_QWORD *)a1 + 8LL * v6), 8LL * (unsigned int)(v5 - v6) + 8); *(_DWORD *)(a1 + 8) = v7; LABEL_18: *(_QWORD *)(*(_QWORD *)a1 + 8LL * v5) |= 1LL << (v2 - (v4 & 0xC0u)); return 1; } v10 = sub_1005AAD90(a1, v5 + 1); if ( v10 ) { if ( *(_QWORD *)a1 ) sub_100588C44(*(void **)a1); *(_QWORD *)a1 = v10; *(_DWORD *)(a1 + 12) = v7; v6 = *(_DWORD *)(a1 + 8); goto LABEL_15; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source