{"type": "func", "start": 5370132768, "end": 5370133217, "name": "GameLevelManager::onDeleteUserMessagesCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteUserMessagesCompleted from 0x14015b920 to 0x14015bae1 (449 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x140143936\n// > <???> @ 0x1406caa40\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=3\nvoid __fastcall GameLevelManager::onDeleteUserMessagesCompleted(GameLevelManager *a1, const void **a2, _QWORD *a3)\n{\n  _BYTE *v6; // rbx\n  size_t v7; // r8\n  GameLevelManager *v8; // rcx\n  void *v9; // rcx\n  unsigned int SplitIntFromKey; // ebp\n  GameLevelManager *v11; // rcx\n  bool v12; // r15\n  const void *v13; // rcx\n  unsigned __int64 v14; // rbx\n  size_t v15; // r8\n  UploadActionDelegate *v16; // rcx\n  UploadActionDelegate *m_uploadActionDelegate; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-68h] BYREF\n  __int128 v19; // [rsp+40h] [rbp-58h]\n\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  *(_OWORD *)Block = 0;\n  v19 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( v6[v7] );\n  sub_14003A930(Block, v6, v7);\n  cocos2d::CCDictionary::removeObjectForKey(a1->m_friendReqAndUserBlocks, Block);\n  if ( *((_QWORD *)&v19 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v19 + 1) + 1LL) >= 0x1000 )\n    {\n      v9 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v9);\n  }\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v8, v6, 1);\n  v12 = GameLevelManager::getSplitIntFromKey(v11, v6, 2) != 0;\n  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v19 = 2;\n  *((_QWORD *)&v19 + 1) = 15;\n  strcpy((char *)Block, \"-1\");\n  v13 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v13 = *a2;\n  v14 = (unsigned __int64)a2[2];\n  v15 = v14;\n  if ( v14 > 2 )\n    v15 = 2;\n  if ( !memcmp(v13, Block, v15) && v14 == 2 )\n  {\n    m_uploadActionDelegate = a1->m_uploadActionDelegate;\n    if ( m_uploadActionDelegate )\n      m_uploadActionDelegate->uploadActionFailed(m_uploadActionDelegate, SplitIntFromKey, 39);\n  }\n  else\n  {\n    v16 = a1->m_uploadActionDelegate;\n    if ( v16 )\n      v16->uploadActionFinished(v16, SplitIntFromKey, 39);\n    if ( SplitIntFromKey == -1 )\n      GameLevelManager::invalidateMessages(a1, v12, 1);\n    else\n      GameLevelManager::messageWasRemoved(a1, SplitIntFromKey, v12);\n  }\n  sub_14003A830((__int64)a2);\n  sub_14003A830((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onDeleteUserMessagesCompleted from 0x14015b920 to 0x14015bae1 (449 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x140143936\n; > <???> @ 0x1406caa40\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    rbx                                                            ; +0x0, 0x14015b920\npush    rbp                                                            ; +0x2, 0x14015b922\npush    rsi                                                            ; +0x3, 0x14015b923\npush    rdi                                                            ; +0x4, 0x14015b924\npush    r12                                                            ; +0x5, 0x14015b925\npush    r14                                                            ; +0x7, 0x14015b927\npush    r15                                                            ; +0x9, 0x14015b929\nsub     rsp, 60h                                                       ; +0xb, 0x14015b92b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14015b92f\nxor     rax, rsp                                                       ; +0x16, 0x14015b936\nmov     [rsp+98h+var_48], rax                                          ; +0x19, 0x14015b939\nmov     rdi, r8                                                        ; +0x1e, 0x14015b93e\nmov     r14, rdx                                                       ; +0x21, 0x14015b941\nmov     rsi, rcx                                                       ; +0x24, 0x14015b944\nmov     [rsp+98h+var_78], rdx                                          ; +0x27, 0x14015b947\nmov     [rsp+98h+var_70], r8                                           ; +0x2c, 0x14015b94c\nmov     rbx, r8                                                        ; +0x31, 0x14015b951\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x34, 0x14015b954\njbe     short loc_14015B95E                                            ; +0x39, 0x14015b959\nmov     rbx, [r8]                                                      ; +0x3b, 0x14015b95b\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x14015b95e\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0x41, 0x14015b961\nxorps   xmm1, xmm1                                                     ; +0x46, 0x14015b966\nmovdqu  [rsp+98h+var_58], xmm1                                         ; +0x49, 0x14015b969\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4f, 0x14015b96f\ninc     r8                                                             ; +0x56, 0x14015b976\ncmp     byte ptr [rbx+r8], 0                                           ; +0x59, 0x14015b979\njnz     short loc_14015B976                                            ; +0x5e, 0x14015b97e\nmov     rdx, rbx                                                       ; +0x60, 0x14015b980\nlea     rcx, [rsp+98h+Block]                                           ; +0x63, 0x14015b983\ncall    sub_14003A930                                                  ; +0x68, 0x14015b988\nnop                                                                    ; +0x6d, 0x14015b98d\nlea     rdx, [rsp+98h+Block]                                           ; +0x6e, 0x14015b98e\nmov     rcx, [rsi+250h]                                                ; +0x73, 0x14015b993\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 &) ; +0x7a, 0x14015b99a\nnop                                                                    ; +0x80, 0x14015b9a0\nmov     rdx, qword ptr [rsp+98h+var_58+8]                              ; +0x81, 0x14015b9a1\ncmp     rdx, 0Fh                                                       ; +0x86, 0x14015b9a6\njbe     short loc_14015B9E1                                            ; +0x8a, 0x14015b9aa\ninc     rdx                                                            ; +0x8c, 0x14015b9ac\nmov     rcx, [rsp+98h+Block]; Block                                    ; +0x8f, 0x14015b9af\nmov     rax, rcx                                                       ; +0x94, 0x14015b9b4\ncmp     rdx, 1000h                                                     ; +0x97, 0x14015b9b7\njb      short loc_14015B9DC                                            ; +0x9e, 0x14015b9be\nadd     rdx, 27h ; '''                                                 ; +0xa0, 0x14015b9c0\nmov     rcx, [rcx-8]                                                   ; +0xa4, 0x14015b9c4\nsub     rax, rcx                                                       ; +0xa8, 0x14015b9c8\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xab, 0x14015b9cb\ncmp     rax, 1Fh                                                       ; +0xaf, 0x14015b9cf\njbe     short loc_14015B9DC                                            ; +0xb3, 0x14015b9d3\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb5, 0x14015b9d5\nalign 4                                                                ; +0xbb, 0x14015b9db\ncall    j_j_free                                                       ; +0xbc, 0x14015b9dc\nmov     r8d, 1                                                         ; +0xc1, 0x14015b9e1\nmov     rdx, rbx                                                       ; +0xc7, 0x14015b9e7\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xca, 0x14015b9ea\nmov     ebp, eax                                                       ; +0xcf, 0x14015b9ef\nmov     r12d, 2                                                        ; +0xd1, 0x14015b9f1\nmov     r8d, r12d                                                      ; +0xd7, 0x14015b9f7\nmov     rdx, rbx                                                       ; +0xda, 0x14015b9fa\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xdd, 0x14015b9fd\ntest    eax, eax                                                       ; +0xe2, 0x14015ba02\nsetnz   r15b                                                           ; +0xe4, 0x14015ba04\nxorps   xmm0, xmm0                                                     ; +0xe8, 0x14015ba08\nmovups  xmmword ptr [rsp+98h+Block], xmm0                              ; +0xeb, 0x14015ba0b\nmov     qword ptr [rsp+98h+var_58], r12                                ; +0xf0, 0x14015ba10\nmov     qword ptr [rsp+98h+var_58+8], 0Fh                              ; +0xf5, 0x14015ba15\nmov     eax, 312Dh                                                     ; +0xfe, 0x14015ba1e\nmov     word ptr [rsp+98h+Block], ax                                   ; +0x103, 0x14015ba23\nmov     byte ptr [rsp+98h+Block+2], 0                                  ; +0x108, 0x14015ba28\nmov     rcx, r14                                                       ; +0x10d, 0x14015ba2d\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x110, 0x14015ba30\njbe     short loc_14015BA3A                                            ; +0x115, 0x14015ba35\nmov     rcx, [r14]; Buf1                                               ; +0x117, 0x14015ba37\nmov     rbx, [r14+10h]                                                 ; +0x11a, 0x14015ba3a\nmov     r8, rbx                                                        ; +0x11e, 0x14015ba3e\ncmp     rbx, r12                                                       ; +0x121, 0x14015ba41\ncmova   r8, r12; Size                                                  ; +0x124, 0x14015ba44\nlea     rdx, [rsp+98h+Block]; Buf2                                     ; +0x128, 0x14015ba48\ncall    memcmp                                                         ; +0x12d, 0x14015ba4d\ntest    eax, eax                                                       ; +0x132, 0x14015ba52\njnz     short loc_14015BA5D                                            ; +0x134, 0x14015ba54\ncmp     rbx, r12                                                       ; +0x136, 0x14015ba56\njb      short loc_14015BA5D                                            ; +0x139, 0x14015ba59\njbe     short loc_14015BA99                                            ; +0x13b, 0x14015ba5b\nmov     rcx, [rsi+328h]                                                ; +0x13d, 0x14015ba5d\ntest    rcx, rcx                                                       ; +0x144, 0x14015ba64\njz      short loc_14015BA76                                            ; +0x147, 0x14015ba67\nmov     rax, [rcx]                                                     ; +0x149, 0x14015ba69\nmov     r8d, 27h ; '''                                                 ; +0x14c, 0x14015ba6c\nmov     edx, ebp                                                       ; +0x152, 0x14015ba72\ncall    qword ptr [rax]                                                ; +0x154, 0x14015ba74\nmov     rcx, rsi                                                       ; +0x156, 0x14015ba76\ncmp     ebp, 0FFFFFFFFh                                                ; +0x159, 0x14015ba79\njnz     short loc_14015BA8C                                            ; +0x15c, 0x14015ba7c\nmov     r8b, 1                                                         ; +0x15e, 0x14015ba7e\nmovzx   edx, r15b                                                      ; +0x161, 0x14015ba81\ncall    GameLevelManager__invalidateMessages                           ; +0x165, 0x14015ba85\njmp     short loc_14015BAB4                                            ; +0x16a, 0x14015ba8a\nmovzx   r8d, r15b                                                      ; +0x16c, 0x14015ba8c\nmov     edx, ebp                                                       ; +0x170, 0x14015ba90\ncall    GameLevelManager__messageWasRemoved                            ; +0x172, 0x14015ba92\njmp     short loc_14015BAB4                                            ; +0x177, 0x14015ba97\nmov     rcx, [rsi+328h]                                                ; +0x179, 0x14015ba99\ntest    rcx, rcx                                                       ; +0x180, 0x14015baa0\njz      short loc_14015BAB4                                            ; +0x183, 0x14015baa3\nmov     rax, [rcx]                                                     ; +0x185, 0x14015baa5\nmov     r8d, 27h ; '''                                                 ; +0x188, 0x14015baa8\nmov     edx, ebp                                                       ; +0x18e, 0x14015baae\ncall    qword ptr [rax+8]                                              ; +0x190, 0x14015bab0\nnop                                                                    ; +0x193, 0x14015bab3\nmov     rcx, r14                                                       ; +0x194, 0x14015bab4\ncall    sub_14003A830                                                  ; +0x197, 0x14015bab7\nnop                                                                    ; +0x19c, 0x14015babc\nmov     rcx, rdi                                                       ; +0x19d, 0x14015babd\ncall    sub_14003A830                                                  ; +0x1a0, 0x14015bac0\nmov     rcx, [rsp+98h+var_48]                                          ; +0x1a5, 0x14015bac5\nxor     rcx, rsp; StackCookie                                          ; +0x1aa, 0x14015baca\ncall    __security_check_cookie                                        ; +0x1ad, 0x14015bacd\nadd     rsp, 60h                                                       ; +0x1b2, 0x14015bad2\npop     r15                                                            ; +0x1b6, 0x14015bad6\npop     r14                                                            ; +0x1b8, 0x14015bad8\npop     r12                                                            ; +0x1ba, 0x14015bada\npop     rdi                                                            ; +0x1bc, 0x14015badc\npop     rsi                                                            ; +0x1bd, 0x14015badd\npop     rbp                                                            ; +0x1be, 0x14015bade\npop     rbx                                                            ; +0x1bf, 0x14015badf\nretn                                                                   ; +0x1c0, 0x14015bae0", "xrefs": ["GameLevelManager::handleIt @ 0x140143936", "<???> @ 0x1406caa40"], "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"}