// // sub_100470690 from 0x100470690 to 0x1004706f4 (100 bytes) // // 26 xrefs: // > sub_100471C30 @ 0x100471cb0 // > sub_100471C30 @ 0x100471cc4 // > sub_100471C30 @ 0x100471d18 // > sub_100471C30 @ 0x100471d8c // > sub_100471ED4 @ 0x100471fcc // > sub_100471ED4 @ 0x100472048 // > sub_100471ED4 @ 0x100472064 // > sub_100471ED4 @ 0x100472080 // > sub_100471ED4 @ 0x100472140 // > sub_100471ED4 @ 0x100472208 // > sub_100471ED4 @ 0x100472228 // > sub_100471ED4 @ 0x100472248 // > sub_100473C00 @ 0x100473c3c // > sub_100473C00 @ 0x100473db8 // > sub_100473FA8 @ 0x100473fdc // > sub_100473FA8 @ 0x100474110 // > sub_100473FA8 @ 0x10047414c // > sub_100474B14 @ 0x100474b8c // > sub_100474B14 @ 0x100476518 // > sub_100474B14 @ 0x100476540 // > sub_1004765AC @ 0x100476834 // > sub_1004765AC @ 0x100476954 // > sub_1004765AC @ 0x100476f14 // > sub_1004765AC @ 0x100477050 // > sub_1004765AC @ 0x10047748c // > sub_1004765AC @ 0x1004774b8 // // 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_100470690(__int64 a1, int a2) { __int64 v2; // x8 unsigned __int8 *v3; // x9 int v4; // w12 unsigned int v5; // w10 int v6; // w12 if ( !a2 ) return 0; v2 = *(_QWORD *)(a1 + 376); v3 = *(unsigned __int8 **)(v2 + 18608); v4 = *(_DWORD *)(v2 + 18600); v5 = (((*v3 << 16) | (v3[1] << 8) | v3[2]) << v4) & 0xFFFFFF; v6 = v4 + a2; *(_QWORD *)(v2 + 18608) = &v3[v6 >> 3]; *(_DWORD *)(v2 + 18600) = v6 & 7; return v5 >> (24 - a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source