{"type": "func", "start": 6442909840, "end": 6442910204, "name": "cocos2d::CCFileUtils::createCCArrayWithContentsOfFile", "pseudocode": "// \n// cocos2d::CCFileUtils::createCCArrayWithContentsOfFile from 0x180070090 to 0x1800701fc (364 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180106a80\n// > <???> @ 0x180107830\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be500\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:56 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall cocos2d::CCFileUtils::createCCArrayWithContentsOfFile(__int64 a1, _QWORD *a2)\n{\n  float v2; // xmm1_4\n  void **v3; // rbx\n  __int64 v4; // rbx\n  void *v5; // rcx\n  _BYTE v7[8]; // [rsp+30h] [rbp-138h] BYREF\n  void *Block[3]; // [rsp+38h] [rbp-130h] BYREF\n  unsigned __int64 v9; // [rsp+50h] [rbp-118h]\n  void **v10; // [rsp+60h] [rbp-108h] BYREF\n  int v11; // [rsp+68h] [rbp-100h]\n  _BYTE v12[40]; // [rsp+88h] [rbp-E0h] BYREF\n  _BYTE v13[32]; // [rsp+B0h] [rbp-B8h] BYREF\n  _BYTE v14[40]; // [rsp+D0h] [rbp-98h] BYREF\n  __int64 v15; // [rsp+F8h] [rbp-70h]\n  _BYTE v16[40]; // [rsp+100h] [rbp-68h] BYREF\n  _BYTE v17[40]; // [rsp+128h] [rbp-40h] BYREF\n\n  if ( a2[3] > 0xFu )\n    a2 = (_QWORD *)*a2;\n  (*(void (__fastcall **)(__int64, void **, _QWORD *, _QWORD))(*(_QWORD *)a1 + 40LL))(a1, Block, a2, 0);\n  sub_18006EED0((__int64)&v10);\n  v3 = Block;\n  if ( v9 > 0xF )\n    v3 = (void **)Block[0];\n  v11 = 2;\n  cocos2d::CCThread::CCThread((cocos2d::CCThread *)v7);\n  if ( cocos2d::CCComponent::serialize((cocos2d::CCComponent *)v7, \"UTF-8\") )\n  {\n    cocos2d::CCSAXParser::setDelegator((cocos2d::CCSAXParser *)v7, (struct cocos2d::CCSAXDelegator *)&v10);\n    cocos2d::CCSAXParser::parse((cocos2d::CCSAXParser *)v7, (const char *)v3);\n    v4 = v15;\n  }\n  else\n  {\n    v4 = 0;\n  }\n  cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)v7, v2);\n  v10 = &cocos2d::CCDictMaker::`vftable';\n  sub_18006F0C0((__int64)v17);\n  sub_18006F0C0((__int64)v16);\n  sub_180005C70((__int64)v14);\n  sub_180005C70((__int64)v13);\n  sub_18006F0C0((__int64)v12);\n  if ( v9 > 0xF )\n  {\n    v5 = Block[0];\n    if ( v9 + 1 >= 0x1000 )\n    {\n      v5 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free_0(v5);\n  }\n  return v4;\n}", "assembly": "; \n; cocos2d::CCFileUtils::createCCArrayWithContentsOfFile from 0x180070090 to 0x1800701fc (364 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180106a80\n; > <???> @ 0x180107830\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be500\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:56 +0000\n; \npush    rbx                                                            ; +0x0, 0x180070090\nsub     rsp, 160h                                                      ; +0x2, 0x180070092\nmov     rax, cs:__security_cookie                                      ; +0x9, 0x180070099\nxor     rax, rsp                                                       ; +0x10, 0x1800700a0\nmov     [rsp+168h+var_18], rax                                         ; +0x13, 0x1800700a3\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x1b, 0x1800700ab\njbe     short loc_1800700B5                                            ; +0x20, 0x1800700b0\nmov     rdx, [rdx]                                                     ; +0x22, 0x1800700b2\nmov     rax, [rcx]                                                     ; +0x25, 0x1800700b5\nxor     r9d, r9d                                                       ; +0x28, 0x1800700b8\nmov     r8, rdx                                                        ; +0x2b, 0x1800700bb\nlea     rdx, [rsp+168h+Block]                                          ; +0x2e, 0x1800700be\ncall    qword ptr [rax+28h]                                            ; +0x33, 0x1800700c3\nnop                                                                    ; +0x36, 0x1800700c6\nlea     rcx, [rsp+168h+var_108]                                        ; +0x37, 0x1800700c7\ncall    sub_18006EED0                                                  ; +0x3c, 0x1800700cc\nnop                                                                    ; +0x41, 0x1800700d1\nlea     rbx, [rsp+168h+Block]                                          ; +0x42, 0x1800700d2\ncmp     [rsp+168h+var_118], 0Fh                                        ; +0x47, 0x1800700d7\ncmova   rbx, [rsp+168h+Block]                                          ; +0x4d, 0x1800700dd\nmov     [rsp+168h+var_100], 2                                          ; +0x53, 0x1800700e3\nlea     rcx, [rsp+168h+var_138]; this                                  ; +0x5b, 0x1800700eb\ncall    ??0CCThread@cocos2d@@QEAA@XZ; cocos2d::CCThread::CCThread(void) ; +0x60, 0x1800700f0\nnop                                                                    ; +0x65, 0x1800700f5\nlea     rdx, aUtf8; \"UTF-8\"                                            ; +0x66, 0x1800700f6\nlea     rcx, [rsp+168h+var_138]; this                                  ; +0x6d, 0x1800700fd\ncall    ?serialize@CCComponent@cocos2d@@UEAA_NPEAX@Z; cocos2d::CCComponent::serialize(void *) ; +0x72, 0x180070102\ntest    al, al                                                         ; +0x77, 0x180070107\njnz     short loc_18007010F                                            ; +0x79, 0x180070109\nxor     ebx, ebx                                                       ; +0x7b, 0x18007010b\njmp     short loc_180070134                                            ; +0x7d, 0x18007010d\nlea     rdx, [rsp+168h+var_108]; struct cocos2d::CCSAXDelegator *      ; +0x7f, 0x18007010f\nlea     rcx, [rsp+168h+var_138]; this                                  ; +0x84, 0x180070114\ncall    ?setDelegator@CCSAXParser@cocos2d@@QEAAXPEAVCCSAXDelegator@2@@Z; cocos2d::CCSAXParser::setDelegator(cocos2d::CCSAXDelegator *) ; +0x89, 0x180070119\nmov     rdx, rbx; char *                                               ; +0x8e, 0x18007011e\nlea     rcx, [rsp+168h+var_138]; this                                  ; +0x91, 0x180070121\ncall    ?parse@CCSAXParser@cocos2d@@QEAA_NPEBD@Z; cocos2d::CCSAXParser::parse(char const *) ; +0x96, 0x180070126\nnop                                                                    ; +0x9b, 0x18007012b\nmov     rbx, [rsp+168h+var_70]                                         ; +0x9c, 0x18007012c\nlea     rcx, [rsp+168h+var_138]; this                                  ; +0xa4, 0x180070134\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0xa9, 0x180070139\nnop                                                                    ; +0xae, 0x18007013e\nlea     rax, ??_7CCDictMaker@cocos2d@@6B@; const cocos2d::CCDictMaker::`vftable' ; +0xaf, 0x18007013f\nmov     [rsp+168h+var_108], rax                                        ; +0xb6, 0x180070146\nlea     rcx, [rsp+168h+var_40]                                         ; +0xbb, 0x18007014b\ncall    sub_18006F0C0                                                  ; +0xc3, 0x180070153\nlea     rcx, [rsp+168h+var_68]                                         ; +0xc8, 0x180070158\ncall    sub_18006F0C0                                                  ; +0xd0, 0x180070160\nlea     rcx, [rsp+168h+var_98]                                         ; +0xd5, 0x180070165\ncall    sub_180005C70                                                  ; +0xdd, 0x18007016d\nlea     rcx, [rsp+168h+var_B8]                                         ; +0xe2, 0x180070172\ncall    sub_180005C70                                                  ; +0xea, 0x18007017a\nlea     rcx, [rsp+168h+var_E0]                                         ; +0xef, 0x18007017f\ncall    sub_18006F0C0                                                  ; +0xf7, 0x180070187\nnop                                                                    ; +0xfc, 0x18007018c\nmov     rdx, [rsp+168h+var_118]                                        ; +0xfd, 0x18007018d\ncmp     rdx, 0Fh                                                       ; +0x102, 0x180070192\njbe     short loc_1800701E0                                            ; +0x106, 0x180070196\ninc     rdx                                                            ; +0x108, 0x180070198\nmov     rcx, [rsp+168h+Block]; Block                                   ; +0x10b, 0x18007019b\nmov     rax, rcx                                                       ; +0x110, 0x1800701a0\ncmp     rdx, 1000h                                                     ; +0x113, 0x1800701a3\njb      short loc_1800701DB                                            ; +0x11a, 0x1800701aa\nadd     rdx, 27h ; '''                                                 ; +0x11c, 0x1800701ac\nmov     rcx, [rcx-8]                                                   ; +0x120, 0x1800701b0\nsub     rax, rcx                                                       ; +0x124, 0x1800701b4\nsub     rax, 8                                                         ; +0x127, 0x1800701b7\ncmp     rax, 1Fh                                                       ; +0x12b, 0x1800701bb\njbe     short loc_1800701DB                                            ; +0x12f, 0x1800701bf\nmov     [rsp+168h+Reserved], 0; Reserved                               ; +0x131, 0x1800701c1\nxor     r9d, r9d; LineNo                                               ; +0x13a, 0x1800701ca\nxor     r8d, r8d; FileName                                             ; +0x13d, 0x1800701cd\nxor     edx, edx; FunctionName                                         ; +0x140, 0x1800701d0\nxor     ecx, ecx; Expression                                           ; +0x142, 0x1800701d2\ncall    cs:_invoke_watson                                              ; +0x144, 0x1800701d4\ndb 0CCh                                                                ; +0x14a, 0x1800701da\ncall    j_j_free_0                                                     ; +0x14b, 0x1800701db\nmov     rax, rbx                                                       ; +0x150, 0x1800701e0\nmov     rcx, [rsp+168h+var_18]                                         ; +0x153, 0x1800701e3\nxor     rcx, rsp; StackCookie                                          ; +0x15b, 0x1800701eb\ncall    __security_check_cookie                                        ; +0x15e, 0x1800701ee\nadd     rsp, 160h                                                      ; +0x163, 0x1800701f3\npop     rbx                                                            ; +0x16a, 0x1800701fa\nretn                                                                   ; +0x16b, 0x1800701fb", "xrefs": ["<???> @ 0x180106a80", "<???> @ 0x180107830", "<???> @ 0x18014cf68", "<???> @ 0x1801be500"], "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"}