{"type": "func", "start": 5373050368, "end": 5373050765, "name": "LevelInfoLayer::onRateDemon", "pseudocode": "// \n// LevelInfoLayer::onRateDemon from 0x140423e00 to 0x140423f8d (397 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041d56a\n// > <???> @ 0x14092690c\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:10 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall LevelInfoLayer::onRateDemon(__int64 a1)\n{\n  unsigned int v2; // ebx\n  _QWORD *v3; // rdi\n  __int64 (__fastcall *v4)(__int64); // rdx\n\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    v2 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL);\n    v3 = operator new(0x2E8u);\n    FLAlertLayer::FLAlertLayer((__int64)v3);\n    *v3 = &RateDemonLayer::`vftable';\n    v3[40] = &RateDemonLayer::`vftable';\n    v3[41] = &RateDemonLayer::`vftable';\n    v3[42] = &RateDemonLayer::`vftable';\n    v3[43] = &RateDemonLayer::`vftable';\n    v3[44] = &RateDemonLayer::`vftable';\n    v3[51] = &RateDemonLayer::`vftable';\n    v3[54] = &RateDemonLayer::`vftable';\n    v3[68] = &RateDemonLayer::`vftable';\n    v3[83] = &RateDemonLayer::`vftable';\n    v3[84] = &RateDemonLayer::`vftable';\n    *((_BYTE *)v3 + 680) = 0;\n    v3[86] = 0;\n    v3[87] = 0;\n    v3[88] = 0;\n    v3[89] = 0;\n    *((_BYTE *)v3 + 720) = 0;\n    v3[91] = 0;\n    v3[92] = 0;\n    if ( (unsigned __int8)RateDemonLayer::init(v3, v2) )\n    {\n      cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);\n    }\n    else\n    {\n      (*(void (__fastcall **)(_QWORD *, __int64))(*v3 + 8LL))(v3, 1);\n      v3 = nullptr;\n    }\n    v3[92] = a1 + 424;\n    v4 = *(__int64 (__fastcall **)(__int64))(*v3 + 1064LL);\n    if ( v4 == FLAlertLayer::show )\n      FLAlertLayer::show((__int64)v3);\n    else\n      v4((__int64)v3);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onRateDemon from 0x140423e00 to 0x140423f8d (397 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041d56a\n; > <???> @ 0x14092690c\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:10 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140423e00\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140423e05\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x140423e0a\npush    rdi                                                            ; +0xf, 0x140423e0f\nsub     rsp, 20h                                                       ; +0x10, 0x140423e10\nmov     rsi, rcx                                                       ; +0x14, 0x140423e14\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x17, 0x140423e17\njnz     loc_140423F78                                                  ; +0x1e, 0x140423e1e\nmov     rax, [rcx+1F8h]                                                ; +0x24, 0x140423e24\nmov     ebx, [rax+148h]                                                ; +0x2b, 0x140423e2b\nsub     ebx, [rax+14Ch]                                                ; +0x31, 0x140423e31\nmov     ecx, 2E8h; Size                                                ; +0x37, 0x140423e37\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3c, 0x140423e3c\nmov     rdi, rax                                                       ; +0x41, 0x140423e41\nmov     [rsp+28h+arg_0], rax                                           ; +0x44, 0x140423e44\nmov     rcx, rax                                                       ; +0x49, 0x140423e49\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x4c, 0x140423e4c\nlea     rax, ??_7RateDemonLayer@@6B@; const RateDemonLayer::`vftable'  ; +0x51, 0x140423e51\nmov     [rdi], rax                                                     ; +0x58, 0x140423e58\nlea     rax, ??_7RateDemonLayer@@6B@_0; const RateDemonLayer::`vftable' ; +0x5b, 0x140423e5b\nmov     [rdi+140h], rax                                                ; +0x62, 0x140423e62\nlea     rax, ??_7RateDemonLayer@@6B@_1; const RateDemonLayer::`vftable' ; +0x69, 0x140423e69\nmov     [rdi+148h], rax                                                ; +0x70, 0x140423e70\nlea     rax, ??_7RateDemonLayer@@6B@_2; const RateDemonLayer::`vftable' ; +0x77, 0x140423e77\nmov     [rdi+150h], rax                                                ; +0x7e, 0x140423e7e\nlea     rax, ??_7RateDemonLayer@@6B@_3; const RateDemonLayer::`vftable' ; +0x85, 0x140423e85\nmov     [rdi+158h], rax                                                ; +0x8c, 0x140423e8c\nlea     rax, ??_7RateDemonLayer@@6B@_4; const RateDemonLayer::`vftable' ; +0x93, 0x140423e93\nmov     [rdi+160h], rax                                                ; +0x9a, 0x140423e9a\nlea     rax, ??_7RateDemonLayer@@6B@_5; const RateDemonLayer::`vftable' ; +0xa1, 0x140423ea1\nmov     [rdi+198h], rax                                                ; +0xa8, 0x140423ea8\nlea     rax, ??_7RateDemonLayer@@6B@_6; const RateDemonLayer::`vftable' ; +0xaf, 0x140423eaf\nmov     [rdi+1B0h], rax                                                ; +0xb6, 0x140423eb6\nlea     rax, ??_7RateDemonLayer@@6B@_7; const RateDemonLayer::`vftable' ; +0xbd, 0x140423ebd\nmov     [rdi+220h], rax                                                ; +0xc4, 0x140423ec4\nlea     rax, ??_7RateDemonLayer@@6B@_8; const RateDemonLayer::`vftable' ; +0xcb, 0x140423ecb\nmov     [rdi+298h], rax                                                ; +0xd2, 0x140423ed2\nlea     rax, ??_7RateDemonLayer@@6B@_9; const RateDemonLayer::`vftable' ; +0xd9, 0x140423ed9\nmov     [rdi+2A0h], rax                                                ; +0xe0, 0x140423ee0\nmov     byte ptr [rdi+2A8h], 0                                         ; +0xe7, 0x140423ee7\nxor     ebp, ebp                                                       ; +0xee, 0x140423eee\nmov     [rdi+2B0h], rbp                                                ; +0xf0, 0x140423ef0\nmov     [rdi+2B8h], rbp                                                ; +0xf7, 0x140423ef7\nmov     [rdi+2C0h], rbp                                                ; +0xfe, 0x140423efe\nmov     [rdi+2C8h], rbp                                                ; +0x105, 0x140423f05\nmov     [rdi+2D0h], bpl                                                ; +0x10c, 0x140423f0c\nmov     [rdi+2D8h], rbp                                                ; +0x113, 0x140423f13\nmov     [rdi+2E0h], rbp                                                ; +0x11a, 0x140423f1a\nmov     edx, ebx                                                       ; +0x121, 0x140423f21\nmov     rcx, rdi                                                       ; +0x123, 0x140423f23\ncall    RateDemonLayer__init                                           ; +0x126, 0x140423f26\nmov     rcx, rdi                                                       ; +0x12b, 0x140423f2b\ntest    al, al                                                         ; +0x12e, 0x140423f2e\njz      short loc_140423F3A                                            ; +0x130, 0x140423f30\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x132, 0x140423f32\njmp     short loc_140423F48                                            ; +0x138, 0x140423f38\nmov     rax, [rdi]                                                     ; +0x13a, 0x140423f3a\nmov     edx, 1                                                         ; +0x13d, 0x140423f3d\ncall    qword ptr [rax+8]                                              ; +0x142, 0x140423f42\nmov     rdi, rbp                                                       ; +0x145, 0x140423f45\nlea     rax, [rsi+1A8h]                                                ; +0x148, 0x140423f48\nmov     [rdi+2E0h], rax                                                ; +0x14f, 0x140423f4f\nmov     rax, [rdi]                                                     ; +0x156, 0x140423f56\nmov     rdx, [rax+428h]                                                ; +0x159, 0x140423f59\nlea     rax, FLAlertLayer__show                                        ; +0x160, 0x140423f60\nmov     rcx, rdi                                                       ; +0x167, 0x140423f67\ncmp     rdx, rax                                                       ; +0x16a, 0x140423f6a\njnz     short loc_140423F76                                            ; +0x16d, 0x140423f6d\ncall    FLAlertLayer__show                                             ; +0x16f, 0x140423f6f\njmp     short loc_140423F78                                            ; +0x174, 0x140423f74\ncall    rdx                                                            ; +0x176, 0x140423f76\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x178, 0x140423f78\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x17d, 0x140423f7d\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x182, 0x140423f82\nadd     rsp, 20h                                                       ; +0x187, 0x140423f87\npop     rdi                                                            ; +0x18b, 0x140423f8b\nretn                                                                   ; +0x18c, 0x140423f8c", "xrefs": ["LevelInfoLayer::init @ 0x14041d56a", "<???> @ 0x14092690c"], "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"}