Function at 0x1402f68e0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14047ec18]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x140488e78], 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 0x1402f6938
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14034fc10
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 [0x140488e78], rax
mov rcx, rax
test rax, rax
jne 0x1402f696d
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1402f6947
test rcx, rcx
jne 0x1402f6988
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1402e9f20
jmp 0x1402f6f8b
movsxd rcx, esi
lea rdx, [0x140447040]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x28]
call fcn.140367120
mov ecx, ebx
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x140488e38], ecx
mov rcx, qword [0x140488e78]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglGetConfigs
mov qword [0x140488e80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglGetDisplay
mov qword [0x140488e88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglGetError
mov qword [0x140488e90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglInitialize
mov qword [0x140488e98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglTerminate
mov qword [0x140488ea0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglBindAPI
mov qword [0x140488ea8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglCreateContext
mov qword [0x140488eb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglDestroySurface
mov qword [0x140488eb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglDestroyContext
mov qword [0x140488ec0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglCreateWindowSurface
mov qword [0x140488ec8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglMakeCurrent
mov qword [0x140488ed0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglSwapBuffers
mov qword [0x140488ed8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglSwapInterval
mov qword [0x140488ee0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglQueryString
mov qword [0x140488ee8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140488e78]
lea rdx, str.eglGetProcAddress
mov qword [0x140488ef0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140488e80], rbx
mov rcx, rax
mov qword [0x140488ef8], rax
je 0x1402f6f49
cmp qword [0x140488e88], rbx
je 0x1402f6f49
cmp qword [0x140488e90], rbx
je 0x1402f6f49
cmp qword [0x140488e98], rbx
je 0x1402f6f49
cmp qword [0x140488ea0], rbx
je 0x1402f6f49
cmp qword [0x140488ea8], rbx
je 0x1402f6f49
cmp qword [0x140488eb0], rbx
je 0x1402f6f49
cmp qword [0x140488eb8], rbx
je 0x1402f6f49
cmp qword [0x140488ec0], rbx
je 0x1402f6f49
cmp qword [0x140488ec8], rbx
je 0x1402f6f49
cmp qword [0x140488ed0], rbx
je 0x1402f6f49
cmp qword [0x140488ed8], rbx
je 0x1402f6f49
cmp qword [0x140488ee0], rbx
je 0x1402f6f49
cmp qword [0x140488ee8], rbx
je 0x1402f6f49
mov rax, qword [0x140488ef0]
test rax, rax
je 0x1402f6f49
test rcx, rcx
je 0x1402f6f49
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1402f6c4b
call qword [0x140488e98]
cmp eax, 0x3000
jne 0x1402f6c4b
mov dword [0x140488e50], 1
jmp 0x1402f6c57
cmp dword [0x140488e50], ebx
je 0x1402f6cff
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1402ebc20
mov rdx, rdi
mov dword [0x140488e54], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1402ebc20
mov rdx, rdi
mov dword [0x140488e58], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1402ebc20
mov rdx, rdi
mov dword [0x140488e5c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1402ebc20
mov rdx, rdi
mov dword [0x140488e64], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1402ebc20
mov rdx, rdi
mov dword [0x140488e68], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1402ebc20
mov rdx, rdi
mov dword [0x140488e6c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1402ebc20
mov rdx, rdi
mov dword [0x140488e70], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1402ebc20
mov dword [0x140488e74], eax
cmp dword [0x140488e54], ebx
je 0x1402f6d2f
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x140488ef8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x140488f00], rax
call qword [0x140488ef8]
mov qword [0x140488f08], rax
lea rcx, [rsp + 0x20]
call qword [0x140487668]
mov dword [0x140488e20], eax
test eax, eax
je 0x1402f6d60
call qword [0x140487670]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x140488e20]
call qword [0x140488f00]
jmp 0x1402f6d6f
call qword [0x140487670]
mov rcx, rax
call qword [0x140488e90]
mov rcx, qword [rsp + 0x20]
mov qword [0x140488e28], rax
call fcn.1402ea470
mov rcx, qword [0x140488e28]
test rcx, rcx
jne 0x1402f6db7
call qword [0x140488e98]
mov ecx, eax
call fcn.1402f7430
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1402e9f20
call fcn.1402f6fb0
jmp 0x1402f6f8b
lea r8, [0x140488e34]
lea rdx, [0x140488e30]
call qword [0x140488ea0]
test eax, eax
jne 0x1402f6dfa
call qword [0x140488e98]
mov ecx, eax
call fcn.1402f7430
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1402e9f20
call fcn.1402f6fb0
jmp 0x1402f6f8b
mov rcx, qword [0x140488e28]
mov edx, 0x3055
call qword [0x140488ef0]
test rax, rax
je 0x1402f6e29
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1402ebc20
test eax, eax
mov eax, 1
jne 0x1402f6e2b
mov eax, ebx
mov rcx, qword [0x140488e28]
mov edx, 0x3055
mov dword [0x140488e3c], eax
call qword [0x140488ef0]
test rax, rax
je 0x1402f6e60
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1402ebc20
test eax, eax
mov eax, 1
jne 0x1402f6e62
mov eax, ebx
mov rcx, qword [0x140488e28]
mov edx, 0x3055
mov dword [0x140488e40], eax
call qword [0x140488ef0]
test rax, rax
je 0x1402f6e97
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1402ebc20
test eax, eax
mov eax, 1
jne 0x1402f6e99
mov eax, ebx
mov rcx, qword [0x140488e28]
mov edx, 0x3055
mov dword [0x140488e44], eax
call qword [0x140488ef0]
test rax, rax
je 0x1402f6ece
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1402ebc20
test eax, eax
mov eax, 1
jne 0x1402f6ed0
mov eax, ebx
mov rcx, qword [0x140488e28]
mov edx, 0x3055
mov dword [0x140488e48], eax
call qword [0x140488ef0]
test rax, rax
je 0x1402f6f05
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1402ebc20
test eax, eax
mov eax, 1
jne 0x1402f6f07
mov eax, ebx
mov rcx, qword [0x140488e28]
mov edx, 0x3055
mov dword [0x140488e4c], eax
call qword [0x140488ef0]
test rax, rax
je 0x1402f6f3c
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1402ebc20
test eax, eax
je 0x1402f6f3c
mov ebx, 1
mov dword [0x140488e60], ebx
mov eax, 1
jmp 0x1402f6f8d
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1402e9f20
mov rcx, qword [0x140488e28]
test rcx, rcx
je 0x1402f6f73
call qword [0x140488ea8]
mov qword [0x140488e28], rbx
mov rcx, qword [0x140488e78]
test rcx, rcx
je 0x1402f6f8b
call fcn.1402f8320
mov qword [0x140488e78], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14034fc10
add rsp, 0x50
pop rbx
ret