{"type": "func", "start": 5371848480, "end": 5371848863, "name": "LevelInfoLayer::onRateDemon", "pseudocode": "// \n// LevelInfoLayer::onRateDemon from 0x1402fe720 to 0x1402fe89f (383 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x1402f873b\n// > <???> @ 0x1406d428c\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 LevelInfoLayer::onRateDemon(LevelInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  int v3; // ebx\n  RateDemonLayer *v4; // rdi\n  void (*show)(FLAlertLayer *); // rdx\n\n  if ( !a1->m_isBusy )\n  {\n    v3 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed;\n    v4 = (RateDemonLayer *)operator new(0x2C8u);\n    FLAlertLayer::FLAlertLayer(v4);\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (RateDemonLayer_vtbl *)&RateDemonLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&RateDemonLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&RateDemonLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&RateDemonLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&RateDemonLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&RateDemonLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&RateDemonLayer::`vftable';\n    v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&RateDemonLayer::`vftable';\n    v4->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&RateDemonLayer::`vftable';\n    v4->UploadActionDelegate::__vftable = (UploadActionDelegate_vtbl *)&RateDemonLayer::`vftable';\n    v4->m_uploadFinished = 0;\n    v4->m_submitButton = nullptr;\n    v4->m_demons = nullptr;\n    v4->m_unkPtr = nullptr;\n    *(_QWORD *)&v4->m_levelID = 0;\n    v4->m_moderator = 0;\n    v4->m_popup = nullptr;\n    v4->m_delegate = nullptr;\n    if ( RateDemonLayer::init(v4, v3) )\n    {\n      cocos2d::CCObject::autorelease(v4);\n    }\n    else\n    {\n      ((void (__fastcall *)(RateDemonLayer *, __int64))v4->~RateDemonLayer)(v4, 1);\n      v4 = nullptr;\n    }\n    v4->m_delegate = &a1->RateLevelDelegate;\n    show = (void (*)(FLAlertLayer *))v4->show;\n    if ( show == FLAlertLayer::show )\n      FLAlertLayer::show(v4);\n    else\n      show(v4);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onRateDemon from 0x1402fe720 to 0x1402fe89f (383 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x1402f873b\n; > <???> @ 0x1406d428c\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_8], rbx                                               ; +0x0, 0x1402fe720\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1402fe725\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1402fe72a\npush    rdi                                                            ; +0xf, 0x1402fe72f\nsub     rsp, 20h                                                       ; +0x10, 0x1402fe730\nmov     rsi, rcx                                                       ; +0x14, 0x1402fe734\ncmp     byte ptr [rcx+1E0h], 0                                         ; +0x17, 0x1402fe737\njnz     loc_1402FE88A                                                  ; +0x1e, 0x1402fe73e\nmov     rax, [rcx+1F0h]                                                ; +0x24, 0x1402fe744\nmov     ebx, [rax+148h]                                                ; +0x2b, 0x1402fe74b\nsub     ebx, [rax+14Ch]                                                ; +0x31, 0x1402fe751\nmov     ecx, 2C8h; Size                                                ; +0x37, 0x1402fe757\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3c, 0x1402fe75c\nmov     rdi, rax                                                       ; +0x41, 0x1402fe761\nmov     [rsp+28h+arg_0], rax                                           ; +0x44, 0x1402fe764\nmov     rcx, rax                                                       ; +0x49, 0x1402fe769\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x4c, 0x1402fe76c\nlea     rax, ??_7RateDemonLayer@@6B@; const RateDemonLayer::`vftable'  ; +0x51, 0x1402fe771\nmov     [rdi], rax                                                     ; +0x58, 0x1402fe778\nlea     rax, ??_7RateDemonLayer@@6B@_0; const RateDemonLayer::`vftable' ; +0x5b, 0x1402fe77b\nmov     [rdi+140h], rax                                                ; +0x62, 0x1402fe782\nlea     rax, ??_7RateDemonLayer@@6B@_1; const RateDemonLayer::`vftable' ; +0x69, 0x1402fe789\nmov     [rdi+148h], rax                                                ; +0x70, 0x1402fe790\nlea     rax, ??_7RateDemonLayer@@6B@_2; const RateDemonLayer::`vftable' ; +0x77, 0x1402fe797\nmov     [rdi+150h], rax                                                ; +0x7e, 0x1402fe79e\nlea     rax, ??_7RateDemonLayer@@6B@_3; const RateDemonLayer::`vftable' ; +0x85, 0x1402fe7a5\nmov     [rdi+158h], rax                                                ; +0x8c, 0x1402fe7ac\nlea     rax, ??_7RateDemonLayer@@6B@_4; const RateDemonLayer::`vftable' ; +0x93, 0x1402fe7b3\nmov     [rdi+160h], rax                                                ; +0x9a, 0x1402fe7ba\nlea     rax, ??_7RateDemonLayer@@6B@_5; const RateDemonLayer::`vftable' ; +0xa1, 0x1402fe7c1\nmov     [rdi+198h], rax                                                ; +0xa8, 0x1402fe7c8\nlea     rax, ??_7RateDemonLayer@@6B@_6; const RateDemonLayer::`vftable' ; +0xaf, 0x1402fe7cf\nmov     [rdi+1B0h], rax                                                ; +0xb6, 0x1402fe7d6\nlea     rax, ??_7RateDemonLayer@@6B@_7; const RateDemonLayer::`vftable' ; +0xbd, 0x1402fe7dd\nmov     [rdi+278h], rax                                                ; +0xc4, 0x1402fe7e4\nlea     rax, ??_7RateDemonLayer@@6B@_8; const RateDemonLayer::`vftable' ; +0xcb, 0x1402fe7eb\nmov     [rdi+280h], rax                                                ; +0xd2, 0x1402fe7f2\nmov     byte ptr [rdi+288h], 0                                         ; +0xd9, 0x1402fe7f9\nxor     ebp, ebp                                                       ; +0xe0, 0x1402fe800\nmov     [rdi+290h], rbp                                                ; +0xe2, 0x1402fe802\nmov     [rdi+298h], rbp                                                ; +0xe9, 0x1402fe809\nmov     [rdi+2A0h], rbp                                                ; +0xf0, 0x1402fe810\nmov     [rdi+2A8h], rbp                                                ; +0xf7, 0x1402fe817\nmov     [rdi+2B0h], bpl                                                ; +0xfe, 0x1402fe81e\nmov     [rdi+2B8h], rbp                                                ; +0x105, 0x1402fe825\nmov     [rdi+2C0h], rbp                                                ; +0x10c, 0x1402fe82c\nmov     edx, ebx                                                       ; +0x113, 0x1402fe833\nmov     rcx, rdi                                                       ; +0x115, 0x1402fe835\ncall    RateDemonLayer__init                                           ; +0x118, 0x1402fe838\nmov     rcx, rdi                                                       ; +0x11d, 0x1402fe83d\ntest    al, al                                                         ; +0x120, 0x1402fe840\njz      short loc_1402FE84C                                            ; +0x122, 0x1402fe842\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x124, 0x1402fe844\njmp     short loc_1402FE85A                                            ; +0x12a, 0x1402fe84a\nmov     rax, [rdi]                                                     ; +0x12c, 0x1402fe84c\nmov     edx, 1                                                         ; +0x12f, 0x1402fe84f\ncall    qword ptr [rax+8]                                              ; +0x134, 0x1402fe854\nmov     rdi, rbp                                                       ; +0x137, 0x1402fe857\nlea     rax, [rsi+1A8h]                                                ; +0x13a, 0x1402fe85a\nmov     [rdi+2C0h], rax                                                ; +0x141, 0x1402fe861\nmov     rax, [rdi]                                                     ; +0x148, 0x1402fe868\nmov     rdx, [rax+410h]                                                ; +0x14b, 0x1402fe86b\nlea     rax, FLAlertLayer__show                                        ; +0x152, 0x1402fe872\nmov     rcx, rdi                                                       ; +0x159, 0x1402fe879\ncmp     rdx, rax                                                       ; +0x15c, 0x1402fe87c\njnz     short loc_1402FE888                                            ; +0x15f, 0x1402fe87f\ncall    FLAlertLayer__show                                             ; +0x161, 0x1402fe881\njmp     short loc_1402FE88A                                            ; +0x166, 0x1402fe886\ncall    rdx                                                            ; +0x168, 0x1402fe888\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x16a, 0x1402fe88a\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x16f, 0x1402fe88f\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x174, 0x1402fe894\nadd     rsp, 20h                                                       ; +0x179, 0x1402fe899\npop     rdi                                                            ; +0x17d, 0x1402fe89d\nretn                                                                   ; +0x17e, 0x1402fe89e", "xrefs": ["LevelInfoLayer::init @ 0x1402f873b", "<???> @ 0x1406d428c"], "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"}