{"type": "func", "start": 4295205024, "end": 4295205253, "name": "GameStatsManager::hasCompletedDailyStars", "pseudocode": "// \n// GameStatsManager::hasCompletedDailyStars from 0x10003a0a0 to 0x10003a185 (229 bytes)\n// \n// 7 xrefs:\n// > GameStatsManager::completedDailyLevel @ 0x100039c71\n// > LevelCell::loadCustomLevelCell @ 0x100237762\n// > LevelCell::loadCustomLevelCell @ 0x1002377f8\n// > LevelCell::loadCustomLevelCell @ 0x100237d01\n// > LevelCell::loadCustomLevelCell @ 0x100238c91\n// > LevelCell::loadCustomLevelCell @ 0x100239a72\n// > LevelCell::recallChestReady @ 0x10023a958\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:19:33 +0000\n// \n\nbool __fastcall GameStatsManager::hasCompletedDailyStars(__int64 a1)\n{\n  __int64 v1; // rbx\n  __int64 v2; // rax\n  const char *CString; // r15\n  size_t v4; // rax\n  size_t v5; // r14\n  char *v6; // r12\n  size_t v7; // r13\n  __int64 v8; // rbx\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  v1 = *(_QWORD *)(a1 + 608);\n  v2 = sub_10088E820(\"%s%i\", __dst[0]);\n  CString = (const char *)cocos2d::CCString::getCString(v2);\n  v4 = strlen(CString);\n  if ( v4 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v5 = v4;\n  if ( v4 >= 0x17 )\n  {\n    v7 = 26;\n    if ( (v4 | 7) != 0x17 )\n      v7 = (v4 | 7) + 1;\n    v6 = (char *)operator new(v7);\n    __p = v6;\n    __dst[0] = v7 + 1;\n    __dst[1] = v5;\n    goto LABEL_8;\n  }\n  LOBYTE(__dst[0]) = 2 * v4;\n  v6 = (char *)__dst + 1;\n  if ( v4 )\nLABEL_8:\n    memmove(v6, CString, v5);\n  v6[v5] = 0;\n  v8 = cocos2d::CCDictionary::objectForKey(v1, __dst);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  return v8 != 0;\n}", "assembly": "; \n; GameStatsManager::hasCompletedDailyStars from 0x10003a0a0 to 0x10003a185 (229 bytes)\n; \n; 7 xrefs:\n; > GameStatsManager::completedDailyLevel @ 0x100039c71\n; > LevelCell::loadCustomLevelCell @ 0x100237762\n; > LevelCell::loadCustomLevelCell @ 0x1002377f8\n; > LevelCell::loadCustomLevelCell @ 0x100237d01\n; > LevelCell::loadCustomLevelCell @ 0x100238c91\n; > LevelCell::loadCustomLevelCell @ 0x100239a72\n; > LevelCell::recallChestReady @ 0x10023a958\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:19:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x10003a0a0\nmov     rbp, rsp                                                       ; +0x1, 0x10003a0a1\npush    r15                                                            ; +0x4, 0x10003a0a4\npush    r14                                                            ; +0x6, 0x10003a0a6\npush    r13                                                            ; +0x8, 0x10003a0a8\npush    r12                                                            ; +0xa, 0x10003a0aa\npush    rbx                                                            ; +0xc, 0x10003a0ac\nsub     rsp, 18h                                                       ; +0xd, 0x10003a0ad\nmov     edx, esi                                                       ; +0x11, 0x10003a0b1\nmov     rbx, [rdi+260h]                                                ; +0x13, 0x10003a0b3\nlea     rdi, aSI; \"%s%i\"                                               ; +0x1a, 0x10003a0ba\nlea     rsi, __s2; \"dstar_\"                                            ; +0x21, 0x10003a0c1\nxor     eax, eax                                                       ; +0x28, 0x10003a0c8\ncall    sub_10088E820                                                  ; +0x2a, 0x10003a0ca\nmov     rdi, rax                                                       ; +0x2f, 0x10003a0cf\ncall    cocos2d__CCString__getCString                                  ; +0x32, 0x10003a0d2\nmov     r15, rax                                                       ; +0x37, 0x10003a0d7\nmov     rdi, rax; __s                                                  ; +0x3a, 0x10003a0da\ncall    _strlen                                                        ; +0x3d, 0x10003a0dd\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x42, 0x10003a0e2\njnb     loc_10003A180                                                  ; +0x46, 0x10003a0e6\nmov     r14, rax                                                       ; +0x4c, 0x10003a0ec\ncmp     rax, 17h                                                       ; +0x4f, 0x10003a0ef\njnb     short loc_10003A107                                            ; +0x53, 0x10003a0f3\nlea     eax, [r14+r14]                                                 ; +0x55, 0x10003a0f5\nmov     byte ptr [rbp+__dst], al                                       ; +0x59, 0x10003a0f9\nlea     r12, [rbp+__dst+1]                                             ; +0x5c, 0x10003a0fc\ntest    r14, r14                                                       ; +0x60, 0x10003a100\njnz     short loc_10003A13A                                            ; +0x63, 0x10003a103\njmp     short loc_10003A148                                            ; +0x65, 0x10003a105\nmov     rax, r14                                                       ; +0x67, 0x10003a107\nor      rax, 7                                                         ; +0x6a, 0x10003a10a\nlea     rcx, [rax+1]                                                   ; +0x6e, 0x10003a10e\ncmp     rax, 17h                                                       ; +0x72, 0x10003a112\nmov     r13d, 1Ah                                                      ; +0x76, 0x10003a116\ncmovnz  r13, rcx                                                       ; +0x7c, 0x10003a11c\nmov     rdi, r13; __sz                                                 ; +0x80, 0x10003a120\ncall    __Znwm; operator new(ulong)                                    ; +0x83, 0x10003a123\nmov     r12, rax                                                       ; +0x88, 0x10003a128\nmov     [rbp+__p], rax                                                 ; +0x8b, 0x10003a12b\ninc     r13                                                            ; +0x8f, 0x10003a12f\nmov     [rbp+__dst], r13                                               ; +0x92, 0x10003a132\nmov     [rbp+var_38], r14                                              ; +0x96, 0x10003a136\nmov     rdi, r12; __dst                                                ; +0x9a, 0x10003a13a\nmov     rsi, r15; __src                                                ; +0x9d, 0x10003a13d\nmov     rdx, r14; __len                                                ; +0xa0, 0x10003a140\ncall    _memmove                                                       ; +0xa3, 0x10003a143\nmov     byte ptr [r12+r14], 0                                          ; +0xa8, 0x10003a148\nlea     rsi, [rbp+__dst]                                               ; +0xad, 0x10003a14d\nmov     rdi, rbx                                                       ; +0xb1, 0x10003a151\ncall    cocos2d__CCDictionary__objectForKey                            ; +0xb4, 0x10003a154\nmov     rbx, rax                                                       ; +0xb9, 0x10003a159\ntest    byte ptr [rbp+__dst], 1                                        ; +0xbc, 0x10003a15c\njz      short loc_10003A16B                                            ; +0xc0, 0x10003a160\nmov     rdi, [rbp+__p]; __p                                            ; +0xc2, 0x10003a162\ncall    __ZdlPv; operator delete(void *)                               ; +0xc6, 0x10003a166\ntest    rbx, rbx                                                       ; +0xcb, 0x10003a16b\nsetnz   al                                                             ; +0xce, 0x10003a16e\nadd     rsp, 18h                                                       ; +0xd1, 0x10003a171\npop     rbx                                                            ; +0xd5, 0x10003a175\npop     r12                                                            ; +0xd6, 0x10003a176\npop     r13                                                            ; +0xd8, 0x10003a178\npop     r14                                                            ; +0xda, 0x10003a17a\npop     r15                                                            ; +0xdc, 0x10003a17c\npop     rbp                                                            ; +0xde, 0x10003a17e\nretn                                                                   ; +0xdf, 0x10003a17f\ncall    sub_100003630                                                  ; +0xe0, 0x10003a180", "xrefs": ["GameStatsManager::completedDailyLevel @ 0x100039c71", "LevelCell::loadCustomLevelCell @ 0x100237762", "LevelCell::loadCustomLevelCell @ 0x1002377f8", "LevelCell::loadCustomLevelCell @ 0x100237d01", "LevelCell::loadCustomLevelCell @ 0x100238c91", "LevelCell::loadCustomLevelCell @ 0x100239a72", "LevelCell::recallChestReady @ 0x10023a958"], "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"}