// // sub_100287DA0 from 0x100287da0 to 0x100287f5d (445 bytes) // // 3 xrefs: // > sub_100287300 @ 0x100287535 // > EditorOptionsLayer::setupOptions @ 0x1002887ed // > GameOptionsLayer::setupOptions @ 0x10029e88b // // 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:27:46 +0000 // __int64 __fastcall sub_100287DA0(__int64 a1) { void *v1; // r14 __int64 v2; // rax const char *CString; // r13 size_t v4; // rax size_t v5; // r12 char *v6; // r14 size_t v7; // r15 void *v8; // rdi __int64 v9; // rbx __int64 v10; // r13 __int64 v11; // rax const char *v12; // r12 size_t v13; // rax size_t v14; // r14 char *v15; // r13 size_t v16; // r15 char v18; // [rsp+0h] [rbp-50h] void *v20; // [rsp+8h] [rbp-48h] __int64 v21; // [rsp+8h] [rbp-48h] size_t __dst; // [rsp+10h] [rbp-40h] BYREF size_t v23; // [rsp+18h] [rbp-38h] void *__p; // [rsp+20h] [rbp-30h] v1 = *(void **)(a1 + 1040); v2 = sub_10088E820("object_%i", v18); CString = (const char *)cocos2d::CCString::getCString(v2); v4 = strlen(CString); if ( v4 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_23; v5 = v4; v20 = v1; if ( v4 >= 0x17 ) { v7 = 26; if ( (v4 | 7) != 0x17 ) v7 = (v4 | 7) + 1; v6 = (char *)operator new(v7); __p = v6; __dst = v7 + 1; v23 = v5; goto LABEL_8; } LOBYTE(__dst) = 2 * v4; v6 = (char *)&__dst + 1; if ( v4 ) LABEL_8: memmove(v6, CString, v5); v6[v5] = 0; v8 = v20; v9 = cocos2d::CCDictionary::objectForKey(v20, &__dst); if ( (__dst & 1) != 0 ) { v8 = __p; operator delete(__p); } if ( !v9 ) { v9 = sub_1007FE900(v8); v10 = *(_QWORD *)(a1 + 1040); v11 = sub_10088E820("object_%i", a1); v12 = (const char *)cocos2d::CCString::getCString(v11); v13 = strlen(v12); if ( v13 < 0xFFFFFFFFFFFFFFF8LL ) { v14 = v13; v21 = v10; if ( v13 >= 0x17 ) { v16 = 26; if ( (v13 | 7) != 0x17 ) v16 = (v13 | 7) + 1; v15 = (char *)operator new(v16); __p = v15; __dst = v16 + 1; v23 = v14; } else { LOBYTE(__dst) = 2 * v13; v15 = (char *)&__dst + 1; if ( !v13 ) { LABEL_20: v15[v14] = 0; cocos2d::CCDictionary::setObject(v21, v9, &__dst); if ( (__dst & 1) != 0 ) operator delete(__p); return v9; } } memmove(v15, v12, v14); goto LABEL_20; } LABEL_23: sub_100003630(); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source