Function at 0x14008fa20
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
lea rax, str.libEGL.dll
cmp qword [0x14016dd18], rdi
lea rcx, str.EGL.dll
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
je 0x14008fa5c
lea eax, [rdi + 1]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x58], rbx
mov rbx, rdi
mov qword [rsp + 0x60], rsi
mov esi, edi
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14016dd18], rax
mov rcx, rax
test rax, rax
jne 0x14008fa97
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
inc esi
test rax, rax
jne 0x14008fa70
test rcx, rcx
jne 0x14008fabf
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140084890
mov rbx, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
movsxd rcx, esi
lea rdx, [0x1401319b0]
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, edi
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x14016dcd8], ecx
mov rcx, qword [0x14016dd18]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglGetConfigs
mov qword [0x14016dd20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglGetDisplay
mov qword [0x14016dd28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglGetError
mov qword [0x14016dd30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglInitialize
mov qword [0x14016dd38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglTerminate
mov qword [0x14016dd40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglBindAPI
mov qword [0x14016dd48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglCreateContext
mov qword [0x14016dd50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglDestroySurface
mov qword [0x14016dd58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglDestroyContext
mov qword [0x14016dd60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglCreateWindowSurface
mov qword [0x14016dd68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglMakeCurrent
mov qword [0x14016dd70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglSwapBuffers
mov qword [0x14016dd78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglSwapInterval
mov qword [0x14016dd80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglQueryString
mov qword [0x14016dd88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14016dd18]
lea rdx, str.eglGetProcAddress
mov qword [0x14016dd90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14016dd20], rdi
mov rcx, rax
mov qword [0x14016dd98], rax
je 0x140090080
cmp qword [0x14016dd28], rdi
je 0x140090080
cmp qword [0x14016dd30], rdi
je 0x140090080
cmp qword [0x14016dd38], rdi
je 0x140090080
cmp qword [0x14016dd40], rdi
je 0x140090080
cmp qword [0x14016dd48], rdi
je 0x140090080
cmp qword [0x14016dd50], rdi
je 0x140090080
cmp qword [0x14016dd58], rdi
je 0x140090080
cmp qword [0x14016dd60], rdi
je 0x140090080
cmp qword [0x14016dd68], rdi
je 0x140090080
cmp qword [0x14016dd70], rdi
je 0x140090080
cmp qword [0x14016dd78], rdi
je 0x140090080
cmp qword [0x14016dd80], rdi
je 0x140090080
cmp qword [0x14016dd88], rdi
je 0x140090080
mov rax, qword [0x14016dd90]
test rax, rax
je 0x140090080
test rcx, rcx
je 0x140090080
mov edx, 0x3055
xor ecx, ecx
call rax
mov rbx, rax
test rax, rax
je 0x14008fd93
call qword [0x14016dd38]
cmp eax, 0x3000
jne 0x14008fd93
mov dword [0x14016dcf0], 1
jmp 0x14008fd9f
cmp dword [0x14016dcf0], edi
je 0x14008fe47
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_base
call fcn.140088220
mov rdx, rbx
mov dword [0x14016dcf4], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140088220
mov rdx, rbx
mov dword [0x14016dcf8], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140088220
mov rdx, rbx
mov dword [0x14016dcfc], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140088220
mov rdx, rbx
mov dword [0x14016dd00], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140088220
mov rdx, rbx
mov dword [0x14016dd04], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140088220
mov rdx, rbx
mov dword [0x14016dd08], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140088220
mov rdx, rbx
mov dword [0x14016dd0c], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140088220
mov dword [0x14016dd10], eax
cmp dword [0x14016dcf4], edi
je 0x14008fe77
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x14016dd98]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x14016dda0], rax
call qword [0x14016dd98]
mov qword [0x14016dda8], rax
lea rcx, [rsp + 0x50]
call fcn.14008b6e0
mov dword [0x14016dcc0], eax
test eax, eax
je 0x14008fea6
call fcn.14008b6c0
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x14016dcc0]
call qword [0x14016dda0]
jmp 0x14008feb4
call fcn.14008b6c0
mov rcx, rax
call qword [0x14016dd30]
mov rcx, qword [rsp + 0x50]
mov qword [0x14016dcc8], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x14016dcc8]
test rcx, rcx
jne 0x14008ff0a
call qword [0x14016dd38]
mov ecx, eax
call fcn.140090500
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140084890
call fcn.1400900e0
mov rbx, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea r8, [0x14016dcd4]
lea rdx, [0x14016dcd0]
call qword [0x14016dd40]
test eax, eax
jne 0x14008ff5a
call qword [0x14016dd38]
mov ecx, eax
call fcn.140090500
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140084890
call fcn.1400900e0
mov rbx, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [0x14016dcc8]
mov edx, 0x3055
call qword [0x14016dd90]
test rax, rax
je 0x14008ff89
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140088220
test eax, eax
mov eax, 1
jne 0x14008ff8b
mov eax, edi
mov rcx, qword [0x14016dcc8]
mov edx, 0x3055
mov dword [0x14016dcdc], eax
call qword [0x14016dd90]
test rax, rax
je 0x14008ffc0
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140088220
test eax, eax
mov eax, 1
jne 0x14008ffc2
mov eax, edi
mov rcx, qword [0x14016dcc8]
mov edx, 0x3055
mov dword [0x14016dce0], eax
call qword [0x14016dd90]
test rax, rax
je 0x14008fff7
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140088220
test eax, eax
mov eax, 1
jne 0x14008fff9
mov eax, edi
mov rcx, qword [0x14016dcc8]
mov edx, 0x3055
mov dword [0x14016dce4], eax
call qword [0x14016dd90]
test rax, rax
je 0x14009002e
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140088220
test eax, eax
mov eax, 1
jne 0x140090030
mov eax, edi
mov rcx, qword [0x14016dcc8]
mov edx, 0x3055
mov dword [0x14016dce8], eax
call qword [0x14016dd90]
test rax, rax
je 0x140090065
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140088220
test eax, eax
je 0x140090065
mov edi, 1
mov rbx, qword [rsp + 0x58]
mov eax, 1
mov rsi, qword [rsp + 0x60]
mov dword [0x14016dcec], edi
add rsp, 0x40
pop rdi
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140084890
mov rcx, qword [0x14016dcc8]
test rcx, rcx
je 0x1400900aa
call qword [0x14016dd48]
mov qword [0x14016dcc8], rdi
mov rcx, qword [0x14016dd18]
test rcx, rcx
je 0x1400900c3
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14016dd18], rdi
mov rbx, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret