// // sub_100536D70 from 0x100536d70 to 0x100536f8e (542 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x10051dcc5 // // 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:31:53 +0000 // unsigned __int8 __fastcall sub_100536D70(__int64 a1, unsigned __int8 *a2, const std::string *a3) { __int64 v4; // r14 const char *data; // r13 size_t v6; // rax size_t v7; // rbx char *v8; // r15 size_t v9; // r14 unsigned int v10; // r15d std::string::size_type v11; // rax std::string::pointer v12; // r12 const void *v13; // rdi unsigned __int64 v14; // rcx size_t v15; // rdx unsigned __int8 result; // al __int64 v17; // rdi __int64 v18; // r12 __int64 v19; // r14 __int64 v20; // rax unsigned int v21; // ebx __int64 v22; // rax __int64 v23; // rdi __int64 v24; // [rsp+10h] [rbp-50h] _QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF void *__p; // [rsp+30h] [rbp-30h] v4 = a1; if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 ) data = a3->__r_.__value_.__l.__data_; else data = a3->__r_.__value_.__s.__data_; v6 = strlen(data); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v7 = v6; v24 = *(_QWORD *)(a1 + 1088); if ( v6 >= 0x17 ) { v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; v8 = (char *)operator new(v9); __p = v8; __dst[0] = v9 + 1; v4 = a1; __dst[1] = v7; goto LABEL_11; } v8 = (char *)__dst + 1; LOBYTE(__dst[0]) = 2 * v6; if ( v6 ) LABEL_11: memmove(v8, data, v7); v8[v7] = 0; cocos2d::CCDictionary::removeObjectForKey(v24, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); v10 = 0; v11 = std::string::find(a3, 95, 0); if ( v11 != -1 ) { if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 ) v12 = a3->__r_.__value_.__l.__data_; else v12 = a3->__r_.__value_.__s.__data_; v10 = atoi(&v12[v11 + 1]); } *(_WORD *)((char *)__dst + 1) = 12589; BYTE3(__dst[0]) = 0; v13 = a2 + 1; v14 = *a2 >> 1; if ( (*a2 & 1) != 0 ) { v13 = *((const void **)a2 + 2); v14 = *((_QWORD *)a2 + 1); } v15 = 2; if ( v14 < 2 ) v15 = v14; result = (v14 != 2) | (memcmp(v13, (char *)__dst + 1, v15) != 0); if ( result ) { v18 = v4; v19 = sub_10053FBE0(a2, ":"); if ( (unsigned int)sub_1007FEF90(v19) ) { v20 = cocos2d::CCArray::stringAtIndex(v19, 0); v21 = cocos2d::CCString::intValue(v20); if ( (unsigned int)sub_1007FEF90(v19) >= 2 ) goto LABEL_28; } else { v21 = 0; if ( (unsigned int)sub_1007FEF90(v19) >= 2 ) { LABEL_28: v22 = cocos2d::CCArray::stringAtIndex(v19, 1); result = (unsigned int)cocos2d::CCString::intValue(v22) != 0; v23 = *(_QWORD *)(v18 + 1256); if ( !v23 ) return result; return (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v23 + 336LL))( v23, v10, v21, result); } } result = 0; v23 = *(_QWORD *)(v18 + 1256); if ( !v23 ) return result; return (*(__int64 (__fastcall **)(__int64, _QWORD, _QWORD, _QWORD))(*(_QWORD *)v23 + 336LL))(v23, v10, v21, result); } v17 = *(_QWORD *)(v4 + 1256); if ( v17 ) return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 344LL))(v17, v10); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source