Function at 0x14007d8c0
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 [0x1401f1108], 0
je 0x14007d90a
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 [0x1401f1108], rax
test rax, rax
jne 0x14007daea
add rdi, 8
mov rsi, qword [rdi]
test rsi, rsi
jne 0x14007d91d
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call sym._glfwInputError
mov eax, 0
jmp 0x14007d901
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call sym._glfwInputError
call sym._glfwTerminateEGL
mov eax, 0
jmp 0x14007d901
mov dword [0x1401f10e0], 1
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_base
call sym._glfwStringInExtensionString
mov dword [0x1401f10e4], eax
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_x11
call sym._glfwStringInExtensionString
mov dword [0x1401f10e8], eax
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_wayland
call sym._glfwStringInExtensionString
mov dword [0x1401f10ec], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle
call sym._glfwStringInExtensionString
mov dword [0x1401f10f4], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call sym._glfwStringInExtensionString
mov dword [0x1401f10f8], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call sym._glfwStringInExtensionString
mov dword [0x1401f10fc], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call sym._glfwStringInExtensionString
mov dword [0x1401f1100], eax
mov rdx, rbx
lea rcx, str.EGL_ANGLE_platform_angle_metal
call sym._glfwStringInExtensionString
mov dword [0x1401f1104], eax
jmp 0x14007dd90
mov rbx, qword [0x1401f1120]
call qword [0x1401ef900]
mov rcx, rax
call rbx
jmp 0x14007ddfa
call qword [0x1401f1128]
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 0x14007d901
lea rcx, str.EGL_KHR_create_context
call sym.extensionSupportedEGL
mov dword [0x1401f10cc], eax
lea rcx, str.EGL_KHR_create_context_no_error
call sym.extensionSupportedEGL
mov dword [0x1401f10d0], eax
lea rcx, str.EGL_KHR_gl_colorspace
call sym.extensionSupportedEGL
mov dword [0x1401f10d4], eax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call sym.extensionSupportedEGL
mov dword [0x1401f10d8], eax
lea rcx, str.EGL_KHR_context_flush_control
call sym.extensionSupportedEGL
mov dword [0x1401f10dc], eax
lea rcx, str.EGL_EXT_present_opaque
call sym.extensionSupportedEGL
mov dword [0x1401f10f0], eax
mov eax, 1
jmp 0x14007d901
mov r8d, 3
lea rdx, [0x1401a3803]
mov rcx, rsi
call sym.strncmp
test eax, eax
sete al
movzx eax, al
mov dword [0x1401f10c8], eax
lea rdx, str.eglGetConfigAttrib
mov rcx, rbx
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rbx
mov qword [0x1401f1110], rax
lea rdx, str.eglGetConfigs
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1118], rax
lea rdx, str.eglGetDisplay
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1120], rax
lea rdx, str.eglGetError
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1128], rax
lea rdx, str.eglInitialize
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1130], rax
lea rdx, str.eglTerminate
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1138], rax
lea rdx, str.eglBindAPI
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1140], rax
lea rdx, str.eglCreateContext
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1148], rax
lea rdx, str.eglDestroySurface
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1150], rax
lea rdx, str.eglDestroyContext
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1158], rax
lea rdx, str.eglCreateWindowSurface
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1160], rax
lea rdx, str.eglMakeCurrent
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1168], rax
lea rdx, str.eglSwapBuffers
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1170], rax
lea rdx, str.eglSwapInterval
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1178], rax
lea rdx, str.eglQueryString
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1180], rax
lea rdx, str.eglGetProcAddress
mov rcx, qword [0x1401f1108]
call rbx
mov qword [0x1401f1188], rax
cmp qword [0x1401f1110], 0
je 0x14007d959
cmp qword [0x1401f1118], 0
je 0x14007d959
cmp qword [0x1401f1120], 0
je 0x14007d959
cmp qword [0x1401f1128], 0
je 0x14007d959
cmp qword [0x1401f1130], 0
je 0x14007d959
cmp qword [0x1401f1138], 0
je 0x14007d959
cmp qword [0x1401f1140], 0
je 0x14007d959
cmp qword [0x1401f1148], 0
je 0x14007d959
cmp qword [0x1401f1150], 0
je 0x14007d959
cmp qword [0x1401f1158], 0
je 0x14007d959
cmp qword [0x1401f1160], 0
je 0x14007d959
cmp qword [0x1401f1168], 0
je 0x14007d959
cmp qword [0x1401f1170], 0
je 0x14007d959
cmp qword [0x1401f1178], 0
je 0x14007d959
mov r8, qword [0x1401f1180]
test r8, r8
je 0x14007d959
test rax, rax
je 0x14007d959
mov edx, 0x3055
mov ecx, 0
call r8
mov rbx, rax
test rax, rax
je 0x14007dd83
call qword [0x1401f1128]
cmp eax, 0x3000
je 0x14007d976
cmp dword [0x1401f10e0], 0
jne 0x14007d980
cmp dword [0x1401f10e4], 0
je 0x14007ddc1
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1401f1188]
mov qword [0x1401f1190], rax
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
call qword [0x1401f1188]
mov qword [0x1401f1198], rax
lea rcx, [rsp + 0x38]
call qword [0x1401ef8f8]
mov dword [0x1401f10b0], eax
test eax, eax
je 0x14007da2d
mov rbx, qword [0x1401f1190]
mov rsi, qword [rsp + 0x38]
call qword [0x1401ef900]
mov rdx, rax
mov r8, rsi
mov ecx, dword [0x1401f10b0]
call rbx
mov qword [0x1401f10b8], rax
mov rcx, qword [rsp + 0x38]
call sym._glfw_free
mov rcx, qword [0x1401f10b8]
test rcx, rcx
je 0x14007da44
lea r8, [0x1401f10c4]
lea rdx, [r8 - 4]
call qword [0x1401f1130]
test eax, eax
jne 0x14007da74
call qword [0x1401f1128]
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 0x14007d901