// // DS_Dictionary::getIntegerForKey from 0x18001a790 to 0x18001a8da (330 bytes) // // 7 xrefs: // > DS_Dictionary::decodeObjectForKey @ 0x180019b4a // > DS_Dictionary::getDictForKey @ 0x18001a0c4 // > DS_Dictionary::getDictForKey @ 0x18001a0de // > DS_Dictionary::getObjectForKey @ 0x18001abb5 // > DS_Dictionary::getObjectForKey @ 0x18001abcf // > @ 0x1801438a8 // > @ 0x1801ae9f8 // // 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 // int __fastcall DS_Dictionary::getIntegerForKey(DS_Dictionary *this, const char *a2) { bool v2; // zf const char *v4; // r8 std::_Vector_val>::pointer Mylast; // rcx __int64 v7; // rax const char *v8; // rcx __int64 v9; // rax int v10; // edx int v11; // r8d const char *v12; // r8 const char *v14; // rax __int64 v15; // [rsp+40h] [rbp+8h] BYREF char v16; // [rsp+50h] [rbp+18h] BYREF char v17; // [rsp+58h] [rbp+20h] BYREF v2 = !this->compatible; v4 = "k"; Mylast = this->dictTree._Mypair._Myval2._Mylast; if ( !v2 ) v4 = "key"; sub_18007FB10(&Mylast[-1], &v15, v4); if ( !sub_18007F4E0(&v15) ) return 0; while ( 1 ) { if ( !strcmp(a2, (const char *)sub_18007FB70(&v15)) ) { sub_180081AB0(&v15, &v16); v7 = sub_180081A30(&v16); v8 = "i"; if ( this->compatible ) v8 = "integer"; v9 = v7 - (_QWORD)v8; do { v10 = (unsigned __int8)v8[v9]; v11 = *(unsigned __int8 *)v8 - v10; if ( v11 ) break; ++v8; } while ( v10 ); if ( !v11 ) break; } v12 = "k"; if ( this->compatible ) v12 = "key"; v15 = *(_QWORD *)sub_180081A50(&v15, &v17, v12); if ( !sub_18007F4E0(&v15) ) return 0; } v14 = (const char *)sub_18007FB70(&v16); return strtol(v14, nullptr, 10); }