// // sub_10009BEB4 from 0x10009beb4 to 0x10009c038 (388 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x100093868 // // This function is hookable on this platform (idp: arm, 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 10:58:28 +0000 // __int64 __fastcall sub_10009BEB4(__int64 a1, std::string *a2) { __int64 v4; // x21 _BOOL4 v5; // w0 _BOOL4 v6; // w21 __int64 v7; // x0 const char *v8; // x0 int v9; // w21 __int64 result; // x0 int v11; // w20 __int64 v12; // x0 _DWORD *v13; // x22 float v14; // s0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v16; // [xsp+1Fh] [xbp-21h] v4 = *(_QWORD *)(a1 + 1088); sub_100009900(__p, "req_ua"); cocos2d::CCDictionary::removeObjectForKey(v4, (char *)__p); if ( v16 < 0 ) operator delete(__p[0]); sub_100009900(__p, "-1"); v5 = sub_1000045BC(a2, __p); v6 = v5; if ( v16 < 0 ) { operator delete(__p[0]); if ( !v6 ) goto LABEL_9; } else if ( !v5 ) { goto LABEL_9; } v7 = *(_QWORD *)(a1 + 1360); if ( v7 ) (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v7 + 8LL))(v7, 0, 49); LABEL_9: v8 = (const char *)a2; if ( SHIBYTE(a2->__r_.__value_.__r.__words[2]) < 0 ) v8 = (const char *)a2->__r_.__value_.__r.__words[0]; v9 = atoi(v8); result = std::string::find(a2, 44, 0); if ( result == -1 ) { v11 = 0; } else { if ( SHIBYTE(a2->__r_.__value_.__r.__words[2]) < 0 ) a2 = (std::string *)a2->__r_.__value_.__r.__words[0]; result = atoi(&a2->__r_.__value_.__s.__data_[result + 1]); v11 = result; } if ( v9 == 99 ) { v12 = GameManager::sharedState(result); *(_BYTE *)(v12 + 1044) = 1; } else { if ( (unsigned int)(v9 - 1) > 1 ) return result; v13 = (_DWORD *)GameManager::sharedState(result); v13[260] = v9; v12 = rand(); v14 = vcvts_n_f32_s32(v12, 0x1Fu) * 1000.0; v13[259] = (int)v14; v13[258] = v9 + (int)v14; } *(_DWORD *)(GameManager::sharedState(v12) + 1048) = v11; result = *(_QWORD *)(a1 + 1360); if ( result ) return (**(__int64 (__fastcall ***)(__int64, _QWORD, __int64))result)(result, 0, 49); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source