{"type": "func", "start": 5371423824, "end": 5371424072, "name": "FriendRequestPopup::onRemove", "pseudocode": "// \n// FriendRequestPopup::onRemove from 0x140296c50 to 0x140296d48 (248 bytes)\n// \n// 2 xrefs:\n// > FriendRequestPopup::loadFromGJFriendRequest @ 0x140296894\n// > <???> @ 0x1406d1c04\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 FriendRequestPopup::onRemove(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::deleteFriendRequests(v3, a1->m_request->m_accountID, nullptr, 0) )\n  {\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003AA10(0x20u);\n    v6 = 26;\n    v7 = 31;\n    strcpy((char *)v5, \"Removing 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::onRemove from 0x140296c50 to 0x140296d48 (248 bytes)\n; \n; 2 xrefs:\n; > FriendRequestPopup::loadFromGJFriendRequest @ 0x140296894\n; > <???> @ 0x1406d1c04\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, 0x140296c50\npush    rdi                                                            ; +0x5, 0x140296c55\nsub     rsp, 40h                                                       ; +0x6, 0x140296c56\nmov     rdi, rcx                                                       ; +0xa, 0x140296c5a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xd, 0x140296c5d\ntest    rcx, rcx                                                       ; +0x14, 0x140296c64\njnz     short loc_140296C98                                            ; +0x17, 0x140296c67\nmov     ecx, 3D0h; Size                                                ; +0x19, 0x140296c69\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x140296c6e\nmov     [rsp+48h+arg_0], rax                                           ; +0x23, 0x140296c73\nmov     rcx, rax                                                       ; +0x28, 0x140296c78\ncall    sub_140141280                                                  ; +0x2b, 0x140296c7b\nnop                                                                    ; +0x30, 0x140296c80\nmov     cs:qword_1406C2EC0, rax                                        ; +0x31, 0x140296c81\nmov     rdx, [rax]                                                     ; +0x38, 0x140296c88\nmov     rcx, rax                                                       ; +0x3b, 0x140296c8b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x140296c8e\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x41, 0x140296c91\nmov     rdx, [rdi+298h]                                                ; +0x48, 0x140296c98\nxor     r9d, r9d                                                       ; +0x4f, 0x140296c9f\nxor     r8d, r8d                                                       ; +0x52, 0x140296ca2\nmov     edx, [rdx+144h]                                                ; +0x55, 0x140296ca5\ncall    GameLevelManager__deleteFriendRequests                         ; +0x5b, 0x140296cab\ntest    al, al                                                         ; +0x60, 0x140296cb0\njz      loc_140296D3D                                                  ; +0x62, 0x140296cb2\nxorps   xmm0, xmm0                                                     ; +0x68, 0x140296cb8\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x6b, 0x140296cbb\nmov     [rsp+48h+var_18], 0                                            ; +0x70, 0x140296cc0\nmov     [rsp+48h+var_10], 0Fh                                          ; +0x79, 0x140296cc9\nmov     ecx, 20h ; ' '                                                 ; +0x82, 0x140296cd2\ncall    sub_14003AA10                                                  ; +0x87, 0x140296cd7\nmov     qword ptr [rsp+48h+var_28], rax                                ; +0x8c, 0x140296cdc\nmov     [rsp+48h+var_18], 1Ah                                          ; +0x91, 0x140296ce1\nmov     [rsp+48h+var_10], 1Fh                                          ; +0x9a, 0x140296cea\nmovups  xmm0, cs:xmmword_140547280                                     ; +0xa3, 0x140296cf3\nmovups  xmmword ptr [rax], xmm0                                        ; +0xaa, 0x140296cfa\nmovsd   xmm0, cs:qword_140547290                                       ; +0xad, 0x140296cfd\nmovsd   qword ptr [rax+10h], xmm0                                      ; +0xb5, 0x140296d05\nmovzx   edx, cs:word_140547298                                         ; +0xba, 0x140296d0a\nmov     [rax+18h], dx                                                  ; +0xc1, 0x140296d11\nmov     byte ptr [rax+1Ah], 0                                          ; +0xc5, 0x140296d15\nlea     rdx, [rsp+48h+var_28]                                          ; +0xc9, 0x140296d19\nlea     rcx, [rdi+280h]                                                ; +0xce, 0x140296d1e\ncall    UploadActionPopup__create                                      ; +0xd5, 0x140296d25\nmov     [rdi+2B0h], rax                                                ; +0xda, 0x140296d2a\nmov     rdx, [rax]                                                     ; +0xe1, 0x140296d31\nmov     rcx, rax                                                       ; +0xe4, 0x140296d34\ncall    qword ptr [rdx+410h]                                           ; +0xe7, 0x140296d37\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xed, 0x140296d3d\nadd     rsp, 40h                                                       ; +0xf2, 0x140296d42\npop     rdi                                                            ; +0xf6, 0x140296d46\nretn                                                                   ; +0xf7, 0x140296d47", "xrefs": ["FriendRequestPopup::loadFromGJFriendRequest @ 0x140296894", "<???> @ 0x1406d1c04"], "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"}