{"type": "func", "start": 6443125040, "end": 6443125207, "name": "cocos2d::unzGetGlobalComment", "pseudocode": "// \n// cocos2d::unzGetGlobalComment from 0x1800a4930 to 0x1800a49d7 (167 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1a70\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:22:15 +0000\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_1800A3520((__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 0x1800a4930 to 0x1800a49d7 (167 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1a70\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:22:15 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800a4930\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800a4935\npush    rdi                                                            ; +0xa, 0x1800a493a\nsub     rsp, 20h                                                       ; +0xb, 0x1800a493b\nmov     ebp, r8d                                                       ; +0xf, 0x1800a493f\nmov     rdi, rdx                                                       ; +0x12, 0x1800a4942\nmov     rbx, rcx                                                       ; +0x15, 0x1800a4945\ntest    rcx, rcx                                                       ; +0x18, 0x1800a4948\njnz     short loc_1800A4962                                            ; +0x1b, 0x1800a494b\nmov     eax, 0FFFFFF9Ah                                                ; +0x1d, 0x1800a494d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x22, 0x1800a4952\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x27, 0x1800a4957\nadd     rsp, 20h                                                       ; +0x2c, 0x1800a495c\npop     rdi                                                            ; +0x30, 0x1800a4960\nretn                                                                   ; +0x31, 0x1800a4961\ncmp     ebp, [rcx+70h]                                                 ; +0x32, 0x1800a4962\nmov     r8, [rcx+98h]                                                  ; +0x35, 0x1800a4965\nmov     rdx, [rcx+60h]                                                 ; +0x3c, 0x1800a496c\nmov     [rsp+28h+arg_0], rsi                                           ; +0x40, 0x1800a4970\nmov     esi, ebp                                                       ; +0x45, 0x1800a4975\ncmova   esi, [rcx+70h]                                                 ; +0x47, 0x1800a4977\nadd     r8, 16h                                                        ; +0x4b, 0x1800a497b\nxor     r9d, r9d                                                       ; +0x4f, 0x1800a497f\ncall    sub_1800A3520                                                  ; +0x52, 0x1800a4982\ntest    eax, eax                                                       ; +0x57, 0x1800a4987\njnz     short loc_1800A49BD                                            ; +0x59, 0x1800a4989\ntest    esi, esi                                                       ; +0x5b, 0x1800a498b\njz      short loc_1800A49A9                                            ; +0x5d, 0x1800a498d\nmov     [rdi], al                                                      ; +0x5f, 0x1800a498f\nmov     r9d, esi                                                       ; +0x61, 0x1800a4991\nmov     rax, [rbx+8]                                                   ; +0x64, 0x1800a4994\nmov     r8, rdi                                                        ; +0x68, 0x1800a4998\nmov     rdx, [rbx+60h]                                                 ; +0x6b, 0x1800a499b\nmov     rcx, [rbx+38h]                                                 ; +0x6f, 0x1800a499f\ncall    rax                                                            ; +0x73, 0x1800a49a3\ncmp     eax, esi                                                       ; +0x75, 0x1800a49a5\njnz     short loc_1800A49BD                                            ; +0x77, 0x1800a49a7\ntest    rdi, rdi                                                       ; +0x79, 0x1800a49a9\njz      short loc_1800A49B9                                            ; +0x7c, 0x1800a49ac\nmov     eax, [rbx+70h]                                                 ; +0x7e, 0x1800a49ae\ncmp     ebp, eax                                                       ; +0x81, 0x1800a49b1\njbe     short loc_1800A49B9                                            ; +0x83, 0x1800a49b3\nmov     byte ptr [rax+rdi], 0                                          ; +0x85, 0x1800a49b5\nmov     eax, esi                                                       ; +0x89, 0x1800a49b9\njmp     short loc_1800A49C2                                            ; +0x8b, 0x1800a49bb\nmov     eax, 0FFFFFFFFh                                                ; +0x8d, 0x1800a49bd\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x92, 0x1800a49c2\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x97, 0x1800a49c7\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x9c, 0x1800a49cc\nadd     rsp, 20h                                                       ; +0xa1, 0x1800a49d1\npop     rdi                                                            ; +0xa5, 0x1800a49d5\nretn                                                                   ; +0xa6, 0x1800a49d6", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c1a70"], "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"}