Function at 0x1401ef050
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14036f2b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x14037e130], 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 0x1401ef0a8
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140253d60
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 [0x14037e130], rax
test rax, rax
jne 0x1401ef0f0
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1401ef0b7
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1401e3d00
jmp 0x1401ef6f4
movsxd rcx, esi
lea rdx, [0x14029ee00]
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 [0x14037e0f0], ecx
mov rcx, qword [0x14037e130]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglGetConfigs
mov qword [0x14037e138], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglGetDisplay
mov qword [0x14037e140], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglGetError
mov qword [0x14037e148], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglInitialize
mov qword [0x14037e150], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglTerminate
mov qword [0x14037e158], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglBindAPI
mov qword [0x14037e160], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglCreateContext
mov qword [0x14037e168], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglDestroySurface
mov qword [0x14037e170], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglDestroyContext
mov qword [0x14037e178], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglCreateWindowSurface
mov qword [0x14037e180], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglMakeCurrent
mov qword [0x14037e188], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglSwapBuffers
mov qword [0x14037e190], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglSwapInterval
mov qword [0x14037e198], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglQueryString
mov qword [0x14037e1a0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e130]
lea rdx, str.eglGetProcAddress
mov qword [0x14037e1a8], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x14037e138], rbx
mov rcx, rax
mov qword [0x14037e1b0], rax
je 0x1401ef6b2
cmp qword [0x14037e140], rbx
je 0x1401ef6b2
cmp qword [0x14037e148], rbx
je 0x1401ef6b2
cmp qword [0x14037e150], rbx
je 0x1401ef6b2
cmp qword [0x14037e158], rbx
je 0x1401ef6b2
cmp qword [0x14037e160], rbx
je 0x1401ef6b2
cmp qword [0x14037e168], rbx
je 0x1401ef6b2
cmp qword [0x14037e170], rbx
je 0x1401ef6b2
cmp qword [0x14037e178], rbx
je 0x1401ef6b2
cmp qword [0x14037e180], rbx
je 0x1401ef6b2
cmp qword [0x14037e188], rbx
je 0x1401ef6b2
cmp qword [0x14037e190], rbx
je 0x1401ef6b2
cmp qword [0x14037e198], rbx
je 0x1401ef6b2
cmp qword [0x14037e1a0], rbx
je 0x1401ef6b2
mov rax, qword [0x14037e1a8]
test rax, rax
je 0x1401ef6b2
test rcx, rcx
je 0x1401ef6b2
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1401ef3b4
call qword [0x14037e150]
cmp eax, 0x3000
jne 0x1401ef3b4
mov dword [0x14037e108], 1
jmp 0x1401ef3c0
cmp dword [0x14037e108], ebx
je 0x1401ef468
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1401e2ba0
mov rdx, rdi
mov dword [0x14037e10c], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1401e2ba0
mov rdx, rdi
mov dword [0x14037e110], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1401e2ba0
mov rdx, rdi
mov dword [0x14037e114], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1401e2ba0
mov rdx, rdi
mov dword [0x14037e11c], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1401e2ba0
mov rdx, rdi
mov dword [0x14037e120], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1401e2ba0
mov rdx, rdi
mov dword [0x14037e124], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1401e2ba0
mov rdx, rdi
mov dword [0x14037e128], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1401e2ba0
mov dword [0x14037e12c], eax
cmp dword [0x14037e10c], ebx
je 0x1401ef498
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x14037e1b0]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x14037e1b8], rax
call qword [0x14037e1b0]
mov qword [0x14037e1c0], rax
lea rcx, [rsp + 0x20]
call qword [0x14037c918]
mov dword [0x14037e0d8], eax
test eax, eax
je 0x1401ef4c9
call qword [0x14037c920]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x14037e0d8]
call qword [0x14037e1b8]
jmp 0x1401ef4d8
call qword [0x14037c920]
mov rcx, rax
call qword [0x14037e148]
mov rcx, qword [rsp + 0x20]
mov qword [0x14037e0e0], rax
call fcn.1401e4200
mov rcx, qword [0x14037e0e0]
test rcx, rcx
jne 0x1401ef520
call qword [0x14037e150]
mov ecx, eax
call fcn.1401efba0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1401e3d00
call fcn.1401ef720
jmp 0x1401ef6f4
lea r8, [0x14037e0ec]
lea rdx, [0x14037e0e8]
call qword [0x14037e158]
test eax, eax
jne 0x1401ef563
call qword [0x14037e150]
mov ecx, eax
call fcn.1401efba0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1401e3d00
call fcn.1401ef720
jmp 0x1401ef6f4
mov rcx, qword [0x14037e0e0]
mov edx, 0x3055
call qword [0x14037e1a8]
test rax, rax
je 0x1401ef592
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1401e2ba0
test eax, eax
mov eax, 1
jne 0x1401ef594
mov eax, ebx
mov rcx, qword [0x14037e0e0]
mov edx, 0x3055
mov dword [0x14037e0f4], eax
call qword [0x14037e1a8]
test rax, rax
je 0x1401ef5c9
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1401e2ba0
test eax, eax
mov eax, 1
jne 0x1401ef5cb
mov eax, ebx
mov rcx, qword [0x14037e0e0]
mov edx, 0x3055
mov dword [0x14037e0f8], eax
call qword [0x14037e1a8]
test rax, rax
je 0x1401ef600
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1401e2ba0
test eax, eax
mov eax, 1
jne 0x1401ef602
mov eax, ebx
mov rcx, qword [0x14037e0e0]
mov edx, 0x3055
mov dword [0x14037e0fc], eax
call qword [0x14037e1a8]
test rax, rax
je 0x1401ef637
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1401e2ba0
test eax, eax
mov eax, 1
jne 0x1401ef639
mov eax, ebx
mov rcx, qword [0x14037e0e0]
mov edx, 0x3055
mov dword [0x14037e100], eax
call qword [0x14037e1a8]
test rax, rax
je 0x1401ef66e
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1401e2ba0
test eax, eax
mov eax, 1
jne 0x1401ef670
mov eax, ebx
mov rcx, qword [0x14037e0e0]
mov edx, 0x3055
mov dword [0x14037e104], eax
call qword [0x14037e1a8]
test rax, rax
je 0x1401ef6a5
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1401e2ba0
test eax, eax
je 0x1401ef6a5
mov ebx, 1
mov dword [0x14037e118], ebx
mov eax, 1
jmp 0x1401ef6f6
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401e3d00
mov rcx, qword [0x14037e0e0]
test rcx, rcx
je 0x1401ef6dc
call qword [0x14037e160]
mov qword [0x14037e0e0], rbx
mov rcx, qword [0x14037e130]
test rcx, rcx
je 0x1401ef6f4
call fcn.1401f0a80
mov qword [0x14037e130], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140253d60
add rsp, 0x50
pop rbx
ret