// // sub_100091EE0 from 0x100091ee0 to 0x100092161 (641 bytes) // // 3 xrefs: // > GameStatsManager::getSpecialRewardDescription @ 0x100078033 // > GameStatsManager::getSpecialUnlockDescription @ 0x1000780a9 // > GameStatsManager::getSpecialUnlockDescription @ 0x1000780f4 // // 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_100091EE0(_QWORD *a1, unsigned __int8 *a2) { unsigned int v3; // edx _QWORD *v4; // rsi unsigned __int64 v5; // rdx unsigned __int64 v6; // rax unsigned __int64 v7; // r12 unsigned __int64 v8; // r14 unsigned __int64 v9; // rcx __int64 v10; // rsi __int64 ***v11; // rax __int64 **v12; // r15 unsigned int v13; // r13d size_t v14; // r13 __int64 v15; // rbx unsigned __int64 v16; // r12 __int64 *v17; // rax unsigned int v18; // eax __int64 *v19; // rdi unsigned __int64 v20; // rax unsigned int v21; // eax __int64 *v22; // rdi void *__s2; // [rsp+8h] [rbp-38h] char v25[41]; // [rsp+17h] [rbp-29h] BYREF v3 = *a2; v4 = a2 + 1; __s2 = v4; if ( (v3 & 1) != 0 ) { v4 = *((_QWORD **)a2 + 2); v5 = *((_QWORD *)a2 + 1); } else { v5 = v3 >> 1; } v6 = sub_100091A30((__int64)v25, v4, v5); v7 = a1[1]; if ( !v7 ) return nullptr; v8 = v6; v9 = (0x101010101010101LL * ((((v7 - ((v7 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v7 - ((v7 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + ((((v7 - ((v7 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v7 - ((v7 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v9 > 1 ) { if ( v6 >= v7 ) { if ( (v7 | v6) >> 32 ) { v10 = v6 % v7; v11 = *(__int64 ****)(*a1 + 8 * (v6 % v7)); if ( !v11 ) return nullptr; } else { v10 = (unsigned int)v6 % (unsigned int)v7; v11 = *(__int64 ****)(*a1 + 8 * v10); if ( !v11 ) return nullptr; } } else { v10 = v6; v11 = *(__int64 ****)(*a1 + 8 * v6); if ( !v11 ) return nullptr; } } else { v10 = v6 & (v7 - 1); v11 = *(__int64 ****)(*a1 + 8 * v10); if ( !v11 ) return nullptr; } v12 = *v11; if ( *v11 ) { v13 = *a2; if ( (v13 & 1) != 0 ) { v14 = *((_QWORD *)a2 + 1); __s2 = *((void **)a2 + 2); v15 = v10; if ( (unsigned int)v9 >= 2 ) goto LABEL_36; goto LABEL_20; } v14 = v13 >> 1; v15 = v10; if ( (unsigned int)v9 < 2 ) { LABEL_20: v16 = v7 - 1; while ( 1 ) { v17 = v12[1]; if ( v17 != (__int64 *)v8 ) { if ( (v16 & (unsigned __int64)v17) != v10 ) return nullptr; goto LABEL_22; } v18 = *((unsigned __int8 *)v12 + 16); if ( (v18 & 1) != 0 ) { if ( v12[3] != (__int64 *)v14 ) goto LABEL_22; } else if ( v18 >> 1 != v14 ) { goto LABEL_22; } if ( (v18 & 1) != 0 ) v19 = v12[4]; else v19 = (__int64 *)((char *)v12 + 17); v10 = v15; if ( !memcmp(v19, __s2, v14) ) return v12; LABEL_22: v12 = (__int64 **)*v12; if ( !v12 ) return nullptr; } } do { LABEL_36: v20 = (unsigned __int64)v12[1]; if ( v20 == v8 ) { v21 = *((unsigned __int8 *)v12 + 16); if ( (v21 & 1) != 0 ) { if ( v12[3] != (__int64 *)v14 ) goto LABEL_35; } else if ( v21 >> 1 != v14 ) { goto LABEL_35; } if ( (v21 & 1) != 0 ) v22 = v12[4]; else v22 = (__int64 *)((char *)v12 + 17); v10 = v15; if ( !memcmp(v22, __s2, v14) ) return v12; } else { if ( v20 >= v7 ) { if ( (v7 | v20) >> 32 ) v20 %= v7; else v20 = (unsigned int)v20 % (unsigned int)v7; } if ( v20 != v10 ) return nullptr; } LABEL_35: v12 = (__int64 **)*v12; } while ( v12 ); } return nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source