{"type": "func", "start": 4297744016, "end": 4297744197, "name": "FriendRequestPopup::onAccept", "pseudocode": "// \n// FriendRequestPopup::onAccept from 0x1002a5e90 to 0x1002a5f45 (181 bytes)\n// \n// 1 xrefs:\n// > FriendRequestPopup::loadFromGJFriendRequest @ 0x1002a5bd6\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\nvoid __fastcall FriendRequestPopup::onAccept(FriendRequestPopup *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v2; // rax\n  char *v3; // r14\n  __int128 v4; // [rsp+0h] [rbp-30h] BYREF\n  char *v5; // [rsp+10h] [rbp-20h]\n\n  v2 = GameLevelManager::sharedState();\n  if ( GameLevelManager::acceptFriendRequest(v2, a1->m_request->m_accountID, a1->m_request->m_requestID) )\n  {\n    v3 = (char *)operator new(0x20u);\n    v5 = v3;\n    *(_QWORD *)&v4 = 33;\n    *((_QWORD *)&v4 + 1) = 27;\n    strcpy(v3, \"Accepting Friend Request...\");\n    a1->m_popup = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate, &v4);\n    operator delete(v3);\n    ((void (__fastcall *)(UploadActionPopup *))a1->m_popup->show)(a1->m_popup);\n  }\n}", "assembly": "; \n; FriendRequestPopup::onAccept from 0x1002a5e90 to 0x1002a5f45 (181 bytes)\n; \n; 1 xrefs:\n; > FriendRequestPopup::loadFromGJFriendRequest @ 0x1002a5bd6\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    rbp                                                            ; +0x0, 0x1002a5e90\nmov     rbp, rsp                                                       ; +0x1, 0x1002a5e91\npush    r15                                                            ; +0x4, 0x1002a5e94\npush    r14                                                            ; +0x6, 0x1002a5e96\npush    rbx                                                            ; +0x8, 0x1002a5e98\nsub     rsp, 18h                                                       ; +0x9, 0x1002a5e99\nmov     rbx, rdi                                                       ; +0xd, 0x1002a5e9d\ncall    GameLevelManager__sharedState                                  ; +0x10, 0x1002a5ea0\nmov     rcx, [rbx+298h]                                                ; +0x15, 0x1002a5ea5\nmov     edx, [rcx+13Ch]                                                ; +0x1c, 0x1002a5eac\nmov     esi, [rcx+140h]                                                ; +0x22, 0x1002a5eb2\nmov     rdi, rax                                                       ; +0x28, 0x1002a5eb8\ncall    GameLevelManager__acceptFriendRequest                          ; +0x2b, 0x1002a5ebb\ntest    al, al                                                         ; +0x30, 0x1002a5ec0\njz      short loc_1002A5F3A                                            ; +0x32, 0x1002a5ec2\nlea     r15, [rbx+280h]                                                ; +0x34, 0x1002a5ec4\nmov     edi, 20h ; ' '; __sz                                           ; +0x3b, 0x1002a5ecb\ncall    __Znwm; operator new(ulong)                                    ; +0x40, 0x1002a5ed0\nmov     r14, rax                                                       ; +0x45, 0x1002a5ed5\nmov     [rbp+var_20], rax                                              ; +0x48, 0x1002a5ed8\nmov     [rbp+var_30], 21h ; '!'                                        ; +0x4c, 0x1002a5edc\nmov     [rbp+var_28], 1Bh                                              ; +0x54, 0x1002a5ee4\nmovups  xmm0, xmmword ptr cs:aAcceptingFrien+0Bh; \"riend Request...\"   ; +0x5c, 0x1002a5eec\nmovups  xmmword ptr [rax+0Bh], xmm0                                    ; +0x63, 0x1002a5ef3\nmovups  xmm0, xmmword ptr cs:aAcceptingFrien; \"Accepting Friend Request...\" ; +0x67, 0x1002a5ef7\nmovups  xmmword ptr [rax], xmm0                                        ; +0x6e, 0x1002a5efe\nmov     byte ptr [rax+1Bh], 0                                          ; +0x71, 0x1002a5f01\nlea     rsi, [rbp+var_30]                                              ; +0x75, 0x1002a5f05\nmov     rdi, r15                                                       ; +0x79, 0x1002a5f09\ncall    UploadActionPopup__create                                      ; +0x7c, 0x1002a5f0c\nmov     [rbx+2B0h], rax                                                ; +0x81, 0x1002a5f11\nmov     rdi, r14; __p                                                  ; +0x88, 0x1002a5f18\ncall    __ZdlPv; operator delete(void *)                               ; +0x8b, 0x1002a5f1b\nmov     rdi, [rbx+2B0h]                                                ; +0x90, 0x1002a5f20\nmov     rax, [rdi]                                                     ; +0x97, 0x1002a5f27\nadd     rsp, 18h                                                       ; +0x9a, 0x1002a5f2a\npop     rbx                                                            ; +0x9e, 0x1002a5f2e\npop     r14                                                            ; +0x9f, 0x1002a5f2f\npop     r15                                                            ; +0xa1, 0x1002a5f31\npop     rbp                                                            ; +0xa3, 0x1002a5f33\njmp     qword ptr [rax+508h]                                           ; +0xa4, 0x1002a5f34\nadd     rsp, 18h                                                       ; +0xaa, 0x1002a5f3a\npop     rbx                                                            ; +0xae, 0x1002a5f3e\npop     r14                                                            ; +0xaf, 0x1002a5f3f\npop     r15                                                            ; +0xb1, 0x1002a5f41\npop     rbp                                                            ; +0xb3, 0x1002a5f43\nretn                                                                   ; +0xb4, 0x1002a5f44", "xrefs": ["FriendRequestPopup::loadFromGJFriendRequest @ 0x1002a5bd6"], "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"}