// // DS_Dictionary::getStringArrayForKey from 0x10017e1a0 to 0x10017e3c0 (544 bytes) // // 2 xrefs: // > DS_Dictionary::getVec2ArrayForKey @ 0x10017e428 // > DS_Dictionary::getRectArrayForKey @ 0x10017e598 // // 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 // std::vector *__fastcall DS_Dictionary::getStringArrayForKey( std::vector *__return_ptr retstr, DS_Dictionary *a2, const char *a3) { std::__vector_base::pointer v5; // rdi bool v6; // zf const char *v7; // rsi const char *v8; // rsi const char *v9; // rax const char *v10; // rsi std::vector *v11; // rbx const char *v12; // rbx size_t v13; // rax size_t v14; // r12 char *v15; // r13 size_t v16; // r15 _QWORD __dst[2]; // [rsp+8h] [rbp-58h] BYREF void *__p; // [rsp+18h] [rbp-48h] __int64 v20; // [rsp+20h] [rbp-40h] BYREF __int64 i; // [rsp+28h] [rbp-38h] BYREF std::vector *v22; // [rsp+30h] [rbp-30h] v22 = retstr; v5 = a2->dictTree.__end_ - 1; v6 = !a2->compatible; v7 = "k"; if ( !v6 ) v7 = "key"; v20 = sub_10063B550(v5, v7); if ( sub_10063B3F0(&v20) ) { while ( 1 ) { v9 = (const char *)sub_10063B880(&v20); if ( !strcmp(v9, a3) ) { __dst[0] = sub_10063B780(&v20); v10 = "a"; if ( a2->compatible ) v10 = "array"; i = sub_10063B730(&v20, v10); if ( (unsigned __int8)sub_10063B5F0(__dst, &i) ) break; } v8 = "k"; if ( a2->compatible ) v8 = "key"; v20 = sub_10063B730(&v20, v8); if ( !sub_10063B3F0(&v20) ) goto LABEL_25; } v11 = v22; *(_OWORD *)&v22->__begin_ = 0; v11->__end_cap_.__value_ = nullptr; __dst[0] = sub_10063B780(&v20); for ( i = sub_10063B9B0(__dst); ; i = sub_10063B780(&i) ) { if ( !sub_10063B3F0(&i) ) return v11; v12 = (const char *)sub_10063B880(&i); v13 = strlen(v12); if ( v13 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(0.0); v14 = v13; if ( v13 >= 0x17 ) break; LOBYTE(__dst[0]) = 2 * v13; v15 = (char *)__dst + 1; if ( v13 ) goto LABEL_21; LABEL_22: v15[v14] = 0; v11 = v22; sub_10017A000((__int64)v22, (__int64)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); } v16 = (v13 | 7) + 1; if ( (v13 | 7) == 0x17 ) v16 = 26; v15 = (char *)operator new(v16); __p = v15; __dst[0] = v16 | 1; __dst[1] = v14; LABEL_21: memmove(v15, v12, v14); goto LABEL_22; } LABEL_25: v11 = v22; *(_OWORD *)&v22->__begin_ = 0; v11->__end_cap_.__value_ = nullptr; return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source