{"type": "func", "start": 5371068640, "end": 5371069066, "name": "GameLevelManager::resetCommentTimersForAccountID", "pseudocode": "// \n// GameLevelManager::resetCommentTimersForAccountID from 0x1402400e0 to 0x14024028a (426 bytes)\n// \n// 3 xrefs:\n// > ProfilePage::onUpdate @ 0x140551f4f\n// > ProfilePage::onUpdate @ 0x1405522eb\n// > <???> @ 0x14091c184\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 11:28:36 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall GameLevelManager::resetCommentTimersForAccountID(__int64 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+30h] [rbp-48h]\n  void *Block[2]; // [rsp+38h] [rbp-40h] BYREF\n  __int64 v15; // [rsp+48h] [rbp-30h]\n  unsigned __int64 v16; // [rsp+50h] [rbp-28h]\n\n  v4 = 1;\n  v5 = 0;\n  while ( 1 )\n  {\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v13 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v13);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\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_14003D230(Block, CString, v8);\n    v9 = Block;\n    if ( v16 > 0xF )\n      v9 = (void **)Block[0];\n    if ( GameLevelManager::keyHasTimer(a1, v9) )\n    {\n      v10 = Block;\n      if ( v16 > 0xF )\n        v10 = (void **)Block[0];\n      GameLevelManager::resetTimerForKey(a1, 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        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v12);\n  }\n}", "assembly": "; \n; GameLevelManager::resetCommentTimersForAccountID from 0x1402400e0 to 0x14024028a (426 bytes)\n; \n; 3 xrefs:\n; > ProfilePage::onUpdate @ 0x140551f4f\n; > ProfilePage::onUpdate @ 0x1405522eb\n; > <???> @ 0x14091c184\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 11:28:36 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402400e0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x1402400e5\npush    rsi                                                            ; +0xa, 0x1402400ea\npush    rdi                                                            ; +0xb, 0x1402400eb\npush    r14                                                            ; +0xc, 0x1402400ec\nsub     rsp, 60h                                                       ; +0xe, 0x1402400ee\nmov     rax, cs:__security_cookie                                      ; +0x12, 0x1402400f2\nxor     rax, rsp                                                       ; +0x19, 0x1402400f9\nmov     [rsp+78h+var_20], rax                                          ; +0x1c, 0x1402400fc\nmov     ebp, edx                                                       ; +0x21, 0x140240101\nmov     rsi, rcx                                                       ; +0x23, 0x140240103\nmov     dil, 1                                                         ; +0x26, 0x140240106\nxor     r14d, r14d                                                     ; +0x29, 0x140240109\nmov     ebx, r14d                                                      ; +0x2c, 0x14024010c\nnop                                                                    ; +0x2f, 0x14024010f\ncmp     cs:qword_14090BFB0, 0                                          ; +0x30, 0x140240110\njnz     short loc_140240145                                            ; +0x38, 0x140240118\nmov     ecx, 690h; Size                                                ; +0x3a, 0x14024011a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3f, 0x14024011f\nmov     [rsp+78h+var_48], rax                                          ; +0x44, 0x140240124\nmov     rcx, rax                                                       ; +0x49, 0x140240129\ncall    GameLevelManager__GameLevelManager                             ; +0x4c, 0x14024012c\nnop                                                                    ; +0x51, 0x140240131\nmov     cs:qword_14090BFB0, rax                                        ; +0x52, 0x140240132\nmov     rcx, [rax]                                                     ; +0x59, 0x140240139\nmov     rdx, [rcx+48h]                                                 ; +0x5c, 0x14024013c\nmov     rcx, rax                                                       ; +0x60, 0x140240140\ncall    rdx                                                            ; +0x63, 0x140240143\nmov     r8d, ebx                                                       ; +0x65, 0x140240145\nmov     edx, ebp                                                       ; +0x68, 0x140240148\nlea     rcx, aAII; \"a_%i_%i\"                                           ; +0x6a, 0x14024014a\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x71, 0x140240151\nmov     rcx, rax                                                       ; +0x77, 0x140240157\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x7a, 0x14024015a\nxorps   xmm0, xmm0                                                     ; +0x80, 0x140240160\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x83, 0x140240163\nmov     [rsp+78h+var_30], r14                                          ; +0x88, 0x140240168\nmov     [rsp+78h+var_28], r14                                          ; +0x8d, 0x14024016d\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x92, 0x140240172\nnop     dword ptr [rax+00000000h]                                      ; +0x99, 0x140240179\ninc     r8                                                             ; +0xa0, 0x140240180\ncmp     byte ptr [rax+r8], 0                                           ; +0xa3, 0x140240183\njnz     short loc_140240180                                            ; +0xa8, 0x140240188\nmov     rdx, rax                                                       ; +0xaa, 0x14024018a\nlea     rcx, [rsp+78h+Block]                                           ; +0xad, 0x14024018d\ncall    sub_14003D230                                                  ; +0xb2, 0x140240192\nnop                                                                    ; +0xb7, 0x140240197\nlea     rdx, [rsp+78h+Block]                                           ; +0xb8, 0x140240198\ncmp     [rsp+78h+var_28], 0Fh                                          ; +0xbd, 0x14024019d\ncmova   rdx, [rsp+78h+Block]                                           ; +0xc3, 0x1402401a3\nmov     rcx, rsi                                                       ; +0xc9, 0x1402401a9\ncall    GameLevelManager__keyHasTimer                                  ; +0xcc, 0x1402401ac\ntest    al, al                                                         ; +0xd1, 0x1402401b1\njz      short loc_1402401D0                                            ; +0xd3, 0x1402401b3\nlea     rdx, [rsp+78h+Block]                                           ; +0xd5, 0x1402401b5\ncmp     [rsp+78h+var_28], 0Fh                                          ; +0xda, 0x1402401ba\ncmova   rdx, [rsp+78h+Block]                                           ; +0xe0, 0x1402401c0\nmov     rcx, rsi                                                       ; +0xe6, 0x1402401c6\ncall    GameLevelManager__resetTimerForKey                             ; +0xe9, 0x1402401c9\njmp     short loc_1402401D3                                            ; +0xee, 0x1402401ce\nxor     dil, dil                                                       ; +0xf0, 0x1402401d0\ninc     ebx                                                            ; +0xf3, 0x1402401d3\nmov     rdx, [rsp+78h+var_28]                                          ; +0xf5, 0x1402401d5\ncmp     ebx, 64h ; 'd'                                                 ; +0xfa, 0x1402401da\njg      short loc_14024021E                                            ; +0xfd, 0x1402401dd\ncmp     rdx, 0Fh                                                       ; +0xff, 0x1402401df\njbe     short loc_140240213                                            ; +0x103, 0x1402401e3\ninc     rdx                                                            ; +0x105, 0x1402401e5\nmov     rcx, [rsp+78h+Block]                                           ; +0x108, 0x1402401e8\nmov     rax, rcx                                                       ; +0x10d, 0x1402401ed\ncmp     rdx, 1000h                                                     ; +0x110, 0x1402401f0\njb      short loc_14024020E                                            ; +0x117, 0x1402401f7\nadd     rdx, 27h ; '''                                                 ; +0x119, 0x1402401f9\nmov     rcx, [rcx-8]; Block                                            ; +0x11d, 0x1402401fd\nsub     rax, rcx                                                       ; +0x121, 0x140240201\nsub     rax, 8                                                         ; +0x124, 0x140240204\ncmp     rax, 1Fh                                                       ; +0x128, 0x140240208\nja      short loc_14024024D                                            ; +0x12c, 0x14024020c\ncall    j_j_free                                                       ; +0x12e, 0x14024020e\ntest    dil, dil                                                       ; +0x133, 0x140240213\njnz     loc_140240110                                                  ; +0x136, 0x140240216\njmp     short loc_140240268                                            ; +0x13c, 0x14024021c\ncmp     rdx, 0Fh                                                       ; +0x13e, 0x14024021e\njbe     short loc_140240268                                            ; +0x142, 0x140240222\ninc     rdx                                                            ; +0x144, 0x140240224\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0x147, 0x140240227\nmov     rax, rcx                                                       ; +0x14c, 0x14024022c\ncmp     rdx, 1000h                                                     ; +0x14f, 0x14024022f\njb      short loc_140240263                                            ; +0x156, 0x140240236\nadd     rdx, 27h ; '''                                                 ; +0x158, 0x140240238\nmov     rcx, [rcx-8]                                                   ; +0x15c, 0x14024023c\nsub     rax, rcx                                                       ; +0x160, 0x140240240\nsub     rax, 8                                                         ; +0x163, 0x140240243\ncmp     rax, 1Fh                                                       ; +0x167, 0x140240247\njbe     short loc_140240263                                            ; +0x16b, 0x14024024b\nmov     [rsp+78h+Reserved], r14; Reserved                              ; +0x16d, 0x14024024d\nxor     r9d, r9d; LineNo                                               ; +0x172, 0x140240252\nxor     r8d, r8d; FileName                                             ; +0x175, 0x140240255\nxor     edx, edx; FunctionName                                         ; +0x178, 0x140240258\nxor     ecx, ecx; Expression                                           ; +0x17a, 0x14024025a\ncall    cs:_invoke_watson                                              ; +0x17c, 0x14024025c\ndb 0CCh                                                                ; +0x182, 0x140240262\ncall    j_j_free                                                       ; +0x183, 0x140240263\nmov     rcx, [rsp+78h+var_20]                                          ; +0x188, 0x140240268\nxor     rcx, rsp; StackCookie                                          ; +0x18d, 0x14024026d\ncall    __security_check_cookie                                        ; +0x190, 0x140240270\nlea     r11, [rsp+78h+var_18]                                          ; +0x195, 0x140240275\nmov     rbx, [r11+30h]                                                 ; +0x19a, 0x14024027a\nmov     rbp, [r11+38h]                                                 ; +0x19e, 0x14024027e\nmov     rsp, r11                                                       ; +0x1a2, 0x140240282\npop     r14                                                            ; +0x1a5, 0x140240285\npop     rdi                                                            ; +0x1a7, 0x140240287\npop     rsi                                                            ; +0x1a8, 0x140240288\nretn                                                                   ; +0x1a9, 0x140240289", "xrefs": ["ProfilePage::onUpdate @ 0x140551f4f", "ProfilePage::onUpdate @ 0x1405522eb", "<???> @ 0x14091c184"], "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"}