{"type": "func", "start": 5373377392, "end": 5373377735, "name": "MenuLayer::onDaily", "pseudocode": "// \n// MenuLayer::onDaily from 0x140473b70 to 0x140473cc7 (343 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x140473828\n// > <???> @ 0x1409281fc\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\n__int64 MenuLayer::onDaily()\n{\n  _QWORD *v0; // rbx\n  __int64 (__fastcall *v1)(_QWORD *); // rdx\n\n  v0 = operator new(0x2D8u);\n  FLAlertLayer::FLAlertLayer((__int64)v0);\n  *v0 = &RewardsPage::`vftable';\n  v0[40] = &RewardsPage::`vftable';\n  v0[41] = &RewardsPage::`vftable';\n  v0[42] = &RewardsPage::`vftable';\n  v0[43] = &RewardsPage::`vftable';\n  v0[44] = &RewardsPage::`vftable';\n  v0[51] = &RewardsPage::`vftable';\n  v0[54] = &RewardsPage::`vftable';\n  v0[68] = &RewardsPage::`vftable';\n  v0[83] = &RewardsPage::`vftable';\n  v0[84] = &RewardsPage::`vftable';\n  v0[85] = 0;\n  v0[86] = 0;\n  v0[87] = 0;\n  v0[88] = 0;\n  *((_WORD *)v0 + 356) = 0;\n  v0[90] = 0;\n  if ( (unsigned __int8)RewardsPage::init(v0) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v0 + 8LL))(v0, 1);\n    v0 = nullptr;\n  }\n  v1 = *(__int64 (__fastcall **)(_QWORD *))(*v0 + 1064LL);\n  if ( (char *)v1 == (char *)ProfilePage::show )\n    return ProfilePage::show(v0);\n  else\n    return v1(v0);\n}", "assembly": "; \n; MenuLayer::onDaily from 0x140473b70 to 0x140473cc7 (343 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x140473828\n; > <???> @ 0x1409281fc\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_0], rbx                                               ; +0x0, 0x140473b70\npush    rdi                                                            ; +0x5, 0x140473b75\nsub     rsp, 20h                                                       ; +0x6, 0x140473b76\nmov     ecx, 2D8h; Size                                                ; +0xa, 0x140473b7a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x140473b7f\nmov     rbx, rax                                                       ; +0x14, 0x140473b84\nmov     [rsp+28h+arg_10], rax                                          ; +0x17, 0x140473b87\nmov     rcx, rax                                                       ; +0x1c, 0x140473b8c\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x1f, 0x140473b8f\nlea     rax, ??_7RewardsPage@@6B@; const RewardsPage::`vftable'        ; +0x24, 0x140473b94\nmov     [rbx], rax                                                     ; +0x2b, 0x140473b9b\nlea     rax, ??_7RewardsPage@@6B@_0; const RewardsPage::`vftable'      ; +0x2e, 0x140473b9e\nmov     [rbx+140h], rax                                                ; +0x35, 0x140473ba5\nlea     rax, ??_7RewardsPage@@6B@_1; const RewardsPage::`vftable'      ; +0x3c, 0x140473bac\nmov     [rbx+148h], rax                                                ; +0x43, 0x140473bb3\nlea     rax, ??_7RewardsPage@@6B@_2; const RewardsPage::`vftable'      ; +0x4a, 0x140473bba\nmov     [rbx+150h], rax                                                ; +0x51, 0x140473bc1\nlea     rax, ??_7RewardsPage@@6B@_3; const RewardsPage::`vftable'      ; +0x58, 0x140473bc8\nmov     [rbx+158h], rax                                                ; +0x5f, 0x140473bcf\nlea     rax, ??_7RewardsPage@@6B@_4; const RewardsPage::`vftable'      ; +0x66, 0x140473bd6\nmov     [rbx+160h], rax                                                ; +0x6d, 0x140473bdd\nlea     rax, ??_7RewardsPage@@6B@_5; const RewardsPage::`vftable'      ; +0x74, 0x140473be4\nmov     [rbx+198h], rax                                                ; +0x7b, 0x140473beb\nlea     rax, ??_7RewardsPage@@6B@_6; const RewardsPage::`vftable'      ; +0x82, 0x140473bf2\nmov     [rbx+1B0h], rax                                                ; +0x89, 0x140473bf9\nlea     rax, ??_7RewardsPage@@6B@_7; const RewardsPage::`vftable'      ; +0x90, 0x140473c00\nmov     [rbx+220h], rax                                                ; +0x97, 0x140473c07\nlea     rax, ??_7RewardsPage@@6B@_8; const RewardsPage::`vftable'      ; +0x9e, 0x140473c0e\nmov     [rbx+298h], rax                                                ; +0xa5, 0x140473c15\nlea     rax, ??_7RewardsPage@@6B@_9; const RewardsPage::`vftable'      ; +0xac, 0x140473c1c\nmov     [rbx+2A0h], rax                                                ; +0xb3, 0x140473c23\nxor     edi, edi                                                       ; +0xba, 0x140473c2a\nmov     [rbx+2A8h], rdi                                                ; +0xbc, 0x140473c2c\nmov     [rbx+2B0h], rdi                                                ; +0xc3, 0x140473c33\nmov     [rbx+2B8h], rdi                                                ; +0xca, 0x140473c3a\nmov     [rbx+2C0h], rdi                                                ; +0xd1, 0x140473c41\nmov     [rbx+2C8h], di                                                 ; +0xd8, 0x140473c48\nmov     [rbx+2D0h], rdi                                                ; +0xdf, 0x140473c4f\nmov     rax, cs:off_1407DB368                                          ; +0xe6, 0x140473c56\nlea     rcx, RewardsPage__init                                         ; +0xed, 0x140473c5d\ncmp     rax, rcx                                                       ; +0xf4, 0x140473c64\nmov     rcx, rbx                                                       ; +0xf7, 0x140473c67\njnz     short loc_140473C73                                            ; +0xfa, 0x140473c6a\ncall    RewardsPage__init                                              ; +0xfc, 0x140473c6c\njmp     short loc_140473C75                                            ; +0x101, 0x140473c71\ncall    rax ; RewardsPage__init                                        ; +0x103, 0x140473c73\nmov     rcx, rbx                                                       ; +0x105, 0x140473c75\ntest    al, al                                                         ; +0x108, 0x140473c78\njz      short loc_140473C84                                            ; +0x10a, 0x140473c7a\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x10c, 0x140473c7c\njmp     short loc_140473C92                                            ; +0x112, 0x140473c82\nmov     rax, [rbx]                                                     ; +0x114, 0x140473c84\nmov     edx, 1                                                         ; +0x117, 0x140473c87\ncall    qword ptr [rax+8]                                              ; +0x11c, 0x140473c8c\nmov     rbx, rdi                                                       ; +0x11f, 0x140473c8f\nmov     rax, [rbx]                                                     ; +0x122, 0x140473c92\nmov     rdx, [rax+428h]                                                ; +0x125, 0x140473c95\nlea     rax, ProfilePage__show; Merged with: ProfilePage::show, RewardsPage::show ; +0x12c, 0x140473c9c\nmov     rcx, rbx                                                       ; +0x133, 0x140473ca3\ncmp     rdx, rax                                                       ; +0x136, 0x140473ca6\njnz     short loc_140473CBA                                            ; +0x139, 0x140473ca9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x13b, 0x140473cab\nadd     rsp, 20h                                                       ; +0x140, 0x140473cb0\npop     rdi                                                            ; +0x144, 0x140473cb4\njmp     ProfilePage__show; Merged with: ProfilePage::show, RewardsPage::show ; +0x145, 0x140473cb5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x14a, 0x140473cba\nadd     rsp, 20h                                                       ; +0x14f, 0x140473cbf\npop     rdi                                                            ; +0x153, 0x140473cc3\njmp     rdx                                                            ; +0x154, 0x140473cc4", "xrefs": ["MenuLayer::init @ 0x140473828", "<???> @ 0x1409281fc"], "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"}