Function at 0x14007faa9
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], 0
lea rax, str.libEGL.dll
mov qword [rsp + 0x20], rax
lea rax, str.EGL.dll
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov eax, 1
cmp qword [0x1400f89c8], 0
je 0x14007faf3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdi, [rsp + 0x20]
lea rsi, str.libEGL.dll
mov rbp, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rsi
call rbp
mov rbx, rax
mov qword [0x1400f89c8], rax
test rax, rax
jne 0x14007fcd3
add rdi, 8
mov rsi, qword [rdi]
test rsi, rsi
jne 0x14007fb06
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call sym._glfwInputError
mov eax, 0
jmp 0x14007faea
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call sym._glfwInputError
call sym._glfwTerminateEGL
mov eax, 0
jmp 0x14007faea
mov dword [0x1400f89a0], 1
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_base
call sym._glfwStringInExtensionString
mov dword [0x1400f89a4], eax
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_x11
call sym._glfwStringInExtensionString
mov dword [0x1400f89a8], eax
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_wayland
call sym._glfwStringInExtensionString
mov dword [0x1400f89ac], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle
call sym._glfwStringInExtensionString
mov dword [0x1400f89b4], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call sym._glfwStringInExtensionString
mov dword [0x1400f89b8], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call sym._glfwStringInExtensionString
mov dword [0x1400f89bc], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call sym._glfwStringInExtensionString
mov dword [0x1400f89c0], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle_metal
call sym._glfwStringInExtensionString
mov dword [0x1400f89c4], eax
jmp 0x14007ff79
mov rbx, qword [0x1400f89e0]
call qword [0x1400f71c0]
mov rcx, rax
call rbx
jmp 0x14007ffe3
call qword [0x1400f89e8]
mov ecx, eax
call sym.getEGLErrorString
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call sym._glfwInputError
call sym._glfwTerminateEGL
mov eax, 0
jmp 0x14007faea
lea rcx, str.EGL_KHR_create_context
call sym.extensionSupportedEGL
mov dword [0x1400f898c], eax
lea rcx, str.EGL_KHR_create_context_no_error
call sym.extensionSupportedEGL
mov dword [0x1400f8990], eax
lea rcx, str.EGL_KHR_gl_colorspace
call sym.extensionSupportedEGL
mov dword [0x1400f8994], eax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call sym.extensionSupportedEGL
mov dword [0x1400f8998], eax
lea rcx, str.EGL_KHR_context_flush_control
call sym.extensionSupportedEGL
mov dword [0x1400f899c], eax
lea rcx, str.EGL_EXT_present_opaque
call sym.extensionSupportedEGL
mov dword [0x1400f89b0], eax
mov eax, 1
jmp 0x14007faea
mov r8d, 3
lea rdx, [0x1400bc143]
mov rcx, rsi
call sym.strncmp
test eax, eax
sete al
movzx eax, al
mov dword [0x1400f8988], eax
lea rdx, str.eglGetConfigAttrib
mov rcx, rbx
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rbx
mov qword [0x1400f89d0], rax
lea rdx, str.eglGetConfigs
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f89d8], rax
lea rdx, str.eglGetDisplay
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f89e0], rax
lea rdx, str.eglGetError
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f89e8], rax
lea rdx, str.eglInitialize
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f89f0], rax
lea rdx, str.eglTerminate
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f89f8], rax
lea rdx, str.eglBindAPI
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a00], rax
lea rdx, str.eglCreateContext
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a08], rax
lea rdx, str.eglDestroySurface
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a10], rax
lea rdx, str.eglDestroyContext
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a18], rax
lea rdx, str.eglCreateWindowSurface
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a20], rax
lea rdx, str.eglMakeCurrent
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a28], rax
lea rdx, str.eglSwapBuffers
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a30], rax
lea rdx, str.eglSwapInterval
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a38], rax
lea rdx, str.eglQueryString
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a40], rax
lea rdx, str.eglGetProcAddress
mov rcx, qword [0x1400f89c8]
call rbx
mov qword [0x1400f8a48], rax
cmp qword [0x1400f89d0], 0
je 0x14007fb42
cmp qword [0x1400f89d8], 0
je 0x14007fb42
cmp qword [0x1400f89e0], 0
je 0x14007fb42
cmp qword [0x1400f89e8], 0
je 0x14007fb42
cmp qword [0x1400f89f0], 0
je 0x14007fb42
cmp qword [0x1400f89f8], 0
je 0x14007fb42
cmp qword [0x1400f8a00], 0
je 0x14007fb42
cmp qword [0x1400f8a08], 0
je 0x14007fb42
cmp qword [0x1400f8a10], 0
je 0x14007fb42
cmp qword [0x1400f8a18], 0
je 0x14007fb42
cmp qword [0x1400f8a20], 0
je 0x14007fb42
cmp qword [0x1400f8a28], 0
je 0x14007fb42
cmp qword [0x1400f8a30], 0
je 0x14007fb42
cmp qword [0x1400f8a38], 0
je 0x14007fb42
mov r8, qword [0x1400f8a40]
test r8, r8
je 0x14007fb42
test rax, rax
je 0x14007fb42
mov edx, 0x3055
mov ecx, 0
call r8
mov rbx, rax
test rax, rax
je 0x14007ff6c
call qword [0x1400f89e8]
cmp eax, 0x3000
je 0x14007fb5f
cmp dword [0x1400f89a0], 0
jne 0x14007fb69
cmp dword [0x1400f89a4], 0
je 0x14007ffaa
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400f8a48]
mov qword [0x1400f8a50], rax
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
call qword [0x1400f8a48]
mov qword [0x1400f8a58], rax
lea rcx, [rsp + 0x38]
call qword [0x1400f71b8]
mov dword [0x1400f8970], eax
test eax, eax
je 0x14007fc16
mov rbx, qword [0x1400f8a50]
mov rsi, qword [rsp + 0x38]
call qword [0x1400f71c0]
mov rdx, rax
mov r8, rsi
mov ecx, dword [0x1400f8970]
call rbx
mov qword [0x1400f8978], rax
mov rcx, qword [rsp + 0x38]
call sym._glfw_free
mov rcx, qword [0x1400f8978]
test rcx, rcx
je 0x14007fc2d
lea r8, [0x1400f8984]
lea rdx, [r8 - 4]
call qword [0x1400f89f0]
test eax, eax
jne 0x14007fc5d
call qword [0x1400f89e8]
mov ecx, eax
call sym.getEGLErrorString
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call sym._glfwInputError
call sym._glfwTerminateEGL
mov eax, 0
jmp 0x14007faea