{"type": "func", "start": 5370146512, "end": 5370146913, "name": "GameLevelManager::resetCommentTimersForAccountID", "pseudocode": "// \n// GameLevelManager::resetCommentTimersForAccountID from 0x14015eed0 to 0x14015f061 (401 bytes)\n// \n// 3 xrefs:\n// > ProfilePage::onUpdate @ 0x1403bfaca\n// > ProfilePage::onUpdate @ 0x1403bfdb9\n// > <???> @ 0x1406caaf4\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=2\nvoid GameLevelManager::resetCommentTimersForAccountID(GameLevelManager *a1, int a2)\n{\n  char v4; // di\n  int v5; // ebx\n  cocos2d::CCString *v6; // rax\n  const char *CString; // rax\n  size_t v8; // r8\n  void **v9; // rdx\n  void **v10; // rdx\n  void *v11; // rcx\n  void *v12; // rcx\n  void *v13; // [rsp+20h] [rbp-48h]\n  void *Block[2]; // [rsp+28h] [rbp-40h] BYREF\n  __int64 v15; // [rsp+38h] [rbp-30h]\n  unsigned __int64 v16; // [rsp+40h] [rbp-28h]\n\n  v4 = 1;\n  v5 = 0;\n  while ( 1 )\n  {\n    if ( !qword_1406C2EC0 )\n    {\n      v13 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280((__int64)v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n    }\n    v6 = cocos2d::CCString::createWithFormat(\"a_%i_%i\", a2, v5);\n    CString = cocos2d::CCString::getCString(v6);\n    *(_OWORD *)Block = 0;\n    v15 = 0;\n    v16 = 0;\n    v8 = -1;\n    do\n      ++v8;\n    while ( CString[v8] );\n    sub_14003A930(Block, CString, v8);\n    v9 = Block;\n    if ( v16 > 0xF )\n      v9 = (void **)Block[0];\n    if ( GameLevelManager::keyHasTimer(a1, (const char *)v9) )\n    {\n      v10 = Block;\n      if ( v16 > 0xF )\n        v10 = (void **)Block[0];\n      GameLevelManager::resetTimerForKey(a1, (const char *)v10);\n    }\n    else\n    {\n      v4 = 0;\n    }\n    if ( ++v5 > 100 )\n      break;\n    if ( v16 > 0xF )\n    {\n      v11 = Block[0];\n      if ( v16 + 1 >= 0x1000 )\n      {\n        v11 = *((void **)Block[0] - 1);\n        if ( (unsigned __int64)((char *)Block[0] - (char *)v11 - 8) > 0x1F )\n          goto LABEL_23;\n      }\n      j_j_free(v11);\n    }\n    if ( !v4 )\n      return;\n  }\n  if ( v16 > 0xF )\n  {\n    v12 = Block[0];\n    if ( v16 + 1 >= 0x1000 )\n    {\n      v12 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F )\nLABEL_23:\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v12);\n  }\n}", "assembly": "; \n; GameLevelManager::resetCommentTimersForAccountID from 0x14015eed0 to 0x14015f061 (401 bytes)\n; \n; 3 xrefs:\n; > ProfilePage::onUpdate @ 0x1403bfaca\n; > ProfilePage::onUpdate @ 0x1403bfdb9\n; > <???> @ 0x1406caaf4\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14015eed0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x14015eed5\npush    rsi                                                            ; +0xa, 0x14015eeda\npush    rdi                                                            ; +0xb, 0x14015eedb\npush    r14                                                            ; +0xc, 0x14015eedc\nsub     rsp, 50h                                                       ; +0xe, 0x14015eede\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x14015eee2\nxor     rax, rsp                                                       ; +0x19, 0x14015eee9\nmov     [rsp+68h+var_20], rax                                          ; +0x1c, 0x14015eeec\nmov     ebp, edx                                                       ; +0x21, 0x14015eef1\nmov     rsi, rcx                                                       ; +0x23, 0x14015eef3\nmov     dil, 1                                                         ; +0x26, 0x14015eef6\nxor     r14d, r14d                                                     ; +0x29, 0x14015eef9\nmov     ebx, r14d                                                      ; +0x2c, 0x14015eefc\nnop                                                                    ; +0x2f, 0x14015eeff\ncmp     cs:qword_1406C2EC0, 0                                          ; +0x30, 0x14015ef00\njnz     short loc_14015EF32                                            ; +0x38, 0x14015ef08\nmov     ecx, 3D0h; Size                                                ; +0x3a, 0x14015ef0a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3f, 0x14015ef0f\nmov     [rsp+68h+var_48], rax                                          ; +0x44, 0x14015ef14\nmov     rcx, rax                                                       ; +0x49, 0x14015ef19\ncall    sub_140141280                                                  ; +0x4c, 0x14015ef1c\nnop                                                                    ; +0x51, 0x14015ef21\nmov     cs:qword_1406C2EC0, rax                                        ; +0x52, 0x14015ef22\nmov     rdx, [rax]                                                     ; +0x59, 0x14015ef29\nmov     rcx, rax                                                       ; +0x5c, 0x14015ef2c\ncall    qword ptr [rdx+48h]                                            ; +0x5f, 0x14015ef2f\nmov     r8d, ebx                                                       ; +0x62, 0x14015ef32\nmov     edx, ebp                                                       ; +0x65, 0x14015ef35\nlea     rcx, aAII; \"a_%i_%i\"                                           ; +0x67, 0x14015ef37\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x6e, 0x14015ef3e\nmov     rcx, rax                                                       ; +0x74, 0x14015ef44\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x77, 0x14015ef47\nxorps   xmm0, xmm0                                                     ; +0x7d, 0x14015ef4d\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x80, 0x14015ef50\nmov     [rsp+68h+var_30], r14                                          ; +0x85, 0x14015ef55\nmov     [rsp+68h+var_28], r14                                          ; +0x8a, 0x14015ef5a\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x8f, 0x14015ef5f\ninc     r8                                                             ; +0x96, 0x14015ef66\ncmp     byte ptr [rax+r8], 0                                           ; +0x99, 0x14015ef69\njnz     short loc_14015EF66                                            ; +0x9e, 0x14015ef6e\nmov     rdx, rax                                                       ; +0xa0, 0x14015ef70\nlea     rcx, [rsp+68h+Block]                                           ; +0xa3, 0x14015ef73\ncall    sub_14003A930                                                  ; +0xa8, 0x14015ef78\nnop                                                                    ; +0xad, 0x14015ef7d\nlea     rdx, [rsp+68h+Block]                                           ; +0xae, 0x14015ef7e\ncmp     [rsp+68h+var_28], 0Fh                                          ; +0xb3, 0x14015ef83\ncmova   rdx, [rsp+68h+Block]                                           ; +0xb9, 0x14015ef89\nmov     rcx, rsi                                                       ; +0xbf, 0x14015ef8f\ncall    GameLevelManager__keyHasTimer                                  ; +0xc2, 0x14015ef92\ntest    al, al                                                         ; +0xc7, 0x14015ef97\njz      short loc_14015EFB6                                            ; +0xc9, 0x14015ef99\nlea     rdx, [rsp+68h+Block]                                           ; +0xcb, 0x14015ef9b\ncmp     [rsp+68h+var_28], 0Fh                                          ; +0xd0, 0x14015efa0\ncmova   rdx, [rsp+68h+Block]                                           ; +0xd6, 0x14015efa6\nmov     rcx, rsi                                                       ; +0xdc, 0x14015efac\ncall    GameLevelManager__resetTimerForKey                             ; +0xdf, 0x14015efaf\njmp     short loc_14015EFB9                                            ; +0xe4, 0x14015efb4\nxor     dil, dil                                                       ; +0xe6, 0x14015efb6\ninc     ebx                                                            ; +0xe9, 0x14015efb9\nmov     rdx, [rsp+68h+var_28]                                          ; +0xeb, 0x14015efbb\ncmp     ebx, 64h ; 'd'                                                 ; +0xf0, 0x14015efc0\njg      short loc_14015F004                                            ; +0xf3, 0x14015efc3\ncmp     rdx, 0Fh                                                       ; +0xf5, 0x14015efc5\njbe     short loc_14015EFF9                                            ; +0xf9, 0x14015efc9\ninc     rdx                                                            ; +0xfb, 0x14015efcb\nmov     rcx, [rsp+68h+Block]                                           ; +0xfe, 0x14015efce\nmov     rax, rcx                                                       ; +0x103, 0x14015efd3\ncmp     rdx, 1000h                                                     ; +0x106, 0x14015efd6\njb      short loc_14015EFF4                                            ; +0x10d, 0x14015efdd\nadd     rdx, 27h ; '''                                                 ; +0x10f, 0x14015efdf\nmov     rcx, [rcx-8]; Block                                            ; +0x113, 0x14015efe3\nsub     rax, rcx                                                       ; +0x117, 0x14015efe7\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x11a, 0x14015efea\ncmp     rax, 1Fh                                                       ; +0x11e, 0x14015efee\nja      short loc_14015F033                                            ; +0x122, 0x14015eff2\ncall    j_j_free                                                       ; +0x124, 0x14015eff4\ntest    dil, dil                                                       ; +0x129, 0x14015eff9\njnz     loc_14015EF00                                                  ; +0x12c, 0x14015effc\njmp     short loc_14015F03F                                            ; +0x132, 0x14015f002\ncmp     rdx, 0Fh                                                       ; +0x134, 0x14015f004\njbe     short loc_14015F03F                                            ; +0x138, 0x14015f008\ninc     rdx                                                            ; +0x13a, 0x14015f00a\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x13d, 0x14015f00d\nmov     rax, rcx                                                       ; +0x142, 0x14015f012\ncmp     rdx, 1000h                                                     ; +0x145, 0x14015f015\njb      short loc_14015F03A                                            ; +0x14c, 0x14015f01c\nadd     rdx, 27h ; '''                                                 ; +0x14e, 0x14015f01e\nmov     rcx, [rcx-8]                                                   ; +0x152, 0x14015f022\nsub     rax, rcx                                                       ; +0x156, 0x14015f026\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x159, 0x14015f029\ncmp     rax, 1Fh                                                       ; +0x15d, 0x14015f02d\njbe     short loc_14015F03A                                            ; +0x161, 0x14015f031\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x163, 0x14015f033\nalign 2                                                                ; +0x169, 0x14015f039\ncall    j_j_free                                                       ; +0x16a, 0x14015f03a\nmov     rcx, [rsp+68h+var_20]                                          ; +0x16f, 0x14015f03f\nxor     rcx, rsp; StackCookie                                          ; +0x174, 0x14015f044\ncall    __security_check_cookie                                        ; +0x177, 0x14015f047\nlea     r11, [rsp+68h+var_18]                                          ; +0x17c, 0x14015f04c\nmov     rbx, [r11+30h]                                                 ; +0x181, 0x14015f051\nmov     rbp, [r11+38h]                                                 ; +0x185, 0x14015f055\nmov     rsp, r11                                                       ; +0x189, 0x14015f059\npop     r14                                                            ; +0x18c, 0x14015f05c\npop     rdi                                                            ; +0x18e, 0x14015f05e\npop     rsi                                                            ; +0x18f, 0x14015f05f\nretn                                                                   ; +0x190, 0x14015f060", "xrefs": ["ProfilePage::onUpdate @ 0x1403bfaca", "ProfilePage::onUpdate @ 0x1403bfdb9", "<???> @ 0x1406caaf4"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}