{"type": "func", "start": 4300557104, "end": 4300557473, "name": "GameLevelManager::invalidateRequests", "pseudocode": "// \n// GameLevelManager::invalidateRequests from 0x100554b30 to 0x100554ca1 (369 bytes)\n// \n// 6 xrefs:\n// > GameLevelManager::onDeleteFriendRequestCompleted @ 0x100523384\n// > FRequestProfilePage::onUpdate @ 0x100790d91\n// > ProfilePage::init @ 0x1007b884a\n// > ProfilePage::init @ 0x1007b885b\n// > ProfilePage::onUpdate @ 0x1007b9834\n// > ProfilePage::onUpdate @ 0x1007b9845\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\nvoid __fastcall GameLevelManager::invalidateRequests(GameLevelManager *a1, bool a2, bool a3)\n{\n  double v3; // xmm0_8\n  bool v4; // r14\n  int v5; // r15d\n  cocos2d::CCString *i; // rax\n  const char *CString; // r12\n  size_t v8; // rax\n  size_t v9; // r13\n  char *v10; // rbx\n  const char *v11; // rsi\n  cocos2d::CCArray *StoredOnlineLevels; // r12\n  __int64 v13; // rax\n  size_t v14; // r14\n  FriendRequestDelegate *m_friendRequestDelegate; // rdi\n  char v16; // [rsp+0h] [rbp-50h]\n  char v17; // [rsp+4h] [rbp-4Ch]\n  _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF\n  void *__p; // [rsp+20h] [rbp-30h]\n\n  v4 = a2;\n  v5 = 0;\n  for ( i = (cocos2d::CCString *)sub_1007AB580(\"fReq_%i_%i\", a2);\n        ;\n        i = (cocos2d::CCString *)sub_1007AB580(\"fReq_%i_%i\", v16) )\n  {\n    CString = cocos2d::CCString::getCString(i);\n    v8 = strlen(CString);\n    if ( v8 >= 0xFFFFFFFFFFFFFFF8LL )\n      sub_100006BF0(v3);\n    v9 = v8;\n    if ( v8 >= 0x17 )\n    {\n      v13 = v8 | 7;\n      v14 = 26;\n      if ( (v9 | 7) != 0x17 )\n        v14 = v13 + 1;\n      v10 = (char *)operator new(v14);\n      __p = v10;\n      __dst[0] = v14 + 1;\n      __dst[1] = v9;\n      v4 = v16;\n    }\n    else\n    {\n      LOBYTE(__dst[0]) = 2 * v8;\n      v10 = (char *)__dst + 1;\n      if ( !v8 )\n      {\n        BYTE1(__dst[0]) = 0;\n        v11 = (char *)__dst + 1;\n        if ( (__dst[0] & 1) == 0 )\n          goto LABEL_9;\nLABEL_8:\n        v11 = (const char *)__p;\n        goto LABEL_9;\n      }\n    }\n    memmove(v10, CString, v9);\n    v10[v9] = 0;\n    v11 = (char *)__dst + 1;\n    if ( (__dst[0] & 1) != 0 )\n      goto LABEL_8;\nLABEL_9:\n    StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(a1, v11);\n    if ( StoredOnlineLevels )\n      cocos2d::CCDictionary::removeObjectForKey_1((__int64)a1->m_storedLevels, (char *)__dst);\n    if ( (__dst[0] & 1) != 0 )\n      operator delete(__p);\n    ++v5;\n    if ( !StoredOnlineLevels )\n      break;\n  }\n  if ( v17 )\n  {\n    m_friendRequestDelegate = a1->m_friendRequestDelegate;\n    if ( m_friendRequestDelegate )\n      ((void (__fastcall *)(FriendRequestDelegate *, bool))m_friendRequestDelegate->forceReloadRequests)(\n        m_friendRequestDelegate,\n        v4);\n  }\n}", "assembly": "; \n; GameLevelManager::invalidateRequests from 0x100554b30 to 0x100554ca1 (369 bytes)\n; \n; 6 xrefs:\n; > GameLevelManager::onDeleteFriendRequestCompleted @ 0x100523384\n; > FRequestProfilePage::onUpdate @ 0x100790d91\n; > ProfilePage::init @ 0x1007b884a\n; > ProfilePage::init @ 0x1007b885b\n; > ProfilePage::onUpdate @ 0x1007b9834\n; > ProfilePage::onUpdate @ 0x1007b9845\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\npush    rbp                                                            ; +0x0, 0x100554b30\nmov     rbp, rsp                                                       ; +0x1, 0x100554b31\npush    r15                                                            ; +0x4, 0x100554b34\npush    r14                                                            ; +0x6, 0x100554b36\npush    r13                                                            ; +0x8, 0x100554b38\npush    r12                                                            ; +0xa, 0x100554b3a\npush    rbx                                                            ; +0xc, 0x100554b3c\nsub     rsp, 28h                                                       ; +0xd, 0x100554b3d\nmov     [rbp+var_4C], edx                                              ; +0x11, 0x100554b41\nmov     r14d, esi                                                      ; +0x14, 0x100554b44\nmov     [rbp+var_48], rdi                                              ; +0x17, 0x100554b47\nxor     r15d, r15d                                                     ; +0x1b, 0x100554b4b\nmov     [rbp+var_50], esi                                              ; +0x1e, 0x100554b4e\njmp     short loc_100554B6C                                            ; +0x21, 0x100554b51\nalign 20h                                                              ; +0x23, 0x100554b53\ninc     r15d                                                           ; +0x30, 0x100554b60\ntest    r12, r12                                                       ; +0x33, 0x100554b63\njz      loc_100554C6D                                                  ; +0x36, 0x100554b66\nlea     rdi, aFreqII; \"fReq_%i_%i\"                                     ; +0x3c, 0x100554b6c\nmov     esi, r14d                                                      ; +0x43, 0x100554b73\nmov     edx, r15d                                                      ; +0x46, 0x100554b76\nxor     eax, eax                                                       ; +0x49, 0x100554b79\ncall    sub_1007AB580                                                  ; +0x4b, 0x100554b7b\nmov     rdi, rax                                                       ; +0x50, 0x100554b80\ncall    cocos2d__CCString__getCString                                  ; +0x53, 0x100554b83\nmov     r12, rax                                                       ; +0x58, 0x100554b88\nmov     rdi, rax; __s                                                  ; +0x5b, 0x100554b8b\ncall    _strlen                                                        ; +0x5e, 0x100554b8e\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x63, 0x100554b93\njnb     loc_100554C9C                                                  ; +0x67, 0x100554b97\nmov     r13, rax                                                       ; +0x6d, 0x100554b9d\ncmp     rax, 17h                                                       ; +0x70, 0x100554ba0\njnb     short loc_100554C10                                            ; +0x74, 0x100554ba4\nlea     eax, ds:0[r13*2]                                               ; +0x76, 0x100554ba6\nmov     byte ptr [rbp+__dst], al                                       ; +0x7e, 0x100554bae\nlea     rbx, [rbp+__dst+1]                                             ; +0x81, 0x100554bb1\ntest    r13, r13                                                       ; +0x85, 0x100554bb5\njnz     loc_100554C47                                                  ; +0x88, 0x100554bb8\nxchg    ax, ax                                                         ; +0x8e, 0x100554bbe\nmov     byte ptr [rbx+r13], 0                                          ; +0x90, 0x100554bc0\ntest    byte ptr [rbp+__dst], 1                                        ; +0x95, 0x100554bc5\nlea     rsi, [rbp+__dst+1]                                             ; +0x99, 0x100554bc9\njz      short loc_100554BD3                                            ; +0x9d, 0x100554bcd\nmov     rsi, [rbp+__p]                                                 ; +0x9f, 0x100554bcf\nmov     rdi, [rbp+var_48]                                              ; +0xa3, 0x100554bd3\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0xa7, 0x100554bd7\nmov     r12, rax                                                       ; +0xac, 0x100554bdc\ntest    rax, rax                                                       ; +0xaf, 0x100554bdf\njz      short loc_100554BF8                                            ; +0xb2, 0x100554be2\nmov     rax, [rbp+var_48]                                              ; +0xb4, 0x100554be4\nmov     rdi, [rax+230h]                                                ; +0xb8, 0x100554be8\nlea     rsi, [rbp+__dst]                                               ; +0xbf, 0x100554bef\ncall    cocos2d__CCDictionary__removeObjectForKey_1                    ; +0xc3, 0x100554bf3\ntest    byte ptr [rbp+__dst], 1                                        ; +0xc8, 0x100554bf8\njz      loc_100554B60                                                  ; +0xcc, 0x100554bfc\nmov     rdi, [rbp+__p]; __p                                            ; +0xd2, 0x100554c02\ncall    __ZdlPv; operator delete(void *)                               ; +0xd6, 0x100554c06\njmp     loc_100554B60                                                  ; +0xdb, 0x100554c0b\nmov     rax, r13                                                       ; +0xe0, 0x100554c10\nor      rax, 7                                                         ; +0xe3, 0x100554c13\nmov     r14d, 1Ah                                                      ; +0xe7, 0x100554c17\ncmp     rax, 17h                                                       ; +0xed, 0x100554c1d\njz      short loc_100554C29                                            ; +0xf1, 0x100554c21\ninc     rax                                                            ; +0xf3, 0x100554c23\nmov     r14, rax                                                       ; +0xf6, 0x100554c26\nmov     rdi, r14; __sz                                                 ; +0xf9, 0x100554c29\ncall    __Znwm; operator new(ulong)                                    ; +0xfc, 0x100554c2c\nmov     rbx, rax                                                       ; +0x101, 0x100554c31\nmov     [rbp+__p], rax                                                 ; +0x104, 0x100554c34\ninc     r14                                                            ; +0x108, 0x100554c38\nmov     [rbp+__dst], r14                                               ; +0x10b, 0x100554c3b\nmov     [rbp+var_38], r13                                              ; +0x10f, 0x100554c3f\nmov     r14d, [rbp+var_50]                                             ; +0x113, 0x100554c43\nmov     rdi, rbx; __dst                                                ; +0x117, 0x100554c47\nmov     rsi, r12; __src                                                ; +0x11a, 0x100554c4a\nmov     rdx, r13; __len                                                ; +0x11d, 0x100554c4d\ncall    _memmove                                                       ; +0x120, 0x100554c50\nmov     byte ptr [rbx+r13], 0                                          ; +0x125, 0x100554c55\ntest    byte ptr [rbp+__dst], 1                                        ; +0x12a, 0x100554c5a\nlea     rsi, [rbp+__dst+1]                                             ; +0x12e, 0x100554c5e\njnz     loc_100554BCF                                                  ; +0x132, 0x100554c62\njmp     loc_100554BD3                                                  ; +0x138, 0x100554c68\ncmp     byte ptr [rbp+var_4C], 0                                       ; +0x13d, 0x100554c6d\njz      short loc_100554C8D                                            ; +0x141, 0x100554c71\nmov     rax, [rbp+var_48]                                              ; +0x143, 0x100554c73\nmov     rdi, [rax+338h]                                                ; +0x147, 0x100554c77\ntest    rdi, rdi                                                       ; +0x14e, 0x100554c7e\njz      short loc_100554C8D                                            ; +0x151, 0x100554c81\nmov     rax, [rdi]                                                     ; +0x153, 0x100554c83\nmovzx   esi, r14b                                                      ; +0x156, 0x100554c86\ncall    qword ptr [rax+18h]                                            ; +0x15a, 0x100554c8a\nadd     rsp, 28h                                                       ; +0x15d, 0x100554c8d\npop     rbx                                                            ; +0x161, 0x100554c91\npop     r12                                                            ; +0x162, 0x100554c92\npop     r13                                                            ; +0x164, 0x100554c94\npop     r14                                                            ; +0x166, 0x100554c96\npop     r15                                                            ; +0x168, 0x100554c98\npop     rbp                                                            ; +0x16a, 0x100554c9a\nretn                                                                   ; +0x16b, 0x100554c9b\ncall    sub_100006BF0                                                  ; +0x16c, 0x100554c9c", "xrefs": ["GameLevelManager::onDeleteFriendRequestCompleted @ 0x100523384", "FRequestProfilePage::onUpdate @ 0x100790d91", "ProfilePage::init @ 0x1007b884a", "ProfilePage::init @ 0x1007b885b", "ProfilePage::onUpdate @ 0x1007b9834", "ProfilePage::onUpdate @ 0x1007b9845"], "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"}