Function at 0x14006a7b0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1400a6208], 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 0x14006a7ec
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 [0x1400a6208], rax
mov rcx, rax
test rax, rax
jne 0x14006a826
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x14006a800
test rcx, rcx
jne 0x14006a84e
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140060390
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x14008bbd0]
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 [0x1400a61c8], ecx
mov rcx, qword [0x1400a6208]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglGetConfigs
mov qword [0x1400a6210], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglGetDisplay
mov qword [0x1400a6218], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglGetError
mov qword [0x1400a6220], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglInitialize
mov qword [0x1400a6228], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglTerminate
mov qword [0x1400a6230], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglBindAPI
mov qword [0x1400a6238], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglCreateContext
mov qword [0x1400a6240], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglDestroySurface
mov qword [0x1400a6248], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglDestroyContext
mov qword [0x1400a6250], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400a6258], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglMakeCurrent
mov qword [0x1400a6260], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglSwapBuffers
mov qword [0x1400a6268], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglSwapInterval
mov qword [0x1400a6270], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglQueryString
mov qword [0x1400a6278], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400a6208]
lea rdx, str.eglGetProcAddress
mov qword [0x1400a6280], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400a6210], rbx
mov rcx, rax
mov qword [0x1400a6288], rax
je 0x14006ae38
cmp qword [0x1400a6218], rbx
je 0x14006ae38
cmp qword [0x1400a6220], rbx
je 0x14006ae38
cmp qword [0x1400a6228], rbx
je 0x14006ae38
cmp qword [0x1400a6230], rbx
je 0x14006ae38
cmp qword [0x1400a6238], rbx
je 0x14006ae38
cmp qword [0x1400a6240], rbx
je 0x14006ae38
cmp qword [0x1400a6248], rbx
je 0x14006ae38
cmp qword [0x1400a6250], rbx
je 0x14006ae38
cmp qword [0x1400a6258], rbx
je 0x14006ae38
cmp qword [0x1400a6260], rbx
je 0x14006ae38
cmp qword [0x1400a6268], rbx
je 0x14006ae38
cmp qword [0x1400a6270], rbx
je 0x14006ae38
cmp qword [0x1400a6278], rbx
je 0x14006ae38
mov rax, qword [0x1400a6280]
test rax, rax
je 0x14006ae38
test rcx, rcx
je 0x14006ae38
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x14006ab12
call qword [0x1400a6228]
cmp eax, 0x3000
jne 0x14006ab12
mov dword [0x1400a61e0], 1
jmp 0x14006ab1e
cmp dword [0x1400a61e0], ebx
je 0x14006abc6
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.140065e70
mov rdx, rdi
mov dword [0x1400a61e4], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140065e70
mov rdx, rdi
mov dword [0x1400a61e8], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140065e70
mov rdx, rdi
mov dword [0x1400a61ec], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140065e70
mov rdx, rdi
mov dword [0x1400a61f4], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140065e70
mov rdx, rdi
mov dword [0x1400a61f8], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140065e70
mov rdx, rdi
mov dword [0x1400a61fc], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140065e70
mov rdx, rdi
mov dword [0x1400a6200], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140065e70
mov dword [0x1400a6204], eax
cmp dword [0x1400a61e4], ebx
je 0x14006abf6
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400a6288]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400a6290], rax
call qword [0x1400a6288]
mov qword [0x1400a6298], rax
lea rcx, [rsp + 0x50]
call qword [0x1400a49f8]
mov dword [0x1400a61b0], eax
test eax, eax
je 0x14006ac27
call qword [0x1400a4a00]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x1400a61b0]
call qword [0x1400a6290]
jmp 0x14006ac36
call qword [0x1400a4a00]
mov rcx, rax
call qword [0x1400a6220]
mov rcx, qword [rsp + 0x50]
mov qword [0x1400a61b8], rax
call fcn.1400608a0
mov rcx, qword [0x1400a61b8]
test rcx, rcx
jne 0x14006ac8b
call qword [0x1400a6228]
mov ecx, eax
call fcn.14006b310
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140060390
call fcn.14006ae90
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x1400a61c4]
lea rdx, [0x1400a61c0]
call qword [0x1400a6230]
test eax, eax
jne 0x14006acdb
call qword [0x1400a6228]
mov ecx, eax
call fcn.14006b310
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140060390
call fcn.14006ae90
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x1400a61b8]
mov edx, 0x3055
call qword [0x1400a6280]
test rax, rax
je 0x14006ad0a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140065e70
test eax, eax
mov eax, 1
jne 0x14006ad0c
mov eax, ebx
mov rcx, qword [0x1400a61b8]
mov edx, 0x3055
mov dword [0x1400a61cc], eax
call qword [0x1400a6280]
test rax, rax
je 0x14006ad41
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140065e70
test eax, eax
mov eax, 1
jne 0x14006ad43
mov eax, ebx
mov rcx, qword [0x1400a61b8]
mov edx, 0x3055
mov dword [0x1400a61d0], eax
call qword [0x1400a6280]
test rax, rax
je 0x14006ad78
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140065e70
test eax, eax
mov eax, 1
jne 0x14006ad7a
mov eax, ebx
mov rcx, qword [0x1400a61b8]
mov edx, 0x3055
mov dword [0x1400a61d4], eax
call qword [0x1400a6280]
test rax, rax
je 0x14006adaf
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140065e70
test eax, eax
mov eax, 1
jne 0x14006adb1
mov eax, ebx
mov rcx, qword [0x1400a61b8]
mov edx, 0x3055
mov dword [0x1400a61d8], eax
call qword [0x1400a6280]
test rax, rax
je 0x14006ade6
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140065e70
test eax, eax
mov eax, 1
jne 0x14006ade8
mov eax, ebx
mov rcx, qword [0x1400a61b8]
mov edx, 0x3055
mov dword [0x1400a61dc], eax
call qword [0x1400a6280]
test rax, rax
je 0x14006ae1d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140065e70
test eax, eax
je 0x14006ae1d
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x1400a61f0], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140060390
mov rcx, qword [0x1400a61b8]
test rcx, rcx
je 0x14006ae62
call qword [0x1400a6238]
mov qword [0x1400a61b8], rbx
mov rcx, qword [0x1400a6208]
test rcx, rcx
je 0x14006ae7a
call fcn.14006c1c0
mov qword [0x1400a6208], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret