; ; cocos2d::CCEGLView::initWithRect from 0x180079fb0 to 0x18007a1e8 (568 bytes) ; ; 7 xrefs: ; > cocos2d::CCEGLView::create @ 0x1800794fc ; > cocos2d::CCEGLView::createWithFullScreen @ 0x1800796c7 ; > cocos2d::CCEGLView::createWithRect @ 0x18007975e ; > cocos2d::CCEGLView::initWithFullScreen @ 0x180079e98 ; > cocos2d::CCEGLView::initWithFullscreen @ 0x180079f95 ; > @ 0x18014cf68 ; > @ 0x1801bec68 ; ; 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:21:59 +0000 ; mov [rsp+arg_18], rbx ; +0x0, 0x180079fb0 push rbp ; +0x5, 0x180079fb5 push rsi ; +0x6, 0x180079fb6 push rdi ; +0x7, 0x180079fb7 sub rsp, 160h ; +0x8, 0x180079fb8 movaps [rsp+178h+var_28], xmm6 ; +0xf, 0x180079fbf mov rax, cs:__security_cookie ; +0x17, 0x180079fc7 xor rax, rsp ; +0x1e, 0x180079fce mov [rsp+178h+var_38], rax ; +0x21, 0x180079fd1 cmp byte ptr [rcx+0E8h], 0 ; +0x29, 0x180079fd9 movaps xmm6, xmm3 ; +0x30, 0x180079fe0 mov rdi, r8 ; +0x33, 0x180079fe3 mov rbx, rcx ; +0x36, 0x180079fe6 jz short loc_18007A027 ; +0x39, 0x180079fe9 cmp byte ptr [rcx+0E9h], 0 ; +0x3b, 0x180079feb jz short loc_18007A027 ; +0x42, 0x180079ff2 cmp byte ptr [rcx+0EAh], 0 ; +0x44, 0x180079ff4 jz short loc_18007A027 ; +0x4b, 0x180079ffb movss xmm0, dword ptr [r8+8] ; +0x4d, 0x180079ffd lea rsi, [r8+0Ch] ; +0x53, 0x18007a003 addss xmm0, cs:flt_1800EC208 ; +0x57, 0x18007a007 movss dword ptr [r8+8], xmm0 ; +0x5f, 0x18007a00f movss xmm0, dword ptr [rsi] ; +0x65, 0x18007a015 addss xmm0, cs:flt_1800EC208 ; +0x69, 0x18007a019 movss dword ptr [rsi], xmm0 ; +0x71, 0x18007a021 jmp short loc_18007A02B ; +0x75, 0x18007a025 lea rsi, [r8+0Ch] ; +0x77, 0x18007a027 cmp qword ptr [rdx+18h], 0Fh ; +0x7b, 0x18007a02b jbe short loc_18007A035 ; +0x80, 0x18007a030 mov rdx, [rdx] ; +0x82, 0x18007a032 mov rax, [rcx] ; +0x85, 0x18007a035 call qword ptr [rax+80h] ; +0x88, 0x18007a038 mov edx, 1 ; +0x8e, 0x18007a03e movss dword ptr [rbx+0C0h], xmm6 ; +0x93, 0x18007a043 mov ecx, 20003h ; +0x9b, 0x18007a04b call sub_1800DCA30 ; +0xa0, 0x18007a050 xor edx, edx ; +0xa5, 0x18007a055 mov ecx, 2100Dh ; +0xa7, 0x18007a057 call sub_1800DCA30 ; +0xac, 0x18007a05c mov edx, 1 ; +0xb1, 0x18007a061 mov ecx, 21010h ; +0xb6, 0x18007a066 call sub_1800DCA30 ; +0xbb, 0x18007a06b movss xmm2, dword ptr [rsi] ; +0xc0, 0x18007a070 lea rcx, [rsp+178h+var_150] ; +0xc4, 0x18007a074 movss xmm1, dword ptr [rdi+8] ; +0xc9, 0x18007a079 call kmVec2Fill ; +0xce, 0x18007a07e mov rdx, rax ; +0xd3, 0x18007a083 lea rcx, [rbx+0D8h] ; +0xd6, 0x18007a086 call ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0xdd, 0x18007a08d mov rdx, rdi; struct cocos2d::CCRect * ; +0xe2, 0x18007a092 lea rcx, [rsp+178h+var_150]; this ; +0xe5, 0x18007a095 call ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0xea, 0x18007a09a mov rdx, rax ; +0xef, 0x18007a09f mov rcx, rbx ; +0xf2, 0x18007a0a2 call ?setupWindow@CCEGLView@cocos2d@@IEAAXVCCRect@2@@Z; cocos2d::CCEGLView::setupWindow(cocos2d::CCRect) ; +0xf5, 0x18007a0a5 mov rax, [rbx] ; +0xfa, 0x18007a0aa mov rcx, rbx ; +0xfd, 0x18007a0ad movss xmm2, dword ptr [rsi] ; +0x100, 0x18007a0b0 movss xmm1, dword ptr [rdi+8] ; +0x104, 0x18007a0b4 call qword ptr [rax+30h] ; +0x109, 0x18007a0b9 mov ecx, 1F02h; name ; +0x10c, 0x18007a0bc call cs:glGetString ; +0x111, 0x18007a0c1 mov rcx, rax; String ; +0x117, 0x18007a0c7 mov rdi, rax ; +0x11a, 0x18007a0ca call cs:atof ; +0x11d, 0x18007a0cd movsd xmm1, cs:qword_180107720 ; +0x123, 0x18007a0d3 comisd xmm1, xmm0 ; +0x12b, 0x18007a0db jbe short loc_18007A134 ; +0x12f, 0x18007a0df xor edx, edx; Val ; +0x131, 0x18007a0e1 lea rcx, [rsp+178h+Buffer]; void * ; +0x133, 0x18007a0e3 mov r8d, 100h; Size ; +0x138, 0x18007a0e8 call memset ; +0x13e, 0x18007a0ee mov r8, rdi ; +0x143, 0x18007a0f3 lea rdx, aOpengl15OrHigh; "OpenGL 1.5 or higher is required (your "... ; +0x146, 0x18007a0f6 lea rcx, [rsp+178h+Buffer]; Buffer ; +0x14d, 0x18007a0fd call sub_1800095F0 ; +0x152, 0x18007a102 mov rcx, [rbx+0C8h] ; +0x157, 0x18007a107 call sub_1800D9CB0 ; +0x15e, 0x18007a10e mov rcx, rax; hWnd ; +0x163, 0x18007a113 lea r8, aOpenglVersionT; "OpenGL version too old" ; +0x166, 0x18007a116 xor r9d, r9d; uType ; +0x16d, 0x18007a11d lea rdx, aOpengl15OrHigh_0; "OpenGL 1.5 or higher is required" ; +0x170, 0x18007a120 call cs:MessageBoxW ; +0x177, 0x18007a127 xor al, al ; +0x17d, 0x18007a12d jmp loc_18007A1BD ; +0x17f, 0x18007a12f mov rcx, rbx; this ; +0x184, 0x18007a134 call ?initGlew@CCEGLView@cocos2d@@IEAA_NXZ; cocos2d::CCEGLView::initGlew(void) ; +0x187, 0x18007a137 mov ecx, 8642h; cap ; +0x18c, 0x18007a13c call cs:glEnable ; +0x191, 0x18007a141 cmp qword ptr [rbx+0D0h], 0 ; +0x197, 0x18007a147 jnz short loc_18007A1B3 ; +0x19f, 0x18007a14f cvttss2si edx, dword ptr [rbx+0D8h] ; +0x1a1, 0x18007a151 mov rcx, [rbx+0C8h] ; +0x1a9, 0x18007a159 cvttss2si r8d, dword ptr [rbx+0DCh] ; +0x1b0, 0x18007a160 mov [rsp+178h+var_150], edx ; +0x1b9, 0x18007a169 mov [rsp+178h+var_158], r8d ; +0x1bd, 0x18007a16d call sub_1800DC800 ; +0x1c2, 0x18007a172 mov rcx, [rbx+0C8h] ; +0x1c7, 0x18007a177 lea r8, [rsp+178h+var_158] ; +0x1ce, 0x18007a17e lea rdx, [rsp+178h+var_150] ; +0x1d3, 0x18007a183 call sub_1800DC750 ; +0x1d8, 0x18007a188 movd xmm2, [rsp+178h+var_158] ; +0x1dd, 0x18007a18d mov rcx, rbx; this ; +0x1e3, 0x18007a193 movd xmm1, [rsp+178h+var_150] ; +0x1e6, 0x18007a196 cvtdq2ps xmm2, xmm2; float ; +0x1ec, 0x18007a19c cvtdq2ps xmm1, xmm1; float ; +0x1ef, 0x18007a19f call ?setFrameSize@CCEGLViewProtocol@cocos2d@@UEAAXMM@Z; cocos2d::CCEGLViewProtocol::setFrameSize(float,float) ; +0x1f2, 0x18007a1a2 mov rcx, [rbx+0C8h] ; +0x1f7, 0x18007a1a7 call sub_1800DC200 ; +0x1fe, 0x18007a1ae mov rcx, rbx; this ; +0x203, 0x18007a1b3 call ?makeBorderlessTop@CCEGLView@cocos2d@@QEAAXXZ; cocos2d::CCEGLView::makeBorderlessTop(void) ; +0x206, 0x18007a1b6 mov al, 1 ; +0x20b, 0x18007a1bb mov rcx, [rsp+178h+var_38] ; +0x20d, 0x18007a1bd xor rcx, rsp; StackCookie ; +0x215, 0x18007a1c5 call __security_check_cookie ; +0x218, 0x18007a1c8 mov rbx, [rsp+178h+arg_18] ; +0x21d, 0x18007a1cd movaps xmm6, [rsp+178h+var_28] ; +0x225, 0x18007a1d5 add rsp, 160h ; +0x22d, 0x18007a1dd pop rdi ; +0x234, 0x18007a1e4 pop rsi ; +0x235, 0x18007a1e5 pop rbp ; +0x236, 0x18007a1e6 retn ; +0x237, 0x18007a1e7