Function at 0x140194244
Capabilities:
Link many functions at runtime

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
xor esi, esi
lea rax, str.libEGL.dll
cmp qword [0x14020fb68], rsi
lea rcx, str.EGL.dll
mov qword [r11 + 8], rsi
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rcx
mov qword [r11 - 0x18], rsi
je 0x140194287
mov eax, 1
jmp 0x1401947b2
mov edi, esi
mov rbx, rsi
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x14020fb68], rax
mov rcx, rax
test rax, rax
jne 0x1401942b2
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
inc edi
test rax, rax
jne 0x14019428c
test rcx, rcx
jne 0x1401942cd
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140188fbc
jmp 0x1401947b0
movsxd rcx, edi
lea rdx, [0x1401e5024]
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, esi
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x14020fb28], ecx
mov rcx, qword [0x14020fb68]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglGetConfigs
mov qword [0x14020fb70], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglGetDisplay
mov qword [0x14020fb78], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglGetError
mov qword [0x14020fb80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglInitialize
mov qword [0x14020fb88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglTerminate
mov qword [0x14020fb90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglBindAPI
mov qword [0x14020fb98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglCreateContext
mov qword [0x14020fba0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglDestroySurface
mov qword [0x14020fba8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglDestroyContext
mov qword [0x14020fbb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglCreateWindowSurface
mov qword [0x14020fbb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglMakeCurrent
mov qword [0x14020fbc0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglSwapBuffers
mov qword [0x14020fbc8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglSwapInterval
mov qword [0x14020fbd0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglQueryString
mov qword [0x14020fbd8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14020fb68]
lea rdx, str.eglGetProcAddress
mov qword [0x14020fbe0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x14020fb70], rsi
mov rcx, rax
mov qword [0x14020fbe8], rax
je 0x14019479a
cmp qword [0x14020fb78], rsi
je 0x14019479a
cmp qword [0x14020fb80], rsi
je 0x14019479a
cmp qword [0x14020fb88], rsi
je 0x14019479a
cmp qword [0x14020fb90], rsi
je 0x14019479a
cmp qword [0x14020fb98], rsi
je 0x14019479a
cmp qword [0x14020fba0], rsi
je 0x14019479a
cmp qword [0x14020fba8], rsi
je 0x14019479a
cmp qword [0x14020fbb0], rsi
je 0x14019479a
cmp qword [0x14020fbb8], rsi
je 0x14019479a
cmp qword [0x14020fbc0], rsi
je 0x14019479a
cmp qword [0x14020fbc8], rsi
je 0x14019479a
cmp qword [0x14020fbd0], rsi
je 0x14019479a
cmp qword [0x14020fbd8], rsi
je 0x14019479a
mov rax, qword [0x14020fbe0]
test rax, rax
je 0x14019479a
test rcx, rcx
je 0x14019479a
mov edx, 0x3055
xor ecx, ecx
call rax
mov rbx, rax
test rax, rax
je 0x140194592
call qword [0x14020fb88]
cmp eax, 0x3000
jne 0x140194592
mov eax, 1
mov dword [0x14020fb40], eax
jmp 0x140194598
mov eax, dword [0x14020fb40]
test eax, eax
je 0x140194648
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_base
call fcn.14018acd0
mov rdx, rbx
mov dword [0x14020fb44], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.14018acd0
mov rdx, rbx
mov dword [0x14020fb48], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.14018acd0
mov rdx, rbx
mov dword [0x14020fb4c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.14018acd0
mov rdx, rbx
mov dword [0x14020fb54], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.14018acd0
mov rdx, rbx
mov dword [0x14020fb58], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.14018acd0
mov rdx, rbx
mov dword [0x14020fb5c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.14018acd0
mov rdx, rbx
mov dword [0x14020fb60], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.14018acd0
mov dword [0x14020fb64], eax
cmp dword [0x14020fb44], esi
je 0x140194678
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x14020fbe8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x14020fbf0], rax
call qword [0x14020fbe8]
mov qword [0x14020fbf8], rax
lea rcx, [rsp + 0x50]
call qword [0x14020e358]
mov dword [0x14020fb10], eax
test eax, eax
je 0x1401946a9
call qword [0x14020e360]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x14020fb10]
call qword [0x14020fbf0]
jmp 0x1401946b8
call qword [0x14020e360]
mov rcx, rax
call qword [0x14020fb80]
mov rcx, qword [rsp + 0x50]
mov qword [0x14020fb18], rax
call fcn.140189268
mov rcx, qword [0x14020fb18]
test rcx, rcx
jne 0x1401946fb
call qword [0x14020fb88]
mov ecx, eax
call fcn.140194b8c
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov r8, rax
mov ecx, 0x10006
call fcn.140188fbc
jmp 0x1401947ab
lea r8, [0x14020fb24]
lea rdx, [0x14020fb20]
call qword [0x14020fb90]
test eax, eax
jne 0x140194729
call qword [0x14020fb88]
mov ecx, eax
call fcn.140194b8c
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x1401946e9
lea rcx, str.EGL_KHR_create_context
call fcn.140194b20
lea rcx, str.EGL_KHR_create_context_no_error
mov dword [0x14020fb2c], eax
call fcn.140194b20
lea rcx, str.EGL_KHR_gl_colorspace
mov dword [0x14020fb30], eax
call fcn.140194b20
lea rcx, str.EGL_KHR_get_all_proc_addresses
mov dword [0x14020fb34], eax
call fcn.140194b20
lea rcx, str.EGL_KHR_context_flush_control
mov dword [0x14020fb38], eax
call fcn.140194b20
lea rcx, str.EGL_EXT_present_opaque
mov dword [0x14020fb3c], eax
call fcn.140194b20
mov dword [0x14020fb50], eax
jmp 0x14019427d
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140188fbc
call fcn.1401947c4
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret