Function at 0x14015ddf0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x140276680]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
lea rax, str.libEGL.dll
cmp qword [0x14029ca70], rdi
lea rcx, str.EGL.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
je 0x14015de43
lea eax, [rdi + 1]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
mov rbx, rdi
mov qword [rsp + 0x58], rsi
mov esi, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14029ca70], rax
test rax, rax
jne 0x14015de8c
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
inc esi
test rax, rax
jne 0x14015de52
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140152100
jmp 0x14015e346
movsxd rcx, esi
lea rdx, [0x14022d5c0]
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 [0x14029ca50], ecx
mov rcx, qword [0x14029ca70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglGetConfigs
mov qword [0x14029ca78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglGetDisplay
mov qword [0x14029ca80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglGetError
mov qword [0x14029ca88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglInitialize
mov qword [0x14029ca90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglTerminate
mov qword [0x14029ca98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglBindAPI
mov qword [0x14029caa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglCreateContext
mov qword [0x14029caa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglDestroySurface
mov qword [0x14029cab0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglDestroyContext
mov qword [0x14029cab8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglCreateWindowSurface
mov qword [0x14029cac0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglMakeCurrent
mov qword [0x14029cac8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglSwapBuffers
mov qword [0x14029cad0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglSwapInterval
mov qword [0x14029cad8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglQueryString
mov qword [0x14029cae0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14029ca70]
lea rdx, str.eglGetProcAddress
mov qword [0x14029cae8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14029ca78], rdi
mov qword [0x14029caf0], rax
je 0x14015e303
cmp qword [0x14029ca80], rdi
je 0x14015e303
mov rdx, qword [0x14029ca88]
test rdx, rdx
je 0x14015e303
cmp qword [0x14029ca90], rdi
je 0x14015e303
cmp qword [0x14029ca98], rdi
je 0x14015e303
cmp qword [0x14029caa0], rdi
je 0x14015e303
cmp qword [0x14029caa8], rdi
je 0x14015e303
cmp qword [0x14029cab0], rdi
je 0x14015e303
cmp qword [0x14029cab8], rdi
je 0x14015e303
cmp qword [0x14029cac0], rdi
je 0x14015e303
cmp qword [0x14029cac8], rdi
je 0x14015e303
cmp qword [0x14029cad0], rdi
je 0x14015e303
cmp qword [0x14029cad8], rdi
je 0x14015e303
cmp qword [0x14029cae0], rdi
je 0x14015e303
cmp qword [0x14029cae8], rdi
je 0x14015e303
test rax, rax
je 0x14015e303
xor ecx, ecx
call rdx
mov qword [0x14029ca40], rax
test rax, rax
jne 0x14015e16e
call qword [0x14029ca90]
mov ecx, eax
call fcn.14015e7a0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140152100
call fcn.14015e370
jmp 0x14015e346
lea r8, [0x14029ca4c]
mov rcx, rax
lea rdx, [0x14029ca48]
call qword [0x14029ca98]
test eax, eax
jne 0x14015e1b4
call qword [0x14029ca90]
mov ecx, eax
call fcn.14015e7a0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140152100
call fcn.14015e370
jmp 0x14015e346
mov rcx, qword [0x14029ca40]
mov edx, 0x3055
call qword [0x14029cae8]
test rax, rax
je 0x14015e1e3
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140158e00
test eax, eax
mov eax, 1
jne 0x14015e1e5
mov eax, edi
mov rcx, qword [0x14029ca40]
mov edx, 0x3055
mov dword [0x14029ca54], eax
call qword [0x14029cae8]
test rax, rax
je 0x14015e21a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140158e00
test eax, eax
mov eax, 1
jne 0x14015e21c
mov eax, edi
mov rcx, qword [0x14029ca40]
mov edx, 0x3055
mov dword [0x14029ca58], eax
call qword [0x14029cae8]
test rax, rax
je 0x14015e251
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140158e00
test eax, eax
mov eax, 1
jne 0x14015e253
mov eax, edi
mov rcx, qword [0x14029ca40]
mov edx, 0x3055
mov dword [0x14029ca5c], eax
call qword [0x14029cae8]
test rax, rax
je 0x14015e288
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140158e00
test eax, eax
mov eax, 1
jne 0x14015e28a
mov eax, edi
mov rcx, qword [0x14029ca40]
mov edx, 0x3055
mov dword [0x14029ca60], eax
call qword [0x14029cae8]
test rax, rax
je 0x14015e2bf
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140158e00
test eax, eax
mov eax, 1
jne 0x14015e2c1
mov eax, edi
mov rcx, qword [0x14029ca40]
mov edx, 0x3055
mov dword [0x14029ca64], eax
call qword [0x14029cae8]
test rax, rax
je 0x14015e2f6
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140158e00
test eax, eax
je 0x14015e2f6
mov edi, 1
mov dword [0x14029ca68], edi
mov eax, 1
jmp 0x14015e348
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140152100
mov rcx, qword [0x14029ca40]
test rcx, rcx
je 0x14015e32d
call qword [0x14029caa0]
mov qword [0x14029ca40], rdi
mov rcx, qword [0x14029ca70]
test rcx, rcx
je 0x14015e346
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14029ca70], rdi
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401d7940
add rsp, 0x40
pop rdi
ret