// // sub_10087F830 from 0x10087f830 to 0x10087f936 (262 bytes) // // 1 xrefs: // > MoreOptionsLayer::addToggle @ 0x10087e11e // // 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:36:56 +0000 // void __fastcall sub_10087F830(__int64 a1, __int64 a2) { __int64 v2; // rbx __int64 v3; // r14 __int64 v4; // rax const char *CString; // r12 size_t v6; // rax size_t v7; // r15 char *v8; // r13 __int64 v9; // r14 size_t v10; // rbx char v11; // [rsp+0h] [rbp-50h] char v12; // [rsp+0h] [rbp-50h] __int64 v13; // [rsp+8h] [rbp-48h] _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] sub_10087FB40(a1, a2); v2 = *(_QWORD *)(a1 + 696); v3 = sub_10088E820("%i", v11); v4 = sub_10088E820("page_%i", v12); CString = (const char *)cocos2d::CCString::getCString(v4); v6 = strlen(CString); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v7 = v6; if ( v6 >= 0x17 ) { v13 = v3; v9 = v2; v10 = 26; if ( (v6 | 7) != 0x17 ) v10 = (v6 | 7) + 1; v8 = (char *)operator new(v10); __p = v8; __dst[0] = v10 + 1; v2 = v9; v3 = v13; __dst[1] = v7; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v6; v8 = (char *)__dst + 1; if ( v6 ) LABEL_8: memmove(v8, CString, v7); v8[v7] = 0; cocos2d::CCDictionary::setObject(v2, v3, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source