{"type": "func", "start": 5373049440, "end": 5373050337, "name": "LevelInfoLayer::onRateStarsMod", "pseudocode": "// \n// LevelInfoLayer::onRateStarsMod from 0x140423a60 to 0x140423de1 (897 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041d851\n// > <???> @ 0x140926900\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::onRateStarsMod(__int64 a1)\n{\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rsi\n  _QWORD *v4; // rbx\n  __int64 v5; // r8\n  int v6; // r9d\n  __int64 (__fastcall *v7)(__int64); // rdx\n  __int64 v8; // rcx\n  bool v9; // di\n  unsigned int v10; // ebx\n  _QWORD *v11; // rsi\n  void *v12; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v12 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v12);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    v3 = *(cocos2d::CCObject **)(a1 + 504);\n    if ( *(int *)(v2 + 1080) <= 0 )\n    {\n      v9 = *((_DWORD *)v3 + 243) == 5;\n      v10 = *((_DWORD *)v3 + 82) - *((_DWORD *)v3 + 83);\n      v11 = operator new(0x300u);\n      FLAlertLayer::FLAlertLayer((__int64)v11);\n      *v11 = &RateStarsModLayer::`vftable';\n      v11[40] = &RateStarsModLayer::`vftable';\n      v11[41] = &RateStarsModLayer::`vftable';\n      v11[42] = &RateStarsModLayer::`vftable';\n      v11[43] = &RateStarsModLayer::`vftable';\n      v11[44] = &RateStarsModLayer::`vftable';\n      v11[51] = &RateStarsModLayer::`vftable';\n      v11[54] = &RateStarsModLayer::`vftable';\n      v11[68] = &RateStarsModLayer::`vftable';\n      v11[83] = &RateStarsModLayer::`vftable';\n      v11[84] = &RateStarsModLayer::`vftable';\n      *((_BYTE *)v11 + 680) = 0;\n      v11[86] = 0;\n      v11[87] = 0;\n      v11[88] = 0;\n      v11[89] = 0;\n      *((_BYTE *)v11 + 720) = 0;\n      v11[91] = 0;\n      v11[92] = 0;\n      v11[93] = 0;\n      v11[94] = 0;\n      v11[95] = 0;\n      if ( (unsigned __int8)RateStarsModLayer::init(v11, v10, v9) )\n      {\n        cocos2d::CCObject::autorelease((cocos2d::CCObject *)v11);\n      }\n      else\n      {\n        (*(void (__fastcall **)(_QWORD *, __int64))(*v11 + 8LL))(v11, 1);\n        v11 = nullptr;\n      }\n      v7 = *(__int64 (__fastcall **)(__int64))(*v11 + 1064LL);\n      v8 = (__int64)v11;\n      if ( v7 == FLAlertLayer::show )\n      {\n        FLAlertLayer::show((__int64)v11);\n        return;\n      }\n    }\n    else\n    {\n      v4 = operator new(0x460u);\n      SetupTriggerPopup::SetupTriggerPopup((__int64)v4);\n      *v4 = &GJRateLevelLayer::`vftable';\n      v4[40] = &GJRateLevelLayer::`vftable';\n      v4[41] = &GJRateLevelLayer::`vftable';\n      v4[42] = &GJRateLevelLayer::`vftable';\n      v4[43] = &GJRateLevelLayer::`vftable';\n      v4[44] = &GJRateLevelLayer::`vftable';\n      v4[51] = &GJRateLevelLayer::`vftable';\n      v4[54] = &GJRateLevelLayer::`vftable';\n      v4[68] = &GJRateLevelLayer::`vftable';\n      v4[83] = &GJRateLevelLayer::`vftable';\n      v4[84] = &GJRateLevelLayer::`vftable';\n      v4[125] = &GJRateLevelLayer::`vftable';\n      v4[126] = &GJRateLevelLayer::`vftable';\n      v4[127] = &GJRateLevelLayer::`vftable';\n      v4[128] = &GJRateLevelLayer::`vftable';\n      v4[129] = 0;\n      *((_BYTE *)v4 + 1040) = 0;\n      v4[131] = 0;\n      v4[132] = 0;\n      *((_DWORD *)v4 + 266) = 0;\n      *((_BYTE *)v4 + 1068) = 0;\n      v4[134] = 0;\n      v4[135] = 0;\n      v4[136] = 0;\n      *((_DWORD *)v4 + 274) = 0;\n      v4[138] = 0;\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 139));\n      if ( GJRateLevelLayer::init((__int64)v4, v3, v5, v6) )\n      {\n        cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n      }\n      else\n      {\n        (*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);\n        v4 = nullptr;\n      }\n      v7 = *(__int64 (__fastcall **)(__int64))(*v4 + 1064LL);\n      v8 = (__int64)v4;\n      if ( v7 == SetupTriggerPopup::show )\n      {\n        SetupTriggerPopup::show((__int64)v4);\n        return;\n      }\n    }\n    v7(v8);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onRateStarsMod from 0x140423a60 to 0x140423de1 (897 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041d851\n; > <???> @ 0x140926900\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, 0x140423a60\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140423a65\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x140423a6a\npush    rdi                                                            ; +0xf, 0x140423a6f\nsub     rsp, 20h                                                       ; +0x10, 0x140423a70\nmov     rbx, rcx                                                       ; +0x14, 0x140423a74\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x17, 0x140423a77\njnz     loc_140423DCC                                                  ; +0x1e, 0x140423a7e\nmov     rax, cs:qword_14090BFD0                                        ; +0x24, 0x140423a84\ntest    rax, rax                                                       ; +0x2b, 0x140423a8b\njnz     short loc_140423AC2                                            ; +0x2e, 0x140423a8e\nmov     ecx, 6E8h; Size                                                ; +0x30, 0x140423a90\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x140423a95\nmov     [rsp+28h+arg_0], rax                                           ; +0x3a, 0x140423a9a\nmov     rcx, rax                                                       ; +0x3f, 0x140423a9f\ncall    GameManager__GameManager                                       ; +0x42, 0x140423aa2\nnop                                                                    ; +0x47, 0x140423aa7\nmov     cs:qword_14090BFD0, rax                                        ; +0x48, 0x140423aa8\nmov     rcx, [rax]                                                     ; +0x4f, 0x140423aaf\nmov     rdx, [rcx+48h]                                                 ; +0x52, 0x140423ab2\nmov     rcx, rax                                                       ; +0x56, 0x140423ab6\ncall    rdx                                                            ; +0x59, 0x140423ab9\nmov     rax, cs:qword_14090BFD0                                        ; +0x5b, 0x140423abb\nmov     rsi, [rbx+1F8h]                                                ; +0x62, 0x140423ac2\ncmp     dword ptr [rax+438h], 0                                        ; +0x69, 0x140423ac9\njle     loc_140423C69                                                  ; +0x70, 0x140423ad0\nmov     ecx, 460h; Size                                                ; +0x76, 0x140423ad6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7b, 0x140423adb\nmov     rbx, rax                                                       ; +0x80, 0x140423ae0\nmov     [rsp+28h+arg_0], rax                                           ; +0x83, 0x140423ae3\nmov     rcx, rax                                                       ; +0x88, 0x140423ae8\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x8b, 0x140423aeb\nnop                                                                    ; +0x90, 0x140423af0\nlea     rax, ??_7GJRateLevelLayer@@6B@; const GJRateLevelLayer::`vftable' ; +0x91, 0x140423af1\nmov     [rbx], rax                                                     ; +0x98, 0x140423af8\nlea     rax, ??_7GJRateLevelLayer@@6B@_0; const GJRateLevelLayer::`vftable' ; +0x9b, 0x140423afb\nmov     [rbx+140h], rax                                                ; +0xa2, 0x140423b02\nlea     rax, ??_7GJRateLevelLayer@@6B@_1; const GJRateLevelLayer::`vftable' ; +0xa9, 0x140423b09\nmov     [rbx+148h], rax                                                ; +0xb0, 0x140423b10\nlea     rax, ??_7GJRateLevelLayer@@6B@_2; const GJRateLevelLayer::`vftable' ; +0xb7, 0x140423b17\nmov     [rbx+150h], rax                                                ; +0xbe, 0x140423b1e\nlea     rax, ??_7GJRateLevelLayer@@6B@_3; const GJRateLevelLayer::`vftable' ; +0xc5, 0x140423b25\nmov     [rbx+158h], rax                                                ; +0xcc, 0x140423b2c\nlea     rax, ??_7GJRateLevelLayer@@6B@_4; const GJRateLevelLayer::`vftable' ; +0xd3, 0x140423b33\nmov     [rbx+160h], rax                                                ; +0xda, 0x140423b3a\nlea     rax, ??_7GJRateLevelLayer@@6B@_5; const GJRateLevelLayer::`vftable' ; +0xe1, 0x140423b41\nmov     [rbx+198h], rax                                                ; +0xe8, 0x140423b48\nlea     rax, ??_7GJRateLevelLayer@@6B@_6; const GJRateLevelLayer::`vftable' ; +0xef, 0x140423b4f\nmov     [rbx+1B0h], rax                                                ; +0xf6, 0x140423b56\nlea     rax, ??_7GJRateLevelLayer@@6B@_7; const GJRateLevelLayer::`vftable' ; +0xfd, 0x140423b5d\nmov     [rbx+220h], rax                                                ; +0x104, 0x140423b64\nlea     rax, ??_7GJRateLevelLayer@@6B@_8; const GJRateLevelLayer::`vftable' ; +0x10b, 0x140423b6b\nmov     [rbx+298h], rax                                                ; +0x112, 0x140423b72\nlea     rax, ??_7GJRateLevelLayer@@6B@_9; const GJRateLevelLayer::`vftable' ; +0x119, 0x140423b79\nmov     [rbx+2A0h], rax                                                ; +0x120, 0x140423b80\nlea     rax, ??_7GJRateLevelLayer@@6B@_10; const GJRateLevelLayer::`vftable' ; +0x127, 0x140423b87\nmov     [rbx+3E8h], rax                                                ; +0x12e, 0x140423b8e\nlea     rax, ??_7GJRateLevelLayer@@6B@_11; const GJRateLevelLayer::`vftable' ; +0x135, 0x140423b95\nmov     [rbx+3F0h], rax                                                ; +0x13c, 0x140423b9c\nlea     rax, ??_7GJRateLevelLayer@@6B@_12; const GJRateLevelLayer::`vftable' ; +0x143, 0x140423ba3\nmov     [rbx+3F8h], rax                                                ; +0x14a, 0x140423baa\nlea     rax, ??_7GJRateLevelLayer@@6B@_13; const GJRateLevelLayer::`vftable' ; +0x151, 0x140423bb1\nmov     [rbx+400h], rax                                                ; +0x158, 0x140423bb8\nxor     ebp, ebp                                                       ; +0x15f, 0x140423bbf\nmov     [rbx+408h], rbp                                                ; +0x161, 0x140423bc1\nmov     [rbx+410h], bpl                                                ; +0x168, 0x140423bc8\nmov     [rbx+418h], rbp                                                ; +0x16f, 0x140423bcf\nmov     [rbx+420h], rbp                                                ; +0x176, 0x140423bd6\nmov     [rbx+428h], ebp                                                ; +0x17d, 0x140423bdd\nmov     [rbx+42Ch], bpl                                                ; +0x183, 0x140423be3\nmov     [rbx+430h], rbp                                                ; +0x18a, 0x140423bea\nmov     [rbx+438h], rbp                                                ; +0x191, 0x140423bf1\nmov     [rbx+440h], rbp                                                ; +0x198, 0x140423bf8\nmov     [rbx+448h], ebp                                                ; +0x19f, 0x140423bff\nmov     [rbx+450h], rbp                                                ; +0x1a5, 0x140423c05\nlea     rcx, [rbx+458h]                                                ; +0x1ac, 0x140423c0c\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x1b3, 0x140423c13\nnop                                                                    ; +0x1b9, 0x140423c19\nmov     rdx, rsi                                                       ; +0x1ba, 0x140423c1a\nmov     rcx, rbx                                                       ; +0x1bd, 0x140423c1d\ncall    GJRateLevelLayer__init                                         ; +0x1c0, 0x140423c20\nmov     rcx, rbx                                                       ; +0x1c5, 0x140423c25\ntest    al, al                                                         ; +0x1c8, 0x140423c28\njz      short loc_140423C34                                            ; +0x1ca, 0x140423c2a\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1cc, 0x140423c2c\njmp     short loc_140423C42                                            ; +0x1d2, 0x140423c32\nmov     rax, [rbx]                                                     ; +0x1d4, 0x140423c34\nmov     edx, 1                                                         ; +0x1d7, 0x140423c37\ncall    qword ptr [rax+8]                                              ; +0x1dc, 0x140423c3c\nmov     rbx, rbp                                                       ; +0x1df, 0x140423c3f\nmov     rax, [rbx]                                                     ; +0x1e2, 0x140423c42\nmov     rdx, [rax+428h]                                                ; +0x1e5, 0x140423c45\nlea     rax, SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x1ec, 0x140423c4c\nmov     rcx, rbx                                                       ; +0x1f3, 0x140423c53\ncmp     rdx, rax                                                       ; +0x1f6, 0x140423c56\njnz     loc_140423DCA                                                  ; +0x1f9, 0x140423c59\ncall    SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x1ff, 0x140423c5f\njmp     loc_140423DCC                                                  ; +0x204, 0x140423c64\ncmp     dword ptr [rsi+3CCh], 5                                        ; +0x209, 0x140423c69\nsetz    dil                                                            ; +0x210, 0x140423c70\nmov     ebx, [rsi+148h]                                                ; +0x214, 0x140423c74\nsub     ebx, [rsi+14Ch]                                                ; +0x21a, 0x140423c7a\nmov     ecx, 300h; Size                                                ; +0x220, 0x140423c80\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x225, 0x140423c85\nmov     rsi, rax                                                       ; +0x22a, 0x140423c8a\nmov     [rsp+28h+arg_0], rax                                           ; +0x22d, 0x140423c8d\nmov     rcx, rax                                                       ; +0x232, 0x140423c92\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x235, 0x140423c95\nlea     rax, ??_7RateStarsModLayer@@6B@; const RateStarsModLayer::`vftable' ; +0x23a, 0x140423c9a\nmov     [rsi], rax                                                     ; +0x241, 0x140423ca1\nlea     rax, ??_7RateStarsModLayer@@6B@_0; const RateStarsModLayer::`vftable' ; +0x244, 0x140423ca4\nmov     [rsi+140h], rax                                                ; +0x24b, 0x140423cab\nlea     rax, ??_7RateStarsModLayer@@6B@_1; const RateStarsModLayer::`vftable' ; +0x252, 0x140423cb2\nmov     [rsi+148h], rax                                                ; +0x259, 0x140423cb9\nlea     rax, ??_7RateStarsModLayer@@6B@_2; const RateStarsModLayer::`vftable' ; +0x260, 0x140423cc0\nmov     [rsi+150h], rax                                                ; +0x267, 0x140423cc7\nlea     rax, ??_7RateStarsModLayer@@6B@_3; const RateStarsModLayer::`vftable' ; +0x26e, 0x140423cce\nmov     [rsi+158h], rax                                                ; +0x275, 0x140423cd5\nlea     rax, ??_7RateStarsModLayer@@6B@_4; const RateStarsModLayer::`vftable' ; +0x27c, 0x140423cdc\nmov     [rsi+160h], rax                                                ; +0x283, 0x140423ce3\nlea     rax, ??_7RateStarsModLayer@@6B@_5; const RateStarsModLayer::`vftable' ; +0x28a, 0x140423cea\nmov     [rsi+198h], rax                                                ; +0x291, 0x140423cf1\nlea     rax, ??_7RateStarsModLayer@@6B@_6; const RateStarsModLayer::`vftable' ; +0x298, 0x140423cf8\nmov     [rsi+1B0h], rax                                                ; +0x29f, 0x140423cff\nlea     rax, ??_7RateStarsModLayer@@6B@_7; const RateStarsModLayer::`vftable' ; +0x2a6, 0x140423d06\nmov     [rsi+220h], rax                                                ; +0x2ad, 0x140423d0d\nlea     rax, ??_7RateStarsModLayer@@6B@_8; const RateStarsModLayer::`vftable' ; +0x2b4, 0x140423d14\nmov     [rsi+298h], rax                                                ; +0x2bb, 0x140423d1b\nlea     rax, ??_7RateStarsModLayer@@6B@_9; const RateStarsModLayer::`vftable' ; +0x2c2, 0x140423d22\nmov     [rsi+2A0h], rax                                                ; +0x2c9, 0x140423d29\nmov     byte ptr [rsi+2A8h], 0                                         ; +0x2d0, 0x140423d30\nxor     ebp, ebp                                                       ; +0x2d7, 0x140423d37\nmov     [rsi+2B0h], rbp                                                ; +0x2d9, 0x140423d39\nmov     [rsi+2B8h], rbp                                                ; +0x2e0, 0x140423d40\nmov     [rsi+2C0h], rbp                                                ; +0x2e7, 0x140423d47\nmov     [rsi+2C8h], rbp                                                ; +0x2ee, 0x140423d4e\nmov     [rsi+2D0h], bpl                                                ; +0x2f5, 0x140423d55\nmov     [rsi+2D8h], rbp                                                ; +0x2fc, 0x140423d5c\nmov     [rsi+2E0h], rbp                                                ; +0x303, 0x140423d63\nmov     [rsi+2E8h], rbp                                                ; +0x30a, 0x140423d6a\nmov     [rsi+2F0h], rbp                                                ; +0x311, 0x140423d71\nmov     [rsi+2F8h], rbp                                                ; +0x318, 0x140423d78\nmovzx   r8d, dil                                                       ; +0x31f, 0x140423d7f\nmov     edx, ebx                                                       ; +0x323, 0x140423d83\nmov     rcx, rsi                                                       ; +0x325, 0x140423d85\ncall    RateStarsModLayer__init                                        ; +0x328, 0x140423d88\nmov     rcx, rsi                                                       ; +0x32d, 0x140423d8d\ntest    al, al                                                         ; +0x330, 0x140423d90\njz      short loc_140423D9C                                            ; +0x332, 0x140423d92\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x334, 0x140423d94\njmp     short loc_140423DAA                                            ; +0x33a, 0x140423d9a\nmov     rax, [rsi]                                                     ; +0x33c, 0x140423d9c\nmov     edx, 1                                                         ; +0x33f, 0x140423d9f\ncall    qword ptr [rax+8]                                              ; +0x344, 0x140423da4\nmov     rsi, rbp                                                       ; +0x347, 0x140423da7\nmov     rax, [rsi]                                                     ; +0x34a, 0x140423daa\nmov     rdx, [rax+428h]                                                ; +0x34d, 0x140423dad\nlea     rax, FLAlertLayer__show                                        ; +0x354, 0x140423db4\nmov     rcx, rsi                                                       ; +0x35b, 0x140423dbb\ncmp     rdx, rax                                                       ; +0x35e, 0x140423dbe\njnz     short loc_140423DCA                                            ; +0x361, 0x140423dc1\ncall    FLAlertLayer__show                                             ; +0x363, 0x140423dc3\njmp     short loc_140423DCC                                            ; +0x368, 0x140423dc8\ncall    rdx                                                            ; +0x36a, 0x140423dca\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x36c, 0x140423dcc\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x371, 0x140423dd1\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x376, 0x140423dd6\nadd     rsp, 20h                                                       ; +0x37b, 0x140423ddb\npop     rdi                                                            ; +0x37f, 0x140423ddf\nretn                                                                   ; +0x380, 0x140423de0", "xrefs": ["LevelInfoLayer::init @ 0x14041d851", "<???> @ 0x140926900"], "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"}