{"type": "func", "start": 6442492784, "end": 6442492956, "name": "cocos2d::CCDictionary::createWithContentsOfFileThreadSafe", "pseudocode": "// \n// cocos2d::CCDictionary::createWithContentsOfFileThreadSafe from 0x18000a370 to 0x18000a41c (172 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCDictionary::createWithContentsOfFile @ 0x18000a356\n// > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x1800955db\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7ccc\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:21:19 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCDictionary *__fastcall cocos2d::CCDictionary::createWithContentsOfFileThreadSafe(char *Str)\n{\n  struct cocos2d::CCFileUtils *v1; // rax\n  __int64 v2; // rbx\n  void *v3; // r8\n  void *Block[3]; // [rsp+30h] [rbp-38h] BYREF\n  unsigned __int64 v6; // [rsp+48h] [rbp-20h]\n\n  sub_180005A10(Block, Str);\n  v1 = cocos2d::CCFileUtils::sharedFileUtils();\n  v2 = (*(__int64 (__fastcall **)(struct cocos2d::CCFileUtils *, void **))(*(_QWORD *)v1 + 232LL))(v1, Block);\n  if ( v6 > 0xF )\n  {\n    v3 = Block[0];\n    if ( v6 + 1 >= 0x1000 )\n    {\n      v3 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v3 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v3);\n  }\n  return (struct cocos2d::CCDictionary *)v2;\n}", "assembly": "; \n; cocos2d::CCDictionary::createWithContentsOfFileThreadSafe from 0x18000a370 to 0x18000a41c (172 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCDictionary::createWithContentsOfFile @ 0x18000a356\n; > cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x1800955db\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7ccc\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:21:19 +0000\n; \npush    rbx                                                            ; +0x0, 0x18000a370\nsub     rsp, 60h                                                       ; +0x2, 0x18000a372\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x18000a376\nxor     rax, rsp                                                       ; +0xd, 0x18000a37d\nmov     [rsp+68h+var_18], rax                                          ; +0x10, 0x18000a380\nmov     rdx, rcx; Str                                                  ; +0x15, 0x18000a385\nlea     rcx, [rsp+68h+Block]; void *                                   ; +0x18, 0x18000a388\ncall    sub_180005A10                                                  ; +0x1d, 0x18000a38d\nnop                                                                    ; +0x22, 0x18000a392\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x23, 0x18000a393\nmov     rcx, [rax]                                                     ; +0x28, 0x18000a398\nmov     r8, [rcx+0E8h]                                                 ; +0x2b, 0x18000a39b\nlea     rdx, [rsp+68h+Block]                                           ; +0x32, 0x18000a3a2\nmov     rcx, rax                                                       ; +0x37, 0x18000a3a7\ncall    r8                                                             ; +0x3a, 0x18000a3aa\nmov     rbx, rax                                                       ; +0x3d, 0x18000a3ad\nmov     rdx, [rsp+68h+var_20]                                          ; +0x40, 0x18000a3b0\ncmp     rdx, 0Fh                                                       ; +0x45, 0x18000a3b5\njbe     short loc_18000A406                                            ; +0x49, 0x18000a3b9\ninc     rdx                                                            ; +0x4b, 0x18000a3bb\nmov     r8, [rsp+68h+Block]                                            ; +0x4e, 0x18000a3be\nmov     rcx, r8                                                        ; +0x53, 0x18000a3c3\ncmp     rdx, 1000h                                                     ; +0x56, 0x18000a3c6\njb      short loc_18000A3FE                                            ; +0x5d, 0x18000a3cd\nadd     rdx, 27h ; '''                                                 ; +0x5f, 0x18000a3cf\nmov     r8, [r8-8]                                                     ; +0x63, 0x18000a3d3\nsub     rcx, r8                                                        ; +0x67, 0x18000a3d7\nsub     rcx, 8                                                         ; +0x6a, 0x18000a3da\ncmp     rcx, 1Fh                                                       ; +0x6e, 0x18000a3de\njbe     short loc_18000A3FE                                            ; +0x72, 0x18000a3e2\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0x74, 0x18000a3e4\nxor     r9d, r9d; LineNo                                               ; +0x7d, 0x18000a3ed\nxor     r8d, r8d; FileName                                             ; +0x80, 0x18000a3f0\nxor     edx, edx; FunctionName                                         ; +0x83, 0x18000a3f3\nxor     ecx, ecx; Expression                                           ; +0x85, 0x18000a3f5\ncall    cs:_invoke_watson                                              ; +0x87, 0x18000a3f7\nalign 2                                                                ; +0x8d, 0x18000a3fd\nmov     rcx, r8; Block                                                 ; +0x8e, 0x18000a3fe\ncall    j_j_free_0                                                     ; +0x91, 0x18000a401\nmov     rax, rbx                                                       ; +0x96, 0x18000a406\nmov     rcx, [rsp+68h+var_18]                                          ; +0x99, 0x18000a409\nxor     rcx, rsp; StackCookie                                          ; +0x9e, 0x18000a40e\ncall    __security_check_cookie                                        ; +0xa1, 0x18000a411\nadd     rsp, 60h                                                       ; +0xa6, 0x18000a416\npop     rbx                                                            ; +0xaa, 0x18000a41a\nretn                                                                   ; +0xab, 0x18000a41b", "xrefs": ["cocos2d::CCDictionary::createWithContentsOfFile @ 0x18000a356", "cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile @ 0x1800955db", "<???> @ 0x18014cf68", "<???> @ 0x1801b7ccc"], "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"}