{"type": "func", "start": 5371168448, "end": 5371168967, "name": "GameLevelManager::invalidateRequests", "pseudocode": "// \n// GameLevelManager::invalidateRequests from 0x1402586c0 to 0x1402588c7 (519 bytes)\n// \n// 7 xrefs:\n// > FRequestProfilePage::onUpdate @ 0x140210fca\n// > GameLevelManager::onDeleteFriendRequestCompleted @ 0x1402556c1\n// > ProfilePage::init @ 0x140550b4e\n// > ProfilePage::init @ 0x140550b95\n// > ProfilePage::onUpdate @ 0x140552024\n// > ProfilePage::onUpdate @ 0x14055206b\n// > <???> @ 0x14091c67c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:44 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameLevelManager::invalidateRequests(__int64 a1, unsigned __int8 a2, char a3)\n{\n  int v4; // ebp\n  char v6; // si\n  int v7; // edi\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n  size_t v10; // r8\n  __int128 *v11; // rdx\n  void *v12; // rcx\n  __int64 v13; // rcx\n  __int128 v14; // [rsp+50h] [rbp-58h] BYREF\n  __int128 v15; // [rsp+60h] [rbp-48h]\n\n  v4 = a2;\n  v6 = 1;\n  v7 = 0;\n  do\n  {\n    v8 = cocos2d::CCString::createWithFormat(\"%s_%i_%i\", \"fReq\", v4, v7);\n    CString = cocos2d::CCString::getCString(v8);\n    v14 = 0;\n    v15 = 0;\n    v10 = -1;\n    do\n      ++v10;\n    while ( CString[v10] );\n    sub_14003D230(&v14, CString, v10);\n    v11 = &v14;\n    if ( *((_QWORD *)&v15 + 1) > 0xFu )\n      v11 = (__int128 *)v14;\n    if ( GameLevelManager::getStoredOnlineLevels(a1, v11) )\n      cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1152), &v14);\n    else\n      v6 = 0;\n    ++v7;\n    if ( *((_QWORD *)&v15 + 1) > 0xFu )\n    {\n      v12 = (void *)v14;\n      if ( (unsigned __int64)(*((_QWORD *)&v15 + 1) + 1LL) >= 0x1000 )\n      {\n        v12 = *(void **)(v14 - 8);\n        if ( (unsigned __int64)(v14 - (_QWORD)v12 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v12);\n    }\n  }\n  while ( v6 );\n  GameLevelManager::purgeFriendRequestSearchCache(a1, v4, 0);\n  if ( !(_BYTE)v4 )\n    GameLevelManager::dropIgnoredRequestLists(a1);\n  if ( a3 )\n  {\n    v13 = *(_QWORD *)(a1 + 1504);\n    if ( v13 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v13 + 24LL))(v13, (unsigned __int8)v4);\n  }\n}", "assembly": "; \n; GameLevelManager::invalidateRequests from 0x1402586c0 to 0x1402588c7 (519 bytes)\n; \n; 7 xrefs:\n; > FRequestProfilePage::onUpdate @ 0x140210fca\n; > GameLevelManager::onDeleteFriendRequestCompleted @ 0x1402556c1\n; > ProfilePage::init @ 0x140550b4e\n; > ProfilePage::init @ 0x140550b95\n; > ProfilePage::onUpdate @ 0x140552024\n; > ProfilePage::onUpdate @ 0x14055206b\n; > <???> @ 0x14091c67c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:44 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402586c0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x1402586c5\npush    rsi                                                            ; +0xa, 0x1402586ca\npush    rdi                                                            ; +0xb, 0x1402586cb\npush    r12                                                            ; +0xc, 0x1402586cc\npush    r14                                                            ; +0xe, 0x1402586ce\npush    r15                                                            ; +0x10, 0x1402586d0\nsub     rsp, 80h                                                       ; +0x12, 0x1402586d2\nmov     rax, cs:__security_cookie                                      ; +0x19, 0x1402586d9\nxor     rax, rsp                                                       ; +0x20, 0x1402586e0\nmov     [rsp+0A8h+var_38], rax                                         ; +0x23, 0x1402586e3\nmovzx   r15d, r8b                                                      ; +0x28, 0x1402586e8\nmovzx   ebp, dl                                                        ; +0x2c, 0x1402586ec\nmov     rbx, rcx                                                       ; +0x2f, 0x1402586ef\nmov     sil, 1                                                         ; +0x32, 0x1402586f2\nxor     r12d, r12d                                                     ; +0x35, 0x1402586f5\nmov     edi, r12d                                                      ; +0x38, 0x1402586f8\nnop     dword ptr [rax+rax+00h]                                        ; +0x3b, 0x1402586fb\nxorps   xmm0, xmm0                                                     ; +0x40, 0x140258700\nmovups  [rsp+0A8h+var_78], xmm0                                        ; +0x43, 0x140258703\nmov     [rsp+0A8h+var_68], r12                                         ; +0x48, 0x140258708\nmov     [rsp+0A8h+var_60], 0Fh                                         ; +0x4d, 0x14025870d\nmov     byte ptr [rsp+0A8h+var_78], 0                                  ; +0x56, 0x140258716\nmov     r9d, edi                                                       ; +0x5b, 0x14025871b\nmov     r8d, ebp                                                       ; +0x5e, 0x14025871e\nlea     rdx, aFreq; \"fReq\"                                             ; +0x61, 0x140258721\nlea     rcx, aSII_0; \"%s_%i_%i\"                                        ; +0x68, 0x140258728\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x6f, 0x14025872f\nmov     rcx, rax                                                       ; +0x75, 0x140258735\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x78, 0x140258738\nxorps   xmm0, xmm0                                                     ; +0x7e, 0x14025873e\nmovups  [rsp+0A8h+var_58], xmm0                                        ; +0x81, 0x140258741\nxorps   xmm1, xmm1                                                     ; +0x86, 0x140258746\nmovdqu  [rsp+0A8h+var_48], xmm1                                        ; +0x89, 0x140258749\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x8f, 0x14025874f\ninc     r8                                                             ; +0x96, 0x140258756\ncmp     byte ptr [rax+r8], 0                                           ; +0x99, 0x140258759\njnz     short loc_140258756                                            ; +0x9e, 0x14025875e\nmov     rdx, rax                                                       ; +0xa0, 0x140258760\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0xa3, 0x140258763\ncall    sub_14003D230                                                  ; +0xa8, 0x140258768\nnop                                                                    ; +0xad, 0x14025876d\nmov     rdx, [rsp+0A8h+var_60]                                         ; +0xae, 0x14025876e\ncmp     rdx, 0Fh                                                       ; +0xb3, 0x140258773\njbe     short loc_1402587AB                                            ; +0xb7, 0x140258777\ninc     rdx                                                            ; +0xb9, 0x140258779\nmov     rcx, qword ptr [rsp+0A8h+var_78]                               ; +0xbc, 0x14025877c\nmov     rax, rcx                                                       ; +0xc1, 0x140258781\ncmp     rdx, 1000h                                                     ; +0xc4, 0x140258784\njb      short loc_1402587A6                                            ; +0xcb, 0x14025878b\nadd     rdx, 27h ; '''                                                 ; +0xcd, 0x14025878d\nmov     rcx, [rcx-8]; Block                                            ; +0xd1, 0x140258791\nsub     rax, rcx                                                       ; +0xd5, 0x140258795\nsub     rax, 8                                                         ; +0xd8, 0x140258798\ncmp     rax, 1Fh                                                       ; +0xdc, 0x14025879c\nja      loc_14025889B                                                  ; +0xe0, 0x1402587a0\ncall    j_j_free                                                       ; +0xe6, 0x1402587a6\nmov     [rsp+0A8h+var_68], r12                                         ; +0xeb, 0x1402587ab\nmov     [rsp+0A8h+var_60], 0Fh                                         ; +0xf0, 0x1402587b0\nmov     byte ptr [rsp+0A8h+var_78], 0                                  ; +0xf9, 0x1402587b9\nlea     rdx, [rsp+0A8h+var_58]                                         ; +0xfe, 0x1402587be\ncmp     qword ptr [rsp+0A8h+var_48+8], 0Fh                             ; +0x103, 0x1402587c3\ncmova   rdx, qword ptr [rsp+0A8h+var_58]                               ; +0x109, 0x1402587c9\nmov     rcx, rbx                                                       ; +0x10f, 0x1402587cf\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x112, 0x1402587d2\ntest    rax, rax                                                       ; +0x117, 0x1402587d7\njz      short loc_1402587F0                                            ; +0x11a, 0x1402587da\nlea     rdx, [rsp+0A8h+var_58]                                         ; +0x11c, 0x1402587dc\nmov     rcx, [rbx+480h]                                                ; +0x121, 0x1402587e1\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x128, 0x1402587e8\njmp     short loc_1402587F3                                            ; +0x12e, 0x1402587ee\nxor     sil, sil                                                       ; +0x130, 0x1402587f0\ninc     edi                                                            ; +0x133, 0x1402587f3\nmov     rdx, qword ptr [rsp+0A8h+var_48+8]                             ; +0x135, 0x1402587f5\ncmp     rdx, 0Fh                                                       ; +0x13a, 0x1402587fa\njbe     short loc_140258832                                            ; +0x13e, 0x1402587fe\ninc     rdx                                                            ; +0x140, 0x140258800\nmov     rcx, qword ptr [rsp+0A8h+var_58]                               ; +0x143, 0x140258803\nmov     rax, rcx                                                       ; +0x148, 0x140258808\ncmp     rdx, 1000h                                                     ; +0x14b, 0x14025880b\njb      short loc_14025882D                                            ; +0x152, 0x140258812\nadd     rdx, 27h ; '''                                                 ; +0x154, 0x140258814\nmov     rcx, [rcx-8]; Block                                            ; +0x158, 0x140258818\nsub     rax, rcx                                                       ; +0x15c, 0x14025881c\nsub     rax, 8                                                         ; +0x15f, 0x14025881f\ncmp     rax, 1Fh                                                       ; +0x163, 0x140258823\nja      loc_1402588B1                                                  ; +0x167, 0x140258827\ncall    j_j_free                                                       ; +0x16d, 0x14025882d\ntest    sil, sil                                                       ; +0x172, 0x140258832\njnz     loc_140258700                                                  ; +0x175, 0x140258835\nxor     r8d, r8d                                                       ; +0x17b, 0x14025883b\nmovzx   edx, bpl                                                       ; +0x17e, 0x14025883e\nmov     rcx, rbx                                                       ; +0x182, 0x140258842\ncall    GameLevelManager__purgeFriendRequestSearchCache                ; +0x185, 0x140258845\ntest    bpl, bpl                                                       ; +0x18a, 0x14025884a\njnz     short loc_140258857                                            ; +0x18d, 0x14025884d\nmov     rcx, rbx                                                       ; +0x18f, 0x14025884f\ncall    GameLevelManager__dropIgnoredRequestLists                      ; +0x192, 0x140258852\ntest    r15b, r15b                                                     ; +0x197, 0x140258857\njz      short loc_140258872                                            ; +0x19a, 0x14025885a\nmov     rcx, [rbx+5E0h]                                                ; +0x19c, 0x14025885c\ntest    rcx, rcx                                                       ; +0x1a3, 0x140258863\njz      short loc_140258872                                            ; +0x1a6, 0x140258866\nmov     rax, [rcx]                                                     ; +0x1a8, 0x140258868\nmovzx   edx, bpl                                                       ; +0x1ab, 0x14025886b\ncall    qword ptr [rax+18h]                                            ; +0x1af, 0x14025886f\nmov     rcx, [rsp+0A8h+var_38]                                         ; +0x1b2, 0x140258872\nxor     rcx, rsp; StackCookie                                          ; +0x1b7, 0x140258877\ncall    __security_check_cookie                                        ; +0x1ba, 0x14025887a\nlea     r11, [rsp+0A8h+var_28]                                         ; +0x1bf, 0x14025887f\nmov     rbx, [r11+40h]                                                 ; +0x1c7, 0x140258887\nmov     rbp, [r11+48h]                                                 ; +0x1cb, 0x14025888b\nmov     rsp, r11                                                       ; +0x1cf, 0x14025888f\npop     r15                                                            ; +0x1d2, 0x140258892\npop     r14                                                            ; +0x1d4, 0x140258894\npop     r12                                                            ; +0x1d6, 0x140258896\npop     rdi                                                            ; +0x1d8, 0x140258898\npop     rsi                                                            ; +0x1d9, 0x140258899\nretn                                                                   ; +0x1da, 0x14025889a\nmov     [rsp+0A8h+Reserved], r12; Reserved                             ; +0x1db, 0x14025889b\nxor     r9d, r9d; LineNo                                               ; +0x1e0, 0x1402588a0\nxor     r8d, r8d; FileName                                             ; +0x1e3, 0x1402588a3\nxor     edx, edx; FunctionName                                         ; +0x1e6, 0x1402588a6\nxor     ecx, ecx; Expression                                           ; +0x1e8, 0x1402588a8\ncall    cs:_invoke_watson                                              ; +0x1ea, 0x1402588aa\ndb 90h                                                                 ; +0x1f0, 0x1402588b0\nmov     [rsp+0A8h+Reserved], r12; Reserved                             ; +0x1f1, 0x1402588b1\nxor     r9d, r9d; LineNo                                               ; +0x1f6, 0x1402588b6\nxor     r8d, r8d; FileName                                             ; +0x1f9, 0x1402588b9\nxor     edx, edx; FunctionName                                         ; +0x1fc, 0x1402588bc\nxor     ecx, ecx; Expression                                           ; +0x1fe, 0x1402588be\ncall    cs:_invoke_watson                                              ; +0x200, 0x1402588c0\ndb 0CCh                                                                ; +0x206, 0x1402588c6", "xrefs": ["FRequestProfilePage::onUpdate @ 0x140210fca", "GameLevelManager::onDeleteFriendRequestCompleted @ 0x1402556c1", "ProfilePage::init @ 0x140550b4e", "ProfilePage::init @ 0x140550b95", "ProfilePage::onUpdate @ 0x140552024", "ProfilePage::onUpdate @ 0x14055206b", "<???> @ 0x14091c67c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}