Function at 0x1401e1f10
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1403452b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1403540b0], 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 0x1401e1f68
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140246bf0
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 [0x1403540b0], rax
test rax, rax
jne 0x1401e1fb0
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1401e1f77
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1401d6bc0
jmp 0x1401e25b4
movsxd rcx, esi
lea rdx, [0x140292d20]
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 [0x140354070], ecx
mov rcx, qword [0x1403540b0]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglGetConfigs
mov qword [0x1403540b8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglGetDisplay
mov qword [0x1403540c0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglGetError
mov qword [0x1403540c8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglInitialize
mov qword [0x1403540d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglTerminate
mov qword [0x1403540d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglBindAPI
mov qword [0x1403540e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglCreateContext
mov qword [0x1403540e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglDestroySurface
mov qword [0x1403540f0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglDestroyContext
mov qword [0x1403540f8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglCreateWindowSurface
mov qword [0x140354100], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglMakeCurrent
mov qword [0x140354108], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglSwapBuffers
mov qword [0x140354110], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglSwapInterval
mov qword [0x140354118], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglQueryString
mov qword [0x140354120], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403540b0]
lea rdx, str.eglGetProcAddress
mov qword [0x140354128], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1403540b8], rbx
mov rcx, rax
mov qword [0x140354130], rax
je 0x1401e2572
cmp qword [0x1403540c0], rbx
je 0x1401e2572
cmp qword [0x1403540c8], rbx
je 0x1401e2572
cmp qword [0x1403540d0], rbx
je 0x1401e2572
cmp qword [0x1403540d8], rbx
je 0x1401e2572
cmp qword [0x1403540e0], rbx
je 0x1401e2572
cmp qword [0x1403540e8], rbx
je 0x1401e2572
cmp qword [0x1403540f0], rbx
je 0x1401e2572
cmp qword [0x1403540f8], rbx
je 0x1401e2572
cmp qword [0x140354100], rbx
je 0x1401e2572
cmp qword [0x140354108], rbx
je 0x1401e2572
cmp qword [0x140354110], rbx
je 0x1401e2572
cmp qword [0x140354118], rbx
je 0x1401e2572
cmp qword [0x140354120], rbx
je 0x1401e2572
mov rax, qword [0x140354128]
test rax, rax
je 0x1401e2572
test rcx, rcx
je 0x1401e2572
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1401e2274
call qword [0x1403540d0]
cmp eax, 0x3000
jne 0x1401e2274
mov dword [0x140354088], 1
jmp 0x1401e2280
cmp dword [0x140354088], ebx
je 0x1401e2328
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1401d5a60
mov rdx, rdi
mov dword [0x14035408c], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1401d5a60
mov rdx, rdi
mov dword [0x140354090], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1401d5a60
mov rdx, rdi
mov dword [0x140354094], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1401d5a60
mov rdx, rdi
mov dword [0x14035409c], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1401d5a60
mov rdx, rdi
mov dword [0x1403540a0], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1401d5a60
mov rdx, rdi
mov dword [0x1403540a4], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1401d5a60
mov rdx, rdi
mov dword [0x1403540a8], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1401d5a60
mov dword [0x1403540ac], eax
cmp dword [0x14035408c], ebx
je 0x1401e2358
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x140354130]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x140354138], rax
call qword [0x140354130]
mov qword [0x140354140], rax
lea rcx, [rsp + 0x20]
call qword [0x140352898]
mov dword [0x140354058], eax
test eax, eax
je 0x1401e2389
call qword [0x1403528a0]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x140354058]
call qword [0x140354138]
jmp 0x1401e2398
call qword [0x1403528a0]
mov rcx, rax
call qword [0x1403540c8]
mov rcx, qword [rsp + 0x20]
mov qword [0x140354060], rax
call fcn.1401d70c0
mov rcx, qword [0x140354060]
test rcx, rcx
jne 0x1401e23e0
call qword [0x1403540d0]
mov ecx, eax
call fcn.1401e2a60
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1401d6bc0
call fcn.1401e25e0
jmp 0x1401e25b4
lea r8, [0x14035406c]
lea rdx, [0x140354068]
call qword [0x1403540d8]
test eax, eax
jne 0x1401e2423
call qword [0x1403540d0]
mov ecx, eax
call fcn.1401e2a60
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1401d6bc0
call fcn.1401e25e0
jmp 0x1401e25b4
mov rcx, qword [0x140354060]
mov edx, 0x3055
call qword [0x140354128]
test rax, rax
je 0x1401e2452
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1401d5a60
test eax, eax
mov eax, 1
jne 0x1401e2454
mov eax, ebx
mov rcx, qword [0x140354060]
mov edx, 0x3055
mov dword [0x140354074], eax
call qword [0x140354128]
test rax, rax
je 0x1401e2489
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1401d5a60
test eax, eax
mov eax, 1
jne 0x1401e248b
mov eax, ebx
mov rcx, qword [0x140354060]
mov edx, 0x3055
mov dword [0x140354078], eax
call qword [0x140354128]
test rax, rax
je 0x1401e24c0
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1401d5a60
test eax, eax
mov eax, 1
jne 0x1401e24c2
mov eax, ebx
mov rcx, qword [0x140354060]
mov edx, 0x3055
mov dword [0x14035407c], eax
call qword [0x140354128]
test rax, rax
je 0x1401e24f7
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1401d5a60
test eax, eax
mov eax, 1
jne 0x1401e24f9
mov eax, ebx
mov rcx, qword [0x140354060]
mov edx, 0x3055
mov dword [0x140354080], eax
call qword [0x140354128]
test rax, rax
je 0x1401e252e
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1401d5a60
test eax, eax
mov eax, 1
jne 0x1401e2530
mov eax, ebx
mov rcx, qword [0x140354060]
mov edx, 0x3055
mov dword [0x140354084], eax
call qword [0x140354128]
test rax, rax
je 0x1401e2565
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1401d5a60
test eax, eax
je 0x1401e2565
mov ebx, 1
mov dword [0x140354098], ebx
mov eax, 1
jmp 0x1401e25b6
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401d6bc0
mov rcx, qword [0x140354060]
test rcx, rcx
je 0x1401e259c
call qword [0x1403540e0]
mov qword [0x140354060], rbx
mov rcx, qword [0x1403540b0]
test rcx, rcx
je 0x1401e25b4
call fcn.1401e3940
mov qword [0x1403540b0], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140246bf0
add rsp, 0x50
pop rbx
ret