{"type": "func", "start": 5371423392, "end": 5371423547, "name": "FriendRequestPopup::onClose", "pseudocode": "// \n// FriendRequestPopup::onClose from 0x140296aa0 to 0x140296b3b (155 bytes)\n// \n// 4 xrefs:\n// > FriendRequestPopup::keyBackClicked @ 0x140296fb9\n// > FriendRequestPopup::onClosePopup @ 0x140297279\n// > FriendRequestPopup::init @ 0x140295f3d\n// > <???> @ 0x1406d1bec\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::onClose(FriendRequestPopup *a1, cocos2d::CCObject *a2)\n{\n  GJFriendRequest *m_request; // rax\n  GameLevelManager *v4; // rcx\n  _BOOL8 v5; // rdx\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  m_request = a1->m_request;\n  if ( m_request && !m_request->m_isRead )\n  {\n    v4 = (GameLevelManager *)qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v6 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v4 = (GameLevelManager *)qword_1406C2EC0;\n    }\n    GameLevelManager::readFriendRequest(v4, a1->m_request->m_requestID);\n    a1->m_request->m_isRead = 1;\n  }\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v5) = 1;\n  a1->removeFromParentAndCleanup(a1, v5);\n}", "assembly": "; \n; FriendRequestPopup::onClose from 0x140296aa0 to 0x140296b3b (155 bytes)\n; \n; 4 xrefs:\n; > FriendRequestPopup::keyBackClicked @ 0x140296fb9\n; > FriendRequestPopup::onClosePopup @ 0x140297279\n; > FriendRequestPopup::init @ 0x140295f3d\n; > <???> @ 0x1406d1bec\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    rbx                                                            ; +0x0, 0x140296aa0\nsub     rsp, 20h                                                       ; +0x2, 0x140296aa2\nmov     rbx, rcx                                                       ; +0x6, 0x140296aa6\nmov     rax, [rcx+298h]                                                ; +0x9, 0x140296aa9\ntest    rax, rax                                                       ; +0x10, 0x140296ab0\njz      short loc_140296B19                                            ; +0x13, 0x140296ab3\ncmp     byte ptr [rax+190h], 0                                         ; +0x15, 0x140296ab5\njnz     short loc_140296B19                                            ; +0x1c, 0x140296abc\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x1e, 0x140296abe\ntest    rcx, rcx                                                       ; +0x25, 0x140296ac5\njnz     short loc_140296AF9                                            ; +0x28, 0x140296ac8\nmov     ecx, 3D0h; Size                                                ; +0x2a, 0x140296aca\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2f, 0x140296acf\nmov     [rsp+28h+arg_0], rax                                           ; +0x34, 0x140296ad4\nmov     rcx, rax                                                       ; +0x39, 0x140296ad9\ncall    sub_140141280                                                  ; +0x3c, 0x140296adc\nnop                                                                    ; +0x41, 0x140296ae1\nmov     cs:qword_1406C2EC0, rax                                        ; +0x42, 0x140296ae2\nmov     rdx, [rax]                                                     ; +0x49, 0x140296ae9\nmov     rcx, rax                                                       ; +0x4c, 0x140296aec\ncall    qword ptr [rdx+48h]                                            ; +0x4f, 0x140296aef\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x52, 0x140296af2\nmov     rdx, [rbx+298h]                                                ; +0x59, 0x140296af9\nmov     edx, [rdx+140h]                                                ; +0x60, 0x140296b00\ncall    GameLevelManager__readFriendRequest                            ; +0x66, 0x140296b06\nmov     rax, [rbx+298h]                                                ; +0x6b, 0x140296b0b\nmov     byte ptr [rax+190h], 1                                         ; +0x72, 0x140296b12\nmov     rax, [rbx]                                                     ; +0x79, 0x140296b19\nxor     edx, edx                                                       ; +0x7c, 0x140296b1c\nmov     rcx, rbx                                                       ; +0x7e, 0x140296b1e\ncall    qword ptr [rax+3D0h]                                           ; +0x81, 0x140296b21\nmov     rax, [rbx]                                                     ; +0x87, 0x140296b27\nmov     dl, 1                                                          ; +0x8a, 0x140296b2a\nmov     rcx, rbx                                                       ; +0x8c, 0x140296b2c\nadd     rsp, 20h                                                       ; +0x8f, 0x140296b2f\npop     rbx                                                            ; +0x93, 0x140296b33\njmp     qword ptr [rax+1F8h]                                           ; +0x94, 0x140296b34", "xrefs": ["FriendRequestPopup::keyBackClicked @ 0x140296fb9", "FriendRequestPopup::onClosePopup @ 0x140297279", "FriendRequestPopup::init @ 0x140295f3d", "<???> @ 0x1406d1bec"], "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"}