{"type": "func", "start": 5373382112, "end": 5373382389, "name": "MenuLayer::onStats", "pseudocode": "// \n// MenuLayer::onStats from 0x140474de0 to 0x140474ef5 (277 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x14047278c\n// > <???> @ 0x1409282ec\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:32:40 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCAction *__fastcall MenuLayer::onStats(__int64 a1)\n{\n  cocos2d::CCObject *v2; // rbx\n  struct cocos2d::CCAction *(__fastcall *v3)(cocos2d::CCNode *, char); // r8\n\n  v2 = (cocos2d::CCObject *)operator new(0x260u);\n  GJDropDownLayer::GJDropDownLayer((__int64)v2);\n  *(_QWORD *)v2 = &StatsLayer::`vftable';\n  *((_QWORD *)v2 + 40) = &StatsLayer::`vftable';\n  *((_QWORD *)v2 + 41) = &StatsLayer::`vftable';\n  *((_QWORD *)v2 + 42) = &StatsLayer::`vftable';\n  *((_QWORD *)v2 + 43) = &StatsLayer::`vftable';\n  *((_QWORD *)v2 + 44) = &StatsLayer::`vftable';\n  *((_QWORD *)v2 + 51) = &StatsLayer::`vftable';\n  *((_QWORD *)v2 + 54) = &StatsLayer::`vftable';\n  if ( GJDropDownLayer::init((__int64 *)v2, (int)\"Stats\", 220.0, 0) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(v2, 1);\n    v2 = nullptr;\n  }\n  (*(void (__fastcall **)(__int64, cocos2d::CCObject *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v2, 100);\n  v3 = *(struct cocos2d::CCAction *(__fastcall **)(cocos2d::CCNode *, char))(*(_QWORD *)v2 + 1080LL);\n  if ( v3 == GJDropDownLayer::showLayer )\n    return GJDropDownLayer::showLayer(v2, 0);\n  else\n    return v3(v2, 0);\n}", "assembly": "; \n; MenuLayer::onStats from 0x140474de0 to 0x140474ef5 (277 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x14047278c\n; > <???> @ 0x1409282ec\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:32:40 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140474de0\npush    rdi                                                            ; +0x5, 0x140474de5\nsub     rsp, 20h                                                       ; +0x6, 0x140474de6\nmov     rdi, rcx                                                       ; +0xa, 0x140474dea\nmov     ecx, 260h; Size                                                ; +0xd, 0x140474ded\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x140474df2\nmov     rbx, rax                                                       ; +0x17, 0x140474df7\nmov     [rsp+28h+arg_0], rax                                           ; +0x1a, 0x140474dfa\nmov     rcx, rax                                                       ; +0x1f, 0x140474dff\ncall    GJDropDownLayer__GJDropDownLayer                               ; +0x22, 0x140474e02\nlea     rax, ??_7StatsLayer@@6B@; const StatsLayer::`vftable'          ; +0x27, 0x140474e07\nmov     [rbx], rax                                                     ; +0x2e, 0x140474e0e\nlea     rax, ??_7StatsLayer@@6B@_0; const StatsLayer::`vftable'        ; +0x31, 0x140474e11\nmov     [rbx+140h], rax                                                ; +0x38, 0x140474e18\nlea     rax, ??_7StatsLayer@@6B@_1; const StatsLayer::`vftable'        ; +0x3f, 0x140474e1f\nmov     [rbx+148h], rax                                                ; +0x46, 0x140474e26\nlea     rax, ??_7StatsLayer@@6B@_2; const StatsLayer::`vftable'        ; +0x4d, 0x140474e2d\nmov     [rbx+150h], rax                                                ; +0x54, 0x140474e34\nlea     rax, ??_7StatsLayer@@6B@_3; const StatsLayer::`vftable'        ; +0x5b, 0x140474e3b\nmov     [rbx+158h], rax                                                ; +0x62, 0x140474e42\nlea     rax, ??_7StatsLayer@@6B@_4; const StatsLayer::`vftable'        ; +0x69, 0x140474e49\nmov     [rbx+160h], rax                                                ; +0x70, 0x140474e50\nlea     rax, ??_7StatsLayer@@6B@_5; const StatsLayer::`vftable'        ; +0x77, 0x140474e57\nmov     [rbx+198h], rax                                                ; +0x7e, 0x140474e5e\nlea     rax, ??_7StatsLayer@@6B@_6; const StatsLayer::`vftable'        ; +0x85, 0x140474e65\nmov     [rbx+1B0h], rax                                                ; +0x8c, 0x140474e6c\nxor     r9d, r9d                                                       ; +0x93, 0x140474e73\nmovss   xmm2, cs:dword_14083591C                                       ; +0x96, 0x140474e76\nlea     rdx, aStats; \"Stats\"                                           ; +0x9e, 0x140474e7e\nmov     rcx, rbx                                                       ; +0xa5, 0x140474e85\ncall    GJDropDownLayer__init                                          ; +0xa8, 0x140474e88\nmov     rcx, rbx                                                       ; +0xad, 0x140474e8d\ntest    al, al                                                         ; +0xb0, 0x140474e90\njz      short loc_140474E9C                                            ; +0xb2, 0x140474e92\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xb4, 0x140474e94\njmp     short loc_140474EA9                                            ; +0xba, 0x140474e9a\nmov     rax, [rbx]                                                     ; +0xbc, 0x140474e9c\nmov     edx, 1                                                         ; +0xbf, 0x140474e9f\ncall    qword ptr [rax+8]                                              ; +0xc4, 0x140474ea4\nxor     ebx, ebx                                                       ; +0xc7, 0x140474ea7\nmov     rax, [rdi]                                                     ; +0xc9, 0x140474ea9\nmov     r8d, 64h ; 'd'                                                 ; +0xcc, 0x140474eac\nmov     rdx, rbx                                                       ; +0xd2, 0x140474eb2\nmov     rcx, rdi                                                       ; +0xd5, 0x140474eb5\ncall    qword ptr [rax+1C8h]                                           ; +0xd8, 0x140474eb8\nmov     rax, [rbx]                                                     ; +0xde, 0x140474ebe\nmov     r8, [rax+438h]                                                 ; +0xe1, 0x140474ec1\nlea     rax, GJDropDownLayer__showLayer                                ; +0xe8, 0x140474ec8\nxor     edx, edx                                                       ; +0xef, 0x140474ecf\nmov     rcx, rbx                                                       ; +0xf1, 0x140474ed1\ncmp     r8, rax                                                        ; +0xf4, 0x140474ed4\njnz     short loc_140474EE8                                            ; +0xf7, 0x140474ed7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xf9, 0x140474ed9\nadd     rsp, 20h                                                       ; +0xfe, 0x140474ede\npop     rdi                                                            ; +0x102, 0x140474ee2\njmp     GJDropDownLayer__showLayer                                     ; +0x103, 0x140474ee3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x108, 0x140474ee8\nadd     rsp, 20h                                                       ; +0x10d, 0x140474eed\npop     rdi                                                            ; +0x111, 0x140474ef1\njmp     r8                                                             ; +0x112, 0x140474ef2", "xrefs": ["MenuLayer::init @ 0x14047278c", "<???> @ 0x1409282ec"], "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"}