{"type": "func", "start": 4300659280, "end": 4300659592, "name": "GameLevelManager::resetCommentTimersForAccountID", "pseudocode": "// \n// GameLevelManager::resetCommentTimersForAccountID from 0x10056da50 to 0x10056db88 (312 bytes)\n// \n// 2 xrefs:\n// > ProfilePage::onUpdate @ 0x10089ee7b\n// > ProfilePage::onUpdate @ 0x10089f02f\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:13 +0000\n// \n\nvoid __fastcall GameLevelManager::resetCommentTimersForAccountID(__int64 a1, int a2)\n{\n  bool v2; // r15\n  int v3; // r12d\n  __int64 v4; // rax\n  const char *CString; // r15\n  size_t v6; // rax\n  size_t v7; // r13\n  char *v8; // rbx\n  __int64 v9; // rax\n  size_t v10; // r14\n  void *v11; // r13\n  const char *v12; // rbx\n  _QWORD __dst[2]; // [rsp+0h] [rbp-50h] BYREF\n  void *__p; // [rsp+10h] [rbp-40h]\n  __int64 v15; // [rsp+18h] [rbp-38h]\n  int v16; // [rsp+24h] [rbp-2Ch]\n\n  v16 = a2;\n  v15 = a1;\n  v2 = 1;\n  v3 = 0;\n  while ( v2 )\n  {\n    GameLevelManager::sharedState();\n    v4 = sub_10088E820(\"a_%i_%i\", __dst[0]);\n    CString = (const char *)cocos2d::CCString::getCString(v4);\n    v6 = strlen(CString);\n    if ( v6 >= 0xFFFFFFFFFFFFFFF8LL )\n      sub_100003630();\n    v7 = v6;\n    if ( v6 >= 0x17 )\n    {\n      v9 = v6 | 7;\n      v10 = 26;\n      if ( (v7 | 7) != 0x17 )\n        v10 = v9 + 1;\n      v8 = (char *)operator new(v10);\n      __p = v8;\n      __dst[0] = v10 + 1;\n      __dst[1] = v7;\n    }\n    else\n    {\n      LOBYTE(__dst[0]) = 2 * v6;\n      v8 = (char *)__dst + 1;\n      if ( !v6 )\n        goto LABEL_12;\n    }\n    memmove(v8, CString, v7);\nLABEL_12:\n    v8[v7] = 0;\n    v11 = __p;\n    v12 = (const char *)__p;\n    if ( (__dst[0] & 1) == 0 )\n      v12 = (char *)__dst + 1;\n    v2 = sub_10054AAA0(v15, v12);\n    if ( v2 )\n      GameLevelManager::resetTimerForKey(v15, v12);\n    if ( (__dst[0] & 1) != 0 )\n      operator delete(v11);\n    if ( ++v3 == 101 )\n      return;\n  }\n}", "assembly": "; \n; GameLevelManager::resetCommentTimersForAccountID from 0x10056da50 to 0x10056db88 (312 bytes)\n; \n; 2 xrefs:\n; > ProfilePage::onUpdate @ 0x10089ee7b\n; > ProfilePage::onUpdate @ 0x10089f02f\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:13 +0000\n; \npush    rbp                                                            ; +0x0, 0x10056da50\nmov     rbp, rsp                                                       ; +0x1, 0x10056da51\npush    r15                                                            ; +0x4, 0x10056da54\npush    r14                                                            ; +0x6, 0x10056da56\npush    r13                                                            ; +0x8, 0x10056da58\npush    r12                                                            ; +0xa, 0x10056da5a\npush    rbx                                                            ; +0xc, 0x10056da5c\nsub     rsp, 28h                                                       ; +0xd, 0x10056da5d\nmov     [rbp+var_2C], esi                                              ; +0x11, 0x10056da61\nmov     [rbp+var_38], rdi                                              ; +0x14, 0x10056da64\nmov     r15b, 1                                                        ; +0x18, 0x10056da68\nxor     r12d, r12d                                                     ; +0x1b, 0x10056da6b\njmp     short loc_10056DA7D                                            ; +0x1e, 0x10056da6e\ninc     r12d                                                           ; +0x20, 0x10056da70\ncmp     r12d, 65h ; 'e'                                                ; +0x23, 0x10056da73\njz      loc_10056DB74                                                  ; +0x27, 0x10056da77\ntest    r15b, 1                                                        ; +0x2d, 0x10056da7d\njz      loc_10056DB74                                                  ; +0x31, 0x10056da81\ncall    GameLevelManager__sharedState                                  ; +0x37, 0x10056da87\nlea     rdi, aAII; \"a_%i_%i\"                                           ; +0x3c, 0x10056da8c\nmov     esi, [rbp+var_2C]                                              ; +0x43, 0x10056da93\nmov     edx, r12d                                                      ; +0x46, 0x10056da96\nxor     eax, eax                                                       ; +0x49, 0x10056da99\ncall    sub_10088E820                                                  ; +0x4b, 0x10056da9b\nmov     rdi, rax                                                       ; +0x50, 0x10056daa0\ncall    cocos2d__CCString__getCString                                  ; +0x53, 0x10056daa3\nmov     r15, rax                                                       ; +0x58, 0x10056daa8\nmov     rdi, rax; __s                                                  ; +0x5b, 0x10056daab\ncall    _strlen                                                        ; +0x5e, 0x10056daae\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x63, 0x10056dab3\njnb     loc_10056DB83                                                  ; +0x67, 0x10056dab7\nmov     r13, rax                                                       ; +0x6d, 0x10056dabd\ncmp     rax, 17h                                                       ; +0x70, 0x10056dac0\njnb     short loc_10056DAE0                                            ; +0x74, 0x10056dac4\nlea     eax, ds:0[r13*2]                                               ; +0x76, 0x10056dac6\nmov     byte ptr [rbp+__dst], al                                       ; +0x7e, 0x10056dace\nlea     rbx, [rbp+__dst+1]                                             ; +0x81, 0x10056dad1\ntest    r13, r13                                                       ; +0x85, 0x10056dad5\njnz     short loc_10056DB13                                            ; +0x88, 0x10056dad8\njmp     short loc_10056DB21                                            ; +0x8a, 0x10056dada\nalign 20h                                                              ; +0x8c, 0x10056dadc\nmov     rax, r13                                                       ; +0x90, 0x10056dae0\nor      rax, 7                                                         ; +0x93, 0x10056dae3\nmov     r14d, 1Ah                                                      ; +0x97, 0x10056dae7\ncmp     rax, 17h                                                       ; +0x9d, 0x10056daed\njz      short loc_10056DAF9                                            ; +0xa1, 0x10056daf1\ninc     rax                                                            ; +0xa3, 0x10056daf3\nmov     r14, rax                                                       ; +0xa6, 0x10056daf6\nmov     rdi, r14; __sz                                                 ; +0xa9, 0x10056daf9\ncall    __Znwm; operator new(ulong)                                    ; +0xac, 0x10056dafc\nmov     rbx, rax                                                       ; +0xb1, 0x10056db01\nmov     [rbp+__p], rax                                                 ; +0xb4, 0x10056db04\ninc     r14                                                            ; +0xb8, 0x10056db08\nmov     [rbp+__dst], r14                                               ; +0xbb, 0x10056db0b\nmov     [rbp+var_48], r13                                              ; +0xbf, 0x10056db0f\nmov     rdi, rbx; __dst                                                ; +0xc3, 0x10056db13\nmov     rsi, r15; __src                                                ; +0xc6, 0x10056db16\nmov     rdx, r13; __len                                                ; +0xc9, 0x10056db19\ncall    _memmove                                                       ; +0xcc, 0x10056db1c\nmov     byte ptr [rbx+r13], 0                                          ; +0xd1, 0x10056db21\nmovzx   r14d, byte ptr [rbp+__dst]                                     ; +0xd6, 0x10056db26\ntest    r14b, 1                                                        ; +0xdb, 0x10056db2b\nmov     r13, [rbp+__p]                                                 ; +0xdf, 0x10056db2f\nmov     rbx, r13                                                       ; +0xe3, 0x10056db33\nlea     rax, [rbp+__dst+1]                                             ; +0xe6, 0x10056db36\ncmovz   rbx, rax                                                       ; +0xea, 0x10056db3a\nmov     rdi, [rbp+var_38]                                              ; +0xee, 0x10056db3e\nmov     rsi, rbx                                                       ; +0xf2, 0x10056db42\ncall    sub_10054AAA0                                                  ; +0xf5, 0x10056db45\nmov     r15d, eax                                                      ; +0xfa, 0x10056db4a\ntest    al, al                                                         ; +0xfd, 0x10056db4d\njz      short loc_10056DB5D                                            ; +0xff, 0x10056db4f\nmov     rdi, [rbp+var_38]                                              ; +0x101, 0x10056db51\nmov     rsi, rbx                                                       ; +0x105, 0x10056db55\ncall    GameLevelManager__resetTimerForKey                             ; +0x108, 0x10056db58\ntest    r14b, 1                                                        ; +0x10d, 0x10056db5d\njz      loc_10056DA70                                                  ; +0x111, 0x10056db61\nmov     rdi, r13; __p                                                  ; +0x117, 0x10056db67\ncall    __ZdlPv; operator delete(void *)                               ; +0x11a, 0x10056db6a\njmp     loc_10056DA70                                                  ; +0x11f, 0x10056db6f\nadd     rsp, 28h                                                       ; +0x124, 0x10056db74\npop     rbx                                                            ; +0x128, 0x10056db78\npop     r12                                                            ; +0x129, 0x10056db79\npop     r13                                                            ; +0x12b, 0x10056db7b\npop     r14                                                            ; +0x12d, 0x10056db7d\npop     r15                                                            ; +0x12f, 0x10056db7f\npop     rbp                                                            ; +0x131, 0x10056db81\nretn                                                                   ; +0x132, 0x10056db82\ncall    sub_100003630                                                  ; +0x133, 0x10056db83", "xrefs": ["ProfilePage::onUpdate @ 0x10089ee7b", "ProfilePage::onUpdate @ 0x10089f02f"], "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"}