{"type": "func", "start": 5372072096, "end": 5372072425, "name": "MenuLayer::onDaily", "pseudocode": "// \n// MenuLayer::onDaily from 0x1403350a0 to 0x1403351e9 (329 bytes)\n// \n// 2 xrefs:\n// > MenuLayer::init @ 0x140334eb0\n// > <???> @ 0x1406d5108\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=1\nvoid MenuLayer::onDaily(MenuLayer *a1, cocos2d::CCObject *a2)\n{\n  RewardsPage *v2; // rbx\n  void (__fastcall *show)(RewardsPage *__hidden); // rdx\n\n  v2 = (RewardsPage *)operator new(0x2B8u);\n  FLAlertLayer::FLAlertLayer(v2);\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RewardsPage_vtbl *)&RewardsPage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&RewardsPage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&RewardsPage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&RewardsPage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&RewardsPage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&RewardsPage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&RewardsPage::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&RewardsPage::`vftable';\n  v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&RewardsPage::`vftable';\n  v2->GJRewardDelegate::__vftable = (GJRewardDelegate_vtbl *)&RewardsPage::`vftable';\n  v2->m_leftLabel = nullptr;\n  v2->m_rightLabel = nullptr;\n  v2->m_leftChest = nullptr;\n  v2->m_rightChest = nullptr;\n  *(_WORD *)&v2->m_leftOpen = 0;\n  v2->m_openLayer = nullptr;\n  if ( RewardsPage::init(v2) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    ((void (__fastcall *)(RewardsPage *, __int64))v2->~RewardsPage)(v2, 1);\n    v2 = nullptr;\n  }\n  show = v2->show;\n  if ( (char *)show == (char *)ProfilePage::show )\n    ProfilePage::show(v2);\n  else\n    show(v2);\n}", "assembly": "; \n; MenuLayer::onDaily from 0x1403350a0 to 0x1403351e9 (329 bytes)\n; \n; 2 xrefs:\n; > MenuLayer::init @ 0x140334eb0\n; > <???> @ 0x1406d5108\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, 0x1403350a0\npush    rdi                                                            ; +0x5, 0x1403350a5\nsub     rsp, 20h                                                       ; +0x6, 0x1403350a6\nmov     ecx, 2B8h; Size                                                ; +0xa, 0x1403350aa\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xf, 0x1403350af\nmov     rbx, rax                                                       ; +0x14, 0x1403350b4\nmov     [rsp+28h+arg_10], rax                                          ; +0x17, 0x1403350b7\nmov     rcx, rax                                                       ; +0x1c, 0x1403350bc\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x1f, 0x1403350bf\nlea     rax, ??_7RewardsPage@@6B@; const RewardsPage::`vftable'        ; +0x24, 0x1403350c4\nmov     [rbx], rax                                                     ; +0x2b, 0x1403350cb\nlea     rax, ??_7RewardsPage@@6B@_0; const RewardsPage::`vftable'      ; +0x2e, 0x1403350ce\nmov     [rbx+140h], rax                                                ; +0x35, 0x1403350d5\nlea     rax, ??_7RewardsPage@@6B@_1; const RewardsPage::`vftable'      ; +0x3c, 0x1403350dc\nmov     [rbx+148h], rax                                                ; +0x43, 0x1403350e3\nlea     rax, ??_7RewardsPage@@6B@_2; const RewardsPage::`vftable'      ; +0x4a, 0x1403350ea\nmov     [rbx+150h], rax                                                ; +0x51, 0x1403350f1\nlea     rax, ??_7RewardsPage@@6B@_3; const RewardsPage::`vftable'      ; +0x58, 0x1403350f8\nmov     [rbx+158h], rax                                                ; +0x5f, 0x1403350ff\nlea     rax, ??_7RewardsPage@@6B@_4; const RewardsPage::`vftable'      ; +0x66, 0x140335106\nmov     [rbx+160h], rax                                                ; +0x6d, 0x14033510d\nlea     rax, ??_7RewardsPage@@6B@_5; const RewardsPage::`vftable'      ; +0x74, 0x140335114\nmov     [rbx+198h], rax                                                ; +0x7b, 0x14033511b\nlea     rax, ??_7RewardsPage@@6B@_6; const RewardsPage::`vftable'      ; +0x82, 0x140335122\nmov     [rbx+1B0h], rax                                                ; +0x89, 0x140335129\nlea     rax, ??_7RewardsPage@@6B@_7; const RewardsPage::`vftable'      ; +0x90, 0x140335130\nmov     [rbx+278h], rax                                                ; +0x97, 0x140335137\nlea     rax, ??_7RewardsPage@@6B@_8; const RewardsPage::`vftable'      ; +0x9e, 0x14033513e\nmov     [rbx+280h], rax                                                ; +0xa5, 0x140335145\nxor     edi, edi                                                       ; +0xac, 0x14033514c\nmov     [rbx+288h], rdi                                                ; +0xae, 0x14033514e\nmov     [rbx+290h], rdi                                                ; +0xb5, 0x140335155\nmov     [rbx+298h], rdi                                                ; +0xbc, 0x14033515c\nmov     [rbx+2A0h], rdi                                                ; +0xc3, 0x140335163\nmov     [rbx+2A8h], di                                                 ; +0xca, 0x14033516a\nmov     [rbx+2B0h], rdi                                                ; +0xd1, 0x140335171\nmov     rax, cs:off_1405CD688                                          ; +0xd8, 0x140335178\nlea     rcx, RewardsPage__init                                         ; +0xdf, 0x14033517f\ncmp     rax, rcx                                                       ; +0xe6, 0x140335186\nmov     rcx, rbx                                                       ; +0xe9, 0x140335189\njnz     short loc_140335195                                            ; +0xec, 0x14033518c\ncall    RewardsPage__init                                              ; +0xee, 0x14033518e\njmp     short loc_140335197                                            ; +0xf3, 0x140335193\ncall    rax ; RewardsPage__init                                        ; +0xf5, 0x140335195\nmov     rcx, rbx                                                       ; +0xf7, 0x140335197\ntest    al, al                                                         ; +0xfa, 0x14033519a\njz      short loc_1403351A6                                            ; +0xfc, 0x14033519c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xfe, 0x14033519e\njmp     short loc_1403351B4                                            ; +0x104, 0x1403351a4\nmov     rax, [rbx]                                                     ; +0x106, 0x1403351a6\nmov     edx, 1                                                         ; +0x109, 0x1403351a9\ncall    qword ptr [rax+8]                                              ; +0x10e, 0x1403351ae\nmov     rbx, rdi                                                       ; +0x111, 0x1403351b1\nmov     rax, [rbx]                                                     ; +0x114, 0x1403351b4\nmov     rdx, [rax+410h]                                                ; +0x117, 0x1403351b7\nlea     rax, ProfilePage__show; Merged with: ProfilePage::show, RewardsPage::show ; +0x11e, 0x1403351be\nmov     rcx, rbx                                                       ; +0x125, 0x1403351c5\ncmp     rdx, rax                                                       ; +0x128, 0x1403351c8\njnz     short loc_1403351DC                                            ; +0x12b, 0x1403351cb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x12d, 0x1403351cd\nadd     rsp, 20h                                                       ; +0x132, 0x1403351d2\npop     rdi                                                            ; +0x136, 0x1403351d6\njmp     ProfilePage__show; Merged with: ProfilePage::show, RewardsPage::show ; +0x137, 0x1403351d7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x13c, 0x1403351dc\nadd     rsp, 20h                                                       ; +0x141, 0x1403351e1\npop     rdi                                                            ; +0x145, 0x1403351e5\njmp     rdx                                                            ; +0x146, 0x1403351e6", "xrefs": ["MenuLayer::init @ 0x140334eb0", "<???> @ 0x1406d5108"], "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"}