{"type": "func", "start": 6442938464, "end": 6442938753, "name": "cocos2d::CCEGLView::initWithFullScreen", "pseudocode": "// \n// cocos2d::CCEGLView::initWithFullScreen from 0x180077060 to 0x180077181 (289 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCEGLView::createWithFullScreen @ 0x1800768c4\n// > <???> @ 0x18013b560\n// > <???> @ 0x18013b570\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b4920\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\nchar __fastcall cocos2d::CCEGLView::initWithFullScreen(cocos2d::CCEGLView *this, __int64 a2, char a3, char a4)\n{\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rcx\n  __int64 v10; // rdi\n  cocos2d::CCRect v12; // [rsp+30h] [rbp-18h] BYREF\n\n  v7 = sub_1800D41B0();\n  *((_QWORD *)this + 26) = v7;\n  if ( v7 )\n  {\n    v8 = sub_1800D41F0(v7);\n    v9 = *((_QWORD *)this + 26);\n    v10 = v8;\n    *((_QWORD *)this + 26) = v9;\n    if ( v9 )\n    {\n      *((_BYTE *)this + 232) = 1;\n      *((_BYTE *)this + 233) = a3;\n      *((_BYTE *)this + 234) = a4;\n      sub_1800D4D00(135183, *(unsigned int *)(v8 + 20));\n      sub_1800D4D00(135169, *(unsigned int *)(v10 + 8));\n      sub_1800D4D00(135171, *(unsigned int *)(v10 + 16));\n      sub_1800D4D00(135170, *(unsigned int *)(v10 + 12));\n      if ( *((_BYTE *)this + 233) )\n      {\n        sub_1800D4D00(131077, 0);\n        *((_QWORD *)this + 26) = 0;\n      }\n      cocos2d::CCRect::CCRect(&v12, 0.0, 0.0, (float)*(int *)v10, (float)*(int *)(v10 + 4));\n      LOBYTE(v7) = cocos2d::CCEGLView::initWithRect(this);\n    }\n    else\n    {\n      LOBYTE(v7) = 0;\n    }\n  }\n  return v7;\n}", "assembly": "; \n; cocos2d::CCEGLView::initWithFullScreen from 0x180077060 to 0x180077181 (289 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCEGLView::createWithFullScreen @ 0x1800768c4\n; > <???> @ 0x18013b560\n; > <???> @ 0x18013b570\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b4920\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, 0x180077060\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x180077065\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x18007706a\npush    r14                                                            ; +0xf, 0x18007706f\nsub     rsp, 40h                                                       ; +0x11, 0x180077071\nmovzx   esi, r9b                                                       ; +0x15, 0x180077075\nmovzx   ebp, r8b                                                       ; +0x19, 0x180077079\nmov     r14, rdx                                                       ; +0x1d, 0x18007707d\nmov     rbx, rcx                                                       ; +0x20, 0x180077080\ncall    sub_1800D41B0                                                  ; +0x23, 0x180077083\nmov     [rbx+0D0h], rax                                                ; +0x28, 0x180077088\ntest    rax, rax                                                       ; +0x2f, 0x18007708f\njz      loc_18007716B                                                  ; +0x32, 0x180077092\nmov     rcx, rax                                                       ; +0x38, 0x180077098\nmov     [rsp+48h+arg_0], rdi                                           ; +0x3b, 0x18007709b\ncall    sub_1800D41F0                                                  ; +0x40, 0x1800770a0\nmov     rcx, [rbx+0D0h]                                                ; +0x45, 0x1800770a5\nmov     rdi, rax                                                       ; +0x4c, 0x1800770ac\nmov     [rbx+0D0h], rcx                                                ; +0x4f, 0x1800770af\ntest    rcx, rcx                                                       ; +0x56, 0x1800770b6\njnz     short loc_1800770C2                                            ; +0x59, 0x1800770b9\nxor     al, al                                                         ; +0x5b, 0x1800770bb\njmp     loc_180077166                                                  ; +0x5d, 0x1800770bd\nmov     byte ptr [rbx+0E8h], 1                                         ; +0x62, 0x1800770c2\nmov     ecx, 2100Fh                                                    ; +0x69, 0x1800770c9\nmov     [rbx+0E9h], bpl                                                ; +0x6e, 0x1800770ce\nmov     [rbx+0EAh], sil                                                ; +0x75, 0x1800770d5\nmov     edx, [rax+14h]                                                 ; +0x7c, 0x1800770dc\ncall    sub_1800D4D00                                                  ; +0x7f, 0x1800770df\nmov     edx, [rdi+8]                                                   ; +0x84, 0x1800770e4\nmov     ecx, 21001h                                                    ; +0x87, 0x1800770e7\ncall    sub_1800D4D00                                                  ; +0x8c, 0x1800770ec\nmov     edx, [rdi+10h]                                                 ; +0x91, 0x1800770f1\nmov     ecx, 21003h                                                    ; +0x94, 0x1800770f4\ncall    sub_1800D4D00                                                  ; +0x99, 0x1800770f9\nmov     edx, [rdi+0Ch]                                                 ; +0x9e, 0x1800770fe\nmov     ecx, 21002h                                                    ; +0xa1, 0x180077101\ncall    sub_1800D4D00                                                  ; +0xa6, 0x180077106\ncmp     byte ptr [rbx+0E9h], 0                                         ; +0xab, 0x18007710b\njz      short loc_18007712B                                            ; +0xb2, 0x180077112\nxor     edx, edx                                                       ; +0xb4, 0x180077114\nmov     ecx, 20005h                                                    ; +0xb6, 0x180077116\ncall    sub_1800D4D00                                                  ; +0xbb, 0x18007711b\nmov     qword ptr [rbx+0D0h], 0                                        ; +0xc0, 0x180077120\nmovd    xmm0, dword ptr [rdi+4]                                        ; +0xcb, 0x18007712b\nlea     rcx, [rsp+48h+var_18]; this                                    ; +0xd0, 0x180077130\nmovd    xmm3, dword ptr [rdi]                                          ; +0xd5, 0x180077135\nxorps   xmm2, xmm2; float                                              ; +0xd9, 0x180077139\ncvtdq2ps xmm0, xmm0                                                    ; +0xdc, 0x18007713c\ncvtdq2ps xmm3, xmm3; float                                             ; +0xdf, 0x18007713f\nxorps   xmm1, xmm1; float                                              ; +0xe2, 0x180077142\nmovss   [rsp+48h+var_28], xmm0; float                                  ; +0xe5, 0x180077145\ncall    ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xeb, 0x18007714b\nmovss   xmm3, cs:flt_1800E61A8                                         ; +0xf0, 0x180077150\nmov     r8, rax                                                        ; +0xf8, 0x180077158\nmov     rdx, r14                                                       ; +0xfb, 0x18007715b\nmov     rcx, rbx; this                                                 ; +0xfe, 0x18007715e\ncall    ?initWithRect@CCEGLView@cocos2d@@IEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VCCRect@2@M@Z; cocos2d::CCEGLView::initWithRect(std::string const &,cocos2d::CCRect,float) ; +0x101, 0x180077161\nmov     rdi, [rsp+48h+arg_0]                                           ; +0x106, 0x180077166\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x10b, 0x18007716b\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x110, 0x180077170\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x115, 0x180077175\nadd     rsp, 40h                                                       ; +0x11a, 0x18007717a\npop     r14                                                            ; +0x11e, 0x18007717e\nretn                                                                   ; +0x120, 0x180077180", "xrefs": ["cocos2d::CCEGLView::createWithFullScreen @ 0x1800768c4", "<???> @ 0x18013b560", "<???> @ 0x18013b570", "<???> @ 0x1801438a8", "<???> @ 0x1801b4920"], "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"}