{"type": "func", "start": 4295192528, "end": 4295192755, "name": "GameStatsManager::isDailyRecall", "pseudocode": "// \n// GameStatsManager::isDailyRecall from 0x100036fd0 to 0x1000370b3 (227 bytes)\n// \n// 9 xrefs:\n// > GameStatsManager::awardCurrencyForLevel @ 0x100036a8b\n// > GameStatsManager::completedDailyLevel @ 0x100039c8e\n// > GameStatsManager::unlockDailyRecall @ 0x10003a51b\n// > LevelCell::loadCustomLevelCell @ 0x1002377b4\n// > LevelCell::loadCustomLevelCell @ 0x1002377e4\n// > LevelCell::loadCustomLevelCell @ 0x100239a5b\n// > LevelCell::recallChestReady @ 0x10023a945\n// > LevelInfoLayer::updateLabelValues @ 0x1002afa05\n// > GJGameLevel::levelHasDiamonds @ 0x10058c2e6\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:32 +0000\n// \n\n__int64 __fastcall GameStatsManager::isDailyRecall(__int64 a1, int a2)\n{\n  __int64 v2; // rbx\n  __int64 v3; // rax\n  const char *CString; // r15\n  size_t v5; // rax\n  size_t v6; // r14\n  char *v7; // r12\n  size_t v8; // r13\n  _QWORD __dst[2]; // [rsp+0h] [rbp-40h] BYREF\n  void *__p; // [rsp+10h] [rbp-30h]\n\n  if ( a2 <= 0 )\n  {\n    LODWORD(v2) = 0;\n    return (unsigned int)v2;\n  }\n  v2 = *(_QWORD *)(a1 + 752);\n  v3 = sub_10088E820(\"%i\", __dst[0]);\n  CString = (const char *)cocos2d::CCString::getCString(v3);\n  v5 = strlen(CString);\n  if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100003630();\n  v6 = v5;\n  if ( v5 >= 0x17 )\n  {\n    v8 = 26;\n    if ( (v5 | 7) != 0x17 )\n      v8 = (v5 | 7) + 1;\n    v7 = (char *)operator new(v8);\n    __p = v7;\n    __dst[0] = v8 + 1;\n    __dst[1] = v6;\n    goto LABEL_10;\n  }\n  LOBYTE(__dst[0]) = 2 * v5;\n  v7 = (char *)__dst + 1;\n  if ( v5 )\nLABEL_10:\n    memmove(v7, CString, v6);\n  v7[v6] = 0;\n  LOBYTE(v2) = cocos2d::CCDictionary::objectForKey(v2, __dst) != 0;\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  return (unsigned int)v2;\n}", "assembly": "; \n; GameStatsManager::isDailyRecall from 0x100036fd0 to 0x1000370b3 (227 bytes)\n; \n; 9 xrefs:\n; > GameStatsManager::awardCurrencyForLevel @ 0x100036a8b\n; > GameStatsManager::completedDailyLevel @ 0x100039c8e\n; > GameStatsManager::unlockDailyRecall @ 0x10003a51b\n; > LevelCell::loadCustomLevelCell @ 0x1002377b4\n; > LevelCell::loadCustomLevelCell @ 0x1002377e4\n; > LevelCell::loadCustomLevelCell @ 0x100239a5b\n; > LevelCell::recallChestReady @ 0x10023a945\n; > LevelInfoLayer::updateLabelValues @ 0x1002afa05\n; > GJGameLevel::levelHasDiamonds @ 0x10058c2e6\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:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x100036fd0\nmov     rbp, rsp                                                       ; +0x1, 0x100036fd1\npush    r15                                                            ; +0x4, 0x100036fd4\npush    r14                                                            ; +0x6, 0x100036fd6\npush    r13                                                            ; +0x8, 0x100036fd8\npush    r12                                                            ; +0xa, 0x100036fda\npush    rbx                                                            ; +0xc, 0x100036fdc\nsub     rsp, 18h                                                       ; +0xd, 0x100036fdd\ntest    esi, esi                                                       ; +0x11, 0x100036fe1\njle     short loc_100037032                                            ; +0x13, 0x100036fe3\nmov     rbx, [rdi+2F0h]                                                ; +0x15, 0x100036fe5\nlea     rdi, aI_14; \"%i\"                                               ; +0x1c, 0x100036fec\nxor     eax, eax                                                       ; +0x23, 0x100036ff3\ncall    sub_10088E820                                                  ; +0x25, 0x100036ff5\nmov     rdi, rax                                                       ; +0x2a, 0x100036ffa\ncall    cocos2d__CCString__getCString                                  ; +0x2d, 0x100036ffd\nmov     r15, rax                                                       ; +0x32, 0x100037002\nmov     rdi, rax; __s                                                  ; +0x35, 0x100037005\ncall    _strlen                                                        ; +0x38, 0x100037008\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x3d, 0x10003700d\njnb     loc_1000370AE                                                  ; +0x41, 0x100037011\nmov     r14, rax                                                       ; +0x47, 0x100037017\ncmp     rax, 17h                                                       ; +0x4a, 0x10003701a\njnb     short loc_100037036                                            ; +0x4e, 0x10003701e\nlea     eax, [r14+r14]                                                 ; +0x50, 0x100037020\nmov     byte ptr [rbp+__dst], al                                       ; +0x54, 0x100037024\nlea     r12, [rbp+__dst+1]                                             ; +0x57, 0x100037027\ntest    r14, r14                                                       ; +0x5b, 0x10003702b\njnz     short loc_100037069                                            ; +0x5e, 0x10003702e\njmp     short loc_100037077                                            ; +0x60, 0x100037030\nxor     ebx, ebx                                                       ; +0x62, 0x100037032\njmp     short loc_10003709D                                            ; +0x64, 0x100037034\nmov     rax, r14                                                       ; +0x66, 0x100037036\nor      rax, 7                                                         ; +0x69, 0x100037039\nlea     rcx, [rax+1]                                                   ; +0x6d, 0x10003703d\ncmp     rax, 17h                                                       ; +0x71, 0x100037041\nmov     r13d, 1Ah                                                      ; +0x75, 0x100037045\ncmovnz  r13, rcx                                                       ; +0x7b, 0x10003704b\nmov     rdi, r13; __sz                                                 ; +0x7f, 0x10003704f\ncall    __Znwm; operator new(ulong)                                    ; +0x82, 0x100037052\nmov     r12, rax                                                       ; +0x87, 0x100037057\nmov     [rbp+__p], rax                                                 ; +0x8a, 0x10003705a\ninc     r13                                                            ; +0x8e, 0x10003705e\nmov     [rbp+__dst], r13                                               ; +0x91, 0x100037061\nmov     [rbp+var_38], r14                                              ; +0x95, 0x100037065\nmov     rdi, r12; __dst                                                ; +0x99, 0x100037069\nmov     rsi, r15; __src                                                ; +0x9c, 0x10003706c\nmov     rdx, r14; __len                                                ; +0x9f, 0x10003706f\ncall    _memmove                                                       ; +0xa2, 0x100037072\nmov     byte ptr [r12+r14], 0                                          ; +0xa7, 0x100037077\nlea     rsi, [rbp+__dst]                                               ; +0xac, 0x10003707c\nmov     rdi, rbx                                                       ; +0xb0, 0x100037080\ncall    cocos2d__CCDictionary__objectForKey                            ; +0xb3, 0x100037083\ntest    rax, rax                                                       ; +0xb8, 0x100037088\nsetnz   bl                                                             ; +0xbb, 0x10003708b\ntest    byte ptr [rbp+__dst], 1                                        ; +0xbe, 0x10003708e\njz      short loc_10003709D                                            ; +0xc2, 0x100037092\nmov     rdi, [rbp+__p]; __p                                            ; +0xc4, 0x100037094\ncall    __ZdlPv; operator delete(void *)                               ; +0xc8, 0x100037098\nmov     eax, ebx                                                       ; +0xcd, 0x10003709d\nadd     rsp, 18h                                                       ; +0xcf, 0x10003709f\npop     rbx                                                            ; +0xd3, 0x1000370a3\npop     r12                                                            ; +0xd4, 0x1000370a4\npop     r13                                                            ; +0xd6, 0x1000370a6\npop     r14                                                            ; +0xd8, 0x1000370a8\npop     r15                                                            ; +0xda, 0x1000370aa\npop     rbp                                                            ; +0xdc, 0x1000370ac\nretn                                                                   ; +0xdd, 0x1000370ad\ncall    sub_100003630                                                  ; +0xde, 0x1000370ae", "xrefs": ["GameStatsManager::awardCurrencyForLevel @ 0x100036a8b", "GameStatsManager::completedDailyLevel @ 0x100039c8e", "GameStatsManager::unlockDailyRecall @ 0x10003a51b", "LevelCell::loadCustomLevelCell @ 0x1002377b4", "LevelCell::loadCustomLevelCell @ 0x1002377e4", "LevelCell::loadCustomLevelCell @ 0x100239a5b", "LevelCell::recallChestReady @ 0x10023a945", "LevelInfoLayer::updateLabelValues @ 0x1002afa05", "GJGameLevel::levelHasDiamonds @ 0x10058c2e6"], "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"}