{"type": "func", "start": 6442901968, "end": 6442902252, "name": "cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile", "pseudocode": "// \n// cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile from 0x18006e1d0 to 0x18006e2ec (284 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180100420\n// > <???> @ 0x180101148\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4158\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile(__int64 a1, _QWORD *a2)\n{\n  float v2; // xmm1_4\n  const char *v3; // rbx\n  __int64 v4; // rbx\n  void *v5; // rcx\n  _BYTE v7[312]; // [rsp+20h] [rbp-138h] BYREF\n\n  if ( a2[3] > 0xFu )\n    a2 = (_QWORD *)*a2;\n  (*(void (__fastcall **)(__int64, _BYTE *, _QWORD *, _QWORD))(*(_QWORD *)a1 + 40LL))(a1, &v7[8], a2, 0);\n  sub_18006CBC0((__int64)&v7[48]);\n  v3 = &v7[8];\n  if ( *(_QWORD *)&v7[32] > 0xFu )\n    v3 = *(const char **)&v7[8];\n  *(_DWORD *)&v7[56] = 1;\n  pugi::xml_node::xml_node((cocos2d::CCThread *)v7);\n  if ( cocos2d::CCComponent::serialize((cocos2d::CCComponent *)v7, \"UTF-8\") )\n  {\n    cocos2d::CCSAXParser::setDelegator((cocos2d::CCSAXParser *)v7, (struct cocos2d::CCSAXDelegator *)&v7[48]);\n    cocos2d::CCSAXParser::parse((cocos2d::CCSAXParser *)v7, v3);\n    v4 = *(_QWORD *)&v7[72];\n    cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)v7, v2);\n  }\n  else\n  {\n    cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)v7, v2);\n    v4 = 0;\n  }\n  sub_18006CF70(&v7[48]);\n  if ( *(_QWORD *)&v7[32] > 0xFu )\n  {\n    v5 = *(void **)&v7[8];\n    if ( (unsigned __int64)(*(_QWORD *)&v7[32] + 1LL) >= 0x1000 )\n    {\n      v5 = *(void **)(*(_QWORD *)&v7[8] - 8LL);\n      if ( (unsigned __int64)(*(_QWORD *)&v7[8] - (_QWORD)v5 - 8LL) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v5);\n  }\n  return v4;\n}", "assembly": "; \n; cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile from 0x18006e1d0 to 0x18006e2ec (284 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180100420\n; > <???> @ 0x180101148\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4158\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x18006e1d0\nsub     rsp, 150h                                                      ; +0x2, 0x18006e1d2\nmov     rax, cs:__security_cookie                                      ; +0x9, 0x18006e1d9\nxor     rax, rsp                                                       ; +0x10, 0x18006e1e0\nmov     [rsp+158h+var_18], rax                                         ; +0x13, 0x18006e1e3\ncmp     qword ptr [rdx+18h], 0Fh                                       ; +0x1b, 0x18006e1eb\njbe     short loc_18006E1F5                                            ; +0x20, 0x18006e1f0\nmov     rdx, [rdx]                                                     ; +0x22, 0x18006e1f2\nmov     rax, [rcx]                                                     ; +0x25, 0x18006e1f5\nxor     r9d, r9d                                                       ; +0x28, 0x18006e1f8\nmov     r8, rdx                                                        ; +0x2b, 0x18006e1fb\nlea     rdx, [rsp+158h+Block]                                          ; +0x2e, 0x18006e1fe\ncall    qword ptr [rax+28h]                                            ; +0x33, 0x18006e203\nnop                                                                    ; +0x36, 0x18006e206\nlea     rcx, [rsp+158h+var_108]                                        ; +0x37, 0x18006e207\ncall    sub_18006CBC0                                                  ; +0x3c, 0x18006e20c\nnop                                                                    ; +0x41, 0x18006e211\nlea     rbx, [rsp+158h+Block]                                          ; +0x42, 0x18006e212\ncmp     [rsp+158h+var_118], 0Fh                                        ; +0x47, 0x18006e217\ncmova   rbx, [rsp+158h+Block]                                          ; +0x4d, 0x18006e21d\nmov     [rsp+158h+var_100], 1                                          ; +0x53, 0x18006e223\nlea     rcx, [rsp+158h+var_138]; this                                  ; +0x5b, 0x18006e22b\ncall    pugi__xml_node__xml_node                                       ; +0x60, 0x18006e230\nnop                                                                    ; +0x65, 0x18006e235\nlea     rdx, aUtf8; \"UTF-8\"                                            ; +0x66, 0x18006e236\nlea     rcx, [rsp+158h+var_138]; this                                  ; +0x6d, 0x18006e23d\ncall    ?serialize@CCComponent@cocos2d@@UEAA_NPEAX@Z; cocos2d::CCComponent::serialize(void *) ; +0x72, 0x18006e242\ntest    al, al                                                         ; +0x77, 0x18006e247\njnz     short loc_18006E259                                            ; +0x79, 0x18006e249\nlea     rcx, [rsp+158h+var_138]; this                                  ; +0x7b, 0x18006e24b\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x80, 0x18006e250\nxor     ebx, ebx                                                       ; +0x85, 0x18006e255\njmp     short loc_18006E285                                            ; +0x87, 0x18006e257\nlea     rdx, [rsp+158h+var_108]; struct cocos2d::CCSAXDelegator *      ; +0x89, 0x18006e259\nlea     rcx, [rsp+158h+var_138]; this                                  ; +0x8e, 0x18006e25e\ncall    ?setDelegator@CCSAXParser@cocos2d@@QEAAXPEAVCCSAXDelegator@2@@Z; cocos2d::CCSAXParser::setDelegator(cocos2d::CCSAXDelegator *) ; +0x93, 0x18006e263\nmov     rdx, rbx; char *                                               ; +0x98, 0x18006e268\nlea     rcx, [rsp+158h+var_138]; this                                  ; +0x9b, 0x18006e26b\ncall    ?parse@CCSAXParser@cocos2d@@QEAA_NPEBD@Z; cocos2d::CCSAXParser::parse(char const *) ; +0xa0, 0x18006e270\nmov     rbx, [rsp+158h+var_F0]                                         ; +0xa5, 0x18006e275\nlea     rcx, [rsp+158h+var_138]; this                                  ; +0xaa, 0x18006e27a\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0xaf, 0x18006e27f\nnop                                                                    ; +0xb4, 0x18006e284\nlea     rcx, [rsp+158h+var_108]                                        ; +0xb5, 0x18006e285\ncall    sub_18006CF70                                                  ; +0xba, 0x18006e28a\nnop                                                                    ; +0xbf, 0x18006e28f\nmov     rdx, [rsp+158h+var_118]                                        ; +0xc0, 0x18006e290\ncmp     rdx, 0Fh                                                       ; +0xc5, 0x18006e295\njbe     short loc_18006E2D0                                            ; +0xc9, 0x18006e299\ninc     rdx                                                            ; +0xcb, 0x18006e29b\nmov     rcx, [rsp+158h+Block]; Block                                   ; +0xce, 0x18006e29e\nmov     rax, rcx                                                       ; +0xd3, 0x18006e2a3\ncmp     rdx, 1000h                                                     ; +0xd6, 0x18006e2a6\njb      short loc_18006E2CB                                            ; +0xdd, 0x18006e2ad\nadd     rdx, 27h ; '''                                                 ; +0xdf, 0x18006e2af\nmov     rcx, [rcx-8]                                                   ; +0xe3, 0x18006e2b3\nsub     rax, rcx                                                       ; +0xe7, 0x18006e2b7\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xea, 0x18006e2ba\ncmp     rax, 1Fh                                                       ; +0xee, 0x18006e2be\njbe     short loc_18006E2CB                                            ; +0xf2, 0x18006e2c2\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xf4, 0x18006e2c4\ndb 0CCh                                                                ; +0xfa, 0x18006e2ca\ncall    j_j_free_0                                                     ; +0xfb, 0x18006e2cb\nmov     rax, rbx                                                       ; +0x100, 0x18006e2d0\nmov     rcx, [rsp+158h+var_18]                                         ; +0x103, 0x18006e2d3\nxor     rcx, rsp; StackCookie                                          ; +0x10b, 0x18006e2db\ncall    __security_check_cookie                                        ; +0x10e, 0x18006e2de\nadd     rsp, 150h                                                      ; +0x113, 0x18006e2e3\npop     rbx                                                            ; +0x11a, 0x18006e2ea\nretn                                                                   ; +0x11b, 0x18006e2eb", "xrefs": ["<???> @ 0x180100420", "<???> @ 0x180101148", "<???> @ 0x1801438a8", "<???> @ 0x1801b4158"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}