Function at 0x1402e7c70
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14046bc18]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x140475e78], 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 0x1402e7cc8
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140340fa0
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 [0x140475e78], rax
mov rcx, rax
test rax, rax
jne 0x1402e7cfd
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1402e7cd7
test rcx, rcx
jne 0x1402e7d18
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1402db2b0
jmp 0x1402e831b
movsxd rcx, esi
lea rdx, [0x140434800]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x28]
call fcn.1403584b0
mov ecx, ebx
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x140475e38], ecx
mov rcx, qword [0x140475e78]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglGetConfigs
mov qword [0x140475e80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglGetDisplay
mov qword [0x140475e88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglGetError
mov qword [0x140475e90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglInitialize
mov qword [0x140475e98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglTerminate
mov qword [0x140475ea0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglBindAPI
mov qword [0x140475ea8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglCreateContext
mov qword [0x140475eb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglDestroySurface
mov qword [0x140475eb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglDestroyContext
mov qword [0x140475ec0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglCreateWindowSurface
mov qword [0x140475ec8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglMakeCurrent
mov qword [0x140475ed0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglSwapBuffers
mov qword [0x140475ed8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglSwapInterval
mov qword [0x140475ee0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglQueryString
mov qword [0x140475ee8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140475e78]
lea rdx, str.eglGetProcAddress
mov qword [0x140475ef0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140475e80], rbx
mov rcx, rax
mov qword [0x140475ef8], rax
je 0x1402e82d9
cmp qword [0x140475e88], rbx
je 0x1402e82d9
cmp qword [0x140475e90], rbx
je 0x1402e82d9
cmp qword [0x140475e98], rbx
je 0x1402e82d9
cmp qword [0x140475ea0], rbx
je 0x1402e82d9
cmp qword [0x140475ea8], rbx
je 0x1402e82d9
cmp qword [0x140475eb0], rbx
je 0x1402e82d9
cmp qword [0x140475eb8], rbx
je 0x1402e82d9
cmp qword [0x140475ec0], rbx
je 0x1402e82d9
cmp qword [0x140475ec8], rbx
je 0x1402e82d9
cmp qword [0x140475ed0], rbx
je 0x1402e82d9
cmp qword [0x140475ed8], rbx
je 0x1402e82d9
cmp qword [0x140475ee0], rbx
je 0x1402e82d9
cmp qword [0x140475ee8], rbx
je 0x1402e82d9
mov rax, qword [0x140475ef0]
test rax, rax
je 0x1402e82d9
test rcx, rcx
je 0x1402e82d9
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1402e7fdb
call qword [0x140475e98]
cmp eax, 0x3000
jne 0x1402e7fdb
mov dword [0x140475e50], 1
jmp 0x1402e7fe7
cmp dword [0x140475e50], ebx
je 0x1402e808f
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1402dcfb0
mov rdx, rdi
mov dword [0x140475e54], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1402dcfb0
mov rdx, rdi
mov dword [0x140475e58], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1402dcfb0
mov rdx, rdi
mov dword [0x140475e5c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1402dcfb0
mov rdx, rdi
mov dword [0x140475e64], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1402dcfb0
mov rdx, rdi
mov dword [0x140475e68], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1402dcfb0
mov rdx, rdi
mov dword [0x140475e6c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1402dcfb0
mov rdx, rdi
mov dword [0x140475e70], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1402dcfb0
mov dword [0x140475e74], eax
cmp dword [0x140475e54], ebx
je 0x1402e80bf
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x140475ef8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x140475f00], rax
call qword [0x140475ef8]
mov qword [0x140475f08], rax
lea rcx, [rsp + 0x20]
call qword [0x140474668]
mov dword [0x140475e20], eax
test eax, eax
je 0x1402e80f0
call qword [0x140474670]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x140475e20]
call qword [0x140475f00]
jmp 0x1402e80ff
call qword [0x140474670]
mov rcx, rax
call qword [0x140475e90]
mov rcx, qword [rsp + 0x20]
mov qword [0x140475e28], rax
call fcn.1402db800
mov rcx, qword [0x140475e28]
test rcx, rcx
jne 0x1402e8147
call qword [0x140475e98]
mov ecx, eax
call fcn.1402e87c0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1402db2b0
call fcn.1402e8340
jmp 0x1402e831b
lea r8, [0x140475e34]
lea rdx, [0x140475e30]
call qword [0x140475ea0]
test eax, eax
jne 0x1402e818a
call qword [0x140475e98]
mov ecx, eax
call fcn.1402e87c0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1402db2b0
call fcn.1402e8340
jmp 0x1402e831b
mov rcx, qword [0x140475e28]
mov edx, 0x3055
call qword [0x140475ef0]
test rax, rax
je 0x1402e81b9
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1402dcfb0
test eax, eax
mov eax, 1
jne 0x1402e81bb
mov eax, ebx
mov rcx, qword [0x140475e28]
mov edx, 0x3055
mov dword [0x140475e3c], eax
call qword [0x140475ef0]
test rax, rax
je 0x1402e81f0
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1402dcfb0
test eax, eax
mov eax, 1
jne 0x1402e81f2
mov eax, ebx
mov rcx, qword [0x140475e28]
mov edx, 0x3055
mov dword [0x140475e40], eax
call qword [0x140475ef0]
test rax, rax
je 0x1402e8227
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1402dcfb0
test eax, eax
mov eax, 1
jne 0x1402e8229
mov eax, ebx
mov rcx, qword [0x140475e28]
mov edx, 0x3055
mov dword [0x140475e44], eax
call qword [0x140475ef0]
test rax, rax
je 0x1402e825e
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1402dcfb0
test eax, eax
mov eax, 1
jne 0x1402e8260
mov eax, ebx
mov rcx, qword [0x140475e28]
mov edx, 0x3055
mov dword [0x140475e48], eax
call qword [0x140475ef0]
test rax, rax
je 0x1402e8295
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1402dcfb0
test eax, eax
mov eax, 1
jne 0x1402e8297
mov eax, ebx
mov rcx, qword [0x140475e28]
mov edx, 0x3055
mov dword [0x140475e4c], eax
call qword [0x140475ef0]
test rax, rax
je 0x1402e82cc
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1402dcfb0
test eax, eax
je 0x1402e82cc
mov ebx, 1
mov dword [0x140475e60], ebx
mov eax, 1
jmp 0x1402e831d
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1402db2b0
mov rcx, qword [0x140475e28]
test rcx, rcx
je 0x1402e8303
call qword [0x140475ea8]
mov qword [0x140475e28], rbx
mov rcx, qword [0x140475e78]
test rcx, rcx
je 0x1402e831b
call fcn.1402e96b0
mov qword [0x140475e78], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140340fa0
add rsp, 0x50
pop rbx
ret