{"type": "func", "start": 5371060816, "end": 5371061065, "name": "GameLevelManager::getStoredLevelComments", "pseudocode": "// \n// GameLevelManager::getStoredLevelComments from 0x14023e250 to 0x14023e349 (249 bytes)\n// \n// 3 xrefs:\n// > InfoLayer::init @ 0x1403cfaf7\n// > InfoLayer::loadPage @ 0x1403d17b8\n// > <???> @ 0x14091c154\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:35 +0000\n// \n\n__int64 __fastcall GameLevelManager::getStoredLevelComments(__int64 a1, _BYTE *a2)\n{\n  size_t v4; // r8\n  __int64 v5; // rbx\n  void *v6; // r8\n  __int64 result; // rax\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v9; // [rsp+40h] [rbp-28h]\n\n  if ( !GameLevelManager::isTimeValid(a1, a2, 600.0) )\n    return 0;\n  *(_OWORD *)Block = 0;\n  v9 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( a2[v4] );\n  sub_14003D230(Block, a2, v4);\n  v5 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 1152), Block);\n  if ( *((_QWORD *)&v9 + 1) > 0xFu )\n  {\n    v6 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )\n    {\n      v6 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v6);\n  }\n  result = 0;\n  if ( v5 )\n    return v5;\n  return result;\n}", "assembly": "; \n; GameLevelManager::getStoredLevelComments from 0x14023e250 to 0x14023e349 (249 bytes)\n; \n; 3 xrefs:\n; > InfoLayer::init @ 0x1403cfaf7\n; > InfoLayer::loadPage @ 0x1403d17b8\n; > <???> @ 0x14091c154\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:35 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14023e250\npush    rdi                                                            ; +0x5, 0x14023e255\nsub     rsp, 60h                                                       ; +0x6, 0x14023e256\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14023e25a\nxor     rax, rsp                                                       ; +0x11, 0x14023e261\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x14023e264\nmov     rbx, rdx                                                       ; +0x19, 0x14023e269\nmov     rdi, rcx                                                       ; +0x1c, 0x14023e26c\nmovss   xmm2, cs:dword_140835A68                                       ; +0x1f, 0x14023e26f\ncall    GameLevelManager__isTimeValid                                  ; +0x27, 0x14023e277\ntest    al, al                                                         ; +0x2c, 0x14023e27c\njz      loc_14023E32C                                                  ; +0x2e, 0x14023e27e\nxorps   xmm0, xmm0                                                     ; +0x34, 0x14023e284\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x37, 0x14023e287\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x14023e28c\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x3f, 0x14023e28f\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x45, 0x14023e295\nnop     dword ptr [rax+00h]                                            ; +0x4c, 0x14023e29c\ninc     r8                                                             ; +0x50, 0x14023e2a0\ncmp     byte ptr [rbx+r8], 0                                           ; +0x53, 0x14023e2a3\njnz     short loc_14023E2A0                                            ; +0x58, 0x14023e2a8\nmov     rdx, rbx                                                       ; +0x5a, 0x14023e2aa\nlea     rcx, [rsp+68h+Block]                                           ; +0x5d, 0x14023e2ad\ncall    sub_14003D230                                                  ; +0x62, 0x14023e2b2\nnop                                                                    ; +0x67, 0x14023e2b7\nlea     rdx, [rsp+68h+Block]                                           ; +0x68, 0x14023e2b8\nmov     rcx, [rdi+480h]                                                ; +0x6d, 0x14023e2bd\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x74, 0x14023e2c4\nmov     rbx, rax                                                       ; +0x7a, 0x14023e2ca\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x7d, 0x14023e2cd\ncmp     rdx, 0Fh                                                       ; +0x82, 0x14023e2d2\njbe     short loc_14023E321                                            ; +0x86, 0x14023e2d6\ninc     rdx                                                            ; +0x88, 0x14023e2d8\nmov     r8, [rsp+68h+Block]                                            ; +0x8b, 0x14023e2db\nmov     rcx, r8                                                        ; +0x90, 0x14023e2e0\ncmp     rdx, 1000h                                                     ; +0x93, 0x14023e2e3\njb      short loc_14023E319                                            ; +0x9a, 0x14023e2ea\nadd     rdx, 27h ; '''                                                 ; +0x9c, 0x14023e2ec\nmov     r8, [r8-8]                                                     ; +0xa0, 0x14023e2f0\nsub     rcx, r8                                                        ; +0xa4, 0x14023e2f4\nsub     rcx, 8                                                         ; +0xa7, 0x14023e2f7\ncmp     rcx, 1Fh                                                       ; +0xab, 0x14023e2fb\njbe     short loc_14023E319                                            ; +0xaf, 0x14023e2ff\nxor     eax, eax                                                       ; +0xb1, 0x14023e301\nmov     [rsp+68h+Reserved], rax; Reserved                              ; +0xb3, 0x14023e303\nxor     r9d, r9d; LineNo                                               ; +0xb8, 0x14023e308\nxor     r8d, r8d; FileName                                             ; +0xbb, 0x14023e30b\nxor     edx, edx; FunctionName                                         ; +0xbe, 0x14023e30e\nxor     ecx, ecx; Expression                                           ; +0xc0, 0x14023e310\ncall    cs:_invoke_watson                                              ; +0xc2, 0x14023e312\ndb 0CCh                                                                ; +0xc8, 0x14023e318\nmov     rcx, r8; Block                                                 ; +0xc9, 0x14023e319\ncall    j_j_free                                                       ; +0xcc, 0x14023e31c\nxor     eax, eax                                                       ; +0xd1, 0x14023e321\ntest    rbx, rbx                                                       ; +0xd3, 0x14023e323\ncmovnz  rax, rbx                                                       ; +0xd6, 0x14023e326\njmp     short loc_14023E32E                                            ; +0xda, 0x14023e32a\nxor     eax, eax                                                       ; +0xdc, 0x14023e32c\nmov     rcx, [rsp+68h+var_18]                                          ; +0xde, 0x14023e32e\nxor     rcx, rsp; StackCookie                                          ; +0xe3, 0x14023e333\ncall    __security_check_cookie                                        ; +0xe6, 0x14023e336\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xeb, 0x14023e33b\nadd     rsp, 60h                                                       ; +0xf3, 0x14023e343\npop     rdi                                                            ; +0xf7, 0x14023e347\nretn                                                                   ; +0xf8, 0x14023e348", "xrefs": ["InfoLayer::init @ 0x1403cfaf7", "InfoLayer::loadPage @ 0x1403d17b8", "<???> @ 0x14091c154"], "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"}