Function at 0x1401f1430
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1404e42b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1404f3120], 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 0x1401f1488
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140256ee0
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 [0x1404f3120], rax
test rax, rax
jne 0x1401f14d0
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1401f1497
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1401e60e0
jmp 0x1401f1ad4
movsxd rcx, esi
lea rdx, [0x1402a1e40]
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 [0x1404f30e0], ecx
mov rcx, qword [0x1404f3120]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglGetConfigs
mov qword [0x1404f3128], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglGetDisplay
mov qword [0x1404f3130], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglGetError
mov qword [0x1404f3138], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglInitialize
mov qword [0x1404f3140], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglTerminate
mov qword [0x1404f3148], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglBindAPI
mov qword [0x1404f3150], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglCreateContext
mov qword [0x1404f3158], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglDestroySurface
mov qword [0x1404f3160], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglDestroyContext
mov qword [0x1404f3168], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1404f3170], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglMakeCurrent
mov qword [0x1404f3178], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglSwapBuffers
mov qword [0x1404f3180], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglSwapInterval
mov qword [0x1404f3188], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglQueryString
mov qword [0x1404f3190], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1404f3120]
lea rdx, str.eglGetProcAddress
mov qword [0x1404f3198], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1404f3128], rbx
mov rcx, rax
mov qword [0x1404f31a0], rax
je 0x1401f1a92
cmp qword [0x1404f3130], rbx
je 0x1401f1a92
cmp qword [0x1404f3138], rbx
je 0x1401f1a92
cmp qword [0x1404f3140], rbx
je 0x1401f1a92
cmp qword [0x1404f3148], rbx
je 0x1401f1a92
cmp qword [0x1404f3150], rbx
je 0x1401f1a92
cmp qword [0x1404f3158], rbx
je 0x1401f1a92
cmp qword [0x1404f3160], rbx
je 0x1401f1a92
cmp qword [0x1404f3168], rbx
je 0x1401f1a92
cmp qword [0x1404f3170], rbx
je 0x1401f1a92
cmp qword [0x1404f3178], rbx
je 0x1401f1a92
cmp qword [0x1404f3180], rbx
je 0x1401f1a92
cmp qword [0x1404f3188], rbx
je 0x1401f1a92
cmp qword [0x1404f3190], rbx
je 0x1401f1a92
mov rax, qword [0x1404f3198]
test rax, rax
je 0x1401f1a92
test rcx, rcx
je 0x1401f1a92
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1401f1794
call qword [0x1404f3140]
cmp eax, 0x3000
jne 0x1401f1794
mov dword [0x1404f30f8], 1
jmp 0x1401f17a0
cmp dword [0x1404f30f8], ebx
je 0x1401f1848
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1401e4f80
mov rdx, rdi
mov dword [0x1404f30fc], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1401e4f80
mov rdx, rdi
mov dword [0x1404f3100], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1401e4f80
mov rdx, rdi
mov dword [0x1404f3104], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1401e4f80
mov rdx, rdi
mov dword [0x1404f310c], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1401e4f80
mov rdx, rdi
mov dword [0x1404f3110], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1401e4f80
mov rdx, rdi
mov dword [0x1404f3114], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1401e4f80
mov rdx, rdi
mov dword [0x1404f3118], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1401e4f80
mov dword [0x1404f311c], eax
cmp dword [0x1404f30fc], ebx
je 0x1401f1878
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1404f31a0]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1404f31a8], rax
call qword [0x1404f31a0]
mov qword [0x1404f31b0], rax
lea rcx, [rsp + 0x20]
call qword [0x1404f1908]
mov dword [0x1404f30c8], eax
test eax, eax
je 0x1401f18a9
call qword [0x1404f1910]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1404f30c8]
call qword [0x1404f31a8]
jmp 0x1401f18b8
call qword [0x1404f1910]
mov rcx, rax
call qword [0x1404f3138]
mov rcx, qword [rsp + 0x20]
mov qword [0x1404f30d0], rax
call fcn.1401e65e0
mov rcx, qword [0x1404f30d0]
test rcx, rcx
jne 0x1401f1900
call qword [0x1404f3140]
mov ecx, eax
call fcn.1401f1f80
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1401e60e0
call fcn.1401f1b00
jmp 0x1401f1ad4
lea r8, [0x1404f30dc]
lea rdx, [0x1404f30d8]
call qword [0x1404f3148]
test eax, eax
jne 0x1401f1943
call qword [0x1404f3140]
mov ecx, eax
call fcn.1401f1f80
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1401e60e0
call fcn.1401f1b00
jmp 0x1401f1ad4
mov rcx, qword [0x1404f30d0]
mov edx, 0x3055
call qword [0x1404f3198]
test rax, rax
je 0x1401f1972
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1401e4f80
test eax, eax
mov eax, 1
jne 0x1401f1974
mov eax, ebx
mov rcx, qword [0x1404f30d0]
mov edx, 0x3055
mov dword [0x1404f30e4], eax
call qword [0x1404f3198]
test rax, rax
je 0x1401f19a9
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1401e4f80
test eax, eax
mov eax, 1
jne 0x1401f19ab
mov eax, ebx
mov rcx, qword [0x1404f30d0]
mov edx, 0x3055
mov dword [0x1404f30e8], eax
call qword [0x1404f3198]
test rax, rax
je 0x1401f19e0
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1401e4f80
test eax, eax
mov eax, 1
jne 0x1401f19e2
mov eax, ebx
mov rcx, qword [0x1404f30d0]
mov edx, 0x3055
mov dword [0x1404f30ec], eax
call qword [0x1404f3198]
test rax, rax
je 0x1401f1a17
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1401e4f80
test eax, eax
mov eax, 1
jne 0x1401f1a19
mov eax, ebx
mov rcx, qword [0x1404f30d0]
mov edx, 0x3055
mov dword [0x1404f30f0], eax
call qword [0x1404f3198]
test rax, rax
je 0x1401f1a4e
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1401e4f80
test eax, eax
mov eax, 1
jne 0x1401f1a50
mov eax, ebx
mov rcx, qword [0x1404f30d0]
mov edx, 0x3055
mov dword [0x1404f30f4], eax
call qword [0x1404f3198]
test rax, rax
je 0x1401f1a85
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1401e4f80
test eax, eax
je 0x1401f1a85
mov ebx, 1
mov dword [0x1404f3108], ebx
mov eax, 1
jmp 0x1401f1ad6
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401e60e0
mov rcx, qword [0x1404f30d0]
test rcx, rcx
je 0x1401f1abc
call qword [0x1404f3150]
mov qword [0x1404f30d0], rbx
mov rcx, qword [0x1404f3120]
test rcx, rcx
je 0x1401f1ad4
call fcn.1401f2e60
mov qword [0x1404f3120], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140256ee0
add rsp, 0x50
pop rbx
ret