; ; cocos2d::CCEGLView::toggleFullScreen from 0x18007bdf0 to 0x18007c03a (586 bytes) ; ; 5 xrefs: ; > @ 0x1801448b0 ; > @ 0x1801448c4 ; > @ 0x1801448d4 ; > @ 0x18014cf68 ; > @ 0x1801bee0c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:22:00 +0000 ; mov [rsp+arg_18], rbx ; +0x0, 0x18007bdf0 push rsi ; +0x5, 0x18007bdf5 sub rsp, 60h ; +0x6, 0x18007bdf6 movzx ebx, dl ; +0xa, 0x18007bdfa mov rsi, rcx ; +0xd, 0x18007bdfd cmp [rcx+0E8h], dl ; +0x10, 0x18007be00 jnz short loc_18007BE1E ; +0x16, 0x18007be06 cmp [rcx+0E9h], r8b ; +0x18, 0x18007be08 jnz short loc_18007BE1E ; +0x1f, 0x18007be0f cmp [rcx+0EAh], r9b ; +0x21, 0x18007be11 jz loc_18007C02C ; +0x28, 0x18007be18 mov [rsp+68h+arg_0], rdi ; +0x2e, 0x18007be1e mov [rsp+68h+arg_8], r14 ; +0x33, 0x18007be23 mov [rsp+68h+arg_10], r15 ; +0x38, 0x18007be28 mov [rcx+0E8h], bl ; +0x40, 0x18007be30 mov [rcx+0E9h], r8b ; +0x46, 0x18007be36 mov [rcx+0EAh], r9b ; +0x4d, 0x18007be3d call ?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x54, 0x18007be44 mov [rax+0D5h], bl ; +0x59, 0x18007be49 mov rcx, [rsi+0C8h] ; +0x5f, 0x18007be4f call sub_1800DC680 ; +0x66, 0x18007be56 lea rcx, [rsp+68h+var_28]; this ; +0x6b, 0x18007be5b call ??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void) ; +0x70, 0x18007be60 cmp byte ptr [rsi+0E8h], 0 ; +0x75, 0x18007be65 jz loc_18007BF0F ; +0x7c, 0x18007be6c call sub_1800DBEE0 ; +0x82, 0x18007be72 mov rcx, rax ; +0x87, 0x18007be77 mov [rsi+0D0h], rax ; +0x8a, 0x18007be7a call sub_1800DBF20 ; +0x91, 0x18007be81 xorps xmm2, xmm2; float ; +0x96, 0x18007be86 lea rcx, [rsp+68h+var_18]; this ; +0x99, 0x18007be89 xorps xmm1, xmm1; float ; +0x9e, 0x18007be8e movd xmm0, dword ptr [rax+4] ; +0xa1, 0x18007be91 movd xmm3, dword ptr [rax] ; +0xa6, 0x18007be96 cvtdq2ps xmm0, xmm0 ; +0xaa, 0x18007be9a cvtdq2ps xmm3, xmm3; float ; +0xad, 0x18007be9d movss [rsp+68h+var_48], xmm0; float ; +0xb0, 0x18007bea0 call ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xb6, 0x18007bea6 mov rdx, rax ; +0xbb, 0x18007beab lea rcx, [rsp+68h+var_28] ; +0xbe, 0x18007beae call ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0xc3, 0x18007beb3 cmp byte ptr [rsi+0E9h], 0 ; +0xc8, 0x18007beb8 jz loc_18007BF5C ; +0xcf, 0x18007bebf xor edx, edx ; +0xd5, 0x18007bec5 mov ecx, 20005h ; +0xd7, 0x18007bec7 call sub_1800DCA30 ; +0xdc, 0x18007becc cmp byte ptr [rsi+0EAh], 0 ; +0xe1, 0x18007bed1 jz short loc_18007BF02 ; +0xe8, 0x18007bed8 movss xmm0, [rsp+68h+var_20] ; +0xea, 0x18007beda movss xmm1, [rsp+68h+var_1C] ; +0xf0, 0x18007bee0 addss xmm0, cs:flt_1800EC208 ; +0xf6, 0x18007bee6 addss xmm1, cs:flt_1800EC208 ; +0xfe, 0x18007beee movss [rsp+68h+var_20], xmm0 ; +0x106, 0x18007bef6 movss [rsp+68h+var_1C], xmm1 ; +0x10c, 0x18007befc mov qword ptr [rsi+0D0h], 0 ; +0x112, 0x18007bf02 jmp short loc_18007BF5C ; +0x11d, 0x18007bf0d mov edx, 1 ; +0x11f, 0x18007bf0f mov ecx, 20005h ; +0x124, 0x18007bf14 call sub_1800DCA30 ; +0x129, 0x18007bf19 movss xmm0, dword ptr [rsi+0DCh] ; +0x12e, 0x18007bf1e lea rcx, [rsp+68h+var_18]; this ; +0x136, 0x18007bf26 movss xmm3, dword ptr [rsi+0D8h]; float ; +0x13b, 0x18007bf2b xorps xmm2, xmm2; float ; +0x143, 0x18007bf33 xorps xmm1, xmm1; float ; +0x146, 0x18007bf36 movss [rsp+68h+var_48], xmm0; float ; +0x149, 0x18007bf39 mov qword ptr [rsi+0D0h], 0 ; +0x14f, 0x18007bf3f call ??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x15a, 0x18007bf4a mov rdx, rax ; +0x15f, 0x18007bf4f lea rcx, [rsp+68h+var_28] ; +0x162, 0x18007bf52 call ??4CCRect@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCRect::operator=(cocos2d::CCRect const &) ; +0x167, 0x18007bf57 lea rdx, [rsp+68h+var_28]; struct cocos2d::CCRect * ; +0x16c, 0x18007bf5c mov dword ptr [rsi+0C0h], 3F800000h ; +0x171, 0x18007bf61 lea rcx, [rsp+68h+var_18]; this ; +0x17b, 0x18007bf6b lea r14, [rsi+0C8h] ; +0x180, 0x18007bf70 call ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x187, 0x18007bf77 mov rdx, rax ; +0x18c, 0x18007bf7c mov rcx, rsi ; +0x18f, 0x18007bf7f call ?setupWindow@CCEGLView@cocos2d@@IEAAXVCCRect@2@@Z; cocos2d::CCEGLView::setupWindow(cocos2d::CCRect) ; +0x192, 0x18007bf82 mov rcx, [rsi+0C8h] ; +0x197, 0x18007bf87 cvttss2si ebx, [rsp+68h+var_1C] ; +0x19e, 0x18007bf8e cvttss2si edi, [rsp+68h+var_20] ; +0x1a4, 0x18007bf94 call sub_1800DC9E0 ; +0x1aa, 0x18007bf9a mov rcx, [rsi+0C8h] ; +0x1af, 0x18007bf9f mov r8d, ebx ; +0x1b6, 0x18007bfa6 mov edx, edi ; +0x1b9, 0x18007bfa9 call sub_1800DC880 ; +0x1bb, 0x18007bfab mov r8d, ebx; int ; +0x1c0, 0x18007bfb0 mov edx, edi; int ; +0x1c3, 0x18007bfb3 mov rcx, rsi; this ; +0x1c5, 0x18007bfb5 call ?updateWindow@CCEGLView@cocos2d@@QEAAXHH@Z; cocos2d::CCEGLView::updateWindow(int,int) ; +0x1c8, 0x18007bfb8 mov rcx, [rsi+0C8h] ; +0x1cd, 0x18007bfbd call sub_1800DC200 ; +0x1d4, 0x18007bfc4 cmp byte ptr [rsi+0E8h], 0 ; +0x1d9, 0x18007bfc9 mov r15, [rsp+68h+arg_10] ; +0x1e0, 0x18007bfd0 mov rdi, [rsp+68h+arg_0] ; +0x1e8, 0x18007bfd8 jz short loc_18007C027 ; +0x1ed, 0x18007bfdd cmp byte ptr [rsi+0E9h], 0 ; +0x1ef, 0x18007bfdf jz short loc_18007C027 ; +0x1f6, 0x18007bfe6 cmp byte ptr [rsi+0EAh], 0 ; +0x1f8, 0x18007bfe8 jz short loc_18007C027 ; +0x1ff, 0x18007bfef mov rcx, [r14] ; +0x201, 0x18007bff1 call sub_1800D9CB0 ; +0x204, 0x18007bff4 mov [rsp+68h+uFlags], 53h ; 'S'; uFlags ; +0x209, 0x18007bff9 xor r9d, r9d; Y ; +0x211, 0x18007c001 mov [rsp+68h+cy], 0; cy ; +0x214, 0x18007c004 xor r8d, r8d; X ; +0x21c, 0x18007c00c mov rdx, 0FFFFFFFFFFFFFFFFh; hWndInsertAfter ; +0x21f, 0x18007c00f mov [rsp+68h+var_48], 0; cx ; +0x226, 0x18007c016 mov rcx, rax; hWnd ; +0x22e, 0x18007c01e call cs:SetWindowPos ; +0x231, 0x18007c021 mov r14, [rsp+68h+arg_8] ; +0x237, 0x18007c027 mov rbx, [rsp+68h+arg_18] ; +0x23c, 0x18007c02c add rsp, 60h ; +0x244, 0x18007c034 pop rsi ; +0x248, 0x18007c038 retn ; +0x249, 0x18007c039