; ; cocos2d::CCEGLView::initGlew from 0x180076fc0 to 0x18007705e (158 bytes) ; ; 5 xrefs: ; > cocos2d::CCEGLView::initWithRect @ 0x1800773ff ; > @ 0x18013b594 ; > @ 0x18013b5a4 ; > @ 0x1801438a8 ; > @ 0x1801b48fc ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rdi ; +0x0, 0x180076fc0 sub rsp, 20h ; +0x2, 0x180076fc2 mov rdi, rcx ; +0x6, 0x180076fc6 call cs:glewInit ; +0x9, 0x180076fc9 test eax, eax ; +0xf, 0x180076fcf jz short loc_180077012 ; +0x11, 0x180076fd1 mov ecx, eax ; +0x13, 0x180076fd3 mov [rsp+28h+arg_0], rbx ; +0x15, 0x180076fd5 call cs:glewGetErrorString ; +0x1a, 0x180076fda mov rcx, [rdi+0C8h] ; +0x20, 0x180076fe0 mov rbx, rax ; +0x27, 0x180076fe7 call sub_1800D8320 ; +0x2a, 0x180076fea mov rcx, rax; hWnd ; +0x2f, 0x180076fef lea r8, Caption; "OpenGL error" ; +0x32, 0x180076ff2 xor r9d, r9d; uType ; +0x39, 0x180076ff9 mov rdx, rbx; lpText ; +0x3c, 0x180076ffc call cs:MessageBoxW ; +0x3f, 0x180076fff mov rbx, [rsp+28h+arg_0] ; +0x45, 0x180077005 xor al, al ; +0x4a, 0x18007700a add rsp, 20h ; +0x4c, 0x18007700c pop rdi ; +0x50, 0x180077010 retn ; +0x51, 0x180077011 lea rcx, aGlVersion20; "GL_VERSION_2_0" ; +0x52, 0x180077012 call cs:glewIsSupported ; +0x59, 0x180077019 call sub_180076C40 ; +0x5f, 0x18007701f test al, al ; +0x64, 0x180077024 jnz short loc_180077056 ; +0x66, 0x180077026 mov rcx, [rdi+0C8h] ; +0x68, 0x180077028 call sub_1800D8320 ; +0x6f, 0x18007702f mov rcx, rax; hWnd ; +0x74, 0x180077034 lea r8, Caption; "OpenGL error" ; +0x77, 0x180077037 xor r9d, r9d; uType ; +0x7e, 0x18007703e lea rdx, aNoOpenglFrameb; "No OpenGL framebuffer support. Please u"... ; +0x81, 0x180077041 call cs:MessageBoxW ; +0x88, 0x180077048 xor al, al ; +0x8e, 0x18007704e add rsp, 20h ; +0x90, 0x180077050 pop rdi ; +0x94, 0x180077054 retn ; +0x95, 0x180077055 mov al, 1 ; +0x96, 0x180077056 add rsp, 20h ; +0x98, 0x180077058 pop rdi ; +0x9c, 0x18007705c retn ; +0x9d, 0x18007705d