{"type": "func", "start": 5370133680, "end": 5370134014, "name": "GameLevelManager::invalidateMessages", "pseudocode": "// \n// GameLevelManager::invalidateMessages from 0x14015bcb0 to 0x14015bdfe (334 bytes)\n// \n// 8 xrefs:\n// > GameLevelManager::onDeleteUserMessagesCompleted @ 0x14015ba85\n// > GameLevelManager::onBlockUserCompleted @ 0x1401623c6\n// > MessagesProfilePage::onUpdate @ 0x140337305\n// > ProfilePage::init @ 0x1403be9a8\n// > ProfilePage::init @ 0x1403be9ec\n// > ProfilePage::onUpdate @ 0x1403bfb0e\n// > ProfilePage::onUpdate @ 0x1403bfb52\n// > <???> @ 0x1406caa58\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\n// Hidden C++ exception states: #wind=1\nvoid GameLevelManager::invalidateMessages(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  MessageListDelegate *m_messageListDelegate; // 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(\"messages_%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_messageListDelegate = a1->m_messageListDelegate;\n    if ( m_messageListDelegate )\n      m_messageListDelegate->forceReloadMessages(m_messageListDelegate, v4);\n  }\n}", "assembly": "; \n; GameLevelManager::invalidateMessages from 0x14015bcb0 to 0x14015bdfe (334 bytes)\n; \n; 8 xrefs:\n; > GameLevelManager::onDeleteUserMessagesCompleted @ 0x14015ba85\n; > GameLevelManager::onBlockUserCompleted @ 0x1401623c6\n; > MessagesProfilePage::onUpdate @ 0x140337305\n; > ProfilePage::init @ 0x1403be9a8\n; > ProfilePage::init @ 0x1403be9ec\n; > ProfilePage::onUpdate @ 0x1403bfb0e\n; > ProfilePage::onUpdate @ 0x1403bfb52\n; > <???> @ 0x1406caa58\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, 0x14015bcb0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x14015bcb5\npush    rsi                                                            ; +0xa, 0x14015bcba\npush    rdi                                                            ; +0xb, 0x14015bcbb\npush    r12                                                            ; +0xc, 0x14015bcbc\npush    r14                                                            ; +0xe, 0x14015bcbe\npush    r15                                                            ; +0x10, 0x14015bcc0\nsub     rsp, 50h                                                       ; +0x12, 0x14015bcc2\nmov     rax, cs:__security_cookie                                      ; +0x16, 0x14015bcc6\nxor     rax, rsp                                                       ; +0x1d, 0x14015bccd\nmov     [rsp+78h+var_38], rax                                          ; +0x20, 0x14015bcd0\nmovzx   r15d, r8b                                                      ; +0x25, 0x14015bcd5\nmovzx   r14d, dl                                                       ; +0x29, 0x14015bcd9\nmov     rsi, rcx                                                       ; +0x2d, 0x14015bcdd\nmov     dil, 1                                                         ; +0x30, 0x14015bce0\nxor     r12d, r12d                                                     ; +0x33, 0x14015bce3\nmov     ebx, r12d                                                      ; +0x36, 0x14015bce6\nnop     dword ptr [rax+00000000h]                                      ; +0x39, 0x14015bce9\nmov     r8d, ebx                                                       ; +0x40, 0x14015bcf0\nmov     edx, r14d                                                      ; +0x43, 0x14015bcf3\nlea     rcx, aMessagesII; \"messages_%i_%i\"                             ; +0x46, 0x14015bcf6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x4d, 0x14015bcfd\nmov     rcx, rax                                                       ; +0x53, 0x14015bd03\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x56, 0x14015bd06\nxorps   xmm0, xmm0                                                     ; +0x5c, 0x14015bd0c\nmovups  [rsp+78h+var_58], xmm0                                         ; +0x5f, 0x14015bd0f\nmov     [rsp+78h+var_48], r12                                          ; +0x64, 0x14015bd14\nmov     [rsp+78h+var_40], r12                                          ; +0x69, 0x14015bd19\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x6e, 0x14015bd1e\ninc     r8                                                             ; +0x75, 0x14015bd25\ncmp     byte ptr [rax+r8], 0                                           ; +0x78, 0x14015bd28\njnz     short loc_14015BD25                                            ; +0x7d, 0x14015bd2d\nmov     rdx, rax                                                       ; +0x7f, 0x14015bd2f\nlea     rcx, [rsp+78h+var_58]                                          ; +0x82, 0x14015bd32\ncall    sub_14003A930                                                  ; +0x87, 0x14015bd37\nnop                                                                    ; +0x8c, 0x14015bd3c\nlea     rdx, [rsp+78h+var_58]                                          ; +0x8d, 0x14015bd3d\ncmp     [rsp+78h+var_40], 0Fh                                          ; +0x92, 0x14015bd42\ncmova   rdx, qword ptr [rsp+78h+var_58]                                ; +0x98, 0x14015bd48\nmov     rcx, rsi                                                       ; +0x9e, 0x14015bd4e\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0xa1, 0x14015bd51\ntest    rax, rax                                                       ; +0xa6, 0x14015bd56\njz      short loc_14015BD6F                                            ; +0xa9, 0x14015bd59\nlea     rdx, [rsp+78h+var_58]                                          ; +0xab, 0x14015bd5b\nmov     rcx, [rsi+220h]                                                ; +0xb0, 0x14015bd60\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, 0x14015bd67\njmp     short loc_14015BD72                                            ; +0xbd, 0x14015bd6d\nxor     dil, dil                                                       ; +0xbf, 0x14015bd6f\ninc     ebx                                                            ; +0xc2, 0x14015bd72\nmov     rdx, [rsp+78h+var_40]                                          ; +0xc4, 0x14015bd74\ncmp     rdx, 0Fh                                                       ; +0xc9, 0x14015bd79\njbe     short loc_14015BDAD                                            ; +0xcd, 0x14015bd7d\ninc     rdx                                                            ; +0xcf, 0x14015bd7f\nmov     rcx, qword ptr [rsp+78h+var_58]                                ; +0xd2, 0x14015bd82\nmov     rax, rcx                                                       ; +0xd7, 0x14015bd87\ncmp     rdx, 1000h                                                     ; +0xda, 0x14015bd8a\njb      short loc_14015BDA8                                            ; +0xe1, 0x14015bd91\nadd     rdx, 27h ; '''                                                 ; +0xe3, 0x14015bd93\nmov     rcx, [rcx-8]; Block                                            ; +0xe7, 0x14015bd97\nsub     rax, rcx                                                       ; +0xeb, 0x14015bd9b\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xee, 0x14015bd9e\ncmp     rax, 1Fh                                                       ; +0xf2, 0x14015bda2\nja      short loc_14015BDF7                                            ; +0xf6, 0x14015bda6\ncall    j_j_free                                                       ; +0xf8, 0x14015bda8\ntest    dil, dil                                                       ; +0xfd, 0x14015bdad\njnz     loc_14015BCF0                                                  ; +0x100, 0x14015bdb0\ntest    r15b, r15b                                                     ; +0x106, 0x14015bdb6\njz      short loc_14015BDD1                                            ; +0x109, 0x14015bdb9\nmov     rcx, [rsi+340h]                                                ; +0x10b, 0x14015bdbb\ntest    rcx, rcx                                                       ; +0x112, 0x14015bdc2\njz      short loc_14015BDD1                                            ; +0x115, 0x14015bdc5\nmov     rax, [rcx]                                                     ; +0x117, 0x14015bdc7\nmovzx   edx, r14b                                                      ; +0x11a, 0x14015bdca\ncall    qword ptr [rax+10h]                                            ; +0x11e, 0x14015bdce\nmov     rcx, [rsp+78h+var_38]                                          ; +0x121, 0x14015bdd1\nxor     rcx, rsp; StackCookie                                          ; +0x126, 0x14015bdd6\ncall    __security_check_cookie                                        ; +0x129, 0x14015bdd9\nlea     r11, [rsp+78h+var_28]                                          ; +0x12e, 0x14015bdde\nmov     rbx, [r11+40h]                                                 ; +0x133, 0x14015bde3\nmov     rbp, [r11+48h]                                                 ; +0x137, 0x14015bde7\nmov     rsp, r11                                                       ; +0x13b, 0x14015bdeb\npop     r15                                                            ; +0x13e, 0x14015bdee\npop     r14                                                            ; +0x140, 0x14015bdf0\npop     r12                                                            ; +0x142, 0x14015bdf2\npop     rdi                                                            ; +0x144, 0x14015bdf4\npop     rsi                                                            ; +0x145, 0x14015bdf5\nretn                                                                   ; +0x146, 0x14015bdf6\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x147, 0x14015bdf7\ndb 0CCh                                                                ; +0x14d, 0x14015bdfd", "xrefs": ["GameLevelManager::onDeleteUserMessagesCompleted @ 0x14015ba85", "GameLevelManager::onBlockUserCompleted @ 0x1401623c6", "MessagesProfilePage::onUpdate @ 0x140337305", "ProfilePage::init @ 0x1403be9a8", "ProfilePage::init @ 0x1403be9ec", "ProfilePage::onUpdate @ 0x1403bfb0e", "ProfilePage::onUpdate @ 0x1403bfb52", "<???> @ 0x1406caa58"], "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"}