{"type": "func", "start": 5371017856, "end": 5371018079, "name": "GameLevelManager::hasDownloadedLevel", "pseudocode": "// \n// GameLevelManager::hasDownloadedLevel from 0x140233a80 to 0x140233b5f (223 bytes)\n// \n// 4 xrefs:\n// > GameLevelManager::getOnlineLevels @ 0x14022b476\n// > GameLevelManager::downloadLevel @ 0x140231c79\n// > <???> @ 0x14091bf38\n// > <???> @ 0x14091bf44\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:31 +0000\n// \n\n_BOOL8 __fastcall GameLevelManager::hasDownloadedLevel(__int64 a1)\n{\n  cocos2d::CCString *v2; // rax\n  const char *CString; // rax\n  size_t v4; // r8\n  bool v5; // bl\n  void *v6; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v9; // [rsp+40h] [rbp-28h]\n\n  v2 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8);\n  CString = cocos2d::CCString::getCString(v2);\n  *(_OWORD *)Block = 0;\n  v9 = 0;\n  v4 = -1;\n  do\n    ++v4;\n  while ( CString[v4] );\n  sub_14003D230(Block, CString, v4);\n  v5 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 888), Block) != 0;\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  return v5;\n}", "assembly": "; \n; GameLevelManager::hasDownloadedLevel from 0x140233a80 to 0x140233b5f (223 bytes)\n; \n; 4 xrefs:\n; > GameLevelManager::getOnlineLevels @ 0x14022b476\n; > GameLevelManager::downloadLevel @ 0x140231c79\n; > <???> @ 0x14091bf38\n; > <???> @ 0x14091bf44\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:31 +0000\n; \npush    rbx                                                            ; +0x0, 0x140233a80\nsub     rsp, 60h                                                       ; +0x2, 0x140233a82\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140233a86\nxor     rax, rsp                                                       ; +0xd, 0x140233a8d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x140233a90\nmov     rbx, rcx                                                       ; +0x15, 0x140233a95\nlea     rcx, word_1406ED6F8                                            ; +0x18, 0x140233a98\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x1f, 0x140233a9f\nmov     rcx, rax                                                       ; +0x25, 0x140233aa5\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x28, 0x140233aa8\nxorps   xmm0, xmm0                                                     ; +0x2e, 0x140233aae\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x31, 0x140233ab1\nxorps   xmm1, xmm1                                                     ; +0x36, 0x140233ab6\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x39, 0x140233ab9\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x3f, 0x140233abf\ninc     r8                                                             ; +0x46, 0x140233ac6\ncmp     byte ptr [rax+r8], 0                                           ; +0x49, 0x140233ac9\njnz     short loc_140233AC6                                            ; +0x4e, 0x140233ace\nmov     rdx, rax                                                       ; +0x50, 0x140233ad0\nlea     rcx, [rsp+68h+Block]                                           ; +0x53, 0x140233ad3\ncall    sub_14003D230                                                  ; +0x58, 0x140233ad8\nnop                                                                    ; +0x5d, 0x140233add\nlea     rdx, [rsp+68h+Block]                                           ; +0x5e, 0x140233ade\nmov     rcx, [rbx+378h]                                                ; +0x63, 0x140233ae3\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 &) ; +0x6a, 0x140233aea\ntest    rax, rax                                                       ; +0x70, 0x140233af0\nsetnz   bl                                                             ; +0x73, 0x140233af3\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x76, 0x140233af6\ncmp     rdx, 0Fh                                                       ; +0x7b, 0x140233afb\njbe     short loc_140233B49                                            ; +0x7f, 0x140233aff\ninc     rdx                                                            ; +0x81, 0x140233b01\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x84, 0x140233b04\nmov     rax, rcx                                                       ; +0x89, 0x140233b09\ncmp     rdx, 1000h                                                     ; +0x8c, 0x140233b0c\njb      short loc_140233B44                                            ; +0x93, 0x140233b13\nadd     rdx, 27h ; '''                                                 ; +0x95, 0x140233b15\nmov     rcx, [rcx-8]                                                   ; +0x99, 0x140233b19\nsub     rax, rcx                                                       ; +0x9d, 0x140233b1d\nsub     rax, 8                                                         ; +0xa0, 0x140233b20\ncmp     rax, 1Fh                                                       ; +0xa4, 0x140233b24\njbe     short loc_140233B44                                            ; +0xa8, 0x140233b28\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xaa, 0x140233b2a\nxor     r9d, r9d; LineNo                                               ; +0xb3, 0x140233b33\nxor     r8d, r8d; FileName                                             ; +0xb6, 0x140233b36\nxor     edx, edx; FunctionName                                         ; +0xb9, 0x140233b39\nxor     ecx, ecx; Expression                                           ; +0xbb, 0x140233b3b\ncall    cs:_invoke_watson                                              ; +0xbd, 0x140233b3d\nalign 4                                                                ; +0xc3, 0x140233b43\ncall    j_j_free                                                       ; +0xc4, 0x140233b44\nmovzx   eax, bl                                                        ; +0xc9, 0x140233b49\nmov     rcx, [rsp+68h+var_18]                                          ; +0xcc, 0x140233b4c\nxor     rcx, rsp; StackCookie                                          ; +0xd1, 0x140233b51\ncall    __security_check_cookie                                        ; +0xd4, 0x140233b54\nadd     rsp, 60h                                                       ; +0xd9, 0x140233b59\npop     rbx                                                            ; +0xdd, 0x140233b5d\nretn                                                                   ; +0xde, 0x140233b5e", "xrefs": ["GameLevelManager::getOnlineLevels @ 0x14022b476", "GameLevelManager::downloadLevel @ 0x140231c79", "<???> @ 0x14091bf38", "<???> @ 0x14091bf44"], "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"}