{"type": "func", "start": 5371423552, "end": 5371423816, "name": "FriendRequestPopup::onAccept", "pseudocode": "// \n// FriendRequestPopup::onAccept from 0x140296b40 to 0x140296c48 (264 bytes)\n// \n// 2 xrefs:\n// > FriendRequestPopup::loadFromGJFriendRequest @ 0x1402967a6\n// > <???> @ 0x1406d1bf8\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\n// Hidden C++ exception states: #wind=1\nvoid FriendRequestPopup::onAccept(FriendRequestPopup *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // rcx\n  UploadActionPopup *v4; // rax\n  __int128 v5; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v6; // [rsp+30h] [rbp-18h]\n  __int64 v7; // [rsp+38h] [rbp-10h]\n  void *v8; // [rsp+50h] [rbp+8h]\n\n  v3 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v8 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280((__int64)v8);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v3 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  if ( GameLevelManager::acceptFriendRequest(v3, a1->m_request->m_accountID, a1->m_request->m_requestID) )\n  {\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003AA10(0x20u);\n    v6 = 27;\n    v7 = 31;\n    strcpy((char *)v5, \"Accepting Friend Request...\");\n    v4 = (UploadActionPopup *)UploadActionPopup::create((__int64)&a1->UploadPopupDelegate, (__int64)&v5);\n    a1->m_popup = v4;\n    v4->show(v4);\n  }\n}", "assembly": "; \n; FriendRequestPopup::onAccept from 0x140296b40 to 0x140296c48 (264 bytes)\n; \n; 2 xrefs:\n; > FriendRequestPopup::loadFromGJFriendRequest @ 0x1402967a6\n; > <???> @ 0x1406d1bf8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140296b40\npush    rdi                                                            ; +0x5, 0x140296b45\nsub     rsp, 40h                                                       ; +0x6, 0x140296b46\nmov     rdi, rcx                                                       ; +0xa, 0x140296b4a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xd, 0x140296b4d\ntest    rcx, rcx                                                       ; +0x14, 0x140296b54\njnz     short loc_140296B88                                            ; +0x17, 0x140296b57\nmov     ecx, 3D0h; Size                                                ; +0x19, 0x140296b59\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x140296b5e\nmov     [rsp+48h+arg_0], rax                                           ; +0x23, 0x140296b63\nmov     rcx, rax                                                       ; +0x28, 0x140296b68\ncall    sub_140141280                                                  ; +0x2b, 0x140296b6b\nnop                                                                    ; +0x30, 0x140296b70\nmov     cs:qword_1406C2EC0, rax                                        ; +0x31, 0x140296b71\nmov     rdx, [rax]                                                     ; +0x38, 0x140296b78\nmov     rcx, rax                                                       ; +0x3b, 0x140296b7b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x140296b7e\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x41, 0x140296b81\nmov     rdx, [rdi+298h]                                                ; +0x48, 0x140296b88\nmov     r8d, [rdx+140h]                                                ; +0x4f, 0x140296b8f\nmov     edx, [rdx+144h]                                                ; +0x56, 0x140296b96\ncall    GameLevelManager__acceptFriendRequest                          ; +0x5c, 0x140296b9c\ntest    al, al                                                         ; +0x61, 0x140296ba1\njz      loc_140296C3D                                                  ; +0x63, 0x140296ba3\nxorps   xmm0, xmm0                                                     ; +0x69, 0x140296ba9\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x6c, 0x140296bac\nmov     [rsp+48h+var_18], 0                                            ; +0x71, 0x140296bb1\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x7a, 0x140296bba\nmov     ecx, 20h ; ' '                                                 ; +0x83, 0x140296bc3\ncall    sub_14003AA10                                                  ; +0x88, 0x140296bc8\nmov     r8, rax                                                        ; +0x8d, 0x140296bcd\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x90, 0x140296bd0\nmov     [rsp+48h+var_18], 1Bh                                          ; +0x95, 0x140296bd5\nmov     [rsp+48h+var_10], 1Fh                                          ; +0x9e, 0x140296bde\nmovups  xmm0, cs:xmmword_140570B78                                     ; +0xa7, 0x140296be7\nmovups  xmmword ptr [rax], xmm0                                        ; +0xae, 0x140296bee\nmovsd   xmm0, cs:qword_140570B88                                       ; +0xb1, 0x140296bf1\nmovsd   qword ptr [rax+10h], xmm0                                      ; +0xb9, 0x140296bf9\nmovzx   edx, cs:word_140570B90                                         ; +0xbe, 0x140296bfe\nmov     [rax+18h], dx                                                  ; +0xc5, 0x140296c05\nmovzx   eax, cs:byte_140570B92                                         ; +0xc9, 0x140296c09\nmov     [r8+1Ah], al                                                   ; +0xd0, 0x140296c10\nmov     byte ptr [r8+1Bh], 0                                           ; +0xd4, 0x140296c14\nlea     rdx, [rsp+48h+var_28]                                          ; +0xd9, 0x140296c19\nlea     rcx, [rdi+280h]                                                ; +0xde, 0x140296c1e\ncall    UploadActionPopup__create                                      ; +0xe5, 0x140296c25\nmov     [rdi+2B0h], rax                                                ; +0xea, 0x140296c2a\nmov     rdx, [rax]                                                     ; +0xf1, 0x140296c31\nmov     rcx, rax                                                       ; +0xf4, 0x140296c34\ncall    qword ptr [rdx+410h]                                           ; +0xf7, 0x140296c37\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xfd, 0x140296c3d\nadd     rsp, 40h                                                       ; +0x102, 0x140296c42\npop     rdi                                                            ; +0x106, 0x140296c46\nretn                                                                   ; +0x107, 0x140296c47", "xrefs": ["FriendRequestPopup::loadFromGJFriendRequest @ 0x1402967a6", "<???> @ 0x1406d1bf8"], "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"}