Function at 0x140090ed0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400fddb8]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rax, str.libEGL.dll
mov qword [rsp + 0x38], rax
lea rax, str.EGL.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x140100f18], 0
je 0x140090f29
mov eax, 1
jmp 0x140091335
mov dword [rsp + 0x20], 0
jmp 0x140090f3d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x140090f6f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140100f18], rax
cmp qword [0x140100f18], 0
je 0x140090f6d
jmp 0x140090f6f
jmp 0x140090f33
cmp qword [0x140100f18], 0
jne 0x140090f91
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.14008b1a0
xor eax, eax
jmp 0x140091335
movsxd rax, dword [rsp + 0x20]
mov r8d, 3
lea rdx, [0x1400fba04]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140090fbc
mov dword [rsp + 0x60], 1
jmp 0x140090fc4
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [0x140100f00], eax
lea rdx, str.eglGetConfigAttrib
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f20], rax
lea rdx, str.eglGetConfigs
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f28], rax
lea rdx, str.eglGetDisplay
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f30], rax
lea rdx, str.eglGetError
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f38], rax
lea rdx, str.eglInitialize
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f40], rax
lea rdx, str.eglTerminate
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f48], rax
lea rdx, str.eglBindAPI
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f50], rax
lea rdx, str.eglCreateContext
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f58], rax
lea rdx, str.eglDestroySurface
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f60], rax
lea rdx, str.eglDestroyContext
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f68], rax
lea rdx, str.eglCreateWindowSurface
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f70], rax
lea rdx, str.eglMakeCurrent
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f78], rax
lea rdx, str.eglSwapBuffers
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f80], rax
lea rdx, str.eglSwapInterval
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f88], rax
lea rdx, str.eglQueryString
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f90], rax
lea rdx, str.eglGetProcAddress
mov rcx, qword [0x140100f18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140100f98], rax
cmp qword [0x140100f20], 0
je 0x14009122a
cmp qword [0x140100f28], 0
je 0x14009122a
cmp qword [0x140100f30], 0
je 0x14009122a
cmp qword [0x140100f38], 0
je 0x14009122a
cmp qword [0x140100f40], 0
je 0x14009122a
cmp qword [0x140100f48], 0
je 0x14009122a
cmp qword [0x140100f50], 0
je 0x14009122a
cmp qword [0x140100f58], 0
je 0x14009122a
cmp qword [0x140100f60], 0
je 0x14009122a
cmp qword [0x140100f68], 0
je 0x14009122a
cmp qword [0x140100f70], 0
je 0x14009122a
cmp qword [0x140100f78], 0
je 0x14009122a
cmp qword [0x140100f80], 0
je 0x14009122a
cmp qword [0x140100f88], 0
je 0x14009122a
cmp qword [0x140100f90], 0
je 0x14009122a
cmp qword [0x140100f98], 0
jne 0x140091247
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14008b1a0
call fcn.140091370
xor eax, eax
jmp 0x140091335
xor ecx, ecx
call qword [0x140100f30]
mov qword [0x140100ef0], rax
cmp qword [0x140100ef0], 0
jne 0x14009128d
call qword [0x140100f38]
mov ecx, eax
call fcn.140092080
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.14008b1a0
call fcn.140091370
xor eax, eax
jmp 0x140091335
lea r8, [0x140100efc]
lea rdx, [0x140100ef8]
mov rcx, qword [0x140100ef0]
call qword [0x140100f40]
test eax, eax
jne 0x1400912d6
call qword [0x140100f38]
mov ecx, eax
call fcn.140092080
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.14008b1a0
call fcn.140091370
xor eax, eax
jmp 0x140091335
lea rcx, str.EGL_KHR_create_context
call fcn.1400926d0
mov dword [0x140100f04], eax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400926d0
mov dword [0x140100f08], eax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400926d0
mov dword [0x140100f0c], eax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400926d0
mov dword [0x140100f10], eax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400926d0
mov dword [0x140100f14], eax
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14009d650]
call fcn.1400960e4
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140095500
add rsp, 0x70
pop rdi
ret