//
// DS_Dictionary::getBoolForKey from 0x180019b70 to 0x180019c6d (253 bytes)
//
// 5 xrefs:
// > DS_Dictionary::getDictForKey @ 0x180019e7a
// > DS_Dictionary::getObjectForKey @ 0x18001a913
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b8a04
// > ??> @ 0x1801b8a10
//
// 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 11:21:25 +0000
//
bool __fastcall DS_Dictionary::getBoolForKey(DS_Dictionary *this, const char *a2)
{
bool v2; // zf
const char *v4; // r8
__int64 v5; // rcx
const char *v7; // rax
const char *v8; // r8
char v10; // bl
const char *v11; // rdx
const char *v12; // rcx
__int64 v13; // [rsp+30h] [rbp+8h] BYREF
char v14; // [rsp+40h] [rbp+18h] BYREF
v2 = *((_BYTE *)this + 232) == 0;
v4 = "k";
v5 = *((_QWORD *)this + 27);
if ( !v2 )
v4 = "key";
sub_180082A40(v5 - 8, &v13, v4);
if ( !sub_1800823F0(&v13) )
return 0;
while ( 1 )
{
v7 = (const char *)sub_180082AC0(&v13);
if ( !strcmp(v7, a2) )
break;
v8 = "k";
if ( *((_BYTE *)this + 232) )
v8 = "key";
v13 = *(_QWORD *)sub_180084A40(&v13, &v14, v8);
if ( !sub_1800823F0(&v13) )
return 0;
}
sub_180084AC0(&v13, &v14);
v10 = *((_BYTE *)this + 232);
v11 = (const char *)sub_180084A20(&v14);
v12 = "t";
if ( v10 )
v12 = "true";
return !strcmp(v12, v11);
}