{"type": "func", "start": 4300730640, "end": 4300730853, "name": "GameLevelManager::markItemAsLiked", "pseudocode": "// \n// GameLevelManager::markItemAsLiked from 0x10057f110 to 0x10057f1e5 (213 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::likeItem @ 0x10057e7fd\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 12:32:19 +0000\n// \n\nvoid __fastcall GameLevelManager::markItemAsLiked(__int64 a1)\n{\n  __int64 v1; // rax\n  const std::string::value_type *CString; // rax\n  std::string v3; // [rsp+0h] [rbp-40h] BYREF\n\n  if ( (unsigned int)cocos2d::CCDictionary::count(*(_QWORD *)(a1 + 800)) >= 0x3E8 )\n  {\n    cocos2d::CCDictionary::getFirstKey(&v3, *(_QWORD *)(a1 + 800));\n    cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 800), (char *)&v3);\n    if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v3.__r_.__value_.__l.__data_);\n  }\n  memset(&v3, 0, sizeof(v3));\n  v1 = sub_10088E820(\"like_%i_%i_%i_%i\", 0);\n  CString = (const std::string::value_type *)cocos2d::CCString::getCString(v1);\n  std::string::assign(&v3, CString);\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 800), *(_QWORD *)(a1 + 1512), (char *)&v3);\n  if ( (*(_BYTE *)&v3.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v3.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; GameLevelManager::markItemAsLiked from 0x10057f110 to 0x10057f1e5 (213 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::likeItem @ 0x10057e7fd\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 12:32:19 +0000\n; \npush    rbp                                                            ; +0x0, 0x10057f110\nmov     rbp, rsp                                                       ; +0x1, 0x10057f111\npush    r15                                                            ; +0x4, 0x10057f114\npush    r14                                                            ; +0x6, 0x10057f116\npush    r13                                                            ; +0x8, 0x10057f118\npush    r12                                                            ; +0xa, 0x10057f11a\npush    rbx                                                            ; +0xc, 0x10057f11c\nsub     rsp, 18h                                                       ; +0xd, 0x10057f11d\nmov     r14d, r8d                                                      ; +0x11, 0x10057f121\nmov     r13d, ecx                                                      ; +0x14, 0x10057f124\nmov     r15d, edx                                                      ; +0x17, 0x10057f127\nmov     r12d, esi                                                      ; +0x1a, 0x10057f12a\nmov     rbx, rdi                                                       ; +0x1d, 0x10057f12d\nmov     rdi, [rdi+320h]                                                ; +0x20, 0x10057f130\ncall    cocos2d__CCDictionary__count                                   ; +0x27, 0x10057f137\ncmp     eax, 3E8h                                                      ; +0x2c, 0x10057f13c\njb      short loc_10057F172                                            ; +0x31, 0x10057f141\nmov     rsi, [rbx+320h]                                                ; +0x33, 0x10057f143\nlea     rdi, [rbp+var_40]; this                                        ; +0x3a, 0x10057f14a\ncall    cocos2d__CCDictionary__getFirstKey                             ; +0x3e, 0x10057f14e\nmov     rdi, [rbx+320h]                                                ; +0x43, 0x10057f153\nlea     rsi, [rbp+var_40]                                              ; +0x4a, 0x10057f15a\ncall    cocos2d__CCDictionary__removeObjectForKey                      ; +0x4e, 0x10057f15e\ntest    byte ptr [rbp+var_40.__r_.__value_], 1                         ; +0x53, 0x10057f163\njz      short loc_10057F172                                            ; +0x57, 0x10057f167\nmov     rdi, qword ptr [rbp+var_40.__r_.__value_+10h]; __p             ; +0x59, 0x10057f169\ncall    __ZdlPv; operator delete(void *)                               ; +0x5d, 0x10057f16d\nxorps   xmm0, xmm0                                                     ; +0x62, 0x10057f172\nmovaps  xmmword ptr [rbp+var_40.__r_.__value_], xmm0                   ; +0x65, 0x10057f175\nmov     qword ptr [rbp+var_40.__r_.__value_+10h], 0                    ; +0x69, 0x10057f179\nmovzx   ecx, r13b                                                      ; +0x71, 0x10057f181\nlea     rdi, aLikeIIII; \"like_%i_%i_%i_%i\"                             ; +0x75, 0x10057f185\nmov     esi, r12d                                                      ; +0x7c, 0x10057f18c\nmov     edx, r15d                                                      ; +0x7f, 0x10057f18f\nmov     r8d, r14d                                                      ; +0x82, 0x10057f192\nxor     eax, eax                                                       ; +0x85, 0x10057f195\ncall    sub_10088E820                                                  ; +0x87, 0x10057f197\nmov     rdi, rax                                                       ; +0x8c, 0x10057f19c\ncall    cocos2d__CCString__getCString                                  ; +0x8f, 0x10057f19f\nlea     rdi, [rbp+var_40]; this                                        ; +0x94, 0x10057f1a4\nmov     rsi, rax; __s                                                  ; +0x98, 0x10057f1a8\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x9b, 0x10057f1ab\nmov     rdi, [rbx+320h]                                                ; +0xa0, 0x10057f1b0\nmov     rsi, [rbx+5E8h]                                                ; +0xa7, 0x10057f1b7\nlea     rdx, [rbp+var_40]                                              ; +0xae, 0x10057f1be\ncall    cocos2d__CCDictionary__setObject                               ; +0xb2, 0x10057f1c2\ntest    byte ptr [rbp+var_40.__r_.__value_], 1                         ; +0xb7, 0x10057f1c7\njz      short loc_10057F1D6                                            ; +0xbb, 0x10057f1cb\nmov     rdi, qword ptr [rbp+var_40.__r_.__value_+10h]; __p             ; +0xbd, 0x10057f1cd\ncall    __ZdlPv; operator delete(void *)                               ; +0xc1, 0x10057f1d1\nadd     rsp, 18h                                                       ; +0xc6, 0x10057f1d6\npop     rbx                                                            ; +0xca, 0x10057f1da\npop     r12                                                            ; +0xcb, 0x10057f1db\npop     r13                                                            ; +0xcd, 0x10057f1dd\npop     r14                                                            ; +0xcf, 0x10057f1df\npop     r15                                                            ; +0xd1, 0x10057f1e1\npop     rbp                                                            ; +0xd3, 0x10057f1e3\nretn                                                                   ; +0xd4, 0x10057f1e4", "xrefs": ["GameLevelManager::likeItem @ 0x10057e7fd"], "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"}