{"type": "func", "start": 5371155696, "end": 5371156228, "name": "GameLevelManager::onDeleteFriendRequestCompleted", "pseudocode": "// \n// GameLevelManager::onDeleteFriendRequestCompleted from 0x1402554f0 to 0x140255704 (532 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::handleIt @ 0x14021a006\n// > <???> @ 0x14091c598\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:43 +0000\n// \n\n// Hidden C++ exception states: #wind=3\nvoid __fastcall GameLevelManager::onDeleteFriendRequestCompleted(__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  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; // rdx\n  __int64 v19; // r8\n  __int64 v20; // r9\n  void (__fastcall ***v21)(_QWORD, _QWORD, __int64); // rcx\n  void *Block[2]; // [rsp+40h] [rbp-68h] BYREF\n  __int128 v23; // [rsp+50h] [rbp-58h]\n\n  v6 = a3;\n  if ( (unsigned __int64)a3[3] > 0xF )\n    v6 = *a3;\n  *(_OWORD *)Block = 0;\n  v23 = 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 *)&v23 + 1) > 0xFu )\n  {\n    v9 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v23 + 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 *)&v23 = 2;\n  *((_QWORD *)&v23 + 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, (unsigned int)SplitIntFromKey, 36);\n  }\n  else\n  {\n    v17 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 1232), SplitIntFromKey);\n    if ( v17 )\n    {\n      *((_DWORD *)v17 + 190) = 0;\n      v20 = *(_QWORD *)(a1 + 1480);\n      if ( v20 )\n        (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(*(_QWORD *)v20 + 16LL))(\n          *(_QWORD *)(a1 + 1480),\n          v17);\n    }\n    v21 = *(void (__fastcall ****)(_QWORD, _QWORD, __int64))(a1 + 1488);\n    if ( v21 )\n      (**v21)(v21, (unsigned int)SplitIntFromKey, 36);\n    if ( (_DWORD)SplitIntFromKey == -1 )\n    {\n      LOBYTE(v18) = v12 != 0;\n      LOBYTE(v19) = 1;\n      GameLevelManager::invalidateRequests(a1, v18, v19);\n    }\n    else\n    {\n      LOBYTE(v19) = v12 != 0;\n      GameLevelManager::friendRequestWasRemoved(a1, (unsigned int)SplitIntFromKey, v19);\n    }\n  }\n  sub_14003D310((__int64)a2);\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; GameLevelManager::onDeleteFriendRequestCompleted from 0x1402554f0 to 0x140255704 (532 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::handleIt @ 0x14021a006\n; > <???> @ 0x14091c598\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:43 +0000\n; \npush    rbx                                                            ; +0x0, 0x1402554f0\npush    rbp                                                            ; +0x2, 0x1402554f2\npush    rsi                                                            ; +0x3, 0x1402554f3\npush    rdi                                                            ; +0x4, 0x1402554f4\npush    r12                                                            ; +0x5, 0x1402554f5\npush    r14                                                            ; +0x7, 0x1402554f7\npush    r15                                                            ; +0x9, 0x1402554f9\nsub     rsp, 70h                                                       ; +0xb, 0x1402554fb\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x1402554ff\nxor     rax, rsp                                                       ; +0x16, 0x140255506\nmov     [rsp+0A8h+var_48], rax                                         ; +0x19, 0x140255509\nmov     rsi, r8                                                        ; +0x1e, 0x14025550e\nmov     r14, rdx                                                       ; +0x21, 0x140255511\nmov     rdi, rcx                                                       ; +0x24, 0x140255514\nmov     [rsp+0A8h+var_78], rdx                                         ; +0x27, 0x140255517\nmov     [rsp+0A8h+var_70], r8                                          ; +0x2c, 0x14025551c\nmov     rbx, r8                                                        ; +0x31, 0x140255521\ncmp     qword ptr [r8+18h], 0Fh                                        ; +0x34, 0x140255524\njbe     short loc_14025552E                                            ; +0x39, 0x140255529\nmov     rbx, [r8]                                                      ; +0x3b, 0x14025552b\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x14025552e\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0x41, 0x140255531\nxorps   xmm1, xmm1                                                     ; +0x46, 0x140255536\nmovdqu  [rsp+0A8h+var_58], xmm1                                        ; +0x49, 0x140255539\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4f, 0x14025553f\ninc     r8                                                             ; +0x56, 0x140255546\ncmp     byte ptr [rbx+r8], 0                                           ; +0x59, 0x140255549\njnz     short loc_140255546                                            ; +0x5e, 0x14025554e\nmov     rdx, rbx                                                       ; +0x60, 0x140255550\nlea     rcx, [rsp+0A8h+Block]                                          ; +0x63, 0x140255553\ncall    sub_14003D230                                                  ; +0x68, 0x140255558\nnop                                                                    ; +0x6d, 0x14025555d\nlea     rdx, [rsp+0A8h+Block]                                          ; +0x6e, 0x14025555e\nmov     rcx, [rdi+4B0h]                                                ; +0x73, 0x140255563\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, 0x14025556a\nnop                                                                    ; +0x80, 0x140255570\nmov     rdx, qword ptr [rsp+0A8h+var_58+8]                             ; +0x81, 0x140255571\ncmp     rdx, 0Fh                                                       ; +0x86, 0x140255576\njbe     short loc_1402555C4                                            ; +0x8a, 0x14025557a\ninc     rdx                                                            ; +0x8c, 0x14025557c\nmov     rcx, [rsp+0A8h+Block]; Block                                   ; +0x8f, 0x14025557f\nmov     rax, rcx                                                       ; +0x94, 0x140255584\ncmp     rdx, 1000h                                                     ; +0x97, 0x140255587\njb      short loc_1402555BF                                            ; +0x9e, 0x14025558e\nadd     rdx, 27h ; '''                                                 ; +0xa0, 0x140255590\nmov     rcx, [rcx-8]                                                   ; +0xa4, 0x140255594\nsub     rax, rcx                                                       ; +0xa8, 0x140255598\nsub     rax, 8                                                         ; +0xab, 0x14025559b\ncmp     rax, 1Fh                                                       ; +0xaf, 0x14025559f\njbe     short loc_1402555BF                                            ; +0xb3, 0x1402555a3\nmov     [rsp+0A8h+Reserved], 0; Reserved                               ; +0xb5, 0x1402555a5\nxor     r9d, r9d; LineNo                                               ; +0xbe, 0x1402555ae\nxor     r8d, r8d; FileName                                             ; +0xc1, 0x1402555b1\nxor     edx, edx; FunctionName                                         ; +0xc4, 0x1402555b4\nxor     ecx, ecx; Expression                                           ; +0xc6, 0x1402555b6\ncall    cs:_invoke_watson                                              ; +0xc8, 0x1402555b8\ndb 0CCh                                                                ; +0xce, 0x1402555be\ncall    j_j_free                                                       ; +0xcf, 0x1402555bf\nmov     r8d, 1                                                         ; +0xd4, 0x1402555c4\nmov     rdx, rbx                                                       ; +0xda, 0x1402555ca\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xdd, 0x1402555cd\nmovsxd  rbp, eax                                                       ; +0xe2, 0x1402555d2\nmov     r12d, 2                                                        ; +0xe5, 0x1402555d5\nmov     r8d, r12d                                                      ; +0xeb, 0x1402555db\nmov     rdx, rbx                                                       ; +0xee, 0x1402555de\ncall    GameLevelManager__getSplitIntFromKey                           ; +0xf1, 0x1402555e1\nmov     r15d, eax                                                      ; +0xf6, 0x1402555e6\nxorps   xmm0, xmm0                                                     ; +0xf9, 0x1402555e9\nmovups  xmmword ptr [rsp+0A8h+Block], xmm0                             ; +0xfc, 0x1402555ec\nmov     qword ptr [rsp+0A8h+var_58], r12                               ; +0x101, 0x1402555f1\nmov     qword ptr [rsp+0A8h+var_58+8], 0Fh                             ; +0x106, 0x1402555f6\nmov     eax, 312Dh                                                     ; +0x10f, 0x1402555ff\nmov     word ptr [rsp+0A8h+Block], ax                                  ; +0x114, 0x140255604\nmov     byte ptr [rsp+0A8h+Block+2], 0                                 ; +0x119, 0x140255609\nmov     rcx, r14                                                       ; +0x11e, 0x14025560e\ncmp     qword ptr [r14+18h], 0Fh                                       ; +0x121, 0x140255611\njbe     short loc_14025561B                                            ; +0x126, 0x140255616\nmov     rcx, [r14]; Buf1                                               ; +0x128, 0x140255618\nmov     rbx, [r14+10h]                                                 ; +0x12b, 0x14025561b\nmov     r8, rbx                                                        ; +0x12f, 0x14025561f\ncmp     rbx, r12                                                       ; +0x132, 0x140255622\ncmova   r8, r12; Size                                                  ; +0x135, 0x140255625\nlea     rdx, [rsp+0A8h+Block]; Buf2                                    ; +0x139, 0x140255629\ncall    memcmp                                                         ; +0x13e, 0x14025562e\ntest    eax, eax                                                       ; +0x143, 0x140255633\njnz     short loc_14025565C                                            ; +0x145, 0x140255635\ncmp     rbx, r12                                                       ; +0x147, 0x140255637\njnz     short loc_14025565C                                            ; +0x14a, 0x14025563a\nmov     rcx, [rdi+5D0h]                                                ; +0x14c, 0x14025563c\ntest    rcx, rcx                                                       ; +0x153, 0x140255643\njz      loc_1402556D7                                                  ; +0x156, 0x140255646\nmov     rax, [rcx]                                                     ; +0x15c, 0x14025564c\nmov     r8d, 24h ; '$'                                                 ; +0x15f, 0x14025564f\nmov     edx, ebp                                                       ; +0x165, 0x140255655\ncall    qword ptr [rax+8]                                              ; +0x167, 0x140255657\njmp     short loc_1402556D7                                            ; +0x16a, 0x14025565a\nmov     rdx, rbp                                                       ; +0x16c, 0x14025565c\nmov     rcx, [rdi+4D0h]                                                ; +0x16f, 0x14025565f\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x176, 0x140255666\ntest    rax, rax                                                       ; +0x17c, 0x14025566c\njz      short loc_140255697                                            ; +0x17f, 0x14025566f\nmov     dword ptr [rax+2F8h], 0                                        ; +0x181, 0x140255671\nmov     r9, [rdi+5C8h]                                                 ; +0x18b, 0x14025567b\ntest    r9, r9                                                         ; +0x192, 0x140255682\njz      short loc_140255697                                            ; +0x195, 0x140255685\nmov     rcx, [r9]                                                      ; +0x197, 0x140255687\nmov     r8, [rcx+10h]                                                  ; +0x19a, 0x14025568a\nmov     rdx, rax                                                       ; +0x19e, 0x14025568e\nmov     rcx, r9                                                        ; +0x1a1, 0x140255691\ncall    r8                                                             ; +0x1a4, 0x140255694\nmov     rcx, [rdi+5D0h]                                                ; +0x1a7, 0x140255697\ntest    rcx, rcx                                                       ; +0x1ae, 0x14025569e\njz      short loc_1402556B0                                            ; +0x1b1, 0x1402556a1\nmov     rax, [rcx]                                                     ; +0x1b3, 0x1402556a3\nmov     r8d, 24h ; '$'                                                 ; +0x1b6, 0x1402556a6\nmov     edx, ebp                                                       ; +0x1bc, 0x1402556ac\ncall    qword ptr [rax]                                                ; +0x1be, 0x1402556ae\nmov     rcx, rdi                                                       ; +0x1c0, 0x1402556b0\ncmp     ebp, 0FFFFFFFFh                                                ; +0x1c3, 0x1402556b3\njnz     short loc_1402556C8                                            ; +0x1c6, 0x1402556b6\ntest    r15d, r15d                                                     ; +0x1c8, 0x1402556b8\nsetnz   dl                                                             ; +0x1cb, 0x1402556bb\nmov     r8b, 1                                                         ; +0x1ce, 0x1402556be\ncall    GameLevelManager__invalidateRequests                           ; +0x1d1, 0x1402556c1\njmp     short loc_1402556D7                                            ; +0x1d6, 0x1402556c6\ntest    r15d, r15d                                                     ; +0x1d8, 0x1402556c8\nsetnz   r8b                                                            ; +0x1db, 0x1402556cb\nmov     edx, ebp                                                       ; +0x1df, 0x1402556cf\ncall    GameLevelManager__friendRequestWasRemoved                      ; +0x1e1, 0x1402556d1\nnop                                                                    ; +0x1e6, 0x1402556d6\nmov     rcx, r14                                                       ; +0x1e7, 0x1402556d7\ncall    sub_14003D310                                                  ; +0x1ea, 0x1402556da\nnop                                                                    ; +0x1ef, 0x1402556df\nmov     rcx, rsi                                                       ; +0x1f0, 0x1402556e0\ncall    sub_14003D310                                                  ; +0x1f3, 0x1402556e3\nmov     rcx, [rsp+0A8h+var_48]                                         ; +0x1f8, 0x1402556e8\nxor     rcx, rsp; StackCookie                                          ; +0x1fd, 0x1402556ed\ncall    __security_check_cookie                                        ; +0x200, 0x1402556f0\nadd     rsp, 70h                                                       ; +0x205, 0x1402556f5\npop     r15                                                            ; +0x209, 0x1402556f9\npop     r14                                                            ; +0x20b, 0x1402556fb\npop     r12                                                            ; +0x20d, 0x1402556fd\npop     rdi                                                            ; +0x20f, 0x1402556ff\npop     rsi                                                            ; +0x210, 0x140255700\npop     rbp                                                            ; +0x211, 0x140255701\npop     rbx                                                            ; +0x212, 0x140255702\nretn                                                                   ; +0x213, 0x140255703", "xrefs": ["GameLevelManager::handleIt @ 0x14021a006", "<???> @ 0x14091c598"], "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"}