Function at 0x1800d26e0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x18019d440]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
lea rax, str.libEGL.dll
cmp qword [0x1803a1118], rdi
lea rcx, str.EGL.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
je 0x1800d2733
lea eax, [rdi + 1]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800d9fd0
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 [0x1803a1118], rax
test rax, rax
jne 0x1800d277c
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
inc esi
test rax, rax
jne 0x1800d2742
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1800c83d0
jmp 0x1800d2bfe
movsxd rcx, esi
lea rdx, [0x180131b50]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x20]
call fcn.1800ecff0
mov ecx, edi
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x1803a1100], ecx
mov rcx, qword [0x1803a1118]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglGetConfigs
mov qword [0x1803a1120], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglGetDisplay
mov qword [0x1803a1128], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglGetError
mov qword [0x1803a1130], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglInitialize
mov qword [0x1803a1138], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglTerminate
mov qword [0x1803a1140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglBindAPI
mov qword [0x1803a1148], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglCreateContext
mov qword [0x1803a1150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglDestroySurface
mov qword [0x1803a1158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglDestroyContext
mov qword [0x1803a1160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1803a1168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglMakeCurrent
mov qword [0x1803a1170], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglSwapBuffers
mov qword [0x1803a1178], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglSwapInterval
mov qword [0x1803a1180], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglQueryString
mov qword [0x1803a1188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1803a1118]
lea rdx, str.eglGetProcAddress
mov qword [0x1803a1190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1803a1120], rdi
mov qword [0x1803a1198], rax
je 0x1800d2bbb
cmp qword [0x1803a1128], rdi
je 0x1800d2bbb
mov rdx, qword [0x1803a1130]
test rdx, rdx
je 0x1800d2bbb
cmp qword [0x1803a1138], rdi
je 0x1800d2bbb
cmp qword [0x1803a1140], rdi
je 0x1800d2bbb
cmp qword [0x1803a1148], rdi
je 0x1800d2bbb
cmp qword [0x1803a1150], rdi
je 0x1800d2bbb
cmp qword [0x1803a1158], rdi
je 0x1800d2bbb
cmp qword [0x1803a1160], rdi
je 0x1800d2bbb
cmp qword [0x1803a1168], rdi
je 0x1800d2bbb
cmp qword [0x1803a1170], rdi
je 0x1800d2bbb
cmp qword [0x1803a1178], rdi
je 0x1800d2bbb
cmp qword [0x1803a1180], rdi
je 0x1800d2bbb
cmp qword [0x1803a1188], rdi
je 0x1800d2bbb
cmp qword [0x1803a1190], rdi
je 0x1800d2bbb
test rax, rax
je 0x1800d2bbb
xor ecx, ecx
call rdx
mov qword [0x1803a10f0], rax
test rax, rax
jne 0x1800d2a5d
call qword [0x1803a1138]
mov ecx, eax
call fcn.1800d3050
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1800c83d0
call fcn.1800d2c20
jmp 0x1800d2bfe
lea r8, [0x1803a10fc]
mov rcx, rax
lea rdx, [0x1803a10f8]
call qword [0x1803a1140]
test eax, eax
jne 0x1800d2aa3
call qword [0x1803a1138]
mov ecx, eax
call fcn.1800d3050
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1800c83d0
call fcn.1800d2c20
jmp 0x1800d2bfe
mov rcx, qword [0x1803a10f0]
mov edx, 0x3055
call qword [0x1803a1190]
test rax, rax
je 0x1800d2ad2
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1800c74c0
test eax, eax
mov eax, 1
jne 0x1800d2ad4
mov eax, edi
mov rcx, qword [0x1803a10f0]
mov edx, 0x3055
mov dword [0x1803a1104], eax
call qword [0x1803a1190]
test rax, rax
je 0x1800d2b09
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1800c74c0
test eax, eax
mov eax, 1
jne 0x1800d2b0b
mov eax, edi
mov rcx, qword [0x1803a10f0]
mov edx, 0x3055
mov dword [0x1803a1108], eax
call qword [0x1803a1190]
test rax, rax
je 0x1800d2b40
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1800c74c0
test eax, eax
mov eax, 1
jne 0x1800d2b42
mov eax, edi
mov rcx, qword [0x1803a10f0]
mov edx, 0x3055
mov dword [0x1803a110c], eax
call qword [0x1803a1190]
test rax, rax
je 0x1800d2b77
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1800c74c0
test eax, eax
mov eax, 1
jne 0x1800d2b79
mov eax, edi
mov rcx, qword [0x1803a10f0]
mov edx, 0x3055
mov dword [0x1803a1110], eax
call qword [0x1803a1190]
test rax, rax
je 0x1800d2bae
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1800c74c0
test eax, eax
je 0x1800d2bae
mov edi, 1
mov dword [0x1803a1114], edi
mov eax, 1
jmp 0x1800d2c00
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1800c83d0
mov rcx, qword [0x1803a10f0]
test rcx, rcx
je 0x1800d2be5
call qword [0x1803a1148]
mov qword [0x1803a10f0], rdi
mov rcx, qword [0x1803a1118]
test rcx, rcx
je 0x1800d2bfe
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1803a1118], rdi
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800d9fd0
add rsp, 0x40
pop rdi
ret