// // sub_10046308C from 0x10046308c to 0x100463128 (156 bytes) // // 0 xrefs: // // 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_10046308C(__int64 *a1) { __int64 v2; // x8 __int64 v3; // x11 int v4; // w10 int v5; // w9 bool v6; // zf __int64 v7; // x11 int v8; // w10 __int64 v9; // x11 int v10; // w10 if ( *((_BYTE *)a1 + 261) ) return 0; v3 = *a1; v2 = a1[1]; v4 = *(_DWORD *)(v2 + 64); v5 = *((_DWORD *)a1 + 64); if ( v4 >= v5 ) { if ( v4 <= v5 ) goto LABEL_13; v6 = (*(_WORD *)(v3 + 3046) & 0x20) == 0; v9 = 260; if ( v6 ) v9 = 244; v10 = v4 - 4 * *((unsigned __int8 *)a1 + v9); *(_DWORD *)(v2 + 64) = v10; if ( v10 >= v5 ) goto LABEL_13; } else { v6 = (*(_WORD *)(v3 + 3046) & 0x20) == 0; v7 = 260; if ( v6 ) v7 = 244; v8 = v4 + 4 * *((unsigned __int8 *)a1 + v7); *(_DWORD *)(v2 + 64) = v8; if ( v8 < v5 ) goto LABEL_13; } *(_DWORD *)(v2 + 64) = v5; *((_BYTE *)a1 + 261) = 1; LABEL_13: *(_BYTE *)(v2 + 60) |= 1u; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source