Function at 0x1400dab60
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x20]
mov ecx, Ordinal_30
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1401d6fc0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x38], 0
lea rax, str.libEGL.dll
mov qword [rsp + 0x58], rax
lea rax, str.EGL.dll
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
cmp qword [0x1402b4e10], 0
je 0x1400dabca
mov eax, 1
jmp 0x1400db152
mov dword [rsp + 0x20], 0
jmp 0x1400dabde
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x58], 0
je 0x1400dac10
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1402b4e10], rax
cmp qword [0x1402b4e10], 0
je 0x1400dac0e
jmp 0x1400dac10
jmp 0x1400dabd4
cmp qword [0x1402b4e10], 0
jne 0x1400dac32
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1400d1e10
xor eax, eax
jmp 0x1400db152
movsxd rax, dword [rsp + 0x20]
mov r8d, 3
lea rdx, [0x1401d43e4]
mov rcx, qword [rsp + rax*8 + 0x58]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x1400dac60
mov dword [rsp + 0x80], 1
jmp 0x1400dac6b
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
mov dword [0x1402b4dd0], eax
lea rdx, str.eglGetConfigAttrib
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e18], rax
lea rdx, str.eglGetConfigs
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e20], rax
lea rdx, str.eglGetDisplay
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e28], rax
lea rdx, str.eglGetError
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e30], rax
lea rdx, str.eglInitialize
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e38], rax
lea rdx, str.eglTerminate
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e40], rax
lea rdx, str.eglBindAPI
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e48], rax
lea rdx, str.eglCreateContext
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e50], rax
lea rdx, str.eglDestroySurface
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e58], rax
lea rdx, str.eglDestroyContext
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e60], rax
lea rdx, str.eglCreateWindowSurface
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e68], rax
lea rdx, str.eglMakeCurrent
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e70], rax
lea rdx, str.eglSwapBuffers
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e78], rax
lea rdx, str.eglSwapInterval
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e80], rax
lea rdx, str.eglQueryString
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e88], rax
lea rdx, str.eglGetProcAddress
mov rcx, qword [0x1402b4e10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402b4e90], rax
cmp qword [0x1402b4e18], 0
je 0x1400daed4
cmp qword [0x1402b4e20], 0
je 0x1400daed4
cmp qword [0x1402b4e28], 0
je 0x1400daed4
cmp qword [0x1402b4e30], 0
je 0x1400daed4
cmp qword [0x1402b4e38], 0
je 0x1400daed4
cmp qword [0x1402b4e40], 0
je 0x1400daed4
cmp qword [0x1402b4e48], 0
je 0x1400daed4
cmp qword [0x1402b4e50], 0
je 0x1400daed4
cmp qword [0x1402b4e58], 0
je 0x1400daed4
cmp qword [0x1402b4e60], 0
je 0x1400daed4
cmp qword [0x1402b4e68], 0
je 0x1400daed4
cmp qword [0x1402b4e70], 0
je 0x1400daed4
cmp qword [0x1402b4e78], 0
je 0x1400daed4
cmp qword [0x1402b4e80], 0
je 0x1400daed4
cmp qword [0x1402b4e88], 0
je 0x1400daed4
cmp qword [0x1402b4e90], 0
jne 0x1400daef1
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400d1e10
call fcn.1400db190
xor eax, eax
jmp 0x1400db152
mov edx, 0x3055
xor ecx, ecx
call qword [0x1402b4e88]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400daf22
call qword [0x1402b4e30]
cmp eax, 0x3000
jne 0x1400daf22
mov dword [0x1402b4de8], 1
cmp dword [0x1402b4de8], 0
je 0x1400dafe7
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_EXT_platform_base
call fcn.1400d2950
mov dword [0x1402b4dec], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400d2950
mov dword [0x1402b4df0], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400d2950
mov dword [0x1402b4df4], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400d2950
mov dword [0x1402b4df8], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400d2950
mov dword [0x1402b4dfc], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400d2950
mov dword [0x1402b4e00], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400d2950
mov dword [0x1402b4e04], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400d2950
mov dword [0x1402b4e08], eax
cmp dword [0x1402b4dec], 0
je 0x1400db018
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1402b4e90]
mov qword [0x1402b4e98], rax
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
call qword [0x1402b4e90]
mov qword [0x1402b4ea0], rax
lea rcx, [rsp + 0x38]
call fcn.1400ce320
mov dword [0x1402b4db8], eax
cmp dword [0x1402b4db8], 0
je 0x1400db053
call fcn.1400ce440
mov r8, qword [rsp + 0x38]
mov rdx, rax
mov ecx, dword [0x1402b4db8]
call qword [0x1402b4e98]
mov qword [0x1402b4dc0], rax
jmp 0x1400db068
call fcn.1400ce440
mov rcx, rax
call qword [0x1402b4e28]
mov qword [0x1402b4dc0], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp qword [0x1402b4dc0], 0
jne 0x1400db0aa
call qword [0x1402b4e30]
mov ecx, eax
call fcn.1400dbee0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1400d1e10
call fcn.1400db190
xor eax, eax
jmp 0x1400db152
lea r8, [0x1402b4dcc]
lea rdx, [0x1402b4dc8]
mov rcx, qword [0x1402b4dc0]
call qword [0x1402b4e38]
test eax, eax
jne 0x1400db0f3
call qword [0x1402b4e30]
mov ecx, eax
call fcn.1400dbee0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1400d1e10
call fcn.1400db190
xor eax, eax
jmp 0x1400db152
lea rcx, str.EGL_KHR_create_context
call fcn.1400dc4f0
mov dword [0x1402b4dd4], eax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400dc4f0
mov dword [0x1402b4dd8], eax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400dc4f0
mov dword [0x1402b4ddc], eax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400dc4f0
mov dword [0x1402b4de0], eax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400dc4f0
mov dword [0x1402b4de4], eax
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.14015e7e0
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14015dda0
add rsp, 0x90
pop rdi
ret