{"type": "func", "start": 5370164576, "end": 5370164910, "name": "GameLevelManager::invalidateRequests", "pseudocode": "// \n// GameLevelManager::invalidateRequests from 0x140163560 to 0x1401636ae (334 bytes)\n// \n// 7 xrefs:\n// > FRequestProfilePage::onUpdate @ 0x14013e745\n// > GameLevelManager::onDeleteFriendRequestCompleted @ 0x140161126\n// > ProfilePage::init @ 0x1403bea30\n// > ProfilePage::init @ 0x1403bea74\n// > ProfilePage::onUpdate @ 0x1403bfb96\n// > ProfilePage::onUpdate @ 0x1403bfbda\n// > <???> @ 0x1406cac44\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 GameLevelManager::invalidateRequests(GameLevelManager *a1, bool a2, bool a3)\n{\n  BOOL v4; // r14d\n  char v6; // di\n  int v7; // ebx\n  cocos2d::CCString *v8; // rax\n  const char *CString; // rax\n  size_t v10; // r8\n  const char *v11; // rdx\n  void *v12; // rcx\n  FriendRequestDelegate *m_friendRequestDelegate; // rcx\n  __int128 v14; // [rsp+20h] [rbp-58h] BYREF\n  __int64 v15; // [rsp+30h] [rbp-48h]\n  unsigned __int64 v16; // [rsp+38h] [rbp-40h]\n\n  v4 = a2;\n  v6 = 1;\n  v7 = 0;\n  do\n  {\n    v8 = cocos2d::CCString::createWithFormat(\"fReq_%i_%i\", v4, v7);\n    CString = cocos2d::CCString::getCString(v8);\n    v14 = 0;\n    v15 = 0;\n    v16 = 0;\n    v10 = -1;\n    do\n      ++v10;\n    while ( CString[v10] );\n    sub_14003A930(&v14, CString, v10);\n    v11 = (const char *)&v14;\n    if ( v16 > 0xF )\n      v11 = (const char *)v14;\n    if ( GameLevelManager::getStoredOnlineLevels(a1, v11) )\n      cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels, &v14);\n    else\n      v6 = 0;\n    ++v7;\n    if ( v16 > 0xF )\n    {\n      v12 = (void *)v14;\n      if ( v16 + 1 >= 0x1000 )\n      {\n        v12 = *(void **)(v14 - 8);\n        if ( (unsigned __int64)(v14 - (_QWORD)v12 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(v12);\n    }\n  }\n  while ( v6 );\n  if ( a3 )\n  {\n    m_friendRequestDelegate = a1->m_friendRequestDelegate;\n    if ( m_friendRequestDelegate )\n      m_friendRequestDelegate->forceReloadRequests(m_friendRequestDelegate, v4);\n  }\n}", "assembly": "; \n; GameLevelManager::invalidateRequests from 0x140163560 to 0x1401636ae (334 bytes)\n; \n; 7 xrefs:\n; > FRequestProfilePage::onUpdate @ 0x14013e745\n; > GameLevelManager::onDeleteFriendRequestCompleted @ 0x140161126\n; > ProfilePage::init @ 0x1403bea30\n; > ProfilePage::init @ 0x1403bea74\n; > ProfilePage::onUpdate @ 0x1403bfb96\n; > ProfilePage::onUpdate @ 0x1403bfbda\n; > <???> @ 0x1406cac44\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     [rsp+arg_10], rbx                                              ; +0x0, 0x140163560\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x140163565\npush    rsi                                                            ; +0xa, 0x14016356a\npush    rdi                                                            ; +0xb, 0x14016356b\npush    r12                                                            ; +0xc, 0x14016356c\npush    r14                                                            ; +0xe, 0x14016356e\npush    r15                                                            ; +0x10, 0x140163570\nsub     rsp, 50h                                                       ; +0x12, 0x140163572\nmov     rax, cs:__security_cookie                                      ; +0x16, 0x140163576\nxor     rax, rsp                                                       ; +0x1d, 0x14016357d\nmov     [rsp+78h+var_38], rax                                          ; +0x20, 0x140163580\nmovzx   r15d, r8b                                                      ; +0x25, 0x140163585\nmovzx   r14d, dl                                                       ; +0x29, 0x140163589\nmov     rsi, rcx                                                       ; +0x2d, 0x14016358d\nmov     dil, 1                                                         ; +0x30, 0x140163590\nxor     r12d, r12d                                                     ; +0x33, 0x140163593\nmov     ebx, r12d                                                      ; +0x36, 0x140163596\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x140163599\nmov     r8d, ebx                                                       ; +0x40, 0x1401635a0\nmov     edx, r14d                                                      ; +0x43, 0x1401635a3\nlea     rcx, aFreqII; \"fReq_%i_%i\"                                     ; +0x46, 0x1401635a6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x4d, 0x1401635ad\nmov     rcx, rax                                                       ; +0x53, 0x1401635b3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x56, 0x1401635b6\nxorps   xmm0, xmm0                                                     ; +0x5c, 0x1401635bc\nmovups  [rsp+78h+var_58], xmm0                                         ; +0x5f, 0x1401635bf\nmov     [rsp+78h+var_48], r12                                          ; +0x64, 0x1401635c4\nmov     [rsp+78h+var_40], r12                                          ; +0x69, 0x1401635c9\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x6e, 0x1401635ce\ninc     r8                                                             ; +0x75, 0x1401635d5\ncmp     byte ptr [rax+r8], 0                                           ; +0x78, 0x1401635d8\njnz     short loc_1401635D5                                            ; +0x7d, 0x1401635dd\nmov     rdx, rax                                                       ; +0x7f, 0x1401635df\nlea     rcx, [rsp+78h+var_58]                                          ; +0x82, 0x1401635e2\ncall    sub_14003A930                                                  ; +0x87, 0x1401635e7\nnop                                                                    ; +0x8c, 0x1401635ec\nlea     rdx, [rsp+78h+var_58]                                          ; +0x8d, 0x1401635ed\ncmp     [rsp+78h+var_40], 0Fh                                          ; +0x92, 0x1401635f2\ncmova   rdx, qword ptr [rsp+78h+var_58]                                ; +0x98, 0x1401635f8\nmov     rcx, rsi                                                       ; +0x9e, 0x1401635fe\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0xa1, 0x140163601\ntest    rax, rax                                                       ; +0xa6, 0x140163606\njz      short loc_14016361F                                            ; +0xa9, 0x140163609\nlea     rdx, [rsp+78h+var_58]                                          ; +0xab, 0x14016360b\nmov     rcx, [rsi+220h]                                                ; +0xb0, 0x140163610\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 &) ; +0xb7, 0x140163617\njmp     short loc_140163622                                            ; +0xbd, 0x14016361d\nxor     dil, dil                                                       ; +0xbf, 0x14016361f\ninc     ebx                                                            ; +0xc2, 0x140163622\nmov     rdx, [rsp+78h+var_40]                                          ; +0xc4, 0x140163624\ncmp     rdx, 0Fh                                                       ; +0xc9, 0x140163629\njbe     short loc_14016365D                                            ; +0xcd, 0x14016362d\ninc     rdx                                                            ; +0xcf, 0x14016362f\nmov     rcx, qword ptr [rsp+78h+var_58]                                ; +0xd2, 0x140163632\nmov     rax, rcx                                                       ; +0xd7, 0x140163637\ncmp     rdx, 1000h                                                     ; +0xda, 0x14016363a\njb      short loc_140163658                                            ; +0xe1, 0x140163641\nadd     rdx, 27h ; '''                                                 ; +0xe3, 0x140163643\nmov     rcx, [rcx-8]; Block                                            ; +0xe7, 0x140163647\nsub     rax, rcx                                                       ; +0xeb, 0x14016364b\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xee, 0x14016364e\ncmp     rax, 1Fh                                                       ; +0xf2, 0x140163652\nja      short loc_1401636A7                                            ; +0xf6, 0x140163656\ncall    j_j_free                                                       ; +0xf8, 0x140163658\ntest    dil, dil                                                       ; +0xfd, 0x14016365d\njnz     loc_1401635A0                                                  ; +0x100, 0x140163660\ntest    r15b, r15b                                                     ; +0x106, 0x140163666\njz      short loc_140163681                                            ; +0x109, 0x140163669\nmov     rcx, [rsi+338h]                                                ; +0x10b, 0x14016366b\ntest    rcx, rcx                                                       ; +0x112, 0x140163672\njz      short loc_140163681                                            ; +0x115, 0x140163675\nmov     rax, [rcx]                                                     ; +0x117, 0x140163677\nmovzx   edx, r14b                                                      ; +0x11a, 0x14016367a\ncall    qword ptr [rax+18h]                                            ; +0x11e, 0x14016367e\nmov     rcx, [rsp+78h+var_38]                                          ; +0x121, 0x140163681\nxor     rcx, rsp; StackCookie                                          ; +0x126, 0x140163686\ncall    __security_check_cookie                                        ; +0x129, 0x140163689\nlea     r11, [rsp+78h+var_28]                                          ; +0x12e, 0x14016368e\nmov     rbx, [r11+40h]                                                 ; +0x133, 0x140163693\nmov     rbp, [r11+48h]                                                 ; +0x137, 0x140163697\nmov     rsp, r11                                                       ; +0x13b, 0x14016369b\npop     r15                                                            ; +0x13e, 0x14016369e\npop     r14                                                            ; +0x140, 0x1401636a0\npop     r12                                                            ; +0x142, 0x1401636a2\npop     rdi                                                            ; +0x144, 0x1401636a4\npop     rsi                                                            ; +0x145, 0x1401636a5\nretn                                                                   ; +0x146, 0x1401636a6\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x147, 0x1401636a7\ndb 0CCh                                                                ; +0x14d, 0x1401636ad", "xrefs": ["FRequestProfilePage::onUpdate @ 0x14013e745", "GameLevelManager::onDeleteFriendRequestCompleted @ 0x140161126", "ProfilePage::init @ 0x1403bea30", "ProfilePage::init @ 0x1403bea74", "ProfilePage::onUpdate @ 0x1403bfb96", "ProfilePage::onUpdate @ 0x1403bfbda", "<???> @ 0x1406cac44"], "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"}