{"type": "func", "start": 4300426784, "end": 4300426848, "name": "GameLevelManager::getHighestLevelOrder", "pseudocode": "// \n// GameLevelManager::getHighestLevelOrder from 0x100534e20 to 0x100534e60 (64 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::downloadLevel @ 0x1002c005d\n// > LevelInfoLayer::FLAlert_Clicked @ 0x1002c4cff\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall GameLevelManager::getHighestLevelOrder(GameLevelManager *a1)\n{\n  cocos2d::CCDictionary *m_onlineLevels; // rcx\n  int result; // eax\n  cocos2d::CCDictElement *m_pElements; // rcx\n  cocos2d::CCObject *m_pObject; // rdx\n  int m_uID; // edx\n\n  m_onlineLevels = a1->m_onlineLevels;\n  result = 0;\n  if ( m_onlineLevels )\n  {\n    m_pElements = m_onlineLevels->m_pElements;\n    if ( m_pElements )\n    {\n      result = 0;\n      do\n      {\n        m_pObject = m_pElements->m_pObject;\n        m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n        m_uID = m_pObject[11].m_uID;\n        if ( m_uID > result )\n          result = m_uID;\n      }\n      while ( m_pElements );\n    }\n  }\n  return result;\n}", "assembly": "; \n; GameLevelManager::getHighestLevelOrder from 0x100534e20 to 0x100534e60 (64 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::downloadLevel @ 0x1002c005d\n; > LevelInfoLayer::FLAlert_Clicked @ 0x1002c4cff\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     rcx, [rdi+168h]                                                ; +0x0, 0x100534e20\nxor     eax, eax                                                       ; +0x7, 0x100534e27\ntest    rcx, rcx                                                       ; +0x9, 0x100534e29\njz      short locret_100534E5F                                         ; +0xc, 0x100534e2c\npush    rbp                                                            ; +0xe, 0x100534e2e\nmov     rbp, rsp                                                       ; +0xf, 0x100534e2f\nmov     rcx, [rcx+38h]                                                 ; +0x12, 0x100534e32\ntest    rcx, rcx                                                       ; +0x16, 0x100534e36\njz      short loc_100534E5E                                            ; +0x19, 0x100534e39\nxor     eax, eax                                                       ; +0x1b, 0x100534e3b\nnop     dword ptr [rax]                                                ; +0x1d, 0x100534e3d\nmov     rdx, [rcx+108h]                                                ; +0x20, 0x100534e40\nmov     rcx, [rcx+120h]                                                ; +0x27, 0x100534e47\nmov     edx, [rdx+270h]                                                ; +0x2e, 0x100534e4e\ncmp     edx, eax                                                       ; +0x34, 0x100534e54\ncmovg   eax, edx                                                       ; +0x36, 0x100534e56\ntest    rcx, rcx                                                       ; +0x39, 0x100534e59\njnz     short loc_100534E40                                            ; +0x3c, 0x100534e5c\npop     rbp                                                            ; +0x3e, 0x100534e5e\nretn                                                                   ; +0x3f, 0x100534e5f", "xrefs": ["LevelInfoLayer::downloadLevel @ 0x1002c005d", "LevelInfoLayer::FLAlert_Clicked @ 0x1002c4cff"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}