{"type": "func", "start": 5370013520, "end": 5370014269, "name": "FRequestProfilePage::onDeleteSelected", "pseudocode": "// \n// FRequestProfilePage::onDeleteSelected from 0x14013e750 to 0x14013ea3d (749 bytes)\n// \n// 3 xrefs:\n// > FRequestProfilePage::init @ 0x14013e013\n// > <???> @ 0x1406ca1c4\n// > <???> @ 0x1406ca1d0\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=3\nvoid FRequestProfilePage::onDeleteSelected(FRequestProfilePage *a1, cocos2d::CCObject *a2)\n{\n  std::string *p_m_key; // rbx\n  GameLevelManager *v4; // rcx\n  cocos2d::CCArray *StoredOnlineLevels; // rax\n  cocos2d::ccArray *data; // rcx\n  __int64 num; // rax\n  cocos2d::CCObject **arr; // rcx\n  cocos2d::CCObject **v9; // rdx\n  __int64 v10; // rax\n  FLAlertLayer *v11; // rbx\n  FLAlertLayerProtocol *v12; // r14\n  FLAlertLayer *v13; // rbx\n  __int64 v14; // rax\n  __int128 v15; // [rsp+50h] [rbp+7h] BYREF\n  __int64 v16; // [rsp+60h] [rbp+17h]\n  __int64 v17; // [rsp+68h] [rbp+1Fh]\n  _BYTE v18[32]; // [rsp+70h] [rbp+27h] BYREF\n  void *v19; // [rsp+B0h] [rbp+67h]\n  FLAlertLayer *v20; // [rsp+C0h] [rbp+77h]\n\n  p_m_key = &a1->m_key;\n  if ( a1->m_key.m_data.m_capacity > 0xF )\n    p_m_key = (std::string *)p_m_key->m_data.m_bigStorage;\n  v4 = (GameLevelManager *)qword_1406C2EC0;\n  if ( !qword_1406C2EC0 )\n  {\n    v19 = operator new(0x3D0u);\n    qword_1406C2EC0 = sub_140141280(v19);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    v4 = (GameLevelManager *)qword_1406C2EC0;\n  }\n  StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(v4, p_m_key->m_data.m_smallStorage._Elems);\n  if ( StoredOnlineLevels )\n  {\n    data = StoredOnlineLevels->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = data->arr;\n      v9 = &arr[num - 1];\n      if ( arr <= v9 )\n      {\n        while ( *arr )\n        {\n          if ( BYTE1((*arr)[13].m_uIndexInArray) )\n          {\n            v12 = &a1->FLAlertLayerProtocol;\n            if ( !a1 )\n              v12 = nullptr;\n            v15 = 0;\n            *(_QWORD *)&v15 = sub_14003AA10(0x50u);\n            v16 = 70;\n            v17 = 79;\n            strcpy((char *)v15, \"Are you sure you want to <cr>delete</c> the selected <cg>requests</c>?\");\n            v20 = (FLAlertLayer *)operator new(0x278u);\n            v13 = FLAlertLayer::FLAlertLayer(v20);\n            if ( v13 )\n            {\n              v14 = sub_14003BDB0((__int64)v18, (__int64)&v15);\n              if ( FLAlertLayer::init((__int64)v13, (__int64)v12, \"Delete\", v14, \"Back\", \"Delete\", 380.0, 0, 0, 1.0) )\n              {\n                cocos2d::CCObject::autorelease(v13);\n              }\n              else\n              {\n                ((void (__fastcall *)(FLAlertLayer *, __int64))v13->~FLAlertLayer)(v13, 1);\n                v13 = nullptr;\n              }\n            }\n            sub_14003A830((__int64)&v15);\n            ButtonSprite::updateBGImage(v13->m_button2, \"GJ_button_06.png\");\n            v13->setTag(v13, 3);\n            v13->show(v13);\n            return;\n          }\n          if ( ++arr > v9 )\n            break;\n        }\n      }\n    }\n  }\n  v15 = 0;\n  v16 = 0;\n  v17 = 15;\n  *(_QWORD *)&v15 = sub_14003AA10(0x20u);\n  v16 = 21;\n  v17 = 31;\n  strcpy((char *)v15, \"No requests selected.\");\n  v10 = sub_14003BDB0((__int64)v18, (__int64)&v15);\n  v11 = FLAlertLayer::create(0, (int)\"Nothing here...\", v10, (__int64)\"OK\", 0, 1132068864, 0, 0, 1065353216);\n  sub_14003A830((__int64)&v15);\n  v11->show(v11);\n}", "assembly": "; \n; FRequestProfilePage::onDeleteSelected from 0x14013e750 to 0x14013ea3d (749 bytes)\n; \n; 3 xrefs:\n; > FRequestProfilePage::init @ 0x14013e013\n; > <???> @ 0x1406ca1c4\n; > <???> @ 0x1406ca1d0\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-8+arg_8], rbx                                             ; +0x0, 0x14013e750\nmov     [rsp-8+arg_18], rsi                                            ; +0x5, 0x14013e755\npush    rbp                                                            ; +0xa, 0x14013e75a\npush    rdi                                                            ; +0xb, 0x14013e75b\npush    r14                                                            ; +0xc, 0x14013e75c\nlea     rbp, [rsp-47h]                                                 ; +0xe, 0x14013e75e\nsub     rsp, 90h                                                       ; +0x13, 0x14013e763\nmov     rdi, rcx                                                       ; +0x1a, 0x14013e76a\nlea     rbx, [rcx+2A0h]                                                ; +0x1d, 0x14013e76d\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x24, 0x14013e774\njbe     short loc_14013E77E                                            ; +0x29, 0x14013e779\nmov     rbx, [rbx]                                                     ; +0x2b, 0x14013e77b\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x2e, 0x14013e77e\ntest    rcx, rcx                                                       ; +0x35, 0x14013e785\njnz     short loc_14013E7B9                                            ; +0x38, 0x14013e788\nmov     ecx, 3D0h; Size                                                ; +0x3a, 0x14013e78a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3f, 0x14013e78f\nmov     [rbp+57h+arg_0], rax                                           ; +0x44, 0x14013e794\nmov     rcx, rax                                                       ; +0x48, 0x14013e798\ncall    sub_140141280                                                  ; +0x4b, 0x14013e79b\nnop                                                                    ; +0x50, 0x14013e7a0\nmov     cs:qword_1406C2EC0, rax                                        ; +0x51, 0x14013e7a1\nmov     r8, [rax]                                                      ; +0x58, 0x14013e7a8\nmov     rcx, rax                                                       ; +0x5b, 0x14013e7ab\ncall    qword ptr [r8+48h]                                             ; +0x5e, 0x14013e7ae\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x62, 0x14013e7b2\nmov     rdx, rbx                                                       ; +0x69, 0x14013e7b9\ncall    GameLevelManager__getStoredOnlineLevels                        ; +0x6c, 0x14013e7bc\ntest    rax, rax                                                       ; +0x71, 0x14013e7c1\njz      short loc_14013E7FF                                            ; +0x74, 0x14013e7c4\nmov     rcx, [rax+38h]                                                 ; +0x76, 0x14013e7c6\nmov     eax, [rcx]                                                     ; +0x7a, 0x14013e7ca\ntest    eax, eax                                                       ; +0x7c, 0x14013e7cc\njz      short loc_14013E7FF                                            ; +0x7e, 0x14013e7ce\nmov     rcx, [rcx+10h]                                                 ; +0x80, 0x14013e7d0\nlea     rdx, [rax-1]                                                   ; +0x84, 0x14013e7d4\nlea     rdx, [rcx+rdx*8]                                               ; +0x88, 0x14013e7d8\ncmp     rcx, rdx                                                       ; +0x8c, 0x14013e7dc\nja      short loc_14013E7FF                                            ; +0x8f, 0x14013e7df\nmov     rax, [rcx]                                                     ; +0x91, 0x14013e7e1\ntest    rax, rax                                                       ; +0x94, 0x14013e7e4\njz      short loc_14013E7FF                                            ; +0x97, 0x14013e7e7\ncmp     byte ptr [rax+2F9h], 0                                         ; +0x99, 0x14013e7e9\njnz     loc_14013E8DD                                                  ; +0xa0, 0x14013e7f0\nadd     rcx, 8                                                         ; +0xa6, 0x14013e7f6\ncmp     rcx, rdx                                                       ; +0xaa, 0x14013e7fa\njbe     short loc_14013E7E1                                            ; +0xad, 0x14013e7fd\nxorps   xmm0, xmm0                                                     ; +0xaf, 0x14013e7ff\nmovups  [rbp+57h+var_50], xmm0                                         ; +0xb2, 0x14013e802\nxor     esi, esi                                                       ; +0xb6, 0x14013e806\nmov     [rbp+57h+var_40], rsi                                          ; +0xb8, 0x14013e808\nmov     [rbp+57h+var_38], 0Fh                                          ; +0xbc, 0x14013e80c\nlea     ecx, [rsi+20h]                                                 ; +0xc4, 0x14013e814\ncall    sub_14003AA10                                                  ; +0xc7, 0x14013e817\nmov     qword ptr [rbp+57h+var_50], rax                                ; +0xcc, 0x14013e81c\nmov     [rbp+57h+var_40], 15h                                          ; +0xd0, 0x14013e820\nmov     [rbp+57h+var_38], 1Fh                                          ; +0xd8, 0x14013e828\nmovups  xmm0, cs:xmmword_140557B00                                     ; +0xe0, 0x14013e830\nmovups  xmmword ptr [rax], xmm0                                        ; +0xe7, 0x14013e837\nmov     ecx, cs:dword_140557B10                                        ; +0xea, 0x14013e83a\nmov     [rax+10h], ecx                                                 ; +0xf0, 0x14013e840\nmovzx   ecx, cs:byte_140557B14                                         ; +0xf3, 0x14013e843\nmov     [rax+14h], cl                                                  ; +0xfa, 0x14013e84a\nmov     [rax+15h], sil                                                 ; +0xfd, 0x14013e84d\nlea     rax, [rbp+57h+var_50]                                          ; +0x101, 0x14013e851\nmov     [rbp+57h+arg_0], rax                                           ; +0x105, 0x14013e855\nlea     rdx, [rbp+57h+var_50]                                          ; +0x109, 0x14013e859\nlea     rcx, [rbp+57h+var_30]                                          ; +0x10d, 0x14013e85d\ncall    sub_14003BDB0                                                  ; +0x111, 0x14013e861\nmovss   xmm0, cs:flt_140622C24                                         ; +0x116, 0x14013e866\nmovss   [rsp+0A0h+var_60], xmm0                                        ; +0x11e, 0x14013e86e\nxorps   xmm1, xmm1                                                     ; +0x124, 0x14013e874\nmovss   [rsp+0A0h+var_68], xmm1                                        ; +0x127, 0x14013e877\nmov     byte ptr [rsp+0A0h+var_70], sil                                ; +0x12d, 0x14013e87d\nmovss   xmm0, cs:dword_140623410                                       ; +0x132, 0x14013e882\nmovss   dword ptr [rsp+0A0h+var_78], xmm0                              ; +0x13a, 0x14013e88a\nmov     [rsp+0A0h+var_80], rsi                                         ; +0x140, 0x14013e890\nlea     r9, aOk; \"OK\"                                                  ; +0x145, 0x14013e895\nmov     r8, rax                                                        ; +0x14c, 0x14013e89c\nlea     rdx, aNothingHere; \"Nothing here...\"                           ; +0x14f, 0x14013e89f\nxor     ecx, ecx                                                       ; +0x156, 0x14013e8a6\ncall    FLAlertLayer__create                                           ; +0x158, 0x14013e8a8\nmov     rbx, rax                                                       ; +0x15d, 0x14013e8ad\nlea     rcx, [rbp+57h+var_50]                                          ; +0x160, 0x14013e8b0\ncall    sub_14003A830                                                  ; +0x164, 0x14013e8b4\nmov     rdx, [rbx]                                                     ; +0x169, 0x14013e8b9\nmov     rcx, rbx                                                       ; +0x16c, 0x14013e8bc\ncall    qword ptr [rdx+410h]                                           ; +0x16f, 0x14013e8bf\nlea     r11, [rsp+0A0h+var_10]                                         ; +0x175, 0x14013e8c5\nmov     rbx, [r11+28h]                                                 ; +0x17d, 0x14013e8cd\nmov     rsi, [r11+38h]                                                 ; +0x181, 0x14013e8d1\nmov     rsp, r11                                                       ; +0x185, 0x14013e8d5\npop     r14                                                            ; +0x188, 0x14013e8d8\npop     rdi                                                            ; +0x18a, 0x14013e8da\npop     rbp                                                            ; +0x18b, 0x14013e8db\nretn                                                                   ; +0x18c, 0x14013e8dc\nlea     r14, [rdi+278h]                                                ; +0x18d, 0x14013e8dd\nxor     esi, esi                                                       ; +0x194, 0x14013e8e4\ntest    rdi, rdi                                                       ; +0x196, 0x14013e8e6\ncmovz   r14, rsi                                                       ; +0x199, 0x14013e8e9\nxorps   xmm0, xmm0                                                     ; +0x19d, 0x14013e8ed\nmovups  [rbp+57h+var_50], xmm0                                         ; +0x1a0, 0x14013e8f0\nmov     [rbp+57h+var_40], rsi                                          ; +0x1a4, 0x14013e8f4\nmov     [rbp+57h+var_38], 0Fh                                          ; +0x1a8, 0x14013e8f8\nlea     ecx, [rsi+50h]                                                 ; +0x1b0, 0x14013e900\ncall    sub_14003AA10                                                  ; +0x1b3, 0x14013e903\nmov     rcx, rax                                                       ; +0x1b8, 0x14013e908\nmov     qword ptr [rbp+57h+var_50], rax                                ; +0x1bb, 0x14013e90b\nmov     [rbp+57h+var_40], 46h ; 'F'                                    ; +0x1bf, 0x14013e90f\nmov     [rbp+57h+var_38], 4Fh ; 'O'                                    ; +0x1c7, 0x14013e917\nmovaps  xmm0, cs:xmmword_140557B40                                     ; +0x1cf, 0x14013e91f\nmovups  xmmword ptr [rax], xmm0                                        ; +0x1d6, 0x14013e926\nmovaps  xmm1, cs:xmmword_140557B50                                     ; +0x1d9, 0x14013e929\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x1e0, 0x14013e930\nmovaps  xmm0, cs:xmmword_140557B60                                     ; +0x1e4, 0x14013e934\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x1eb, 0x14013e93b\nmovaps  xmm1, cs:xmmword_140557B70                                     ; +0x1ef, 0x14013e93f\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x1f6, 0x14013e946\nmov     eax, cs:dword_140557B80                                        ; +0x1fa, 0x14013e94a\nmov     [rcx+40h], eax                                                 ; +0x200, 0x14013e950\nmovzx   eax, cs:word_140557B84                                         ; +0x203, 0x14013e953\nmov     [rcx+44h], ax                                                  ; +0x20a, 0x14013e95a\nmov     [rcx+46h], sil                                                 ; +0x20e, 0x14013e95e\nlea     rax, [rbp+57h+var_50]                                          ; +0x212, 0x14013e962\nmov     [rbp+57h+arg_0], rax                                           ; +0x216, 0x14013e966\nmov     ecx, 278h; Size                                                ; +0x21a, 0x14013e96a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21f, 0x14013e96f\nmov     [rbp+57h+arg_10], rax                                          ; +0x224, 0x14013e974\nmov     rcx, rax                                                       ; +0x228, 0x14013e978\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x22b, 0x14013e97b\nmov     rbx, rax                                                       ; +0x230, 0x14013e980\ntest    rax, rax                                                       ; +0x233, 0x14013e983\njz      short loc_14013EA02                                            ; +0x236, 0x14013e986\nlea     rdx, [rbp+57h+var_50]                                          ; +0x238, 0x14013e988\nlea     rcx, [rbp+57h+var_30]                                          ; +0x23c, 0x14013e98c\ncall    sub_14003BDB0                                                  ; +0x240, 0x14013e990\nmovss   xmm0, cs:flt_140622C24                                         ; +0x245, 0x14013e995\nmovss   [rsp+0A0h+var_58], xmm0                                        ; +0x24d, 0x14013e99d\nxorps   xmm1, xmm1                                                     ; +0x253, 0x14013e9a3\nmovss   [rsp+0A0h+var_60], xmm1                                        ; +0x256, 0x14013e9a6\nmov     byte ptr [rsp+0A0h+var_68], sil                                ; +0x25c, 0x14013e9ac\nmovss   xmm0, cs:dword_140623478                                       ; +0x261, 0x14013e9b1\nmovss   [rsp+0A0h+var_70], xmm0                                        ; +0x269, 0x14013e9b9\nlea     r8, aDelete_0; \"Delete\"                                        ; +0x26f, 0x14013e9bf\nmov     [rsp+0A0h+var_78], r8                                          ; +0x276, 0x14013e9c6\nlea     rcx, aBack; \"Back\"                                             ; +0x27b, 0x14013e9cb\nmov     [rsp+0A0h+var_80], rcx                                         ; +0x282, 0x14013e9d2\nmov     r9, rax                                                        ; +0x287, 0x14013e9d7\nmov     rdx, r14                                                       ; +0x28a, 0x14013e9da\nmov     rcx, rbx                                                       ; +0x28d, 0x14013e9dd\ncall    FLAlertLayer__init                                             ; +0x290, 0x14013e9e0\nmov     rcx, rbx                                                       ; +0x295, 0x14013e9e5\ntest    al, al                                                         ; +0x298, 0x14013e9e8\njz      short loc_14013E9F4                                            ; +0x29a, 0x14013e9ea\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x29c, 0x14013e9ec\njmp     short loc_14013EA02                                            ; +0x2a2, 0x14013e9f2\nmov     rax, [rbx]                                                     ; +0x2a4, 0x14013e9f4\nmov     edx, 1                                                         ; +0x2a7, 0x14013e9f7\ncall    qword ptr [rax+8]                                              ; +0x2ac, 0x14013e9fc\nmov     rbx, rsi                                                       ; +0x2af, 0x14013e9ff\nlea     rcx, [rbp+57h+var_50]                                          ; +0x2b2, 0x14013ea02\ncall    sub_14003A830                                                  ; +0x2b6, 0x14013ea06\nlea     rdx, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x2bb, 0x14013ea0b\nmov     rcx, [rbx+258h]                                                ; +0x2c2, 0x14013ea12\ncall    ButtonSprite__updateBGImage                                    ; +0x2c9, 0x14013ea19\nmov     rax, [rbx]                                                     ; +0x2ce, 0x14013ea1e\nmov     edx, 3                                                         ; +0x2d1, 0x14013ea21\nmov     rcx, rbx                                                       ; +0x2d6, 0x14013ea26\ncall    qword ptr [rax+40h]                                            ; +0x2d9, 0x14013ea29\nmov     rax, [rbx]                                                     ; +0x2dc, 0x14013ea2c\nmov     rcx, rbx                                                       ; +0x2df, 0x14013ea2f\ncall    qword ptr [rax+410h]                                           ; +0x2e2, 0x14013ea32\njmp     loc_14013E8C5                                                  ; +0x2e8, 0x14013ea38", "xrefs": ["FRequestProfilePage::init @ 0x14013e013", "<???> @ 0x1406ca1c4", "<???> @ 0x1406ca1d0"], "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"}