{"type": "func", "start": 6443109216, "end": 6443109378, "name": "cocos2d::unzGetGlobalComment", "pseudocode": "// \n// cocos2d::unzGetGlobalComment from 0x1800a0b60 to 0x1800a0c02 (162 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b77b8\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::unzGetGlobalComment(cocos2d *this, _BYTE *a2, char *a3)\n{\n  unsigned int v3; // ebp\n  unsigned int v7; // esi\n  __int64 v8; // rax\n\n  v3 = (unsigned int)a3;\n  if ( !this )\n    return 4294967194LL;\n  v7 = (unsigned int)a3;\n  if ( (unsigned int)a3 > *((_DWORD *)this + 28) )\n    v7 = *((_DWORD *)this + 28);\n  if ( (unsigned int)sub_18009F7F0((__int64)this, *((_QWORD *)this + 12), *((_QWORD *)this + 19) + 22LL) )\n    return 0xFFFFFFFFLL;\n  if ( v7 )\n  {\n    *a2 = 0;\n    if ( (*((unsigned int (__fastcall **)(_QWORD, _QWORD, _BYTE *, _QWORD))this + 1))(\n           *((_QWORD *)this + 7),\n           *((_QWORD *)this + 12),\n           a2,\n           v7) != v7 )\n      return 0xFFFFFFFFLL;\n  }\n  if ( a2 )\n  {\n    v8 = *((unsigned int *)this + 28);\n    if ( v3 > (unsigned int)v8 )\n      a2[v8] = 0;\n  }\n  return v7;\n}", "assembly": "; \n; cocos2d::unzGetGlobalComment from 0x1800a0b60 to 0x1800a0c02 (162 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b77b8\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, 0x1800a0b60\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800a0b65\npush    rdi                                                            ; +0xa, 0x1800a0b6a\nsub     rsp, 20h                                                       ; +0xb, 0x1800a0b6b\nmov     ebp, r8d                                                       ; +0xf, 0x1800a0b6f\nmov     rdi, rdx                                                       ; +0x12, 0x1800a0b72\nmov     rbx, rcx                                                       ; +0x15, 0x1800a0b75\ntest    rcx, rcx                                                       ; +0x18, 0x1800a0b78\njnz     short loc_1800A0B90                                            ; +0x1b, 0x1800a0b7b\nlea     eax, [rcx-66h]                                                 ; +0x1d, 0x1800a0b7d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x20, 0x1800a0b80\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x25, 0x1800a0b85\nadd     rsp, 20h                                                       ; +0x2a, 0x1800a0b8a\npop     rdi                                                            ; +0x2e, 0x1800a0b8e\nretn                                                                   ; +0x2f, 0x1800a0b8f\ncmp     ebp, [rcx+70h]                                                 ; +0x30, 0x1800a0b90\nmov     r8, [rcx+98h]                                                  ; +0x33, 0x1800a0b93\nmov     rdx, [rcx+60h]                                                 ; +0x3a, 0x1800a0b9a\nmov     [rsp+28h+arg_0], rsi                                           ; +0x3e, 0x1800a0b9e\nmov     esi, ebp                                                       ; +0x43, 0x1800a0ba3\ncmova   esi, [rcx+70h]                                                 ; +0x45, 0x1800a0ba5\nadd     r8, 16h                                                        ; +0x49, 0x1800a0ba9\nxor     r9d, r9d                                                       ; +0x4d, 0x1800a0bad\ncall    sub_18009F7F0                                                  ; +0x50, 0x1800a0bb0\ntest    eax, eax                                                       ; +0x55, 0x1800a0bb5\njnz     short loc_1800A0BE8                                            ; +0x57, 0x1800a0bb7\ntest    esi, esi                                                       ; +0x59, 0x1800a0bb9\njz      short loc_1800A0BD4                                            ; +0x5b, 0x1800a0bbb\nmov     [rdi], al                                                      ; +0x5d, 0x1800a0bbd\nmov     r9d, esi                                                       ; +0x5f, 0x1800a0bbf\nmov     rdx, [rbx+60h]                                                 ; +0x62, 0x1800a0bc2\nmov     r8, rdi                                                        ; +0x66, 0x1800a0bc6\nmov     rcx, [rbx+38h]                                                 ; +0x69, 0x1800a0bc9\ncall    qword ptr [rbx+8]                                              ; +0x6d, 0x1800a0bcd\ncmp     eax, esi                                                       ; +0x70, 0x1800a0bd0\njnz     short loc_1800A0BE8                                            ; +0x72, 0x1800a0bd2\ntest    rdi, rdi                                                       ; +0x74, 0x1800a0bd4\njz      short loc_1800A0BE4                                            ; +0x77, 0x1800a0bd7\nmov     eax, [rbx+70h]                                                 ; +0x79, 0x1800a0bd9\ncmp     ebp, eax                                                       ; +0x7c, 0x1800a0bdc\njbe     short loc_1800A0BE4                                            ; +0x7e, 0x1800a0bde\nmov     byte ptr [rax+rdi], 0                                          ; +0x80, 0x1800a0be0\nmov     eax, esi                                                       ; +0x84, 0x1800a0be4\njmp     short loc_1800A0BED                                            ; +0x86, 0x1800a0be6\nmov     eax, 0FFFFFFFFh                                                ; +0x88, 0x1800a0be8\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x8d, 0x1800a0bed\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x92, 0x1800a0bf2\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x97, 0x1800a0bf7\nadd     rsp, 20h                                                       ; +0x9c, 0x1800a0bfc\npop     rdi                                                            ; +0xa0, 0x1800a0c00\nretn                                                                   ; +0xa1, 0x1800a0c01", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b77b8"], "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"}