{"type": "func", "start": 6442911280, "end": 6442911530, "name": "cocos2d::CCFileUtils::init", "pseudocode": "// \n// cocos2d::CCFileUtils::init from 0x180070630 to 0x18007072a (250 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCFileUtilsWin32::init @ 0x18007abb9\n// > <???> @ 0x1801003f0\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4248\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=1\nchar __fastcall cocos2d::CCFileUtils::init(cocos2d::CCFileUtils *this)\n{\n  unsigned __int64 v2; // rdx\n  _OWORD *v3; // rax\n  void *v4; // rcx\n  void *Block[2]; // [rsp+20h] [rbp-38h] BYREF\n  __int128 v7; // [rsp+30h] [rbp-28h]\n\n  if ( *((_QWORD *)this + 6) == *((_QWORD *)this + 7) )\n  {\n    sub_18006C540((__int64 *)this + 5, *((_QWORD *)this + 6), (__int64)(this + 8));\n  }\n  else\n  {\n    sub_180016C80(*((_QWORD *)this + 6), (__int64)(this + 8));\n    *((_QWORD *)this + 6) += 32LL;\n  }\n  *(_OWORD *)Block = 0;\n  *(_QWORD *)&v7 = 0;\n  v2 = 15;\n  *((_QWORD *)&v7 + 1) = 15;\n  LOBYTE(Block[0]) = 0;\n  v3 = *((_OWORD **)this + 3);\n  if ( v3 == *((_OWORD **)this + 4) )\n  {\n    sub_18000D000((__int64 *)this + 2, *((_QWORD *)this + 3), (__int64)Block);\n    v2 = *((_QWORD *)&v7 + 1);\n  }\n  else\n  {\n    *v3 = *(_OWORD *)Block;\n    v3[1] = v7;\n    LOBYTE(Block[0]) = 0;\n    *((_QWORD *)this + 3) += 32LL;\n  }\n  if ( v2 > 0xF )\n  {\n    v4 = Block[0];\n    if ( v2 + 1 >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free_0(v4);\n  }\n  return 1;\n}", "assembly": "; \n; cocos2d::CCFileUtils::init from 0x180070630 to 0x18007072a (250 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCFileUtilsWin32::init @ 0x18007abb9\n; > <???> @ 0x1801003f0\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4248\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x180070630\npush    rdi                                                            ; +0x5, 0x180070635\nsub     rsp, 50h                                                       ; +0x6, 0x180070636\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x18007063a\nxor     rax, rsp                                                       ; +0x11, 0x180070641\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x180070644\nmov     rdi, rcx                                                       ; +0x19, 0x180070649\nlea     r8, [rcx+40h]                                                  ; +0x1c, 0x18007064c\nmov     rax, [rcx+30h]                                                 ; +0x20, 0x180070650\ncmp     rax, [rcx+38h]                                                 ; +0x24, 0x180070654\njz      short loc_18007066C                                            ; +0x28, 0x180070658\nmov     rdx, r8                                                        ; +0x2a, 0x18007065a\nmov     rcx, rax                                                       ; +0x2d, 0x18007065d\ncall    sub_180016C80                                                  ; +0x30, 0x180070660\nadd     qword ptr [rdi+30h], 20h ; ' '                                 ; +0x35, 0x180070665\njmp     short loc_180070678                                            ; +0x3a, 0x18007066a\nmov     rdx, rax                                                       ; +0x3c, 0x18007066c\nadd     rcx, 28h ; '('                                                 ; +0x3f, 0x18007066f\ncall    sub_18006C540                                                  ; +0x43, 0x180070673\nxorps   xmm0, xmm0                                                     ; +0x48, 0x180070678\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x4b, 0x18007067b\nmov     qword ptr [rsp+58h+var_28], 0                                  ; +0x50, 0x180070680\nmov     edx, 0Fh                                                       ; +0x59, 0x180070689\nmov     qword ptr [rsp+58h+var_28+8], rdx                              ; +0x5e, 0x18007068e\nmov     byte ptr [rsp+58h+Block], 0                                    ; +0x63, 0x180070693\nlea     rcx, [rdi+10h]                                                 ; +0x68, 0x180070698\nmov     rax, [rcx+8]                                                   ; +0x6c, 0x18007069c\ncmp     rax, [rcx+10h]                                                 ; +0x70, 0x1800706a0\njz      short loc_1800706C3                                            ; +0x74, 0x1800706a4\nmovups  xmm0, xmmword ptr [rsp+58h+Block]                              ; +0x76, 0x1800706a6\nmovups  xmmword ptr [rax], xmm0                                        ; +0x7b, 0x1800706ab\nmovups  xmm1, [rsp+58h+var_28]                                         ; +0x7e, 0x1800706ae\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x83, 0x1800706b3\nmov     byte ptr [rsp+58h+Block], 0                                    ; +0x87, 0x1800706b7\nadd     qword ptr [rcx+8], 20h ; ' '                                   ; +0x8c, 0x1800706bc\njmp     short loc_1800706D5                                            ; +0x91, 0x1800706c1\nlea     r8, [rsp+58h+Block]                                            ; +0x93, 0x1800706c3\nmov     rdx, rax                                                       ; +0x98, 0x1800706c8\ncall    sub_18000D000                                                  ; +0x9b, 0x1800706cb\nmov     rdx, qword ptr [rsp+58h+var_28+8]                              ; +0xa0, 0x1800706d0\ncmp     rdx, 0Fh                                                       ; +0xa5, 0x1800706d5\njbe     short loc_180070710                                            ; +0xa9, 0x1800706d9\ninc     rdx                                                            ; +0xab, 0x1800706db\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0xae, 0x1800706de\nmov     rax, rcx                                                       ; +0xb3, 0x1800706e3\ncmp     rdx, 1000h                                                     ; +0xb6, 0x1800706e6\njb      short loc_18007070B                                            ; +0xbd, 0x1800706ed\nadd     rdx, 27h ; '''                                                 ; +0xbf, 0x1800706ef\nmov     rcx, [rcx-8]                                                   ; +0xc3, 0x1800706f3\nsub     rax, rcx                                                       ; +0xc7, 0x1800706f7\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xca, 0x1800706fa\ncmp     rax, 1Fh                                                       ; +0xce, 0x1800706fe\njbe     short loc_18007070B                                            ; +0xd2, 0x180070702\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xd4, 0x180070704\ndb 0CCh                                                                ; +0xda, 0x18007070a\ncall    j_j_free_0                                                     ; +0xdb, 0x18007070b\nmov     al, 1                                                          ; +0xe0, 0x180070710\nmov     rcx, [rsp+58h+var_18]                                          ; +0xe2, 0x180070712\nxor     rcx, rsp; StackCookie                                          ; +0xe7, 0x180070717\ncall    __security_check_cookie                                        ; +0xea, 0x18007071a\nmov     rbx, [rsp+58h+arg_8]                                           ; +0xef, 0x18007071f\nadd     rsp, 50h                                                       ; +0xf4, 0x180070724\npop     rdi                                                            ; +0xf8, 0x180070728\nretn                                                                   ; +0xf9, 0x180070729", "xrefs": ["cocos2d::CCFileUtilsWin32::init @ 0x18007abb9", "<???> @ 0x1801003f0", "<???> @ 0x1801438a8", "<???> @ 0x1801b4248"], "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"}