{"type": "func", "start": 5373047648, "end": 5373048393, "name": "LevelInfoLayer::onRate", "pseudocode": "// \n// LevelInfoLayer::onRate from 0x140423360 to 0x140423649 (745 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::FLAlert_Clicked @ 0x1404262b4\n// > <???> @ 0x1409268e8\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=4\nvoid __fastcall LevelInfoLayer::onRate(__int64 a1)\n{\n  __int64 v2; // rax\n  __int64 v3; // rax\n  cocos2d::CCObject *v4; // rbx\n  __int64 (__fastcall *v5)(__int64); // rdx\n  cocos2d::CCObject *v6; // rcx\n  unsigned int v7; // ebx\n  cocos2d::CCObject *v8; // rdi\n  __int128 v9; // [rsp+50h] [rbp-58h] BYREF\n  __int64 v10; // [rsp+60h] [rbp-48h]\n  __int64 v11; // [rsp+68h] [rbp-40h]\n  _BYTE v12[56]; // [rsp+70h] [rbp-38h] BYREF\n  void *v13; // [rsp+B8h] [rbp+10h]\n\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v13 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    if ( *(_BYTE *)(v2 + 964) )\n    {\n      v7 = *(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL);\n      v8 = (cocos2d::CCObject *)operator new(0x2B8u);\n      FLAlertLayer::FLAlertLayer((__int64)v8);\n      *(_QWORD *)v8 = &RateLevelLayer::`vftable';\n      *((_QWORD *)v8 + 40) = &RateLevelLayer::`vftable';\n      *((_QWORD *)v8 + 41) = &RateLevelLayer::`vftable';\n      *((_QWORD *)v8 + 42) = &RateLevelLayer::`vftable';\n      *((_QWORD *)v8 + 43) = &RateLevelLayer::`vftable';\n      *((_QWORD *)v8 + 44) = &RateLevelLayer::`vftable';\n      *((_QWORD *)v8 + 51) = &RateLevelLayer::`vftable';\n      *((_QWORD *)v8 + 54) = &RateLevelLayer::`vftable';\n      *((_QWORD *)v8 + 68) = &RateLevelLayer::`vftable';\n      *((_QWORD *)v8 + 83) = 0;\n      *((_QWORD *)v8 + 84) = 0;\n      *((_QWORD *)v8 + 85) = 0;\n      *((_QWORD *)v8 + 86) = 0;\n      if ( (unsigned __int8)RateLevelLayer::init(v8, v7) )\n      {\n        cocos2d::CCObject::autorelease(v8);\n      }\n      else\n      {\n        (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v8 + 8LL))(v8, 1);\n        v8 = nullptr;\n      }\n      *((_QWORD *)v8 + 86) = a1 + 424;\n      v5 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 1064LL);\n      v6 = v8;\n      if ( v5 == FLAlertLayer::show )\n      {\n        FLAlertLayer::show((__int64)v8);\n        return;\n      }\n    }\n    else\n    {\n      *(_BYTE *)(v2 + 964) = 1;\n      v9 = 0;\n      *(_QWORD *)&v9 = sub_14003D460(0x90u);\n      v10 = 136;\n      v11 = 143;\n      strcpy(\n        (char *)v9,\n        \"Please <cg>rate</c> the <cl>difficulty</c> as fairly as possible. \\n\"\n        \"<cy>(Demon and Auto levels are manually verified before accepted)</c>\");\n      v3 = sub_14003F4F0((__int64)v12, (__int64)&v9);\n      v4 = FLAlertLayer::create(\n             (int)a1 + 440,\n             (int)\"Rate Difficulty\",\n             v3,\n             (__int64)\"OK\",\n             0,\n             1133903872,\n             0,\n             0,\n             1065353216);\n      sub_14003D310((__int64)&v9);\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 64LL))(v4, 7);\n      v5 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL);\n      v6 = v4;\n    }\n    v5((__int64)v6);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onRate from 0x140423360 to 0x140423649 (745 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::FLAlert_Clicked @ 0x1404262b4\n; > <???> @ 0x1409268e8\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_10], rbx                                              ; +0x0, 0x140423360\nmov     [rsp+arg_8], rdx                                               ; +0x5, 0x140423365\npush    rbp                                                            ; +0xa, 0x14042336a\npush    rsi                                                            ; +0xb, 0x14042336b\npush    rdi                                                            ; +0xc, 0x14042336c\nsub     rsp, 90h                                                       ; +0xd, 0x14042336d\nmov     rbp, rcx                                                       ; +0x14, 0x140423374\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x17, 0x140423377\njnz     loc_140423512                                                  ; +0x1e, 0x14042337e\nmov     rax, cs:qword_14090BFD0                                        ; +0x24, 0x140423384\ntest    rax, rax                                                       ; +0x2b, 0x14042338b\njnz     short loc_1404233C5                                            ; +0x2e, 0x14042338e\nmov     ecx, 6E8h; Size                                                ; +0x30, 0x140423390\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x140423395\nmov     [rsp+0A8h+arg_8], rax                                          ; +0x3a, 0x14042339a\nmov     rcx, rax                                                       ; +0x42, 0x1404233a2\ncall    GameManager__GameManager                                       ; +0x45, 0x1404233a5\nnop                                                                    ; +0x4a, 0x1404233aa\nmov     cs:qword_14090BFD0, rax                                        ; +0x4b, 0x1404233ab\nmov     rcx, [rax]                                                     ; +0x52, 0x1404233b2\nmov     rdx, [rcx+48h]                                                 ; +0x55, 0x1404233b5\nmov     rcx, rax                                                       ; +0x59, 0x1404233b9\ncall    rdx                                                            ; +0x5c, 0x1404233bc\nmov     rax, cs:qword_14090BFD0                                        ; +0x5e, 0x1404233be\ncmp     byte ptr [rax+3C4h], 0                                         ; +0x65, 0x1404233c5\njnz     loc_140423525                                                  ; +0x6c, 0x1404233cc\nmov     byte ptr [rax+3C4h], 1                                         ; +0x72, 0x1404233d2\nxorps   xmm0, xmm0                                                     ; +0x79, 0x1404233d9\nmovups  [rsp+0A8h+var_58], xmm0                                        ; +0x7c, 0x1404233dc\nxor     esi, esi                                                       ; +0x81, 0x1404233e1\nmov     [rsp+0A8h+var_48], rsi                                         ; +0x83, 0x1404233e3\nmov     [rsp+0A8h+var_40], rsi                                         ; +0x88, 0x1404233e8\nmov     ecx, 90h                                                       ; +0x8d, 0x1404233ed\ncall    sub_14003D460                                                  ; +0x92, 0x1404233f2\nmov     qword ptr [rsp+0A8h+var_58], rax                               ; +0x97, 0x1404233f7\nmov     [rsp+0A8h+var_48], 88h                                         ; +0x9c, 0x1404233fc\nmov     [rsp+0A8h+var_40], 8Fh                                         ; +0xa5, 0x140423405\nmovaps  xmm0, cs:xmmword_14078C040                                     ; +0xae, 0x14042340e\nmovups  xmmword ptr [rax], xmm0                                        ; +0xb5, 0x140423415\nmovaps  xmm1, cs:xmmword_14078C050                                     ; +0xb8, 0x140423418\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0xbf, 0x14042341f\nmovaps  xmm0, cs:xmmword_14078C060                                     ; +0xc3, 0x140423423\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xca, 0x14042342a\nmovaps  xmm1, cs:xmmword_14078C070                                     ; +0xce, 0x14042342e\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xd5, 0x140423435\nmovaps  xmm0, cs:xmmword_14078C080                                     ; +0xd9, 0x140423439\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0xe0, 0x140423440\nmovaps  xmm1, cs:xmmword_14078C090                                     ; +0xe4, 0x140423444\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0xeb, 0x14042344b\nmovaps  xmm0, cs:xmmword_14078C0A0                                     ; +0xef, 0x14042344f\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0xf6, 0x140423456\nmovaps  xmm1, cs:xmmword_14078C0B0                                     ; +0xfa, 0x14042345a\nmovups  xmmword ptr [rax+70h], xmm1                                    ; +0x101, 0x140423461\nmovsd   xmm0, cs:qword_14078C0C0                                       ; +0x105, 0x140423465\nmovsd   qword ptr [rax+80h], xmm0                                      ; +0x10d, 0x14042346d\nmov     [rax+88h], sil                                                 ; +0x115, 0x140423475\nlea     rax, [rsp+0A8h+var_58]                                         ; +0x11c, 0x14042347c\nmov     [rsp+0A8h+arg_8], rax                                          ; +0x121, 0x140423481\nlea     rdx, [rsp+0A8h+var_58]                                         ; +0x129, 0x140423489\nlea     rcx, [rsp+0A8h+var_38]                                         ; +0x12e, 0x14042348e\ncall    sub_14003F4F0                                                  ; +0x133, 0x140423493\nmovss   xmm0, cs:flt_140835080                                         ; +0x138, 0x140423498\nmovss   [rsp+0A8h+var_68], xmm0                                        ; +0x140, 0x1404234a0\nxorps   xmm1, xmm1                                                     ; +0x146, 0x1404234a6\nmovss   [rsp+0A8h+var_70], xmm1                                        ; +0x149, 0x1404234a9\nmov     [rsp+0A8h+var_78], sil                                         ; +0x14f, 0x1404234af\nmovss   xmm0, cs:dword_1408359A4                                       ; +0x154, 0x1404234b4\nmovss   [rsp+0A8h+var_80], xmm0                                        ; +0x15c, 0x1404234bc\nmov     [rsp+0A8h+var_88], rsi                                         ; +0x162, 0x1404234c2\nlea     r9, aOk; \"OK\"                                                  ; +0x167, 0x1404234c7\nmov     r8, rax                                                        ; +0x16e, 0x1404234ce\nlea     rdx, aRateDifficulty; \"Rate Difficulty\"                        ; +0x171, 0x1404234d1\nlea     rcx, [rbp+1B8h]                                                ; +0x178, 0x1404234d8\ncall    FLAlertLayer__create                                           ; +0x17f, 0x1404234df\nmov     rbx, rax                                                       ; +0x184, 0x1404234e4\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x187, 0x1404234e7\ncall    sub_14003D310                                                  ; +0x18c, 0x1404234ec\nmov     rcx, [rbx]                                                     ; +0x191, 0x1404234f1\nmov     r8, [rcx+40h]                                                  ; +0x194, 0x1404234f4\nmov     edx, 7                                                         ; +0x198, 0x1404234f8\nmov     rcx, rbx                                                       ; +0x19d, 0x1404234fd\ncall    r8                                                             ; +0x1a0, 0x140423500\nmov     rcx, [rbx]                                                     ; +0x1a3, 0x140423503\nmov     rdx, [rcx+428h]                                                ; +0x1a6, 0x140423506\nmov     rcx, rbx                                                       ; +0x1ad, 0x14042350d\ncall    rdx                                                            ; +0x1b0, 0x140423510\nmov     rbx, [rsp+0A8h+arg_10]                                         ; +0x1b2, 0x140423512\nadd     rsp, 90h                                                       ; +0x1ba, 0x14042351a\npop     rdi                                                            ; +0x1c1, 0x140423521\npop     rsi                                                            ; +0x1c2, 0x140423522\npop     rbp                                                            ; +0x1c3, 0x140423523\nretn                                                                   ; +0x1c4, 0x140423524\nmov     rax, [rbp+1F8h]                                                ; +0x1c5, 0x140423525\nmov     ebx, [rax+148h]                                                ; +0x1cc, 0x14042352c\nsub     ebx, [rax+14Ch]                                                ; +0x1d2, 0x140423532\nmov     ecx, 2B8h; Size                                                ; +0x1d8, 0x140423538\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1dd, 0x14042353d\nmov     rdi, rax                                                       ; +0x1e2, 0x140423542\nmov     [rsp+0A8h+arg_8], rax                                          ; +0x1e5, 0x140423545\nmov     rcx, rax                                                       ; +0x1ed, 0x14042354d\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x1f0, 0x140423550\nlea     rax, ??_7RateLevelLayer@@6B@; const RateLevelLayer::`vftable'  ; +0x1f5, 0x140423555\nmov     [rdi], rax                                                     ; +0x1fc, 0x14042355c\nlea     rax, ??_7RateLevelLayer@@6B@_0; const RateLevelLayer::`vftable' ; +0x1ff, 0x14042355f\nmov     [rdi+140h], rax                                                ; +0x206, 0x140423566\nlea     rax, ??_7RateLevelLayer@@6B@_1; const RateLevelLayer::`vftable' ; +0x20d, 0x14042356d\nmov     [rdi+148h], rax                                                ; +0x214, 0x140423574\nlea     rax, ??_7RateLevelLayer@@6B@_2; const RateLevelLayer::`vftable' ; +0x21b, 0x14042357b\nmov     [rdi+150h], rax                                                ; +0x222, 0x140423582\nlea     rax, ??_7RateLevelLayer@@6B@_3; const RateLevelLayer::`vftable' ; +0x229, 0x140423589\nmov     [rdi+158h], rax                                                ; +0x230, 0x140423590\nlea     rax, ??_7RateLevelLayer@@6B@_4; const RateLevelLayer::`vftable' ; +0x237, 0x140423597\nmov     [rdi+160h], rax                                                ; +0x23e, 0x14042359e\nlea     rax, ??_7RateLevelLayer@@6B@_5; const RateLevelLayer::`vftable' ; +0x245, 0x1404235a5\nmov     [rdi+198h], rax                                                ; +0x24c, 0x1404235ac\nlea     rax, ??_7RateLevelLayer@@6B@_6; const RateLevelLayer::`vftable' ; +0x253, 0x1404235b3\nmov     [rdi+1B0h], rax                                                ; +0x25a, 0x1404235ba\nlea     rax, ??_7RateLevelLayer@@6B@_7; const RateLevelLayer::`vftable' ; +0x261, 0x1404235c1\nmov     [rdi+220h], rax                                                ; +0x268, 0x1404235c8\nxor     esi, esi                                                       ; +0x26f, 0x1404235cf\nmov     [rdi+298h], rsi                                                ; +0x271, 0x1404235d1\nmov     [rdi+2A0h], rsi                                                ; +0x278, 0x1404235d8\nmov     [rdi+2A8h], rsi                                                ; +0x27f, 0x1404235df\nmov     [rdi+2B0h], rsi                                                ; +0x286, 0x1404235e6\nmov     edx, ebx                                                       ; +0x28d, 0x1404235ed\nmov     rcx, rdi                                                       ; +0x28f, 0x1404235ef\ncall    RateLevelLayer__init                                           ; +0x292, 0x1404235f2\nmov     rcx, rdi                                                       ; +0x297, 0x1404235f7\ntest    al, al                                                         ; +0x29a, 0x1404235fa\njz      short loc_140423606                                            ; +0x29c, 0x1404235fc\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x29e, 0x1404235fe\njmp     short loc_140423614                                            ; +0x2a4, 0x140423604\nmov     rax, [rdi]                                                     ; +0x2a6, 0x140423606\nmov     edx, 1                                                         ; +0x2a9, 0x140423609\ncall    qword ptr [rax+8]                                              ; +0x2ae, 0x14042360e\nmov     rdi, rsi                                                       ; +0x2b1, 0x140423611\nlea     rax, [rbp+1A8h]                                                ; +0x2b4, 0x140423614\nmov     [rdi+2B0h], rax                                                ; +0x2bb, 0x14042361b\nmov     rax, [rdi]                                                     ; +0x2c2, 0x140423622\nmov     rdx, [rax+428h]                                                ; +0x2c5, 0x140423625\nlea     rax, FLAlertLayer__show                                        ; +0x2cc, 0x14042362c\nmov     rcx, rdi                                                       ; +0x2d3, 0x140423633\ncmp     rdx, rax                                                       ; +0x2d6, 0x140423636\njnz     loc_140423510                                                  ; +0x2d9, 0x140423639\ncall    FLAlertLayer__show                                             ; +0x2df, 0x14042363f\njmp     loc_140423512                                                  ; +0x2e4, 0x140423644", "xrefs": ["LevelInfoLayer::FLAlert_Clicked @ 0x1404262b4", "<???> @ 0x1409268e8"], "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"}