{"type": "func", "start": 5372660464, "end": 5372661211, "name": "ProfilePage::FLAlert_Clicked", "pseudocode": "// \n// ProfilePage::FLAlert_Clicked from 0x1403c4af0 to 0x1403c4ddb (747 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405cb398\n// > <???> @ 0x1406d77d8\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=6\nvoid ProfilePage::FLAlert_Clicked(ProfilePage *a1, FLAlertLayer *a2, bool a3)\n{\n  int *p_m_uIndexInArray; // rsi\n  GameLevelManager *v6; // rcx\n  int *p_m_unknown2; // rcx\n  cocos2d::CCGridBase *v8; // rax\n  int *v9; // rsi\n  GameLevelManager *v10; // rcx\n  void **p_m_pUserData; // rsi\n  int *v12; // rbx\n  GameLevelManager *v13; // rcx\n  __int128 v14; // [rsp+20h] [rbp-20h] BYREF\n  __int64 v15; // [rsp+30h] [rbp-10h]\n  __int64 v16; // [rsp+38h] [rbp-8h]\n  void *v17; // [rsp+78h] [rbp+38h]\n  void *v18; // [rsp+78h] [rbp+38h]\n  void *v19; // [rsp+78h] [rbp+38h]\n\n  if ( a3 )\n  {\n    if ( a2->getTag(a2) == 1 )\n    {\n      p_m_uIndexInArray = &a1->m_uIndexInArray;\n      if ( a1 == (ProfilePage *)632 )\n        p_m_uIndexInArray = nullptr;\n      v6 = (GameLevelManager *)qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v17 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280((__int64)v17);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v6 = (GameLevelManager *)qword_1406C2EC0;\n      }\n      v6->m_uploadActionDelegate = (UploadActionDelegate *)p_m_uIndexInArray;\n      if ( GameLevelManager::deleteFriendRequests(v6, LODWORD(a1->m_fScaleX), nullptr, 1) )\n      {\n        v14 = 0;\n        *(_QWORD *)&v14 = sub_14003AA10(0x20u);\n        v15 = 26;\n        v16 = 31;\n        strcpy((char *)v14, \"Removing Friend Request...\");\n        p_m_unknown2 = &a1->m_unknown2;\n        if ( a1 == (ProfilePage *)632 )\n          p_m_unknown2 = nullptr;\nLABEL_10:\n        v8 = (cocos2d::CCGridBase *)UploadActionPopup::create((__int64)p_m_unknown2, (__int64)&v14);\n        a1->m_pGrid = v8;\nLABEL_27:\n        v8->__vftable[10].reuse(v8);\n      }\n    }\n    else if ( a2->getTag(a2) == 2 )\n    {\n      v9 = &a1->m_uIndexInArray;\n      if ( a1 == (ProfilePage *)632 )\n        v9 = nullptr;\n      v10 = (GameLevelManager *)qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v18 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280((__int64)v18);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v10 = (GameLevelManager *)qword_1406C2EC0;\n      }\n      v10->m_uploadActionDelegate = (UploadActionDelegate *)v9;\n      if ( GameLevelManager::removeFriend(v10, LODWORD(a1->m_fScaleX)) )\n      {\n        v14 = 0;\n        *(_QWORD *)&v14 = sub_14003AA10(0x20u);\n        v15 = 18;\n        v16 = 31;\n        strcpy((char *)v14, \"Removing Friend...\");\n        p_m_unknown2 = &a1->m_unknown2;\n        if ( a1 == (ProfilePage *)632 )\n          p_m_unknown2 = nullptr;\n        goto LABEL_10;\n      }\n    }\n    else if ( a2->getTag(a2) == 3 )\n    {\n      p_m_pUserData = &a1[-1].m_pUserData;\n      v12 = &a1->m_uIndexInArray;\n      if ( !p_m_pUserData )\n        v12 = nullptr;\n      v13 = (GameLevelManager *)qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v19 = operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280((__int64)v19);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v13 = (GameLevelManager *)qword_1406C2EC0;\n      }\n      v13->m_uploadActionDelegate = (UploadActionDelegate *)v12;\n      if ( GameLevelManager::blockUser(v13, *((_DWORD *)p_m_pUserData[86] + 98)) )\n      {\n        v14 = 0;\n        *(_QWORD *)&v14 = sub_14003AA10(0x20u);\n        v15 = 16;\n        v16 = 31;\n        strcpy((char *)v14, \"Blocking user...\");\n        v8 = (cocos2d::CCGridBase *)UploadActionPopup::create((__int64)(p_m_pUserData + 84), (__int64)&v14);\n        p_m_pUserData[104] = v8;\n        goto LABEL_27;\n      }\n    }\n  }\n}", "assembly": "; \n; ProfilePage::FLAlert_Clicked from 0x1403c4af0 to 0x1403c4ddb (747 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405cb398\n; > <???> @ 0x1406d77d8\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\ntest    r8b, r8b                                                       ; +0x0, 0x1403c4af0\njz      locret_1403C4DDA                                               ; +0x3, 0x1403c4af3\nmov     [rsp-18h+arg_0], rbx                                           ; +0x9, 0x1403c4af9\nmov     [rsp-18h+arg_8], rsi                                           ; +0xe, 0x1403c4afe\npush    rbp                                                            ; +0x13, 0x1403c4b03\npush    rdi                                                            ; +0x14, 0x1403c4b04\npush    r14                                                            ; +0x15, 0x1403c4b05\nmov     rbp, rsp                                                       ; +0x17, 0x1403c4b07\nsub     rsp, 40h                                                       ; +0x1a, 0x1403c4b0a\nmov     rdi, rdx                                                       ; +0x1e, 0x1403c4b0e\nmov     rbx, rcx                                                       ; +0x21, 0x1403c4b11\nmov     rax, [rdx]                                                     ; +0x24, 0x1403c4b14\nmov     rcx, rdx                                                       ; +0x27, 0x1403c4b17\ncall    qword ptr [rax+38h]                                            ; +0x2a, 0x1403c4b1a\ncmp     eax, 1                                                         ; +0x2d, 0x1403c4b1d\njnz     loc_1403C4C08                                                  ; +0x30, 0x1403c4b20\nlea     r14, [rbx-278h]                                                ; +0x36, 0x1403c4b26\nlea     rsi, [rbx+20h]                                                 ; +0x3d, 0x1403c4b2d\nxor     edi, edi                                                       ; +0x41, 0x1403c4b31\ntest    r14, r14                                                       ; +0x43, 0x1403c4b33\ncmovz   rsi, rdi                                                       ; +0x46, 0x1403c4b36\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x4a, 0x1403c4b3a\ntest    rcx, rcx                                                       ; +0x51, 0x1403c4b41\njnz     short loc_1403C4B74                                            ; +0x54, 0x1403c4b44\nmov     ecx, 3D0h; Size                                                ; +0x56, 0x1403c4b46\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5b, 0x1403c4b4b\nmov     [rbp+arg_18], rax                                              ; +0x60, 0x1403c4b50\nmov     rcx, rax                                                       ; +0x64, 0x1403c4b54\ncall    sub_140141280                                                  ; +0x67, 0x1403c4b57\nnop                                                                    ; +0x6c, 0x1403c4b5c\nmov     cs:qword_1406C2EC0, rax                                        ; +0x6d, 0x1403c4b5d\nmov     rdx, [rax]                                                     ; +0x74, 0x1403c4b64\nmov     rcx, rax                                                       ; +0x77, 0x1403c4b67\ncall    qword ptr [rdx+48h]                                            ; +0x7a, 0x1403c4b6a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x7d, 0x1403c4b6d\nmov     [rcx+328h], rsi                                                ; +0x84, 0x1403c4b74\nmov     r9b, 1                                                         ; +0x8b, 0x1403c4b7b\nxor     r8d, r8d                                                       ; +0x8e, 0x1403c4b7e\nmov     edx, [rbx+40h]                                                 ; +0x91, 0x1403c4b81\ncall    GameLevelManager__deleteFriendRequests                         ; +0x94, 0x1403c4b84\ntest    al, al                                                         ; +0x99, 0x1403c4b89\njz      loc_1403C4DC8                                                  ; +0x9b, 0x1403c4b8b\nxorps   xmm0, xmm0                                                     ; +0xa1, 0x1403c4b91\nmovups  [rbp+var_20], xmm0                                             ; +0xa4, 0x1403c4b94\nmov     [rbp+var_10], rdi                                              ; +0xa8, 0x1403c4b98\nmov     [rbp+var_8], 0Fh                                               ; +0xac, 0x1403c4b9c\nmov     ecx, 20h ; ' '                                                 ; +0xb4, 0x1403c4ba4\ncall    sub_14003AA10                                                  ; +0xb9, 0x1403c4ba9\nmov     qword ptr [rbp+var_20], rax                                    ; +0xbe, 0x1403c4bae\nmov     [rbp+var_10], 1Ah                                              ; +0xc2, 0x1403c4bb2\nmov     [rbp+var_8], 1Fh                                               ; +0xca, 0x1403c4bba\nmovups  xmm0, cs:xmmword_140547280                                     ; +0xd2, 0x1403c4bc2\nmovups  xmmword ptr [rax], xmm0                                        ; +0xd9, 0x1403c4bc9\nmovsd   xmm0, cs:qword_140547290                                       ; +0xdc, 0x1403c4bcc\nmovsd   qword ptr [rax+10h], xmm0                                      ; +0xe4, 0x1403c4bd4\nmovzx   ecx, cs:word_140547298                                         ; +0xe9, 0x1403c4bd9\nmov     [rax+18h], cx                                                  ; +0xf0, 0x1403c4be0\nmov     byte ptr [rax+1Ah], 0                                          ; +0xf4, 0x1403c4be4\nlea     rcx, [rbx+28h]                                                 ; +0xf8, 0x1403c4be8\ntest    r14, r14                                                       ; +0xfc, 0x1403c4bec\ncmovz   rcx, rdi                                                       ; +0xff, 0x1403c4bef\nlea     rdx, [rbp+var_20]                                              ; +0x103, 0x1403c4bf3\ncall    UploadActionPopup__create                                      ; +0x107, 0x1403c4bf7\nmov     [rbx+0C8h], rax                                                ; +0x10c, 0x1403c4bfc\njmp     loc_1403C4DBC                                                  ; +0x113, 0x1403c4c03\nmov     rax, [rdi]                                                     ; +0x118, 0x1403c4c08\nmov     rcx, rdi                                                       ; +0x11b, 0x1403c4c0b\ncall    qword ptr [rax+38h]                                            ; +0x11e, 0x1403c4c0e\ncmp     eax, 2                                                         ; +0x121, 0x1403c4c11\njnz     loc_1403C4CE9                                                  ; +0x124, 0x1403c4c14\nlea     r14, [rbx-278h]                                                ; +0x12a, 0x1403c4c1a\nlea     rsi, [rbx+20h]                                                 ; +0x131, 0x1403c4c21\nxor     edi, edi                                                       ; +0x135, 0x1403c4c25\ntest    r14, r14                                                       ; +0x137, 0x1403c4c27\ncmovz   rsi, rdi                                                       ; +0x13a, 0x1403c4c2a\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x13e, 0x1403c4c2e\ntest    rcx, rcx                                                       ; +0x145, 0x1403c4c35\njnz     short loc_1403C4C68                                            ; +0x148, 0x1403c4c38\nmov     ecx, 3D0h; Size                                                ; +0x14a, 0x1403c4c3a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x14f, 0x1403c4c3f\nmov     [rbp+arg_18], rax                                              ; +0x154, 0x1403c4c44\nmov     rcx, rax                                                       ; +0x158, 0x1403c4c48\ncall    sub_140141280                                                  ; +0x15b, 0x1403c4c4b\nnop                                                                    ; +0x160, 0x1403c4c50\nmov     cs:qword_1406C2EC0, rax                                        ; +0x161, 0x1403c4c51\nmov     rdx, [rax]                                                     ; +0x168, 0x1403c4c58\nmov     rcx, rax                                                       ; +0x16b, 0x1403c4c5b\ncall    qword ptr [rdx+48h]                                            ; +0x16e, 0x1403c4c5e\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x171, 0x1403c4c61\nmov     [rcx+328h], rsi                                                ; +0x178, 0x1403c4c68\nmov     edx, [rbx+40h]                                                 ; +0x17f, 0x1403c4c6f\ncall    GameLevelManager__removeFriend                                 ; +0x182, 0x1403c4c72\ntest    al, al                                                         ; +0x187, 0x1403c4c77\njz      loc_1403C4DC8                                                  ; +0x189, 0x1403c4c79\nxorps   xmm0, xmm0                                                     ; +0x18f, 0x1403c4c7f\nmovups  [rbp+var_20], xmm0                                             ; +0x192, 0x1403c4c82\nmov     [rbp+var_10], rdi                                              ; +0x196, 0x1403c4c86\nmov     [rbp+var_8], 0Fh                                               ; +0x19a, 0x1403c4c8a\nmov     ecx, 20h ; ' '                                                 ; +0x1a2, 0x1403c4c92\ncall    sub_14003AA10                                                  ; +0x1a7, 0x1403c4c97\nmov     qword ptr [rbp+var_20], rax                                    ; +0x1ac, 0x1403c4c9c\nmov     [rbp+var_10], 12h                                              ; +0x1b0, 0x1403c4ca0\nmov     [rbp+var_8], 1Fh                                               ; +0x1b8, 0x1403c4ca8\nmovups  xmm0, cs:xmmword_140547268                                     ; +0x1c0, 0x1403c4cb0\nmovups  xmmword ptr [rax], xmm0                                        ; +0x1c7, 0x1403c4cb7\nmovzx   ecx, cs:word_140547278                                         ; +0x1ca, 0x1403c4cba\nmov     [rax+10h], cx                                                  ; +0x1d1, 0x1403c4cc1\nmov     byte ptr [rax+12h], 0                                          ; +0x1d5, 0x1403c4cc5\nlea     rcx, [rbx+28h]                                                 ; +0x1d9, 0x1403c4cc9\ntest    r14, r14                                                       ; +0x1dd, 0x1403c4ccd\ncmovz   rcx, rdi                                                       ; +0x1e0, 0x1403c4cd0\nlea     rdx, [rbp+var_20]                                              ; +0x1e4, 0x1403c4cd4\ncall    UploadActionPopup__create                                      ; +0x1e8, 0x1403c4cd8\nmov     [rbx+0C8h], rax                                                ; +0x1ed, 0x1403c4cdd\njmp     loc_1403C4DBC                                                  ; +0x1f4, 0x1403c4ce4\nmov     rax, [rdi]                                                     ; +0x1f9, 0x1403c4ce9\nmov     rcx, rdi                                                       ; +0x1fc, 0x1403c4cec\ncall    qword ptr [rax+38h]                                            ; +0x1ff, 0x1403c4cef\ncmp     eax, 3                                                         ; +0x202, 0x1403c4cf2\njnz     loc_1403C4DC8                                                  ; +0x205, 0x1403c4cf5\nlea     rsi, [rbx-278h]                                                ; +0x20b, 0x1403c4cfb\nadd     rbx, 20h ; ' '                                                 ; +0x212, 0x1403c4d02\nxor     edi, edi                                                       ; +0x216, 0x1403c4d06\ntest    rsi, rsi                                                       ; +0x218, 0x1403c4d08\ncmovz   rbx, rdi                                                       ; +0x21b, 0x1403c4d0b\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x21f, 0x1403c4d0f\ntest    rcx, rcx                                                       ; +0x226, 0x1403c4d16\njnz     short loc_1403C4D49                                            ; +0x229, 0x1403c4d19\nmov     ecx, 3D0h; Size                                                ; +0x22b, 0x1403c4d1b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x230, 0x1403c4d20\nmov     [rbp+arg_18], rax                                              ; +0x235, 0x1403c4d25\nmov     rcx, rax                                                       ; +0x239, 0x1403c4d29\ncall    sub_140141280                                                  ; +0x23c, 0x1403c4d2c\nnop                                                                    ; +0x241, 0x1403c4d31\nmov     cs:qword_1406C2EC0, rax                                        ; +0x242, 0x1403c4d32\nmov     rdx, [rax]                                                     ; +0x249, 0x1403c4d39\nmov     rcx, rax                                                       ; +0x24c, 0x1403c4d3c\ncall    qword ptr [rdx+48h]                                            ; +0x24f, 0x1403c4d3f\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x252, 0x1403c4d42\nmov     [rcx+328h], rbx                                                ; +0x259, 0x1403c4d49\nmov     rdx, [rsi+2B0h]                                                ; +0x260, 0x1403c4d50\nmov     edx, [rdx+188h]                                                ; +0x267, 0x1403c4d57\ncall    GameLevelManager__blockUser                                    ; +0x26d, 0x1403c4d5d\ntest    al, al                                                         ; +0x272, 0x1403c4d62\njz      short loc_1403C4DC8                                            ; +0x274, 0x1403c4d64\nxorps   xmm0, xmm0                                                     ; +0x276, 0x1403c4d66\nmovups  [rbp+var_20], xmm0                                             ; +0x279, 0x1403c4d69\nmov     [rbp+var_10], rdi                                              ; +0x27d, 0x1403c4d6d\nmov     [rbp+var_8], 0Fh                                               ; +0x281, 0x1403c4d71\nmov     ecx, 20h ; ' '                                                 ; +0x289, 0x1403c4d79\ncall    sub_14003AA10                                                  ; +0x28e, 0x1403c4d7e\nmov     qword ptr [rbp+var_20], rax                                    ; +0x293, 0x1403c4d83\nmov     [rbp+var_10], 10h                                              ; +0x297, 0x1403c4d87\nmov     [rbp+var_8], 1Fh                                               ; +0x29f, 0x1403c4d8f\nmovups  xmm0, cs:xmmword_140571130                                     ; +0x2a7, 0x1403c4d97\nmovups  xmmword ptr [rax], xmm0                                        ; +0x2ae, 0x1403c4d9e\nmov     byte ptr [rax+10h], 0                                          ; +0x2b1, 0x1403c4da1\nlea     rdx, [rbp+var_20]                                              ; +0x2b5, 0x1403c4da5\nlea     rcx, [rsi+2A0h]                                                ; +0x2b9, 0x1403c4da9\ncall    UploadActionPopup__create                                      ; +0x2c0, 0x1403c4db0\nmov     [rsi+340h], rax                                                ; +0x2c5, 0x1403c4db5\nmov     rdx, [rax]                                                     ; +0x2cc, 0x1403c4dbc\nmov     rcx, rax                                                       ; +0x2cf, 0x1403c4dbf\ncall    qword ptr [rdx+410h]                                           ; +0x2d2, 0x1403c4dc2\nmov     rbx, [rsp+40h+arg_0]                                           ; +0x2d8, 0x1403c4dc8\nmov     rsi, [rsp+40h+arg_8]                                           ; +0x2dd, 0x1403c4dcd\nadd     rsp, 40h                                                       ; +0x2e2, 0x1403c4dd2\npop     r14                                                            ; +0x2e6, 0x1403c4dd6\npop     rdi                                                            ; +0x2e8, 0x1403c4dd8\npop     rbp                                                            ; +0x2e9, 0x1403c4dd9\nretn                                                                   ; +0x2ea, 0x1403c4dda", "xrefs": ["<???> @ 0x1405cb398", "<???> @ 0x1406d77d8"], "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"}