{"type": "func", "start": 4297328336, "end": 4297328616, "name": "GJRequestCell::onViewFriendRequest", "pseudocode": "// \n// GJRequestCell::onViewFriendRequest from 0x1002406d0 to 0x1002407e8 (280 bytes)\n// \n// 1 xrefs:\n// > GJRequestCell::loadFromScore @ 0x100231f48\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 12:27:17 +0000\n// \n\n__int64 __fastcall GJRequestCell::onViewFriendRequest(__int64 a1, double a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rax\n  __int64 v5; // rdx\n  __int64 v6; // rcx\n  __int64 v7; // r15\n  __int64 v8; // rdi\n  __int64 v9; // rsi\n  __int64 v10; // rax\n  __int64 v11; // r14\n  __int64 v12; // rax\n  int v13; // esi\n  __int64 v14; // rax\n\n  result = *(_QWORD *)(a1 + 552);\n  if ( result )\n  {\n    if ( *(int *)(result + 376) > 0 )\n    {\n      v4 = GameLevelManager::sharedState(a2);\n      result = GameLevelManager::friendRequestFromAccountID(v4, *(unsigned int *)(*(_QWORD *)(a1 + 552) + 376LL));\n      if ( result )\n      {\n        if ( !*(_BYTE *)(a1 + 568) )\n        {\n          v6 = *(_QWORD *)(a1 + 552);\n          if ( *(_BYTE *)(v6 + 724) == 1 )\n          {\n            v7 = result;\n            v8 = *(_QWORD *)(a1 + 536);\n            v9 = 100;\n            v10 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 480LL))(v8, 100);\n            if ( v10 )\n            {\n              v8 = v10;\n              v9 = 0;\n              a2 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 344LL))(v10, 0);\n            }\n            *(_BYTE *)(*(_QWORD *)(a1 + 552) + 724LL) = 0;\n            v11 = GameLevelManager::sharedState(a2);\n            v12 = GJAccountManager::sharedState(v8, v9);\n            v6 = GameLevelManager::userInfoForAccountID(\n                   v11,\n                   (unsigned int)(*(_DWORD *)(v12 + 352) - *(_DWORD *)(v12 + 356)));\n            result = v7;\n            if ( v6 )\n            {\n              v5 = *(unsigned int *)(v6 + 696);\n              v13 = 1;\n              if ( (int)v5 >= 2 )\n                v13 = *(_DWORD *)(v6 + 696);\n              *(_DWORD *)(v6 + 696) = v13 - 1;\n            }\n          }\n        }\n        v14 = FriendRequestPopup::create(result, *(unsigned __int8 *)(a1 + 568), v5, v6);\n        return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v14 + 1312LL))(v14);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJRequestCell::onViewFriendRequest from 0x1002406d0 to 0x1002407e8 (280 bytes)\n; \n; 1 xrefs:\n; > GJRequestCell::loadFromScore @ 0x100231f48\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 12:27:17 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002406d0\nmov     rbp, rsp                                                       ; +0x1, 0x1002406d1\npush    r15                                                            ; +0x4, 0x1002406d4\npush    r14                                                            ; +0x6, 0x1002406d6\npush    rbx                                                            ; +0x8, 0x1002406d8\npush    rax                                                            ; +0x9, 0x1002406d9\nmov     rax, [rdi+228h]                                                ; +0xa, 0x1002406da\ntest    rax, rax                                                       ; +0x11, 0x1002406e1\njz      loc_1002407DD                                                  ; +0x14, 0x1002406e4\ncmp     dword ptr [rax+178h], 0                                        ; +0x1a, 0x1002406ea\njle     loc_1002407DD                                                  ; +0x21, 0x1002406f1\nmov     rbx, rdi                                                       ; +0x27, 0x1002406f7\ncall    GameLevelManager__sharedState                                  ; +0x2a, 0x1002406fa\nmov     rcx, [rbx+228h]                                                ; +0x2f, 0x1002406ff\nmov     esi, [rcx+178h]                                                ; +0x36, 0x100240706\nmov     rdi, rax                                                       ; +0x3c, 0x10024070c\ncall    GameLevelManager__friendRequestFromAccountID                   ; +0x3f, 0x10024070f\ntest    rax, rax                                                       ; +0x44, 0x100240714\njz      loc_1002407DD                                                  ; +0x47, 0x100240717\ncmp     byte ptr [rbx+238h], 0                                         ; +0x4d, 0x10024071d\njnz     loc_1002407B8                                                  ; +0x54, 0x100240724\nmov     rcx, [rbx+228h]                                                ; +0x5a, 0x10024072a\ncmp     byte ptr [rcx+2D4h], 1                                         ; +0x61, 0x100240731\njnz     short loc_1002407B8                                            ; +0x68, 0x100240738\nmov     r15, rax                                                       ; +0x6a, 0x10024073a\nmov     rdi, [rbx+218h]                                                ; +0x6d, 0x10024073d\nmov     rax, [rdi]                                                     ; +0x74, 0x100240744\nmov     esi, 64h ; 'd'                                                 ; +0x77, 0x100240747\ncall    qword ptr [rax+1E0h]                                           ; +0x7c, 0x10024074c\ntest    rax, rax                                                       ; +0x82, 0x100240752\njz      short loc_100240765                                            ; +0x85, 0x100240755\nmov     rcx, [rax]                                                     ; +0x87, 0x100240757\nmov     rdi, rax                                                       ; +0x8a, 0x10024075a\nxor     esi, esi                                                       ; +0x8d, 0x10024075d\ncall    qword ptr [rcx+158h]                                           ; +0x8f, 0x10024075f\nmov     rax, [rbx+228h]                                                ; +0x95, 0x100240765\nmov     byte ptr [rax+2D4h], 0                                         ; +0x9c, 0x10024076c\ncall    GameLevelManager__sharedState                                  ; +0xa3, 0x100240773\nmov     r14, rax                                                       ; +0xa8, 0x100240778\ncall    GJAccountManager__sharedState                                  ; +0xab, 0x10024077b\nmov     esi, [rax+160h]                                                ; +0xb0, 0x100240780\nsub     esi, [rax+164h]                                                ; +0xb6, 0x100240786\nmov     rdi, r14                                                       ; +0xbc, 0x10024078c\ncall    GameLevelManager__userInfoForAccountID                         ; +0xbf, 0x10024078f\nmov     rcx, rax                                                       ; +0xc4, 0x100240794\ntest    rax, rax                                                       ; +0xc7, 0x100240797\nmov     rax, r15                                                       ; +0xca, 0x10024079a\njz      short loc_1002407B8                                            ; +0xcd, 0x10024079d\nmov     edx, [rcx+2B8h]                                                ; +0xcf, 0x10024079f\ncmp     edx, 2                                                         ; +0xd5, 0x1002407a5\nmov     esi, 1                                                         ; +0xd8, 0x1002407a8\ncmovge  esi, edx                                                       ; +0xdd, 0x1002407ad\ndec     esi                                                            ; +0xe0, 0x1002407b0\nmov     [rcx+2B8h], esi                                                ; +0xe2, 0x1002407b2\nmovzx   esi, byte ptr [rbx+238h]                                       ; +0xe8, 0x1002407b8\nmov     rdi, rax                                                       ; +0xef, 0x1002407bf\ncall    FriendRequestPopup__create                                     ; +0xf2, 0x1002407c2\nmov     rcx, [rax]                                                     ; +0xf7, 0x1002407c7\nmov     rdi, rax                                                       ; +0xfa, 0x1002407ca\nadd     rsp, 8                                                         ; +0xfd, 0x1002407cd\npop     rbx                                                            ; +0x101, 0x1002407d1\npop     r14                                                            ; +0x102, 0x1002407d2\npop     r15                                                            ; +0x104, 0x1002407d4\npop     rbp                                                            ; +0x106, 0x1002407d6\njmp     qword ptr [rcx+520h]                                           ; +0x107, 0x1002407d7\nadd     rsp, 8                                                         ; +0x10d, 0x1002407dd\npop     rbx                                                            ; +0x111, 0x1002407e1\npop     r14                                                            ; +0x112, 0x1002407e2\npop     r15                                                            ; +0x114, 0x1002407e4\npop     rbp                                                            ; +0x116, 0x1002407e6\nretn                                                                   ; +0x117, 0x1002407e7", "xrefs": ["GJRequestCell::loadFromScore @ 0x100231f48"], "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"}