{"type": "func", "start": 5369233392, "end": 5369234277, "name": "AccountHelpLayer::FLAlert_Clicked", "pseudocode": "// \n// AccountHelpLayer::FLAlert_Clicked from 0x14007fff0 to 0x140080365 (885 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14053ac90\n// > <???> @ 0x1406c6990\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=5\nvoid AccountHelpLayer::FLAlert_Clicked(AccountHelpLayer *a1, FLAlertLayer *a2, bool a3)\n{\n  int v5; // eax\n  __int64 v6; // rdx\n  __int64 v7; // rcx\n  int v8; // eax\n  __int64 v9; // rax\n  unsigned __int8 *p_m_uOrderOfArrival; // rbx\n  GJAccountManager *v11; // rdi\n  _BYTE *v12; // rcx\n  __int64 v13; // rax\n  LocalLevelManager *v14; // rax\n  GJAccountDelegate *m_accountDelegate; // rcx\n  __int64 v16; // rax\n  MenuLayer *v17; // rcx\n  __int64 v18; // rax\n  FLAlertLayer *v19; // rbx\n  __int128 v20; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v21; // [rsp+60h] [rbp-38h]\n  __int64 v22; // [rsp+68h] [rbp-30h]\n  _BYTE v23[40]; // [rsp+70h] [rbp-28h] BYREF\n  void *v24; // [rsp+A8h] [rbp+10h]\n  void *v25; // [rsp+A8h] [rbp+10h]\n  void *v26; // [rsp+A8h] [rbp+10h]\n\n  v5 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) - 3;\n  if ( v5 )\n  {\n    v8 = v5 - 1;\n    if ( v8 )\n    {\n      if ( v8 == 1 && a3 )\n      {\n        v9 = cocos2d::CCApplication::sharedApplication(v7, v6);\n        (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v9 + 88LL))(\n          v9,\n          \"https://www.boomlings.com/database/accounts/accountManagement.php\");\n      }\n    }\n    else if ( a3 )\n    {\n      p_m_uOrderOfArrival = (unsigned __int8 *)&a1[-1].m_uOrderOfArrival;\n      v11 = GJAccountManager::sharedState();\n      sub_14003CCE0((void **)&v11->m_GJP2, byte_140518980, 0);\n      sub_14003CCE0((void **)&v11->m_password, byte_140518980, 0);\n      sub_14003CCE0((void **)&v11->m_username, byte_140518980, 0);\n      v11->m_accountID = 0;\n      v12 = (_BYTE *)qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v24 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00(v24);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v12 = (_BYTE *)qword_1406C2ED8;\n      }\n      v12[1006] = 1;\n      (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v12 + 896LL))(v12);\n      v13 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v25 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00(v25);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v13 = qword_1406C2ED8;\n      }\n      *(_BYTE *)(v13 + 1006) = 0;\n      v14 = LocalLevelManager::sharedState();\n      v14->firstLoad(v14);\n      m_accountDelegate = v11->m_accountDelegate;\n      if ( m_accountDelegate )\n        m_accountDelegate->accountStatusChanged(m_accountDelegate);\n      v16 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v26 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00(v26);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v16 = qword_1406C2ED8;\n      }\n      v17 = *(MenuLayer **)(v16 + 552);\n      if ( v17 )\n        MenuLayer::updateUserProfileButton(v17);\n      (*(void (__fastcall **)(unsigned __int8 *, _QWORD))(*(_QWORD *)p_m_uOrderOfArrival + 976LL))(\n        p_m_uOrderOfArrival,\n        0);\n      (*(void (__fastcall **)(unsigned __int8 *))(*(_QWORD *)p_m_uOrderOfArrival + 1104LL))(p_m_uOrderOfArrival);\n      (*(void (__fastcall **)(unsigned __int8 *, _QWORD))(*(_QWORD *)p_m_uOrderOfArrival + 1072LL))(\n        p_m_uOrderOfArrival,\n        p_m_uOrderOfArrival[600]);\n    }\n  }\n  else if ( a3 )\n  {\n    if ( a1 == (AccountHelpLayer *)616 )\n      LODWORD(a1) = 0;\n    v20 = 0;\n    *(_QWORD *)&v20 = sub_14003AA10(0x70u);\n    v21 = 110;\n    v22 = 111;\n    strcpy(\n      (char *)v20,\n      \"This will <cr>delete</c> ALL <cl>save data</c>.\\nDo you want to continue?\\n<cy>(You cannot undo this action)</c>\");\n    v18 = sub_14003BDB0((__int64)v23, (__int64)&v20);\n    v19 = FLAlertLayer::create(\n            (int)a1,\n            (int)\"Warning\",\n            v18,\n            (__int64)\"Cancel\",\n            (__int64)\"DELETE\",\n            1133903872,\n            0,\n            0,\n            1065353216);\n    sub_14003A830((__int64)&v20);\n    v19->setTag(v19, 4);\n    ButtonSprite::updateBGImage(v19->m_button2, \"GJ_button_06.png\");\n    v19->show(v19);\n  }\n}", "assembly": "; \n; AccountHelpLayer::FLAlert_Clicked from 0x14007fff0 to 0x140080365 (885 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14053ac90\n; > <???> @ 0x1406c6990\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_0], rbx                                               ; +0x0, 0x14007fff0\npush    rdi                                                            ; +0x5, 0x14007fff5\nsub     rsp, 90h                                                       ; +0x6, 0x14007fff6\nmovzx   ebx, r8b                                                       ; +0xd, 0x14007fffd\nmov     rdi, rcx                                                       ; +0x11, 0x140080001\nmov     rax, [rdx]                                                     ; +0x14, 0x140080004\nmov     rcx, rdx                                                       ; +0x17, 0x140080007\ncall    qword ptr [rax+38h]                                            ; +0x1a, 0x14008000a\nsub     eax, 3                                                         ; +0x1d, 0x14008000d\njz      loc_1400801F6                                                  ; +0x20, 0x140080010\nsub     eax, 1                                                         ; +0x26, 0x140080016\njz      short loc_140080053                                            ; +0x29, 0x140080019\ncmp     eax, 1                                                         ; +0x2b, 0x14008001b\njnz     loc_140080354                                                  ; +0x2e, 0x14008001e\ntest    bl, bl                                                         ; +0x34, 0x140080024\njz      loc_140080354                                                  ; +0x36, 0x140080026\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x3c, 0x14008002c\nmov     r8, [rax]                                                      ; +0x42, 0x140080032\nlea     rdx, aHttpsWwwBoomli_1; \"https://www.boomlings.com/database/acco\"... ; +0x45, 0x140080035\nmov     rcx, rax                                                       ; +0x4c, 0x14008003c\nmov     rbx, [rsp+98h+arg_0]                                           ; +0x4f, 0x14008003f\nadd     rsp, 90h                                                       ; +0x57, 0x140080047\npop     rdi                                                            ; +0x5e, 0x14008004e\njmp     qword ptr [r8+58h]                                             ; +0x5f, 0x14008004f\ntest    bl, bl                                                         ; +0x63, 0x140080053\njz      loc_140080354                                                  ; +0x65, 0x140080055\nlea     rbx, [rdi-268h]                                                ; +0x6b, 0x14008005b\ncall    GJAccountManager__sharedState                                  ; +0x72, 0x140080062\nmov     rdi, rax                                                       ; +0x77, 0x140080067\nlea     rcx, [rax+178h]; void *                                        ; +0x7a, 0x14008006a\nxor     r8d, r8d; Size                                                 ; +0x81, 0x140080071\nlea     rdx, byte_140518980; Src                                       ; +0x84, 0x140080074\ncall    sub_14003CCE0                                                  ; +0x8b, 0x14008007b\nlea     rcx, [rdi+1D0h]; void *                                        ; +0x90, 0x140080080\nxor     r8d, r8d; Size                                                 ; +0x97, 0x140080087\nlea     rdx, byte_140518980; Src                                       ; +0x9a, 0x14008008a\ncall    sub_14003CCE0                                                  ; +0xa1, 0x140080091\nlea     rcx, [rdi+148h]; void *                                        ; +0xa6, 0x140080096\nxor     r8d, r8d; Size                                                 ; +0xad, 0x14008009d\nlea     rdx, byte_140518980; Src                                       ; +0xb0, 0x1400800a0\ncall    sub_14003CCE0                                                  ; +0xb7, 0x1400800a7\nxor     ecx, ecx                                                       ; +0xbc, 0x1400800ac\nmov     [rdi+168h], ecx                                                ; +0xbe, 0x1400800ae\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xc4, 0x1400800b4\ntest    rcx, rcx                                                       ; +0xcb, 0x1400800bb\njnz     short loc_1400800F2                                            ; +0xce, 0x1400800be\nmov     ecx, 668h; Size                                                ; +0xd0, 0x1400800c0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xd5, 0x1400800c5\nmov     [rsp+98h+arg_8], rax                                           ; +0xda, 0x1400800ca\nmov     rcx, rax                                                       ; +0xe2, 0x1400800d2\ncall    sub_14017AB00                                                  ; +0xe5, 0x1400800d5\nnop                                                                    ; +0xea, 0x1400800da\nmov     cs:qword_1406C2ED8, rax                                        ; +0xeb, 0x1400800db\nmov     rdx, [rax]                                                     ; +0xf2, 0x1400800e2\nmov     rcx, rax                                                       ; +0xf5, 0x1400800e5\ncall    qword ptr [rdx+48h]                                            ; +0xf8, 0x1400800e8\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xfb, 0x1400800eb\nmov     byte ptr [rcx+3EEh], 1                                         ; +0x102, 0x1400800f2\nmov     rax, [rcx]                                                     ; +0x109, 0x1400800f9\ncall    qword ptr [rax+380h]                                           ; +0x10c, 0x1400800fc\nmov     rax, cs:qword_1406C2ED8                                        ; +0x112, 0x140080102\ntest    rax, rax                                                       ; +0x119, 0x140080109\njnz     short loc_140080140                                            ; +0x11c, 0x14008010c\nmov     ecx, 668h; Size                                                ; +0x11e, 0x14008010e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x123, 0x140080113\nmov     [rsp+98h+arg_8], rax                                           ; +0x128, 0x140080118\nmov     rcx, rax                                                       ; +0x130, 0x140080120\ncall    sub_14017AB00                                                  ; +0x133, 0x140080123\nnop                                                                    ; +0x138, 0x140080128\nmov     cs:qword_1406C2ED8, rax                                        ; +0x139, 0x140080129\nmov     rdx, [rax]                                                     ; +0x140, 0x140080130\nmov     rcx, rax                                                       ; +0x143, 0x140080133\ncall    qword ptr [rdx+48h]                                            ; +0x146, 0x140080136\nmov     rax, cs:qword_1406C2ED8                                        ; +0x149, 0x140080139\nmov     byte ptr [rax+3EEh], 0                                         ; +0x150, 0x140080140\ncall    LocalLevelManager__sharedState                                 ; +0x157, 0x140080147\nmov     rdx, [rax]                                                     ; +0x15c, 0x14008014c\nmov     rcx, rax                                                       ; +0x15f, 0x14008014f\ncall    qword ptr [rdx+380h]                                           ; +0x162, 0x140080152\nmov     rcx, [rdi+1A8h]                                                ; +0x168, 0x140080158\ntest    rcx, rcx                                                       ; +0x16f, 0x14008015f\njz      short loc_140080169                                            ; +0x172, 0x140080162\nmov     rax, [rcx]                                                     ; +0x174, 0x140080164\ncall    qword ptr [rax]                                                ; +0x177, 0x140080167\nmov     rax, cs:qword_1406C2ED8                                        ; +0x179, 0x140080169\ntest    rax, rax                                                       ; +0x180, 0x140080170\njnz     short loc_1400801A7                                            ; +0x183, 0x140080173\nmov     ecx, 668h; Size                                                ; +0x185, 0x140080175\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x18a, 0x14008017a\nmov     [rsp+98h+arg_8], rax                                           ; +0x18f, 0x14008017f\nmov     rcx, rax                                                       ; +0x197, 0x140080187\ncall    sub_14017AB00                                                  ; +0x19a, 0x14008018a\nnop                                                                    ; +0x19f, 0x14008018f\nmov     cs:qword_1406C2ED8, rax                                        ; +0x1a0, 0x140080190\nmov     rdx, [rax]                                                     ; +0x1a7, 0x140080197\nmov     rcx, rax                                                       ; +0x1aa, 0x14008019a\ncall    qword ptr [rdx+48h]                                            ; +0x1ad, 0x14008019d\nmov     rax, cs:qword_1406C2ED8                                        ; +0x1b0, 0x1400801a0\nmov     rcx, [rax+228h]                                                ; +0x1b7, 0x1400801a7\ntest    rcx, rcx                                                       ; +0x1be, 0x1400801ae\njz      short loc_1400801B8                                            ; +0x1c1, 0x1400801b1\ncall    MenuLayer__updateUserProfileButton                             ; +0x1c3, 0x1400801b3\nmov     rax, [rbx]                                                     ; +0x1c8, 0x1400801b8\nxor     edx, edx                                                       ; +0x1cb, 0x1400801bb\nmov     rcx, rbx                                                       ; +0x1cd, 0x1400801bd\ncall    qword ptr [rax+3D0h]                                           ; +0x1d0, 0x1400801c0\nmov     rax, [rbx]                                                     ; +0x1d6, 0x1400801c6\nmov     rcx, rbx                                                       ; +0x1d9, 0x1400801c9\ncall    qword ptr [rax+450h]                                           ; +0x1dc, 0x1400801cc\nmov     rax, [rbx]                                                     ; +0x1e2, 0x1400801d2\nmovzx   edx, byte ptr [rbx+258h]                                       ; +0x1e5, 0x1400801d5\nmov     rcx, rbx                                                       ; +0x1ec, 0x1400801dc\nmov     rbx, [rsp+98h+arg_0]                                           ; +0x1ef, 0x1400801df\nadd     rsp, 90h                                                       ; +0x1f7, 0x1400801e7\npop     rdi                                                            ; +0x1fe, 0x1400801ee\njmp     qword ptr [rax+430h]                                           ; +0x1ff, 0x1400801ef\ntest    bl, bl                                                         ; +0x206, 0x1400801f6\njz      loc_140080354                                                  ; +0x208, 0x1400801f8\nlea     rax, [rdi-268h]                                                ; +0x20e, 0x1400801fe\nxor     ecx, ecx                                                       ; +0x215, 0x140080205\ntest    rax, rax                                                       ; +0x217, 0x140080207\ncmovz   rdi, rcx                                                       ; +0x21a, 0x14008020a\nxorps   xmm0, xmm0                                                     ; +0x21e, 0x14008020e\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x221, 0x140080211\nmov     [rsp+98h+var_38], rcx                                          ; +0x226, 0x140080216\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x22b, 0x14008021b\nmov     ecx, 70h ; 'p'                                                 ; +0x234, 0x140080224\ncall    sub_14003AA10                                                  ; +0x239, 0x140080229\nmov     rcx, rax                                                       ; +0x23e, 0x14008022e\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x241, 0x140080231\nmov     [rsp+98h+var_38], 6Eh ; 'n'                                    ; +0x246, 0x140080236\nmov     [rsp+98h+var_30], 6Fh ; 'o'                                    ; +0x24f, 0x14008023f\nmovaps  xmm0, cs:xmmword_14053A670                                     ; +0x258, 0x140080248\nmovups  xmmword ptr [rax], xmm0                                        ; +0x25f, 0x14008024f\nmovaps  xmm1, cs:xmmword_14053A680                                     ; +0x262, 0x140080252\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x269, 0x140080259\nmovaps  xmm0, cs:xmmword_14053A690                                     ; +0x26d, 0x14008025d\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x274, 0x140080264\nmovaps  xmm1, cs:xmmword_14053A6A0                                     ; +0x278, 0x140080268\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x27f, 0x14008026f\nmovaps  xmm0, cs:xmmword_14053A6B0                                     ; +0x283, 0x140080273\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x28a, 0x14008027a\nmovaps  xmm1, cs:xmmword_14053A6C0                                     ; +0x28e, 0x14008027e\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0x295, 0x140080285\nmovsd   xmm0, cs:qword_14053A6D0                                       ; +0x299, 0x140080289\nmovsd   qword ptr [rax+60h], xmm0                                      ; +0x2a1, 0x140080291\nmov     eax, cs:dword_14053A6D8                                        ; +0x2a6, 0x140080296\nmov     [rcx+68h], eax                                                 ; +0x2ac, 0x14008029c\nmovzx   eax, cs:word_14053A6DC                                         ; +0x2af, 0x14008029f\nmov     [rcx+6Ch], ax                                                  ; +0x2b6, 0x1400802a6\nmov     byte ptr [rcx+6Eh], 0                                          ; +0x2ba, 0x1400802aa\nlea     rax, [rsp+98h+var_48]                                          ; +0x2be, 0x1400802ae\nmov     [rsp+98h+arg_8], rax                                           ; +0x2c3, 0x1400802b3\nlea     rdx, [rsp+98h+var_48]                                          ; +0x2cb, 0x1400802bb\nlea     rcx, [rsp+98h+var_28]                                          ; +0x2d0, 0x1400802c0\ncall    sub_14003BDB0                                                  ; +0x2d5, 0x1400802c5\nmovss   xmm0, cs:flt_140622C24                                         ; +0x2da, 0x1400802ca\nmovss   [rsp+98h+var_58], xmm0                                         ; +0x2e2, 0x1400802d2\nxorps   xmm1, xmm1                                                     ; +0x2e8, 0x1400802d8\nmovss   [rsp+98h+var_60], xmm1                                         ; +0x2eb, 0x1400802db\nmov     [rsp+98h+var_68], 0                                            ; +0x2f1, 0x1400802e1\nmovss   xmm0, cs:dword_14062343C                                       ; +0x2f6, 0x1400802e6\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x2fe, 0x1400802ee\nlea     rcx, aDelete; \"DELETE\"                                         ; +0x304, 0x1400802f4\nmov     [rsp+98h+var_78], rcx                                          ; +0x30b, 0x1400802fb\nlea     r9, aCancel; \"Cancel\"                                          ; +0x310, 0x140080300\nmov     r8, rax                                                        ; +0x317, 0x140080307\nlea     rdx, aWarning; \"Warning\"                                       ; +0x31a, 0x14008030a\nmov     rcx, rdi                                                       ; +0x321, 0x140080311\ncall    FLAlertLayer__create                                           ; +0x324, 0x140080314\nmov     rbx, rax                                                       ; +0x329, 0x140080319\nlea     rcx, [rsp+98h+var_48]                                          ; +0x32c, 0x14008031c\ncall    sub_14003A830                                                  ; +0x331, 0x140080321\nmov     r8, [rbx]                                                      ; +0x336, 0x140080326\nmov     edx, 4                                                         ; +0x339, 0x140080329\nmov     rcx, rbx                                                       ; +0x33e, 0x14008032e\ncall    qword ptr [r8+40h]                                             ; +0x341, 0x140080331\nlea     rdx, aGjButton06Png; \"GJ_button_06.png\"                        ; +0x345, 0x140080335\nmov     rcx, [rbx+258h]                                                ; +0x34c, 0x14008033c\ncall    ButtonSprite__updateBGImage                                    ; +0x353, 0x140080343\nmov     rdx, [rbx]                                                     ; +0x358, 0x140080348\nmov     rcx, rbx                                                       ; +0x35b, 0x14008034b\ncall    qword ptr [rdx+410h]                                           ; +0x35e, 0x14008034e\nmov     rbx, [rsp+98h+arg_0]                                           ; +0x364, 0x140080354\nadd     rsp, 90h                                                       ; +0x36c, 0x14008035c\npop     rdi                                                            ; +0x373, 0x140080363\nretn                                                                   ; +0x374, 0x140080364", "xrefs": ["<???> @ 0x14053ac90", "<???> @ 0x1406c6990"], "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"}