// // sub_1000A91B0 from 0x1000a91b0 to 0x1000a92ef (319 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:20:16 +0000 // __int64 __fastcall sub_1000A91B0(int a1, int a2, __int64 *a3) { unsigned __int64 v3; // rcx unsigned __int64 v4; // r8 unsigned __int64 v5; // rax __int64 v6; // r9 __int64 v7; // r10 unsigned __int64 v8; // r8 __int64 *v9; // rdi __int64 v10; // r11 unsigned __int64 v11; // rdi __int64 **v12; // rax __int64 *i; // r11 unsigned __int64 v14; // rax LODWORD(v3) = 1; if ( a1 >= 2 ) LODWORD(v3) = a1; if ( (int)v3 > a2 ) return (unsigned int)v3; v4 = a3[1]; v5 = v4 - 1; if ( !v4 ) return (unsigned int)v3; v6 = *a3; v7 = (unsigned int)(a2 + 1); v3 = (unsigned int)v3; if ( ((v4 - 1) & v4) != 0 ) { LABEL_15: v11 = v3; if ( v4 <= v3 ) { if ( !((v4 | v3) >> 32) ) { v11 = (unsigned int)v3 % (unsigned int)v4; v12 = *(__int64 ***)(v6 + 8 * v11); if ( !v12 ) return (unsigned int)v3; LABEL_19: for ( i = *v12; ; i = (__int64 *)*i ) { if ( !i ) return (unsigned int)v3; v14 = i[1]; if ( v14 == v3 ) { if ( v3 == *((_DWORD *)i + 4) ) { if ( ++v3 == v7 ) { LABEL_14: LODWORD(v3) = a2; return (unsigned int)v3; } goto LABEL_15; } } else { if ( v14 < v4 ) goto LABEL_27; if ( (v4 | v14) >> 32 ) { v14 %= v4; LABEL_27: if ( v14 != v11 ) return (unsigned int)v3; continue; } if ( (unsigned int)v14 % (unsigned int)v4 != v11 ) return (unsigned int)v3; } } } v11 = v3 % v4; } v12 = *(__int64 ***)(v6 + 8 * v11); if ( !v12 ) return (unsigned int)v3; goto LABEL_19; } v8 = v4 + 0x7FFFFFFF; LABEL_7: v9 = *(__int64 **)(v6 + 8 * (v3 & v8)); if ( v9 ) { while ( 1 ) { v9 = (__int64 *)*v9; if ( !v9 ) break; v10 = v9[1]; if ( v10 == v3 ) { if ( v3 == *((_DWORD *)v9 + 4) ) { if ( ++v3 != v7 ) goto LABEL_7; goto LABEL_14; } } else if ( (v5 & v10) != (v3 & v8) ) { return (unsigned int)v3; } } } return (unsigned int)v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source