{"type": "func", "start": 5370122496, "end": 5370122904, "name": "GJRequestCell::onViewFriendRequest", "pseudocode": "// \n// GJRequestCell::onViewFriendRequest from 0x140159100 to 0x140159298 (408 bytes)\n// \n// 2 xrefs:\n// > GJRequestCell::loadFromScore @ 0x140158f36\n// > <???> @ 0x140917a08\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:27:21 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nstruct cocos2d::CCObject *__fastcall GJRequestCell::onViewFriendRequest(__int64 a1)\n{\n  struct cocos2d::CCObject *result; // rax\n  __int64 v3; // rcx\n  struct cocos2d::CCObject *v4; // rsi\n  __int64 v5; // rax\n  __int64 v6; // rcx\n  __int64 v7; // rax\n  int v8; // edi\n  __int64 v9; // rcx\n  struct cocos2d::CCObject *v10; // rax\n  int v11; // ecx\n  __int64 v12; // rax\n  void *v13; // [rsp+30h] [rbp+8h]\n  void *v14; // [rsp+30h] [rbp+8h]\n\n  result = *(struct cocos2d::CCObject **)(a1 + 560);\n  if ( result && *((int *)result + 98) > 0 )\n  {\n    v3 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v13 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v13);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v3 = *(_QWORD *)&qword_14090BFB0;\n    }\n    result = cocos2d::CCDictionary::objectForKey(\n               *(cocos2d::CCDictionary **)(v3 + 1240),\n               *(int *)(*(_QWORD *)(a1 + 560) + 392LL));\n    v4 = result;\n    if ( result )\n    {\n      if ( !*(_BYTE *)(a1 + 576) && *(_BYTE *)(*(_QWORD *)(a1 + 560) + 796LL) )\n      {\n        v5 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 472LL))(*(_QWORD *)(a1 + 544), 100);\n        if ( v5 )\n          (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 336LL))(v5, 0);\n        *(_BYTE *)(*(_QWORD *)(a1 + 560) + 796LL) = 0;\n        v7 = GJAccountManager::sharedState(v6);\n        v8 = *(_DWORD *)(v7 + 360) - *(_DWORD *)(v7 + 364);\n        v9 = *(_QWORD *)&qword_14090BFB0;\n        if ( !*(_QWORD *)&qword_14090BFB0 )\n        {\n          v14 = operator new(0x690u);\n          *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v14);\n          (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n          v9 = *(_QWORD *)&qword_14090BFB0;\n        }\n        v10 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v9 + 1232), v8);\n        if ( v10 )\n        {\n          v11 = *((_DWORD *)v10 + 192) - 1;\n          if ( v11 < 0 )\n            v11 = 0;\n          *((_DWORD *)v10 + 192) = v11;\n        }\n      }\n      v12 = FriendRequestPopup::create(v4, *(unsigned __int8 *)(a1 + 576));\n      return (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1064LL))(v12);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJRequestCell::onViewFriendRequest from 0x140159100 to 0x140159298 (408 bytes)\n; \n; 2 xrefs:\n; > GJRequestCell::loadFromScore @ 0x140158f36\n; > <???> @ 0x140917a08\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:27:21 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140159100\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140159105\npush    rdi                                                            ; +0xa, 0x14015910a\nsub     rsp, 20h                                                       ; +0xb, 0x14015910b\nmov     rbx, rcx                                                       ; +0xf, 0x14015910f\nmov     rax, [rcx+230h]                                                ; +0x12, 0x140159112\ntest    rax, rax                                                       ; +0x19, 0x140159119\njz      loc_140159288                                                  ; +0x1c, 0x14015911c\ncmp     dword ptr [rax+188h], 0                                        ; +0x22, 0x140159122\njle     loc_140159288                                                  ; +0x29, 0x140159129\nmov     rcx, cs:qword_14090BFB0                                        ; +0x2f, 0x14015912f\ntest    rcx, rcx                                                       ; +0x36, 0x140159136\njnz     short loc_14015916D                                            ; +0x39, 0x140159139\nmov     ecx, 690h; Size                                                ; +0x3b, 0x14015913b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x40, 0x140159140\nmov     [rsp+28h+arg_0], rax                                           ; +0x45, 0x140159145\nmov     rcx, rax                                                       ; +0x4a, 0x14015914a\ncall    GameLevelManager__GameLevelManager                             ; +0x4d, 0x14015914d\nnop                                                                    ; +0x52, 0x140159152\nmov     cs:qword_14090BFB0, rax                                        ; +0x53, 0x140159153\nmov     rcx, [rax]                                                     ; +0x5a, 0x14015915a\nmov     rdx, [rcx+48h]                                                 ; +0x5d, 0x14015915d\nmov     rcx, rax                                                       ; +0x61, 0x140159161\ncall    rdx                                                            ; +0x64, 0x140159164\nmov     rcx, cs:qword_14090BFB0                                        ; +0x66, 0x140159166\nmov     rax, [rbx+230h]                                                ; +0x6d, 0x14015916d\nmovsxd  rdx, dword ptr [rax+188h]                                      ; +0x74, 0x140159174\nmov     rcx, [rcx+4D8h]                                                ; +0x7b, 0x14015917b\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x82, 0x140159182\nmov     rsi, rax                                                       ; +0x88, 0x140159188\ntest    rax, rax                                                       ; +0x8b, 0x14015918b\njz      loc_140159288                                                  ; +0x8e, 0x14015918e\ncmp     byte ptr [rbx+240h], 0                                         ; +0x94, 0x140159194\njnz     loc_14015926A                                                  ; +0x9b, 0x14015919b\nmov     rcx, [rbx+230h]                                                ; +0xa1, 0x1401591a1\ncmp     byte ptr [rcx+31Ch], 0                                         ; +0xa8, 0x1401591a8\njz      loc_14015926A                                                  ; +0xaf, 0x1401591af\nmov     rcx, [rbx+220h]                                                ; +0xb5, 0x1401591b5\nmov     rdx, [rcx]                                                     ; +0xbc, 0x1401591bc\nmov     rax, [rdx+1D8h]                                                ; +0xbf, 0x1401591bf\nmov     edx, 64h ; 'd'                                                 ; +0xc6, 0x1401591c6\ncall    rax                                                            ; +0xcb, 0x1401591cb\ntest    rax, rax                                                       ; +0xcd, 0x1401591cd\njz      short loc_1401591E4                                            ; +0xd0, 0x1401591d0\nmov     rcx, [rax]                                                     ; +0xd2, 0x1401591d2\nmov     r8, [rcx+150h]                                                 ; +0xd5, 0x1401591d5\nxor     edx, edx                                                       ; +0xdc, 0x1401591dc\nmov     rcx, rax                                                       ; +0xde, 0x1401591de\ncall    r8                                                             ; +0xe1, 0x1401591e1\nmov     rax, [rbx+230h]                                                ; +0xe4, 0x1401591e4\nmov     byte ptr [rax+31Ch], 0                                         ; +0xeb, 0x1401591eb\ncall    GJAccountManager__sharedState                                  ; +0xf2, 0x1401591f2\nmov     edi, [rax+168h]                                                ; +0xf7, 0x1401591f7\nsub     edi, [rax+16Ch]                                                ; +0xfd, 0x1401591fd\nmov     rcx, cs:qword_14090BFB0                                        ; +0x103, 0x140159203\ntest    rcx, rcx                                                       ; +0x10a, 0x14015920a\njnz     short loc_140159241                                            ; +0x10d, 0x14015920d\nmov     ecx, 690h; Size                                                ; +0x10f, 0x14015920f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x114, 0x140159214\nmov     [rsp+28h+arg_0], rax                                           ; +0x119, 0x140159219\nmov     rcx, rax                                                       ; +0x11e, 0x14015921e\ncall    GameLevelManager__GameLevelManager                             ; +0x121, 0x140159221\nnop                                                                    ; +0x126, 0x140159226\nmov     cs:qword_14090BFB0, rax                                        ; +0x127, 0x140159227\nmov     rcx, [rax]                                                     ; +0x12e, 0x14015922e\nmov     rdx, [rcx+48h]                                                 ; +0x131, 0x140159231\nmov     rcx, rax                                                       ; +0x135, 0x140159235\ncall    rdx                                                            ; +0x138, 0x140159238\nmov     rcx, cs:qword_14090BFB0                                        ; +0x13a, 0x14015923a\nmovsxd  rdx, edi                                                       ; +0x141, 0x140159241\nmov     rcx, [rcx+4D0h]                                                ; +0x144, 0x140159244\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x14b, 0x14015924b\ntest    rax, rax                                                       ; +0x151, 0x140159251\njz      short loc_14015926A                                            ; +0x154, 0x140159254\nmov     ecx, [rax+300h]                                                ; +0x156, 0x140159256\nxor     edx, edx                                                       ; +0x15c, 0x14015925c\nsub     ecx, 1                                                         ; +0x15e, 0x14015925e\ncmovs   ecx, edx                                                       ; +0x161, 0x140159261\nmov     [rax+300h], ecx                                                ; +0x164, 0x140159264\nmovzx   edx, byte ptr [rbx+240h]                                       ; +0x16a, 0x14015926a\nmov     rcx, rsi                                                       ; +0x171, 0x140159271\ncall    FriendRequestPopup__create                                     ; +0x174, 0x140159274\nmov     rcx, [rax]                                                     ; +0x179, 0x140159279\nmov     rdx, [rcx+428h]                                                ; +0x17c, 0x14015927c\nmov     rcx, rax                                                       ; +0x183, 0x140159283\ncall    rdx                                                            ; +0x186, 0x140159286\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x188, 0x140159288\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x18d, 0x14015928d\nadd     rsp, 20h                                                       ; +0x192, 0x140159292\npop     rdi                                                            ; +0x196, 0x140159296\nretn                                                                   ; +0x197, 0x140159297", "xrefs": ["GJRequestCell::loadFromScore @ 0x140158f36", "<???> @ 0x140917a08"], "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"}