Function at 0x140214dd0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1405d52b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1405e4250], 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 0x140214e28
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14027a820
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 [0x1405e4250], rax
test rax, rax
jne 0x140214e70
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x140214e37
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140209a80
jmp 0x140215474
movsxd rcx, esi
lea rdx, [0x1402c5e60]
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 [0x1405e4210], ecx
mov rcx, qword [0x1405e4250]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglGetConfigs
mov qword [0x1405e4258], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglGetDisplay
mov qword [0x1405e4260], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglGetError
mov qword [0x1405e4268], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglInitialize
mov qword [0x1405e4270], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglTerminate
mov qword [0x1405e4278], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglBindAPI
mov qword [0x1405e4280], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglCreateContext
mov qword [0x1405e4288], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglDestroySurface
mov qword [0x1405e4290], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglDestroyContext
mov qword [0x1405e4298], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1405e42a0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglMakeCurrent
mov qword [0x1405e42a8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglSwapBuffers
mov qword [0x1405e42b0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglSwapInterval
mov qword [0x1405e42b8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglQueryString
mov qword [0x1405e42c0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405e4250]
lea rdx, str.eglGetProcAddress
mov qword [0x1405e42c8], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1405e4258], rbx
mov rcx, rax
mov qword [0x1405e42d0], rax
je 0x140215432
cmp qword [0x1405e4260], rbx
je 0x140215432
cmp qword [0x1405e4268], rbx
je 0x140215432
cmp qword [0x1405e4270], rbx
je 0x140215432
cmp qword [0x1405e4278], rbx
je 0x140215432
cmp qword [0x1405e4280], rbx
je 0x140215432
cmp qword [0x1405e4288], rbx
je 0x140215432
cmp qword [0x1405e4290], rbx
je 0x140215432
cmp qword [0x1405e4298], rbx
je 0x140215432
cmp qword [0x1405e42a0], rbx
je 0x140215432
cmp qword [0x1405e42a8], rbx
je 0x140215432
cmp qword [0x1405e42b0], rbx
je 0x140215432
cmp qword [0x1405e42b8], rbx
je 0x140215432
cmp qword [0x1405e42c0], rbx
je 0x140215432
mov rax, qword [0x1405e42c8]
test rax, rax
je 0x140215432
test rcx, rcx
je 0x140215432
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x140215134
call qword [0x1405e4270]
cmp eax, 0x3000
jne 0x140215134
mov dword [0x1405e4228], 1
jmp 0x140215140
cmp dword [0x1405e4228], ebx
je 0x1402151e8
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.140208920
mov rdx, rdi
mov dword [0x1405e422c], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140208920
mov rdx, rdi
mov dword [0x1405e4230], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140208920
mov rdx, rdi
mov dword [0x1405e4234], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140208920
mov rdx, rdi
mov dword [0x1405e423c], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140208920
mov rdx, rdi
mov dword [0x1405e4240], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140208920
mov rdx, rdi
mov dword [0x1405e4244], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140208920
mov rdx, rdi
mov dword [0x1405e4248], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140208920
mov dword [0x1405e424c], eax
cmp dword [0x1405e422c], ebx
je 0x140215218
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1405e42d0]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1405e42d8], rax
call qword [0x1405e42d0]
mov qword [0x1405e42e0], rax
lea rcx, [rsp + 0x20]
call qword [0x1405e2a38]
mov dword [0x1405e41f8], eax
test eax, eax
je 0x140215249
call qword [0x1405e2a40]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1405e41f8]
call qword [0x1405e42d8]
jmp 0x140215258
call qword [0x1405e2a40]
mov rcx, rax
call qword [0x1405e4268]
mov rcx, qword [rsp + 0x20]
mov qword [0x1405e4200], rax
call fcn.140209f80
mov rcx, qword [0x1405e4200]
test rcx, rcx
jne 0x1402152a0
call qword [0x1405e4270]
mov ecx, eax
call fcn.140215920
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140209a80
call fcn.1402154a0
jmp 0x140215474
lea r8, [0x1405e420c]
lea rdx, [0x1405e4208]
call qword [0x1405e4278]
test eax, eax
jne 0x1402152e3
call qword [0x1405e4270]
mov ecx, eax
call fcn.140215920
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140209a80
call fcn.1402154a0
jmp 0x140215474
mov rcx, qword [0x1405e4200]
mov edx, 0x3055
call qword [0x1405e42c8]
test rax, rax
je 0x140215312
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140208920
test eax, eax
mov eax, 1
jne 0x140215314
mov eax, ebx
mov rcx, qword [0x1405e4200]
mov edx, 0x3055
mov dword [0x1405e4214], eax
call qword [0x1405e42c8]
test rax, rax
je 0x140215349
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140208920
test eax, eax
mov eax, 1
jne 0x14021534b
mov eax, ebx
mov rcx, qword [0x1405e4200]
mov edx, 0x3055
mov dword [0x1405e4218], eax
call qword [0x1405e42c8]
test rax, rax
je 0x140215380
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140208920
test eax, eax
mov eax, 1
jne 0x140215382
mov eax, ebx
mov rcx, qword [0x1405e4200]
mov edx, 0x3055
mov dword [0x1405e421c], eax
call qword [0x1405e42c8]
test rax, rax
je 0x1402153b7
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140208920
test eax, eax
mov eax, 1
jne 0x1402153b9
mov eax, ebx
mov rcx, qword [0x1405e4200]
mov edx, 0x3055
mov dword [0x1405e4220], eax
call qword [0x1405e42c8]
test rax, rax
je 0x1402153ee
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140208920
test eax, eax
mov eax, 1
jne 0x1402153f0
mov eax, ebx
mov rcx, qword [0x1405e4200]
mov edx, 0x3055
mov dword [0x1405e4224], eax
call qword [0x1405e42c8]
test rax, rax
je 0x140215425
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140208920
test eax, eax
je 0x140215425
mov ebx, 1
mov dword [0x1405e4238], ebx
mov eax, 1
jmp 0x140215476
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140209a80
mov rcx, qword [0x1405e4200]
test rcx, rcx
je 0x14021545c
call qword [0x1405e4280]
mov qword [0x1405e4200], rbx
mov rcx, qword [0x1405e4250]
test rcx, rcx
je 0x140215474
call fcn.140216800
mov qword [0x1405e4250], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14027a820
add rsp, 0x50
pop rbx
ret