{"type": "func", "start": 5371157088, "end": 5371157603, "name": "GameLevelManager::onAcceptFriendRequestCompleted", "pseudocode": "// \n// GameLevelManager::onAcceptFriendRequestCompleted from 0x140255a60 to 0x140255c63 (515 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a041\n// > <???> @ 0x14091c5b0\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::onAcceptFriendRequestCompleted(__int64 a1, const void **a2, void **a3)\n{\n  _BYTE *v6; // rbx\n  size_t v7; // r8\n  __int64 v8; // rcx\n  void *v9; // rcx\n  __int64 SplitIntFromKey; // rbp\n  __int64 v11; // rcx\n  unsigned int v12; // r15d\n  const void *v13; // rcx\n  unsigned __int64 v14; // rbx\n  size_t v15; // r8\n  __int64 v16; // rcx\n  struct cocos2d::CCObject *v17; // rax\n  __int64 v18; // r9\n  void (__fastcall ***v19)(_QWORD, _QWORD, __int64); // rcx\n  void *Block[2]; // [rsp+40h] [rbp-68h] BYREF\n  __int128 v21; // [rsp+50h] [rbp-58h]\n\n  v6 = a3;\n  if ( (unsigned __int64)a3[3] > 0xF )\n    v6 = *a3;\n  *(_OWORD *)Block = 0;\n  v21 = 0;\n  v7 = -1;\n  do\n    ++v7;\n  while ( v6[v7] );\n  sub_14003D230(Block, v6, v7);\n  cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block);\n  if ( *((_QWORD *)&v21 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v21 + 1) + 1LL) >= 0x1000 )\n    {\n      v9 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v9);\n  }\n  SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v8, v6, 1u);\n  v12 = GameLevelManager::getSplitIntFromKey(v11, v6, 2u);\n  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v21 = 2;\n  *((_QWORD *)&v21 + 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    v16 = *(_QWORD *)(a1 + 1488);\n    if ( v16 )\n      (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v16 + 8LL))(v16, v12, 37);\n  }\n  else\n  {\n    v17 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 1232), SplitIntFromKey);\n    if ( v17 )\n    {\n      *((_DWORD *)v17 + 190) = 1;\n      v18 = *(_QWORD *)(a1 + 1480);\n      if ( v18 )\n        (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(*(_QWORD *)v18 + 16LL))(\n          *(_QWORD *)(a1 + 1480),\n          v17);\n    }\n    v19 = *(void (__fastcall ****)(_QWORD, _QWORD, __int64))(a1 + 1488);\n    if ( v19 )\n      (**v19)(v19, v12, 37);\n    GameLevelManager::friendRequestWasRemoved(a1, (unsigned int)SplitIntFromKey, 0);\n    GameLevelManager::resetStoredUserList(a1, 0);\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onAcceptFriendRequestCompleted from 0x140255a60 to 0x140255c63 (515 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a041\n; > <???> @ 0x14091c5b0\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; \npush    rbx                                                            ; +0x0, 0x140255a60\npush    rbp                                                            ; +0x2, 0x140255a62\npush    rsi                                                            ; +0x3, 0x140255a63\npush    rdi                                                            ; +0x4, 0x140255a64\npush    r12                                                            ; +0x5, 0x140255a65\npush    r14                                                            ; +0x7, 0x140255a67\npush    r15                                                            ; +0x9, 0x140255a69\nsub     rsp, 70h                                                       ; +0xb, 0x140255a6b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x140255a6f\nxor     rax, rsp                                                       ; +0x16, 0x140255a76\nmov     [rsp+0A8h+var_48], rax                                         ; +0x19, 0x140255a79\nmov     rdi, r8                                                        ; +0x1e, 0x140255a7e\nmov     r14, rdx                                                       ; +0x21, 0x140255a81\nmov     rsi, rcx                                                       ; +0x24, 0x140255a84\nmov     [rsp+0A8h+var_78], rdx                                         ; +0x27, 0x140255a87\nmov     [rsp+0A8h+var_70], r8                                          ; +0x2c, 0x140255a8c\nmov     rbx, r8                                                        ; +0x31, 0x140255a91\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x34, 0x140255a94\njbe     short loc_140255A9E                                            ; +0x39, 0x140255a99\nmov     rbx, [r8]                                                      ; +0x3b, 0x140255a9b\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x140255a9e\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x41, 0x140255aa1\nxorps   xmm1, xmm1                                                     ; +0x46, 0x140255aa6\nmovdqu  [rsp+0A8h+var_58], xmm1                                        ; +0x49, 0x140255aa9\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4f, 0x140255aaf\ninc     r8                                                             ; +0x56, 0x140255ab6\ncmp     byte ptr [rbx+r8], 0                                           ; +0x59, 0x140255ab9\njnz     short loc_140255AB6                                            ; +0x5e, 0x140255abe\nmov     rdx, rbx                                                       ; +0x60, 0x140255ac0\nlea     rcx, [rsp+0A8h+Block]                                          ; +0x63, 0x140255ac3\ncall    sub_14003D230                                                  ; +0x68, 0x140255ac8\nnop                                                                    ; +0x6d, 0x140255acd\nlea     rdx, [rsp+0A8h+Block]                                          ; +0x6e, 0x140255ace\nmov     rcx, [rsi+4B0h]                                                ; +0x73, 0x140255ad3\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, 0x140255ada\nnop                                                                    ; +0x80, 0x140255ae0\nmov     rdx, qword ptr [rsp+0A8h+var_58+8]                             ; +0x81, 0x140255ae1\ncmp     rdx, 0Fh                                                       ; +0x86, 0x140255ae6\njbe     short loc_140255B34                                            ; +0x8a, 0x140255aea\ninc     rdx                                                            ; +0x8c, 0x140255aec\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0x8f, 0x140255aef\nmov     rax, rcx                                                       ; +0x94, 0x140255af4\ncmp     rdx, 1000h                                                     ; +0x97, 0x140255af7\njb      short loc_140255B2F                                            ; +0x9e, 0x140255afe\nadd     rdx, 27h ; '''                                                 ; +0xa0, 0x140255b00\nmov     rcx, [rcx-8]                                                   ; +0xa4, 0x140255b04\nsub     rax, rcx                                                       ; +0xa8, 0x140255b08\nsub     rax, 8                                                         ; +0xab, 0x140255b0b\ncmp     rax, 1Fh                                                       ; +0xaf, 0x140255b0f\njbe     short loc_140255B2F                                            ; +0xb3, 0x140255b13\nmov     [rsp+0A8h+Reserved], 0; Reserved                               ; +0xb5, 0x140255b15\nxor     r9d, r9d; LineNo                                               ; +0xbe, 0x140255b1e\nxor     r8d, r8d; FileName                                             ; +0xc1, 0x140255b21\nxor     edx, edx; FunctionName                                         ; +0xc4, 0x140255b24\nxor     ecx, ecx; Expression                                           ; +0xc6, 0x140255b26\ncall    cs:_invoke_watson                                              ; +0xc8, 0x140255b28\ndb 0CCh                                                                ; +0xce, 0x140255b2e\ncall    j_j_free                                                       ; +0xcf, 0x140255b2f\nmov     r8d, 1                                                         ; +0xd4, 0x140255b34\nmov     rdx, rbx                                                       ; +0xda, 0x140255b3a\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xdd, 0x140255b3d\nmovsxd  rbp, eax                                                       ; +0xe2, 0x140255b42\nmov     r12d, 2                                                        ; +0xe5, 0x140255b45\nmov     r8d, r12d                                                      ; +0xeb, 0x140255b4b\nmov     rdx, rbx                                                       ; +0xee, 0x140255b4e\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xf1, 0x140255b51\nmov     r15d, eax                                                      ; +0xf6, 0x140255b56\nxorps   xmm0, xmm0                                                     ; +0xf9, 0x140255b59\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0xfc, 0x140255b5c\nmov     qword ptr [rsp+0A8h+var_58], r12                               ; +0x101, 0x140255b61\nmov     qword ptr [rsp+0A8h+var_58+8], 0Fh                             ; +0x106, 0x140255b66\nmov     eax, 312Dh                                                     ; +0x10f, 0x140255b6f\nmov     word ptr [rsp+0A8h+Block], ax                                  ; +0x114, 0x140255b74\nmov     byte ptr [rsp+0A8h+Block+2], 0                                 ; +0x119, 0x140255b79\nmov     rcx, r14                                                       ; +0x11e, 0x140255b7e\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x121, 0x140255b81\njbe     short loc_140255B8B                                            ; +0x126, 0x140255b86\nmov     rcx, [r14]; Buf1                                               ; +0x128, 0x140255b88\nmov     rbx, [r14+10h]                                                 ; +0x12b, 0x140255b8b\nmov     r8, rbx                                                        ; +0x12f, 0x140255b8f\ncmp     rbx, r12                                                       ; +0x132, 0x140255b92\ncmova   r8, r12; Size                                                  ; +0x135, 0x140255b95\nlea     rdx, [rsp+0A8h+Block]; Buf2                                    ; +0x139, 0x140255b99\ncall    memcmp                                                         ; +0x13e, 0x140255b9e\ntest    eax, eax                                                       ; +0x143, 0x140255ba3\njnz     short loc_140255BC9                                            ; +0x145, 0x140255ba5\ncmp     rbx, r12                                                       ; +0x147, 0x140255ba7\njnz     short loc_140255BC9                                            ; +0x14a, 0x140255baa\nmov     rcx, [rsi+5D0h]                                                ; +0x14c, 0x140255bac\ntest    rcx, rcx                                                       ; +0x153, 0x140255bb3\njz      short loc_140255C36                                            ; +0x156, 0x140255bb6\nmov     rax, [rcx]                                                     ; +0x158, 0x140255bb8\nmov     r8d, 25h ; '%'                                                 ; +0x15b, 0x140255bbb\nmov     edx, r15d                                                      ; +0x161, 0x140255bc1\ncall    qword ptr [rax+8]                                              ; +0x164, 0x140255bc4\njmp     short loc_140255C36                                            ; +0x167, 0x140255bc7\nmov     rdx, rbp                                                       ; +0x169, 0x140255bc9\nmov     rcx, [rsi+4D0h]                                                ; +0x16c, 0x140255bcc\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x173, 0x140255bd3\ntest    rax, rax                                                       ; +0x179, 0x140255bd9\njz      short loc_140255C04                                            ; +0x17c, 0x140255bdc\nmov     dword ptr [rax+2F8h], 1                                        ; +0x17e, 0x140255bde\nmov     r9, [rsi+5C8h]                                                 ; +0x188, 0x140255be8\ntest    r9, r9                                                         ; +0x18f, 0x140255bef\njz      short loc_140255C04                                            ; +0x192, 0x140255bf2\nmov     rcx, [r9]                                                      ; +0x194, 0x140255bf4\nmov     r8, [rcx+10h]                                                  ; +0x197, 0x140255bf7\nmov     rdx, rax                                                       ; +0x19b, 0x140255bfb\nmov     rcx, r9                                                        ; +0x19e, 0x140255bfe\ncall    r8                                                             ; +0x1a1, 0x140255c01\nmov     rcx, [rsi+5D0h]                                                ; +0x1a4, 0x140255c04\ntest    rcx, rcx                                                       ; +0x1ab, 0x140255c0b\njz      short loc_140255C1E                                            ; +0x1ae, 0x140255c0e\nmov     rax, [rcx]                                                     ; +0x1b0, 0x140255c10\nmov     r8d, 25h ; '%'                                                 ; +0x1b3, 0x140255c13\nmov     edx, r15d                                                      ; +0x1b9, 0x140255c19\ncall    qword ptr [rax]                                                ; +0x1bc, 0x140255c1c\nxor     r8d, r8d                                                       ; +0x1be, 0x140255c1e\nmov     edx, ebp                                                       ; +0x1c1, 0x140255c21\nmov     rcx, rsi                                                       ; +0x1c3, 0x140255c23\ncall    GameLevelManager__friendRequestWasRemoved                      ; +0x1c6, 0x140255c26\nxor     edx, edx                                                       ; +0x1cb, 0x140255c2b\nmov     rcx, rsi                                                       ; +0x1cd, 0x140255c2d\ncall    GameLevelManager__resetStoredUserList                          ; +0x1d0, 0x140255c30\nnop                                                                    ; +0x1d5, 0x140255c35\nmov     rcx, r14                                                       ; +0x1d6, 0x140255c36\ncall    sub_14003D310                                                  ; +0x1d9, 0x140255c39\nnop                                                                    ; +0x1de, 0x140255c3e\nmov     rcx, rdi                                                       ; +0x1df, 0x140255c3f\ncall    sub_14003D310                                                  ; +0x1e2, 0x140255c42\nmov     rcx, [rsp+0A8h+var_48]                                         ; +0x1e7, 0x140255c47\nxor     rcx, rsp; StackCookie                                          ; +0x1ec, 0x140255c4c\ncall    __security_check_cookie                                        ; +0x1ef, 0x140255c4f\nadd     rsp, 70h                                                       ; +0x1f4, 0x140255c54\npop     r15                                                            ; +0x1f8, 0x140255c58\npop     r14                                                            ; +0x1fa, 0x140255c5a\npop     r12                                                            ; +0x1fc, 0x140255c5c\npop     rdi                                                            ; +0x1fe, 0x140255c5e\npop     rsi                                                            ; +0x1ff, 0x140255c5f\npop     rbp                                                            ; +0x200, 0x140255c60\npop     rbx                                                            ; +0x201, 0x140255c61\nretn                                                                   ; +0x202, 0x140255c62", "xrefs": ["GameLevelManager::handleIt @ 0x14021a041", "<???> @ 0x14091c5b0"], "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"}