Function at 0x18009def0
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1800fe630]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rax, str.libEGL.dll
mov qword [rsp + 0x38], rax
lea rax, str.EGL.dll
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
cmp qword [0x180153480], 0
je 0x18009df49
mov eax, 1
jmp 0x18009e355
mov dword [rsp + 0x20], 0
jmp 0x18009df5d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x38], 0
je 0x18009df8f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180153480], rax
cmp qword [0x180153480], 0
je 0x18009df8d
jmp 0x18009df8f
jmp 0x18009df53
cmp qword [0x180153480], 0
jne 0x18009dfb1
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1800862e0
xor eax, eax
jmp 0x18009e355
movsxd rax, dword [rsp + 0x20]
mov r8d, 3
lea rdx, [0x1800fc6a4]
mov rcx, qword [rsp + rax*8 + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x18009dfdc
mov dword [rsp + 0x60], 1
jmp 0x18009dfe4
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [0x180153468], eax
lea rdx, str.eglGetConfigAttrib
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180153488], rax
lea rdx, str.eglGetConfigs
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180153490], rax
lea rdx, str.eglGetDisplay
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180153498], rax
lea rdx, str.eglGetError
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534a0], rax
lea rdx, str.eglInitialize
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534a8], rax
lea rdx, str.eglTerminate
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534b0], rax
lea rdx, str.eglBindAPI
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534b8], rax
lea rdx, str.eglCreateContext
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534c0], rax
lea rdx, str.eglDestroySurface
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534c8], rax
lea rdx, str.eglDestroyContext
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534d0], rax
lea rdx, str.eglCreateWindowSurface
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534d8], rax
lea rdx, str.eglMakeCurrent
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534e0], rax
lea rdx, str.eglSwapBuffers
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534e8], rax
lea rdx, str.eglSwapInterval
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534f0], rax
lea rdx, str.eglQueryString
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801534f8], rax
lea rdx, str.eglGetProcAddress
mov rcx, qword [0x180153480]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180153500], rax
cmp qword [0x180153488], 0
je 0x18009e24a
cmp qword [0x180153490], 0
je 0x18009e24a
cmp qword [0x180153498], 0
je 0x18009e24a
cmp qword [0x1801534a0], 0
je 0x18009e24a
cmp qword [0x1801534a8], 0
je 0x18009e24a
cmp qword [0x1801534b0], 0
je 0x18009e24a
cmp qword [0x1801534b8], 0
je 0x18009e24a
cmp qword [0x1801534c0], 0
je 0x18009e24a
cmp qword [0x1801534c8], 0
je 0x18009e24a
cmp qword [0x1801534d0], 0
je 0x18009e24a
cmp qword [0x1801534d8], 0
je 0x18009e24a
cmp qword [0x1801534e0], 0
je 0x18009e24a
cmp qword [0x1801534e8], 0
je 0x18009e24a
cmp qword [0x1801534f0], 0
je 0x18009e24a
cmp qword [0x1801534f8], 0
je 0x18009e24a
cmp qword [0x180153500], 0
jne 0x18009e267
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1800862e0
call fcn.18009e390
xor eax, eax
jmp 0x18009e355
xor ecx, ecx
call qword [0x180153498]
mov qword [0x180153458], rax
cmp qword [0x180153458], 0
jne 0x18009e2ad
call qword [0x1801534a0]
mov ecx, eax
call fcn.18009f020
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1800862e0
call fcn.18009e390
xor eax, eax
jmp 0x18009e355
lea r8, [0x180153464]
lea rdx, [0x180153460]
mov rcx, qword [0x180153458]
call qword [0x1801534a8]
test eax, eax
jne 0x18009e2f6
call qword [0x1801534a0]
mov ecx, eax
call fcn.18009f020
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1800862e0
call fcn.18009e390
xor eax, eax
jmp 0x18009e355
lea rcx, str.EGL_KHR_create_context
call fcn.18009f660
mov dword [0x18015346c], eax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.18009f660
mov dword [0x180153470], eax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.18009f660
mov dword [0x180153474], eax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.18009f660
mov dword [0x180153478], eax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.18009f660
mov dword [0x18015347c], eax
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1800bfc20]
call fcn.1800a1594
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a07b0
add rsp, 0x70
pop rdi
ret