Function at 0x1400ef2c0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x140216998], rbx
lea rcx, str.EGL.dll
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rbx
je 0x1400ef318
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400f3cc0
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 0x60], rsi
mov esi, ebx
mov qword [rsp + 0x68], rdi
mov rdi, rbx
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140216998], rax
mov rcx, rax
test rax, rax
jne 0x1400ef34d
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1400ef327
test rcx, rcx
jne 0x1400ef368
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1400e4ed0
jmp 0x1400ef96c
movsxd rcx, esi
lea rdx, [0x140123a10]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov ecx, ebx
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x140216958], ecx
mov rcx, qword [0x140216998]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglGetConfigs
mov qword [0x1402169a0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglGetDisplay
mov qword [0x1402169a8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglGetError
mov qword [0x1402169b0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglInitialize
mov qword [0x1402169b8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglTerminate
mov qword [0x1402169c0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglBindAPI
mov qword [0x1402169c8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglCreateContext
mov qword [0x1402169d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglDestroySurface
mov qword [0x1402169d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglDestroyContext
mov qword [0x1402169e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1402169e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglMakeCurrent
mov qword [0x1402169f0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglSwapBuffers
mov qword [0x1402169f8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglSwapInterval
mov qword [0x140216a00], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglQueryString
mov qword [0x140216a08], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140216998]
lea rdx, str.eglGetProcAddress
mov qword [0x140216a10], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1402169a0], rbx
mov rcx, rax
mov qword [0x140216a18], rax
je 0x1400ef92a
cmp qword [0x1402169a8], rbx
je 0x1400ef92a
cmp qword [0x1402169b0], rbx
je 0x1400ef92a
cmp qword [0x1402169b8], rbx
je 0x1400ef92a
cmp qword [0x1402169c0], rbx
je 0x1400ef92a
cmp qword [0x1402169c8], rbx
je 0x1400ef92a
cmp qword [0x1402169d0], rbx
je 0x1400ef92a
cmp qword [0x1402169d8], rbx
je 0x1400ef92a
cmp qword [0x1402169e0], rbx
je 0x1400ef92a
cmp qword [0x1402169e8], rbx
je 0x1400ef92a
cmp qword [0x1402169f0], rbx
je 0x1400ef92a
cmp qword [0x1402169f8], rbx
je 0x1400ef92a
cmp qword [0x140216a00], rbx
je 0x1400ef92a
cmp qword [0x140216a08], rbx
je 0x1400ef92a
mov rax, qword [0x140216a10]
test rax, rax
je 0x1400ef92a
test rcx, rcx
je 0x1400ef92a
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1400ef62c
call qword [0x1402169b8]
cmp eax, 0x3000
jne 0x1400ef62c
mov dword [0x140216970], 1
jmp 0x1400ef638
cmp dword [0x140216970], ebx
je 0x1400ef6e0
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1400ea8e0
mov rdx, rdi
mov dword [0x140216974], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400ea8e0
mov rdx, rdi
mov dword [0x140216978], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400ea8e0
mov rdx, rdi
mov dword [0x14021697c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400ea8e0
mov rdx, rdi
mov dword [0x140216984], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400ea8e0
mov rdx, rdi
mov dword [0x140216988], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400ea8e0
mov rdx, rdi
mov dword [0x14021698c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400ea8e0
mov rdx, rdi
mov dword [0x140216990], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400ea8e0
mov dword [0x140216994], eax
cmp dword [0x140216974], ebx
je 0x1400ef710
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x140216a18]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x140216a20], rax
call qword [0x140216a18]
mov qword [0x140216a28], rax
lea rcx, [rsp + 0x20]
call qword [0x140215188]
mov dword [0x140216940], eax
test eax, eax
je 0x1400ef741
call qword [0x140215190]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x140216940]
call qword [0x140216a20]
jmp 0x1400ef750
call qword [0x140215190]
mov rcx, rax
call qword [0x1402169b0]
mov rcx, qword [rsp + 0x20]
mov qword [0x140216948], rax
call fcn.1400e5420
mov rcx, qword [0x140216948]
test rcx, rcx
jne 0x1400ef798
call qword [0x1402169b8]
mov ecx, eax
call fcn.1400efe10
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1400e4ed0
call fcn.1400ef990
jmp 0x1400ef96c
lea r8, [0x140216954]
lea rdx, [0x140216950]
call qword [0x1402169c0]
test eax, eax
jne 0x1400ef7db
call qword [0x1402169b8]
mov ecx, eax
call fcn.1400efe10
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1400e4ed0
call fcn.1400ef990
jmp 0x1400ef96c
mov rcx, qword [0x140216948]
mov edx, 0x3055
call qword [0x140216a10]
test rax, rax
je 0x1400ef80a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1400ea8e0
test eax, eax
mov eax, 1
jne 0x1400ef80c
mov eax, ebx
mov rcx, qword [0x140216948]
mov edx, 0x3055
mov dword [0x14021695c], eax
call qword [0x140216a10]
test rax, rax
je 0x1400ef841
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400ea8e0
test eax, eax
mov eax, 1
jne 0x1400ef843
mov eax, ebx
mov rcx, qword [0x140216948]
mov edx, 0x3055
mov dword [0x140216960], eax
call qword [0x140216a10]
test rax, rax
je 0x1400ef878
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400ea8e0
test eax, eax
mov eax, 1
jne 0x1400ef87a
mov eax, ebx
mov rcx, qword [0x140216948]
mov edx, 0x3055
mov dword [0x140216964], eax
call qword [0x140216a10]
test rax, rax
je 0x1400ef8af
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400ea8e0
test eax, eax
mov eax, 1
jne 0x1400ef8b1
mov eax, ebx
mov rcx, qword [0x140216948]
mov edx, 0x3055
mov dword [0x140216968], eax
call qword [0x140216a10]
test rax, rax
je 0x1400ef8e6
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400ea8e0
test eax, eax
mov eax, 1
jne 0x1400ef8e8
mov eax, ebx
mov rcx, qword [0x140216948]
mov edx, 0x3055
mov dword [0x14021696c], eax
call qword [0x140216a10]
test rax, rax
je 0x1400ef91d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1400ea8e0
test eax, eax
je 0x1400ef91d
mov ebx, 1
mov dword [0x140216980], ebx
mov eax, 1
jmp 0x1400ef96e
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400e4ed0
mov rcx, qword [0x140216948]
test rcx, rcx
je 0x1400ef954
call qword [0x1402169c8]
mov qword [0x140216948], rbx
mov rcx, qword [0x140216998]
test rcx, rcx
je 0x1400ef96c
call fcn.1400f0ce0
mov qword [0x140216998], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400f3cc0
add rsp, 0x50
pop rbx
ret