// // sub_1004B21A0 from 0x1004b21a0 to 0x1004b2268 (200 bytes) // // 1 xrefs: // > sub_1004B152C @ 0x1004b18f0 // // 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_1004B21A0(__int64 *a1, int a2, int a3, int a4) { int v4; // w8 int v5; // w9 int v6; // w10 __int64 v7; // x12 v4 = 0; if ( a4 >= 1 && a2 < a3 ) { v4 = 0; v5 = 1 << (a2 & 7); v6 = a2 >> 3; while ( 1 ) { if ( a2 >= *((_DWORD *)a1 + 13) ) goto LABEL_19; v7 = *a1; if ( ((unsigned __int8)v5 & *(_BYTE *)(*a1 + v6)) != 0 ) break; if ( (a2 & 0x1F) == 0 && *(_DWORD *)(v7 + v6) == -1 ) { v4 = 0; LABEL_18: v6 += 4; a2 += 32; if ( v4 >= a4 ) goto LABEL_19; goto LABEL_15; } ++v4; if ( (a2 & 0x1F) == 0 ) goto LABEL_11; LABEL_12: ++a2; LOBYTE(v5) = 2 * v5; if ( (a2 & 7) == 0 ) { LOBYTE(v5) = 1; ++v6; } if ( v4 >= a4 ) goto LABEL_19; LABEL_15: if ( a2 >= a3 ) goto LABEL_19; } v4 = 0; if ( (a2 & 0x1F) != 0 ) goto LABEL_12; LABEL_11: if ( *(_DWORD *)(v7 + v6) == -1 ) goto LABEL_18; goto LABEL_12; } LABEL_19: if ( v4 == a4 ) return (unsigned int)(a2 - a4); else return 0xFFFFFFFFLL; }
GD Web Decomp Icon

GD Web Decomp

Raw Source