{"type": "func", "start": 5369318240, "end": 5369318611, "name": "AccountLayer::layerHidden", "pseudocode": "// \n// AccountLayer::layerHidden from 0x140094b60 to 0x140094cd3 (371 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140719110\n// > <???> @ 0x140912c14\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:26:02 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall AccountLayer::layerHidden(_BYTE *a1)\n{\n  _QWORD *v2; // rbx\n  __int64 v3; // r8\n  __int64 v4; // rax\n  void (__fastcall *v5)(_QWORD *, _QWORD); // r8\n  __int64 result; // rax\n  __int64 v7; // rdx\n\n  if ( *((_DWORD *)a1 + 178) == 1 )\n  {\n    v2 = operator new(0x298u);\n    GJDropDownLayer::GJDropDownLayer((__int64)v2);\n    *v2 = &AccountHelpLayer::`vftable';\n    v2[40] = &AccountHelpLayer::`vftable';\n    v2[41] = &AccountHelpLayer::`vftable';\n    v2[42] = &AccountHelpLayer::`vftable';\n    v2[43] = &AccountHelpLayer::`vftable';\n    v2[44] = &AccountHelpLayer::`vftable';\n    v2[51] = &AccountHelpLayer::`vftable';\n    v2[54] = &AccountHelpLayer::`vftable';\n    v2[76] = &AccountHelpLayer::`vftable';\n    v2[77] = &AccountHelpLayer::`vftable';\n    *((_BYTE *)v2 + 656) = 0;\n    if ( (unsigned __int8)GJDropDownLayer::init(v2, \"Account Help\", v3, 0) )\n    {\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n    }\n    else\n    {\n      (*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);\n      v2 = nullptr;\n    }\n    v4 = (*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 504LL))(a1);\n    (*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)v4 + 456LL))(v4, v2, 100);\n    v5 = *(void (__fastcall **)(_QWORD *, _QWORD))(*v2 + 1080LL);\n    if ( (char *)v5 == (char *)GJDropDownLayer::showLayer )\n      GJDropDownLayer::showLayer(v2, 0);\n    else\n      v5(v2, 0);\n  }\n  result = (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 336LL))(a1, 0);\n  if ( a1[584] )\n  {\n    LOBYTE(v7) = 1;\n    return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 520LL))(a1, v7);\n  }\n  return result;\n}", "assembly": "; \n; AccountLayer::layerHidden from 0x140094b60 to 0x140094cd3 (371 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140719110\n; > <???> @ 0x140912c14\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:26:02 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140094b60\npush    rdi                                                            ; +0x5, 0x140094b65\nsub     rsp, 20h                                                       ; +0x6, 0x140094b66\nmov     rdi, rcx                                                       ; +0xa, 0x140094b6a\ncmp     dword ptr [rcx+2C8h], 1                                        ; +0xd, 0x140094b6d\njnz     loc_140094CA3                                                  ; +0x14, 0x140094b74\nmov     ecx, 298h; Size                                                ; +0x1a, 0x140094b7a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f, 0x140094b7f\nmov     rbx, rax                                                       ; +0x24, 0x140094b84\nmov     [rsp+28h+arg_0], rax                                           ; +0x27, 0x140094b87\nmov     rcx, rax                                                       ; +0x2c, 0x140094b8c\ncall    GJDropDownLayer__GJDropDownLayer                               ; +0x2f, 0x140094b8f\nlea     rax, ??_7AccountHelpLayer@@6B@; const AccountHelpLayer::`vftable' ; +0x34, 0x140094b94\nmov     [rbx], rax                                                     ; +0x3b, 0x140094b9b\nlea     rax, ??_7AccountHelpLayer@@6B@_0; const AccountHelpLayer::`vftable' ; +0x3e, 0x140094b9e\nmov     [rbx+140h], rax                                                ; +0x45, 0x140094ba5\nlea     rax, ??_7AccountHelpLayer@@6B@_1; const AccountHelpLayer::`vftable' ; +0x4c, 0x140094bac\nmov     [rbx+148h], rax                                                ; +0x53, 0x140094bb3\nlea     rax, ??_7AccountHelpLayer@@6B@_2; const AccountHelpLayer::`vftable' ; +0x5a, 0x140094bba\nmov     [rbx+150h], rax                                                ; +0x61, 0x140094bc1\nlea     rax, ??_7AccountHelpLayer@@6B@_3; const AccountHelpLayer::`vftable' ; +0x68, 0x140094bc8\nmov     [rbx+158h], rax                                                ; +0x6f, 0x140094bcf\nlea     rax, ??_7AccountHelpLayer@@6B@_4; const AccountHelpLayer::`vftable' ; +0x76, 0x140094bd6\nmov     [rbx+160h], rax                                                ; +0x7d, 0x140094bdd\nlea     rax, ??_7AccountHelpLayer@@6B@_5; const AccountHelpLayer::`vftable' ; +0x84, 0x140094be4\nmov     [rbx+198h], rax                                                ; +0x8b, 0x140094beb\nlea     rax, ??_7AccountHelpLayer@@6B@_6; const AccountHelpLayer::`vftable' ; +0x92, 0x140094bf2\nmov     [rbx+1B0h], rax                                                ; +0x99, 0x140094bf9\nlea     rax, ??_7AccountHelpLayer@@6B@_7; const AccountHelpLayer::`vftable' ; +0xa0, 0x140094c00\nmov     [rbx+260h], rax                                                ; +0xa7, 0x140094c07\nlea     rax, ??_7AccountHelpLayer@@6B@_8; const AccountHelpLayer::`vftable' ; +0xae, 0x140094c0e\nmov     [rbx+268h], rax                                                ; +0xb5, 0x140094c15\nmov     byte ptr [rbx+290h], 0                                         ; +0xbc, 0x140094c1c\nxor     r9d, r9d                                                       ; +0xc3, 0x140094c23\nmovss   xmm2, cs:dword_14083591C                                       ; +0xc6, 0x140094c26\nlea     rdx, aAccountHelp; \"Account Help\"                              ; +0xce, 0x140094c2e\nmov     rcx, rbx                                                       ; +0xd5, 0x140094c35\ncall    GJDropDownLayer__init                                          ; +0xd8, 0x140094c38\nmov     rcx, rbx                                                       ; +0xdd, 0x140094c3d\ntest    al, al                                                         ; +0xe0, 0x140094c40\njz      short loc_140094C4C                                            ; +0xe2, 0x140094c42\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe4, 0x140094c44\njmp     short loc_140094C59                                            ; +0xea, 0x140094c4a\nmov     rax, [rbx]                                                     ; +0xec, 0x140094c4c\nmov     edx, 1                                                         ; +0xef, 0x140094c4f\ncall    qword ptr [rax+8]                                              ; +0xf4, 0x140094c54\nxor     ebx, ebx                                                       ; +0xf7, 0x140094c57\nmov     rax, [rdi]                                                     ; +0xf9, 0x140094c59\nmov     rcx, rdi                                                       ; +0xfc, 0x140094c5c\ncall    qword ptr [rax+1F8h]                                           ; +0xff, 0x140094c5f\nmov     rdx, [rax]                                                     ; +0x105, 0x140094c65\nmov     r9, [rdx+1C8h]                                                 ; +0x108, 0x140094c68\nmov     r8d, 64h ; 'd'                                                 ; +0x10f, 0x140094c6f\nmov     rdx, rbx                                                       ; +0x115, 0x140094c75\nmov     rcx, rax                                                       ; +0x118, 0x140094c78\ncall    r9                                                             ; +0x11b, 0x140094c7b\nmov     rax, [rbx]                                                     ; +0x11e, 0x140094c7e\nmov     r8, [rax+438h]                                                 ; +0x121, 0x140094c81\nlea     rax, GJDropDownLayer__showLayer                                ; +0x128, 0x140094c88\nxor     edx, edx                                                       ; +0x12f, 0x140094c8f\nmov     rcx, rbx                                                       ; +0x131, 0x140094c91\ncmp     r8, rax                                                        ; +0x134, 0x140094c94\njnz     short loc_140094CA0                                            ; +0x137, 0x140094c97\ncall    GJDropDownLayer__showLayer                                     ; +0x139, 0x140094c99\njmp     short loc_140094CA3                                            ; +0x13e, 0x140094c9e\ncall    r8                                                             ; +0x140, 0x140094ca0\nmov     rax, [rdi]                                                     ; +0x143, 0x140094ca3\nxor     edx, edx                                                       ; +0x146, 0x140094ca6\nmov     rcx, rdi                                                       ; +0x148, 0x140094ca8\ncall    qword ptr [rax+150h]                                           ; +0x14b, 0x140094cab\ncmp     byte ptr [rdi+248h], 0                                         ; +0x151, 0x140094cb1\njz      short loc_140094CC8                                            ; +0x158, 0x140094cb8\nmov     rax, [rdi]                                                     ; +0x15a, 0x140094cba\nmov     dl, 1                                                          ; +0x15d, 0x140094cbd\nmov     rcx, rdi                                                       ; +0x15f, 0x140094cbf\ncall    qword ptr [rax+208h]                                           ; +0x162, 0x140094cc2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x168, 0x140094cc8\nadd     rsp, 20h                                                       ; +0x16d, 0x140094ccd\npop     rdi                                                            ; +0x171, 0x140094cd1\nretn                                                                   ; +0x172, 0x140094cd2", "xrefs": ["<???> @ 0x140719110", "<???> @ 0x140912c14"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}