Function at 0x1400f50e0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x140197f48], rbx
lea rcx, str.EGL.dll
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rbx
je 0x1400f511c
lea eax, [rbx + 1]
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x58], rsi
mov esi, ebx
mov qword [rsp + 0x60], rdi
mov rdi, rbx
nop dword [rax + rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140197f48], rax
mov rcx, rax
test rax, rax
jne 0x1400f5156
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x1400f5130
test rcx, rcx
jne 0x1400f517e
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1400ce7f0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x140122b1c]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x20]
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 [0x140197f08], ecx
mov rcx, qword [0x140197f48]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglGetConfigs
mov qword [0x140197f50], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglGetDisplay
mov qword [0x140197f58], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglGetError
mov qword [0x140197f60], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglInitialize
mov qword [0x140197f68], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglTerminate
mov qword [0x140197f70], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglBindAPI
mov qword [0x140197f78], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglCreateContext
mov qword [0x140197f80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglDestroySurface
mov qword [0x140197f88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglDestroyContext
mov qword [0x140197f90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglCreateWindowSurface
mov qword [0x140197f98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglMakeCurrent
mov qword [0x140197fa0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglSwapBuffers
mov qword [0x140197fa8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglSwapInterval
mov qword [0x140197fb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglQueryString
mov qword [0x140197fb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140197f48]
lea rdx, str.eglGetProcAddress
mov qword [0x140197fc0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140197f50], rbx
mov rcx, rax
mov qword [0x140197fc8], rax
je 0x1400f5768
cmp qword [0x140197f58], rbx
je 0x1400f5768
cmp qword [0x140197f60], rbx
je 0x1400f5768
cmp qword [0x140197f68], rbx
je 0x1400f5768
cmp qword [0x140197f70], rbx
je 0x1400f5768
cmp qword [0x140197f78], rbx
je 0x1400f5768
cmp qword [0x140197f80], rbx
je 0x1400f5768
cmp qword [0x140197f88], rbx
je 0x1400f5768
cmp qword [0x140197f90], rbx
je 0x1400f5768
cmp qword [0x140197f98], rbx
je 0x1400f5768
cmp qword [0x140197fa0], rbx
je 0x1400f5768
cmp qword [0x140197fa8], rbx
je 0x1400f5768
cmp qword [0x140197fb0], rbx
je 0x1400f5768
cmp qword [0x140197fb8], rbx
je 0x1400f5768
mov rax, qword [0x140197fc0]
test rax, rax
je 0x1400f5768
test rcx, rcx
je 0x1400f5768
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1400f5442
call qword [0x140197f68]
cmp eax, 0x3000
jne 0x1400f5442
mov dword [0x140197f20], 1
jmp 0x1400f544e
cmp dword [0x140197f20], ebx
je 0x1400f54f6
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1400d3980
mov rdx, rdi
mov dword [0x140197f24], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400d3980
mov rdx, rdi
mov dword [0x140197f28], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400d3980
mov rdx, rdi
mov dword [0x140197f2c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400d3980
mov rdx, rdi
mov dword [0x140197f34], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400d3980
mov rdx, rdi
mov dword [0x140197f38], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400d3980
mov rdx, rdi
mov dword [0x140197f3c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400d3980
mov rdx, rdi
mov dword [0x140197f40], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400d3980
mov dword [0x140197f44], eax
cmp dword [0x140197f24], ebx
je 0x1400f5526
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x140197fc8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x140197fd0], rax
call qword [0x140197fc8]
mov qword [0x140197fd8], rax
lea rcx, [rsp + 0x50]
call qword [0x140196738]
mov dword [0x140197ef0], eax
test eax, eax
je 0x1400f5557
call qword [0x140196740]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x140197ef0]
call qword [0x140197fd0]
jmp 0x1400f5566
call qword [0x140196740]
mov rcx, rax
call qword [0x140197f60]
mov rcx, qword [rsp + 0x50]
mov qword [0x140197ef8], rax
call fcn.1400cee50
mov rcx, qword [0x140197ef8]
test rcx, rcx
jne 0x1400f55bb
call qword [0x140197f68]
mov ecx, eax
call fcn.1400f5d40
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1400ce7f0
call fcn.1400f57c0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x140197f04]
lea rdx, [0x140197f00]
call qword [0x140197f70]
test eax, eax
jne 0x1400f560b
call qword [0x140197f68]
mov ecx, eax
call fcn.1400f5d40
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1400ce7f0
call fcn.1400f57c0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x140197ef8]
mov edx, 0x3055
call qword [0x140197fc0]
test rax, rax
je 0x1400f563a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1400d3980
test eax, eax
mov eax, 1
jne 0x1400f563c
mov eax, ebx
mov rcx, qword [0x140197ef8]
mov edx, 0x3055
mov dword [0x140197f0c], eax
call qword [0x140197fc0]
test rax, rax
je 0x1400f5671
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400d3980
test eax, eax
mov eax, 1
jne 0x1400f5673
mov eax, ebx
mov rcx, qword [0x140197ef8]
mov edx, 0x3055
mov dword [0x140197f10], eax
call qword [0x140197fc0]
test rax, rax
je 0x1400f56a8
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400d3980
test eax, eax
mov eax, 1
jne 0x1400f56aa
mov eax, ebx
mov rcx, qword [0x140197ef8]
mov edx, 0x3055
mov dword [0x140197f14], eax
call qword [0x140197fc0]
test rax, rax
je 0x1400f56df
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400d3980
test eax, eax
mov eax, 1
jne 0x1400f56e1
mov eax, ebx
mov rcx, qword [0x140197ef8]
mov edx, 0x3055
mov dword [0x140197f18], eax
call qword [0x140197fc0]
test rax, rax
je 0x1400f5716
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400d3980
test eax, eax
mov eax, 1
jne 0x1400f5718
mov eax, ebx
mov rcx, qword [0x140197ef8]
mov edx, 0x3055
mov dword [0x140197f1c], eax
call qword [0x140197fc0]
test rax, rax
je 0x1400f574d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1400d3980
test eax, eax
je 0x1400f574d
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x140197f30], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400ce7f0
mov rcx, qword [0x140197ef8]
test rcx, rcx
je 0x1400f5792
call qword [0x140197f78]
mov qword [0x140197ef8], rbx
mov rcx, qword [0x140197f48]
test rcx, rcx
je 0x1400f57aa
call fcn.1400f7710
mov qword [0x140197f48], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret