{"type": "func", "start": 6443108544, "end": 6443108725, "name": "cocos2d::unzCloseCurrentFile", "pseudocode": "// \n// cocos2d::unzCloseCurrentFile from 0x1800a08c0 to 0x1800a0975 (181 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCFileUtils::getFileDataFromZip @ 0x180070137\n// > cocos2d::unzClose @ 0x1800a0891\n// > cocos2d::unzOpenCurrentFile3 @ 0x1800a1516\n// > cocos2d::unzOpenCurrentFilePassword @ 0x1800a17b2\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b7794\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__int64 __fastcall cocos2d::unzCloseCurrentFile(cocos2d *this, void *a2)\n{\n  unsigned int v2; // edi\n  __int64 v4; // rbx\n  bool v5; // zf\n\n  v2 = 0;\n  if ( !this )\n    return 4294967194LL;\n  v4 = *((_QWORD *)this + 34);\n  if ( !v4 )\n    return 4294967194LL;\n  if ( !*(_QWORD *)(v4 + 160) && !*(_DWORD *)(v4 + 280) && *(_DWORD *)(v4 + 144) != *(_DWORD *)(v4 + 148) )\n    v2 = -105;\n  if ( *(_QWORD *)v4 )\n    free(*(void **)v4);\n  v5 = *(_DWORD *)(v4 + 104) == 8;\n  *(_QWORD *)v4 = 0;\n  if ( v5 )\n    inflateEnd(v4 + 8, a2);\n  *(_DWORD *)(v4 + 104) = 0;\n  free((void *)v4);\n  *((_QWORD *)this + 34) = 0;\n  return v2;\n}", "assembly": "; \n; cocos2d::unzCloseCurrentFile from 0x1800a08c0 to 0x1800a0975 (181 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCFileUtils::getFileDataFromZip @ 0x180070137\n; > cocos2d::unzClose @ 0x1800a0891\n; > cocos2d::unzOpenCurrentFile3 @ 0x1800a1516\n; > cocos2d::unzOpenCurrentFilePassword @ 0x1800a17b2\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b7794\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_0], rbx                                               ; +0x0, 0x1800a08c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800a08c5\npush    rdi                                                            ; +0xa, 0x1800a08ca\nsub     rsp, 20h                                                       ; +0xb, 0x1800a08cb\nxor     edi, edi                                                       ; +0xf, 0x1800a08cf\nmov     rsi, rcx                                                       ; +0x11, 0x1800a08d1\ntest    rcx, rcx                                                       ; +0x14, 0x1800a08d4\njz      loc_1800A0960                                                  ; +0x17, 0x1800a08d7\nmov     rbx, [rcx+110h]                                                ; +0x1d, 0x1800a08dd\ntest    rbx, rbx                                                       ; +0x24, 0x1800a08e4\njz      short loc_1800A0960                                            ; +0x27, 0x1800a08e7\ncmp     [rbx+0A0h], rdi                                                ; +0x29, 0x1800a08e9\njnz     short loc_1800A090E                                            ; +0x30, 0x1800a08f0\ncmp     [rbx+118h], edi                                                ; +0x32, 0x1800a08f2\njnz     short loc_1800A090E                                            ; +0x38, 0x1800a08f8\nmov     eax, [rbx+94h]                                                 ; +0x3a, 0x1800a08fa\nmov     ecx, 0FFFFFF97h                                                ; +0x40, 0x1800a0900\ncmp     [rbx+90h], eax                                                 ; +0x45, 0x1800a0905\ncmovnz  edi, ecx                                                       ; +0x4b, 0x1800a090b\nmov     rcx, [rbx]; Block                                              ; +0x4e, 0x1800a090e\ntest    rcx, rcx                                                       ; +0x51, 0x1800a0911\njz      short loc_1800A091C                                            ; +0x54, 0x1800a0914\ncall    cs:__imp_free                                                  ; +0x56, 0x1800a0916\ncmp     dword ptr [rbx+68h], 8                                         ; +0x5c, 0x1800a091c\nmov     qword ptr [rbx], 0                                             ; +0x60, 0x1800a0920\njnz     short loc_1800A0933                                            ; +0x67, 0x1800a0927\nlea     rcx, [rbx+8]                                                   ; +0x69, 0x1800a0929\ncall    cs:inflateEnd                                                  ; +0x6d, 0x1800a092d\nmov     rcx, rbx; Block                                                ; +0x73, 0x1800a0933\nmov     dword ptr [rbx+68h], 0                                         ; +0x76, 0x1800a0936\ncall    cs:__imp_free                                                  ; +0x7d, 0x1800a093d\nmov     eax, edi                                                       ; +0x83, 0x1800a0943\nmov     qword ptr [rsi+110h], 0                                        ; +0x85, 0x1800a0945\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x90, 0x1800a0950\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x95, 0x1800a0955\nadd     rsp, 20h                                                       ; +0x9a, 0x1800a095a\npop     rdi                                                            ; +0x9e, 0x1800a095e\nretn                                                                   ; +0x9f, 0x1800a095f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa0, 0x1800a0960\nmov     eax, 0FFFFFF9Ah                                                ; +0xa5, 0x1800a0965\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xaa, 0x1800a096a\nadd     rsp, 20h                                                       ; +0xaf, 0x1800a096f\npop     rdi                                                            ; +0xb3, 0x1800a0973\nretn                                                                   ; +0xb4, 0x1800a0974", "xrefs": ["cocos2d::CCFileUtils::getFileDataFromZip @ 0x180070137", "cocos2d::unzClose @ 0x1800a0891", "cocos2d::unzOpenCurrentFile3 @ 0x1800a1516", "cocos2d::unzOpenCurrentFilePassword @ 0x1800a17b2", "<???> @ 0x1801438a8", "<???> @ 0x1801b7794"], "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"}