{"type": "func", "start": 5370159632, "end": 5370160131, "name": "GameLevelManager::onBlockUserCompleted", "pseudocode": "// \n// GameLevelManager::onBlockUserCompleted from 0x140162210 to 0x140162403 (499 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14014380f\n// > <???> @ 0x1406cabc0\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::onBlockUserCompleted(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  __int64 SplitIntFromKey; // rbx\n  const void *v11; // rcx\n  size_t v12; // r8\n  UploadActionDelegate *m_uploadActionDelegate; // rcx\n  struct cocos2d::CCObject *v14; // rax\n  UserInfoDelegate *m_userInfoDelegate; // rcx\n  UploadActionDelegate *v16; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-58h] BYREF\n  __int128 v18; // [rsp+40h] [rbp-48h]\n\n  v6 = a3;\n  if ( a3[3] > 0xFu )\n    v6 = (_BYTE *)*a3;\n  *(_OWORD *)Block = 0;\n  v18 = 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 *)&v18 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v18 + 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  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v18 = 2;\n  *((_QWORD *)&v18 + 1) = 15;\n  strcpy((char *)Block, \"-1\");\n  v11 = a2;\n  if ( (unsigned __int64)a2[3] > 0xF )\n    v11 = *a2;\n  v12 = (size_t)a2[2];\n  if ( v12 > 2 )\n    v12 = 2;\n  if ( !memcmp(v11, Block, v12) && a2[2] == (const void *)2 )\n  {\n    m_uploadActionDelegate = a1->m_uploadActionDelegate;\n    if ( m_uploadActionDelegate )\n      m_uploadActionDelegate->uploadActionFailed(m_uploadActionDelegate, SplitIntFromKey, 34);\n  }\n  else\n  {\n    v14 = cocos2d::CCDictionary::objectForKey(a1->m_storedUserInfo, SplitIntFromKey);\n    if ( v14 )\n    {\n      v14[13].m_nTag = 2;\n      m_userInfoDelegate = a1->m_userInfoDelegate;\n      if ( m_userInfoDelegate )\n        m_userInfoDelegate->userInfoChanged(m_userInfoDelegate, (GJUserScore *)v14);\n    }\n    v16 = a1->m_uploadActionDelegate;\n    if ( v16 )\n      v16->uploadActionFinished(v16, SplitIntFromKey, 34);\n    GameLevelManager::friendRequestWasRemoved(a1, SplitIntFromKey, 0);\n    GameLevelManager::resetStoredUserList(a1, Blocked);\n    GameLevelManager::invalidateMessages(a1, 0, 1);\n    GameLevelManager::removeUserFromList(a1, SplitIntFromKey, (UserListType)0);\n  }\n  sub_14003A830((__int64)a2);\n  sub_14003A830((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onBlockUserCompleted from 0x140162210 to 0x140162403 (499 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14014380f\n; > <???> @ 0x1406cabc0\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, 0x140162210\npush    rsi                                                            ; +0x2, 0x140162212\npush    rdi                                                            ; +0x3, 0x140162213\npush    r14                                                            ; +0x4, 0x140162214\npush    r15                                                            ; +0x6, 0x140162216\nsub     rsp, 60h                                                       ; +0x8, 0x140162218\nmov     rax, cs:__security_cookie                                      ; +0xc, 0x14016221c\nxor     rax, rsp                                                       ; +0x13, 0x140162223\nmov     [rsp+88h+var_38], rax                                          ; +0x16, 0x140162226\nmov     r14, r8                                                        ; +0x1b, 0x14016222b\nmov     rsi, rdx                                                       ; +0x1e, 0x14016222e\nmov     rdi, rcx                                                       ; +0x21, 0x140162231\nmov     [rsp+88h+var_68], rdx                                          ; +0x24, 0x140162234\nmov     [rsp+88h+var_60], r8                                           ; +0x29, 0x140162239\nmov     rbx, r8                                                        ; +0x2e, 0x14016223e\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x31, 0x140162241\njbe     short loc_14016224B                                            ; +0x36, 0x140162246\nmov     rbx, [r8]                                                      ; +0x38, 0x140162248\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x14016224b\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0x3e, 0x14016224e\nxorps   xmm1, xmm1                                                     ; +0x43, 0x140162253\nmovdqu  [rsp+88h+var_48], xmm1                                         ; +0x46, 0x140162256\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4c, 0x14016225c\ninc     r8                                                             ; +0x53, 0x140162263\ncmp     byte ptr [rbx+r8], 0                                           ; +0x56, 0x140162266\njnz     short loc_140162263                                            ; +0x5b, 0x14016226b\nmov     rdx, rbx                                                       ; +0x5d, 0x14016226d\nlea     rcx, [rsp+88h+Block]                                           ; +0x60, 0x140162270\ncall    sub_14003A930                                                  ; +0x65, 0x140162275\nnop                                                                    ; +0x6a, 0x14016227a\nlea     rdx, [rsp+88h+Block]                                           ; +0x6b, 0x14016227b\nmov     rcx, [rdi+250h]                                                ; +0x70, 0x140162280\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 &) ; +0x77, 0x140162287\nnop                                                                    ; +0x7d, 0x14016228d\nmov     rdx, qword ptr [rsp+88h+var_48+8]                              ; +0x7e, 0x14016228e\ncmp     rdx, 0Fh                                                       ; +0x83, 0x140162293\njbe     short loc_1401622CE                                            ; +0x87, 0x140162297\ninc     rdx                                                            ; +0x89, 0x140162299\nmov     rcx, [rsp+88h+Block]; Block                                    ; +0x8c, 0x14016229c\nmov     rax, rcx                                                       ; +0x91, 0x1401622a1\ncmp     rdx, 1000h                                                     ; +0x94, 0x1401622a4\njb      short loc_1401622C9                                            ; +0x9b, 0x1401622ab\nadd     rdx, 27h ; '''                                                 ; +0x9d, 0x1401622ad\nmov     rcx, [rcx-8]                                                   ; +0xa1, 0x1401622b1\nsub     rax, rcx                                                       ; +0xa5, 0x1401622b5\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xa8, 0x1401622b8\ncmp     rax, 1Fh                                                       ; +0xac, 0x1401622bc\njbe     short loc_1401622C9                                            ; +0xb0, 0x1401622c0\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xb2, 0x1401622c2\ndb 0CCh                                                                ; +0xb8, 0x1401622c8\ncall    j_j_free                                                       ; +0xb9, 0x1401622c9\nmov     r8d, 1                                                         ; +0xbe, 0x1401622ce\nmov     rdx, rbx                                                       ; +0xc4, 0x1401622d4\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xc7, 0x1401622d7\nmovsxd  rbx, eax                                                       ; +0xcc, 0x1401622dc\nxorps   xmm0, xmm0                                                     ; +0xcf, 0x1401622df\nmovups  xmmword ptr [rsp+88h+Block], xmm0                              ; +0xd2, 0x1401622e2\nmov     r15d, 2                                                        ; +0xd7, 0x1401622e7\nmov     qword ptr [rsp+88h+var_48], r15                                ; +0xdd, 0x1401622ed\nmov     qword ptr [rsp+88h+var_48+8], 0Fh                              ; +0xe2, 0x1401622f2\nmov     eax, 312Dh                                                     ; +0xeb, 0x1401622fb\nmov     word ptr [rsp+88h+Block], ax                                   ; +0xf0, 0x140162300\nmov     byte ptr [rsp+88h+Block+2], 0                                  ; +0xf5, 0x140162305\nmov     rcx, rsi                                                       ; +0xfa, 0x14016230a\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0xfd, 0x14016230d\njbe     short loc_140162317                                            ; +0x102, 0x140162312\nmov     rcx, [rsi]; Buf1                                               ; +0x104, 0x140162314\nmov     r8, [rsi+10h]                                                  ; +0x107, 0x140162317\ncmp     r8, r15                                                        ; +0x10b, 0x14016231b\ncmova   r8, r15; Size                                                  ; +0x10e, 0x14016231e\nlea     rdx, [rsp+88h+Block]; Buf2                                     ; +0x112, 0x140162322\ncall    memcmp                                                         ; +0x117, 0x140162327\ntest    eax, eax                                                       ; +0x11c, 0x14016232c\njnz     short loc_140162359                                            ; +0x11e, 0x14016232e\ncmp     [rsi+10h], r15                                                 ; +0x120, 0x140162330\njnz     short loc_140162359                                            ; +0x124, 0x140162334\nmov     rcx, [rdi+328h]                                                ; +0x126, 0x140162336\ntest    rcx, rcx                                                       ; +0x12d, 0x14016233d\njz      loc_1401623D9                                                  ; +0x130, 0x140162340\nmov     rax, [rcx]                                                     ; +0x136, 0x140162346\nmov     r8d, 22h ; '\"'                                                 ; +0x139, 0x140162349\nmov     edx, ebx                                                       ; +0x13f, 0x14016234f\ncall    qword ptr [rax+8]                                              ; +0x141, 0x140162351\njmp     loc_1401623D9                                                  ; +0x144, 0x140162354\nmov     rdx, rbx                                                       ; +0x149, 0x140162359\nmov     rcx, [rdi+258h]                                                ; +0x14c, 0x14016235c\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x153, 0x140162363\ntest    rax, rax                                                       ; +0x159, 0x140162369\njz      short loc_14016238B                                            ; +0x15c, 0x14016236c\nmov     [rax+2E8h], r15d                                               ; +0x15e, 0x14016236e\nmov     rcx, [rdi+320h]                                                ; +0x165, 0x140162375\ntest    rcx, rcx                                                       ; +0x16c, 0x14016237c\njz      short loc_14016238B                                            ; +0x16f, 0x14016237f\nmov     r8, [rcx]                                                      ; +0x171, 0x140162381\nmov     rdx, rax                                                       ; +0x174, 0x140162384\ncall    qword ptr [r8+10h]                                             ; +0x177, 0x140162387\nmov     rcx, [rdi+328h]                                                ; +0x17b, 0x14016238b\ntest    rcx, rcx                                                       ; +0x182, 0x140162392\njz      short loc_1401623A4                                            ; +0x185, 0x140162395\nmov     rax, [rcx]                                                     ; +0x187, 0x140162397\nmov     r8d, 22h ; '\"'                                                 ; +0x18a, 0x14016239a\nmov     edx, ebx                                                       ; +0x190, 0x1401623a0\ncall    qword ptr [rax]                                                ; +0x192, 0x1401623a2\nxor     r8d, r8d                                                       ; +0x194, 0x1401623a4\nmov     edx, ebx                                                       ; +0x197, 0x1401623a7\nmov     rcx, rdi                                                       ; +0x199, 0x1401623a9\ncall    GameLevelManager__friendRequestWasRemoved                      ; +0x19c, 0x1401623ac\nmov     edx, 1                                                         ; +0x1a1, 0x1401623b1\nmov     rcx, rdi                                                       ; +0x1a6, 0x1401623b6\ncall    GameLevelManager__resetStoredUserList                          ; +0x1a9, 0x1401623b9\nmov     r8b, 1                                                         ; +0x1ae, 0x1401623be\nxor     edx, edx                                                       ; +0x1b1, 0x1401623c1\nmov     rcx, rdi                                                       ; +0x1b3, 0x1401623c3\ncall    GameLevelManager__invalidateMessages                           ; +0x1b6, 0x1401623c6\nxor     r8d, r8d                                                       ; +0x1bb, 0x1401623cb\nmov     edx, ebx                                                       ; +0x1be, 0x1401623ce\nmov     rcx, rdi                                                       ; +0x1c0, 0x1401623d0\ncall    GameLevelManager__removeUserFromList                           ; +0x1c3, 0x1401623d3\nnop                                                                    ; +0x1c8, 0x1401623d8\nmov     rcx, rsi                                                       ; +0x1c9, 0x1401623d9\ncall    sub_14003A830                                                  ; +0x1cc, 0x1401623dc\nnop                                                                    ; +0x1d1, 0x1401623e1\nmov     rcx, r14                                                       ; +0x1d2, 0x1401623e2\ncall    sub_14003A830                                                  ; +0x1d5, 0x1401623e5\nmov     rcx, [rsp+88h+var_38]                                          ; +0x1da, 0x1401623ea\nxor     rcx, rsp; StackCookie                                          ; +0x1df, 0x1401623ef\ncall    __security_check_cookie                                        ; +0x1e2, 0x1401623f2\nadd     rsp, 60h                                                       ; +0x1e7, 0x1401623f7\npop     r15                                                            ; +0x1eb, 0x1401623fb\npop     r14                                                            ; +0x1ed, 0x1401623fd\npop     rdi                                                            ; +0x1ef, 0x1401623ff\npop     rsi                                                            ; +0x1f0, 0x140162400\npop     rbx                                                            ; +0x1f1, 0x140162401\nretn                                                                   ; +0x1f2, 0x140162402", "xrefs": ["GameLevelManager::handleIt @ 0x14014380f", "<???> @ 0x1406cabc0"], "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"}