Function at 0x14006ced0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1400aa2b8], rbx
lea rcx, str.EGL.dll
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rbx
je 0x14006cf0c
lea eax, [rbx + 1]
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x58], rsi
mov esi, ebx
mov qword [rsp + 0x60], rdi
mov rdi, rbx
nop dword [rax + rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1400aa2b8], rax
mov rcx, rax
test rax, rax
jne 0x14006cf46
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x14006cf20
test rcx, rcx
jne 0x14006cf6e
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140062b10
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x14008fd40]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x20]
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 [0x1400aa278], ecx
mov rcx, qword [0x1400aa2b8]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglGetConfigs
mov qword [0x1400aa2c0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglGetDisplay
mov qword [0x1400aa2c8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglGetError
mov qword [0x1400aa2d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglInitialize
mov qword [0x1400aa2d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglTerminate
mov qword [0x1400aa2e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglBindAPI
mov qword [0x1400aa2e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglCreateContext
mov qword [0x1400aa2f0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglDestroySurface
mov qword [0x1400aa2f8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglDestroyContext
mov qword [0x1400aa300], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400aa308], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglMakeCurrent
mov qword [0x1400aa310], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglSwapBuffers
mov qword [0x1400aa318], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglSwapInterval
mov qword [0x1400aa320], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglQueryString
mov qword [0x1400aa328], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400aa2b8]
lea rdx, str.eglGetProcAddress
mov qword [0x1400aa330], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400aa2c0], rbx
mov rcx, rax
mov qword [0x1400aa338], rax
je 0x14006d558
cmp qword [0x1400aa2c8], rbx
je 0x14006d558
cmp qword [0x1400aa2d0], rbx
je 0x14006d558
cmp qword [0x1400aa2d8], rbx
je 0x14006d558
cmp qword [0x1400aa2e0], rbx
je 0x14006d558
cmp qword [0x1400aa2e8], rbx
je 0x14006d558
cmp qword [0x1400aa2f0], rbx
je 0x14006d558
cmp qword [0x1400aa2f8], rbx
je 0x14006d558
cmp qword [0x1400aa300], rbx
je 0x14006d558
cmp qword [0x1400aa308], rbx
je 0x14006d558
cmp qword [0x1400aa310], rbx
je 0x14006d558
cmp qword [0x1400aa318], rbx
je 0x14006d558
cmp qword [0x1400aa320], rbx
je 0x14006d558
cmp qword [0x1400aa328], rbx
je 0x14006d558
mov rax, qword [0x1400aa330]
test rax, rax
je 0x14006d558
test rcx, rcx
je 0x14006d558
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x14006d232
call qword [0x1400aa2d8]
cmp eax, 0x3000
jne 0x14006d232
mov dword [0x1400aa290], 1
jmp 0x14006d23e
cmp dword [0x1400aa290], ebx
je 0x14006d2e6
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1400685f0
mov rdx, rdi
mov dword [0x1400aa294], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400685f0
mov rdx, rdi
mov dword [0x1400aa298], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400685f0
mov rdx, rdi
mov dword [0x1400aa29c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400685f0
mov rdx, rdi
mov dword [0x1400aa2a4], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400685f0
mov rdx, rdi
mov dword [0x1400aa2a8], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400685f0
mov rdx, rdi
mov dword [0x1400aa2ac], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400685f0
mov rdx, rdi
mov dword [0x1400aa2b0], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400685f0
mov dword [0x1400aa2b4], eax
cmp dword [0x1400aa294], ebx
je 0x14006d316
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400aa338]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400aa340], rax
call qword [0x1400aa338]
mov qword [0x1400aa348], rax
lea rcx, [rsp + 0x50]
call qword [0x1400a8aa8]
mov dword [0x1400aa260], eax
test eax, eax
je 0x14006d347
call qword [0x1400a8ab0]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x1400aa260]
call qword [0x1400aa340]
jmp 0x14006d356
call qword [0x1400a8ab0]
mov rcx, rax
call qword [0x1400aa2d0]
mov rcx, qword [rsp + 0x50]
mov qword [0x1400aa268], rax
call fcn.140063020
mov rcx, qword [0x1400aa268]
test rcx, rcx
jne 0x14006d3ab
call qword [0x1400aa2d8]
mov ecx, eax
call fcn.14006da30
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140062b10
call fcn.14006d5b0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x1400aa274]
lea rdx, [0x1400aa270]
call qword [0x1400aa2e0]
test eax, eax
jne 0x14006d3fb
call qword [0x1400aa2d8]
mov ecx, eax
call fcn.14006da30
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140062b10
call fcn.14006d5b0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x1400aa268]
mov edx, 0x3055
call qword [0x1400aa330]
test rax, rax
je 0x14006d42a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1400685f0
test eax, eax
mov eax, 1
jne 0x14006d42c
mov eax, ebx
mov rcx, qword [0x1400aa268]
mov edx, 0x3055
mov dword [0x1400aa27c], eax
call qword [0x1400aa330]
test rax, rax
je 0x14006d461
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400685f0
test eax, eax
mov eax, 1
jne 0x14006d463
mov eax, ebx
mov rcx, qword [0x1400aa268]
mov edx, 0x3055
mov dword [0x1400aa280], eax
call qword [0x1400aa330]
test rax, rax
je 0x14006d498
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400685f0
test eax, eax
mov eax, 1
jne 0x14006d49a
mov eax, ebx
mov rcx, qword [0x1400aa268]
mov edx, 0x3055
mov dword [0x1400aa284], eax
call qword [0x1400aa330]
test rax, rax
je 0x14006d4cf
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400685f0
test eax, eax
mov eax, 1
jne 0x14006d4d1
mov eax, ebx
mov rcx, qword [0x1400aa268]
mov edx, 0x3055
mov dword [0x1400aa288], eax
call qword [0x1400aa330]
test rax, rax
je 0x14006d506
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400685f0
test eax, eax
mov eax, 1
jne 0x14006d508
mov eax, ebx
mov rcx, qword [0x1400aa268]
mov edx, 0x3055
mov dword [0x1400aa28c], eax
call qword [0x1400aa330]
test rax, rax
je 0x14006d53d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1400685f0
test eax, eax
je 0x14006d53d
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x1400aa2a0], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140062b10
mov rcx, qword [0x1400aa268]
test rcx, rcx
je 0x14006d582
call qword [0x1400aa2e8]
mov qword [0x1400aa268], rbx
mov rcx, qword [0x1400aa2b8]
test rcx, rcx
je 0x14006d59a
call fcn.14006e8e0
mov qword [0x1400aa2b8], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret