{"type": "func", "start": 6442591664, "end": 6442591825, "name": "cocos2d::CCGrabber::grab", "pseudocode": "// \n// cocos2d::CCGrabber::grab from 0x1800225b0 to 0x180022651 (161 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCGridBase::initWithSize @ 0x180023be5\n// > <???> @ 0x1801b8fc8\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:21:28 +0000\n// \n\n__int64 __fastcall cocos2d::CCGrabber::grab(__int64 a1, __int64 a2)\n{\n  unsigned int *v2; // rsi\n  unsigned int v5; // eax\n\n  v2 = (unsigned int *)(a1 + 60);\n  glGetIntegerv(0x8CA6u, (GLint *)(a1 + 60));\n  _glewBindFramebuffer(36160, *(unsigned int *)(a1 + 56));\n  v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 96LL))(a2);\n  _glewFramebufferTexture2D(36160, 36064, 3553, v5, 0);\n  _glewCheckFramebufferStatus(36160);\n  return _glewBindFramebuffer(36160, *v2);\n}", "assembly": "; \n; cocos2d::CCGrabber::grab from 0x1800225b0 to 0x180022651 (161 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCGridBase::initWithSize @ 0x180023be5\n; > <???> @ 0x1801b8fc8\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:21:28 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800225b0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800225b5\npush    rdi                                                            ; +0xa, 0x1800225ba\nsub     rsp, 30h                                                       ; +0xb, 0x1800225bb\nlea     rsi, [rcx+3Ch]                                                 ; +0xf, 0x1800225bf\nmov     rdi, rdx                                                       ; +0x13, 0x1800225c3\nmov     rbx, rcx                                                       ; +0x16, 0x1800225c6\nmov     rdx, rsi; params                                               ; +0x19, 0x1800225c9\nmov     ecx, 8CA6h; pname                                              ; +0x1c, 0x1800225cc\ncall    cs:glGetIntegerv                                               ; +0x21, 0x1800225d1\nmov     rax, cs:__glewBindFramebuffer                                  ; +0x27, 0x1800225d7\nmov     ecx, 8D40h                                                     ; +0x2e, 0x1800225de\nmov     edx, [rbx+38h]                                                 ; +0x33, 0x1800225e3\nmov     r8, [rax]                                                      ; +0x36, 0x1800225e6\ncall    r8                                                             ; +0x39, 0x1800225e9\nmov     rax, cs:__glewFramebufferTexture2D                             ; +0x3c, 0x1800225ec\nmov     rcx, rdi                                                       ; +0x43, 0x1800225f3\nmov     rbx, [rax]                                                     ; +0x46, 0x1800225f6\nmov     rax, [rdi]                                                     ; +0x49, 0x1800225f9\ncall    qword ptr [rax+60h]                                            ; +0x4c, 0x1800225fc\nmov     edx, 8CE0h                                                     ; +0x4f, 0x1800225ff\nmov     [rsp+38h+var_18], 0                                            ; +0x54, 0x180022604\nmov     r9d, eax                                                       ; +0x5c, 0x18002260c\nmov     ecx, 8D40h                                                     ; +0x5f, 0x18002260f\nmov     r8d, 0DE1h                                                     ; +0x64, 0x180022614\ncall    rbx                                                            ; +0x6a, 0x18002261a\nmov     rax, cs:__glewCheckFramebufferStatus                           ; +0x6c, 0x18002261c\nmov     ecx, 8D40h                                                     ; +0x73, 0x180022623\nmov     r8, [rax]                                                      ; +0x78, 0x180022628\ncall    r8                                                             ; +0x7b, 0x18002262b\nmov     rax, cs:__glewBindFramebuffer                                  ; +0x7e, 0x18002262e\nmov     ecx, 8D40h                                                     ; +0x85, 0x180022635\nmov     edx, [rsi]                                                     ; +0x8a, 0x18002263a\nmov     r8, [rax]                                                      ; +0x8c, 0x18002263c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8f, 0x18002263f\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x94, 0x180022644\nadd     rsp, 30h                                                       ; +0x99, 0x180022649\npop     rdi                                                            ; +0x9d, 0x18002264d\njmp     r8                                                             ; +0x9e, 0x18002264e", "xrefs": ["cocos2d::CCGridBase::initWithSize @ 0x180023be5", "<???> @ 0x1801b8fc8"], "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"}