Function at 0x1400471b0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x14007bfc0]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
lea rax, str.libEGL.dll
cmp qword [0x14007e808], rdi
lea rcx, str.EGL.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
je 0x140047203
lea eax, [rdi + 1]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140048940
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 [0x14007e808], rax
mov rcx, rax
test rax, rax
jne 0x140047239
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
inc esi
test rax, rax
jne 0x140047212
mov rbx, qword [rsp + 0x50]
test rcx, rcx
jne 0x140047259
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.14003de50
jmp 0x140047713
movsxd rcx, esi
lea rdx, [0x140065380]
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 [0x14007e7e8], ecx
mov rcx, qword [0x14007e808]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglGetConfigs
mov qword [0x14007e810], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglGetDisplay
mov qword [0x14007e818], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglGetError
mov qword [0x14007e820], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglInitialize
mov qword [0x14007e828], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglTerminate
mov qword [0x14007e830], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglBindAPI
mov qword [0x14007e838], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglCreateContext
mov qword [0x14007e840], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglDestroySurface
mov qword [0x14007e848], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglDestroyContext
mov qword [0x14007e850], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglCreateWindowSurface
mov qword [0x14007e858], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglMakeCurrent
mov qword [0x14007e860], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglSwapBuffers
mov qword [0x14007e868], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglSwapInterval
mov qword [0x14007e870], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglQueryString
mov qword [0x14007e878], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14007e808]
lea rdx, str.eglGetProcAddress
mov qword [0x14007e880], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14007e810], rdi
mov qword [0x14007e888], rax
je 0x1400476d0
cmp qword [0x14007e818], rdi
je 0x1400476d0
mov rdx, qword [0x14007e820]
test rdx, rdx
je 0x1400476d0
cmp qword [0x14007e828], rdi
je 0x1400476d0
cmp qword [0x14007e830], rdi
je 0x1400476d0
cmp qword [0x14007e838], rdi
je 0x1400476d0
cmp qword [0x14007e840], rdi
je 0x1400476d0
cmp qword [0x14007e848], rdi
je 0x1400476d0
cmp qword [0x14007e850], rdi
je 0x1400476d0
cmp qword [0x14007e858], rdi
je 0x1400476d0
cmp qword [0x14007e860], rdi
je 0x1400476d0
cmp qword [0x14007e868], rdi
je 0x1400476d0
cmp qword [0x14007e870], rdi
je 0x1400476d0
cmp qword [0x14007e878], rdi
je 0x1400476d0
cmp qword [0x14007e880], rdi
je 0x1400476d0
test rax, rax
je 0x1400476d0
xor ecx, ecx
call rdx
mov qword [0x14007e7d8], rax
test rax, rax
jne 0x14004753b
call qword [0x14007e828]
mov ecx, eax
call fcn.140047bb0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.14003de50
call fcn.140047730
jmp 0x140047713
lea r8, [0x14007e7e4]
mov rcx, rax
lea rdx, [0x14007e7e0]
call qword [0x14007e830]
test eax, eax
jne 0x140047581
call qword [0x14007e828]
mov ecx, eax
call fcn.140047bb0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.14003de50
call fcn.140047730
jmp 0x140047713
mov rcx, qword [0x14007e7d8]
mov edx, 0x3055
call qword [0x14007e880]
test rax, rax
je 0x1400475b0
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140042220
test eax, eax
mov eax, 1
jne 0x1400475b2
mov eax, edi
mov rcx, qword [0x14007e7d8]
mov edx, 0x3055
mov dword [0x14007e7ec], eax
call qword [0x14007e880]
test rax, rax
je 0x1400475e7
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140042220
test eax, eax
mov eax, 1
jne 0x1400475e9
mov eax, edi
mov rcx, qword [0x14007e7d8]
mov edx, 0x3055
mov dword [0x14007e7f0], eax
call qword [0x14007e880]
test rax, rax
je 0x14004761e
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140042220
test eax, eax
mov eax, 1
jne 0x140047620
mov eax, edi
mov rcx, qword [0x14007e7d8]
mov edx, 0x3055
mov dword [0x14007e7f4], eax
call qword [0x14007e880]
test rax, rax
je 0x140047655
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140042220
test eax, eax
mov eax, 1
jne 0x140047657
mov eax, edi
mov rcx, qword [0x14007e7d8]
mov edx, 0x3055
mov dword [0x14007e7f8], eax
call qword [0x14007e880]
test rax, rax
je 0x14004768c
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140042220
test eax, eax
mov eax, 1
jne 0x14004768e
mov eax, edi
mov rcx, qword [0x14007e7d8]
mov edx, 0x3055
mov dword [0x14007e7fc], eax
call qword [0x14007e880]
test rax, rax
je 0x1400476c3
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140042220
test eax, eax
je 0x1400476c3
mov edi, 1
mov dword [0x14007e800], edi
mov eax, 1
jmp 0x140047715
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14003de50
mov rcx, qword [0x14007e7d8]
test rcx, rcx
je 0x1400476fa
call qword [0x14007e838]
mov qword [0x14007e7d8], rdi
mov rcx, qword [0x14007e808]
test rcx, rcx
je 0x140047713
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14007e808], rdi
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140048940
add rsp, 0x40
pop rdi
ret