// // sub_10087F970 from 0x10087f970 to 0x10087fb11 (417 bytes) // // 1 xrefs: // > MoreOptionsLayer::addToggle @ 0x10087e2de // // 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 // __int64 __fastcall sub_10087F970(__int64 a1, __int64 a2) { __int64 v2; // rbx __int64 v3; // rax const char *CString; // r15 size_t v5; // rax size_t v6; // r14 char *v7; // r12 size_t v8; // r13 void *v9; // rax const char *v10; // rbx size_t v11; // rax size_t v12; // r14 char *v13; // r15 size_t v14; // r12 char *v15; // rbx char v17; // [rsp+0h] [rbp-60h] _QWORD __dst[2]; // [rsp+8h] [rbp-58h] BYREF void *__p; // [rsp+18h] [rbp-48h] _QWORD v20[2]; // [rsp+20h] [rbp-40h] BYREF void *v21; // [rsp+30h] [rbp-30h] (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v2 = *(_QWORD *)(a1 + 696); v3 = sub_10088E820("info_%i", v17); CString = (const char *)cocos2d::CCString::getCString(v3); v5 = strlen(CString); if ( v5 >= 0xFFFFFFFFFFFFFFF8LL ) goto LABEL_22; v6 = v5; if ( v5 >= 0x17 ) { v8 = 26; if ( (v5 | 7) != 0x17 ) v8 = (v5 | 7) + 1; v7 = (char *)operator new(v8); __p = v7; __dst[0] = v8 + 1; __dst[1] = v6; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v5; v7 = (char *)__dst + 1; if ( v5 ) LABEL_8: memmove(v7, CString, v6); v7[v6] = 0; v9 = cocos2d::CCDictionary::valueForKey(v2, (__int64)__dst); v10 = (const char *)cocos2d::CCString::getCString(v9); if ( (__dst[0] & 1) != 0 ) operator delete(__p); v11 = strlen(v10); if ( v11 >= 0xFFFFFFFFFFFFFFF8LL ) LABEL_22: sub_100003630(); v12 = v11; if ( v11 >= 0x17 ) { v14 = 26; if ( (v11 | 7) != 0x17 ) v14 = (v11 | 7) + 1; v13 = (char *)operator new(v14); v21 = v13; v20[0] = v14 + 1; v20[1] = v12; goto LABEL_18; } LOBYTE(v20[0]) = 2 * v11; v13 = (char *)v20 + 1; if ( v11 ) LABEL_18: memmove(v13, v10, v12); v13[v12] = 0; v15 = FLAlertLayer::create_1(0, (int)"Info", (__int64)v20, (int)"OK", 0, 380.0); if ( (v20[0] & 1) != 0 ) operator delete(v21); return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v15 + 1312LL))(v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source