{"type": "func", "start": 5373050768, "end": 5373051006, "name": "LevelInfoLayer::onLike", "pseudocode": "// \n// LevelInfoLayer::onLike from 0x140423f90 to 0x14042407e (238 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x14041d25c\n// > <???> @ 0x140926918\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=2\nvoid __fastcall LevelInfoLayer::onLike(__int64 a1)\n{\n  __int64 v2; // rdx\n  __int64 v3; // rcx\n  _QWORD *v4; // rax\n  void *v5; // [rsp+30h] [rbp+8h]\n  void *v6; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_BYTE *)(a1 + 488) )\n  {\n    v2 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v5 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v5);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v2 = qword_14090BFD0;\n    }\n    if ( *(_DWORD *)(v2 + 692) == *(_DWORD *)(v2 + 696) )\n    {\n      v3 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v6 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v6);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v3 = *(_QWORD *)&qword_14090BFB0;\n      }\n      GameLevelManager::updateUserScore(v3);\n    }\n    v4 = (_QWORD *)LikeItemLayer::create(\n                     1,\n                     (unsigned int)(*(_DWORD *)(*(_QWORD *)(a1 + 504) + 328LL)\n                                  - *(_DWORD *)(*(_QWORD *)(a1 + 504) + 332LL)),\n                     0);\n    v4[85] = a1 + 432;\n    (*(void (__fastcall **)(_QWORD *))(*v4 + 1064LL))(v4);\n  }\n}", "assembly": "; \n; LevelInfoLayer::onLike from 0x140423f90 to 0x14042407e (238 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x14041d25c\n; > <???> @ 0x140926918\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; \npush    rbx                                                            ; +0x0, 0x140423f90\nsub     rsp, 20h                                                       ; +0x2, 0x140423f92\nmov     rbx, rcx                                                       ; +0x6, 0x140423f96\ncmp     byte ptr [rcx+1E8h], 0                                         ; +0x9, 0x140423f99\njnz     loc_140424078                                                  ; +0x10, 0x140423fa0\nmov     rdx, cs:qword_14090BFD0                                        ; +0x16, 0x140423fa6\ntest    rdx, rdx                                                       ; +0x1d, 0x140423fad\njnz     short loc_140423FE4                                            ; +0x20, 0x140423fb0\nmov     ecx, 6E8h; Size                                                ; +0x22, 0x140423fb2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x27, 0x140423fb7\nmov     [rsp+28h+arg_0], rax                                           ; +0x2c, 0x140423fbc\nmov     rcx, rax                                                       ; +0x31, 0x140423fc1\ncall    GameManager__GameManager                                       ; +0x34, 0x140423fc4\nnop                                                                    ; +0x39, 0x140423fc9\nmov     cs:qword_14090BFD0, rax                                        ; +0x3a, 0x140423fca\nmov     rcx, [rax]                                                     ; +0x41, 0x140423fd1\nmov     rdx, [rcx+48h]                                                 ; +0x44, 0x140423fd4\nmov     rcx, rax                                                       ; +0x48, 0x140423fd8\ncall    rdx                                                            ; +0x4b, 0x140423fdb\nmov     rdx, cs:qword_14090BFD0                                        ; +0x4d, 0x140423fdd\nmov     eax, [rdx+2B4h]                                                ; +0x54, 0x140423fe4\ncmp     eax, [rdx+2B8h]                                                ; +0x5a, 0x140423fea\njnz     short loc_140424035                                            ; +0x60, 0x140423ff0\nmov     rcx, cs:qword_14090BFB0                                        ; +0x62, 0x140423ff2\ntest    rcx, rcx                                                       ; +0x69, 0x140423ff9\njnz     short loc_140424030                                            ; +0x6c, 0x140423ffc\nmov     ecx, 690h; Size                                                ; +0x6e, 0x140423ffe\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x73, 0x140424003\nmov     [rsp+28h+arg_0], rax                                           ; +0x78, 0x140424008\nmov     rcx, rax                                                       ; +0x7d, 0x14042400d\ncall    GameLevelManager__GameLevelManager                             ; +0x80, 0x140424010\nnop                                                                    ; +0x85, 0x140424015\nmov     cs:qword_14090BFB0, rax                                        ; +0x86, 0x140424016\nmov     rcx, [rax]                                                     ; +0x8d, 0x14042401d\nmov     rdx, [rcx+48h]                                                 ; +0x90, 0x140424020\nmov     rcx, rax                                                       ; +0x94, 0x140424024\ncall    rdx                                                            ; +0x97, 0x140424027\nmov     rcx, cs:qword_14090BFB0                                        ; +0x99, 0x140424029\ncall    GameLevelManager__updateUserScore                              ; +0xa0, 0x140424030\nmov     rax, [rbx+1F8h]                                                ; +0xa5, 0x140424035\nmov     edx, [rax+148h]                                                ; +0xac, 0x14042403c\nsub     edx, [rax+14Ch]                                                ; +0xb2, 0x140424042\nxor     r8d, r8d                                                       ; +0xb8, 0x140424048\nmov     ecx, 1                                                         ; +0xbb, 0x14042404b\ncall    LikeItemLayer__create                                          ; +0xc0, 0x140424050\nlea     rcx, [rbx+1B0h]                                                ; +0xc5, 0x140424055\nmov     [rax+2A8h], rcx                                                ; +0xcc, 0x14042405c\nmov     rcx, [rax]                                                     ; +0xd3, 0x140424063\nmov     rdx, [rcx+428h]                                                ; +0xd6, 0x140424066\nmov     rcx, rax                                                       ; +0xdd, 0x14042406d\nadd     rsp, 20h                                                       ; +0xe0, 0x140424070\npop     rbx                                                            ; +0xe4, 0x140424074\njmp     rdx                                                            ; +0xe5, 0x140424075\nadd     rsp, 20h                                                       ; +0xe8, 0x140424078\npop     rbx                                                            ; +0xec, 0x14042407c\nretn                                                                   ; +0xed, 0x14042407d", "xrefs": ["LevelInfoLayer::init @ 0x14041d25c", "<???> @ 0x140926918"], "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"}