Function at 0x14009aca0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1400e3f88], rbx
lea rcx, str.EGL.dll
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rbx
je 0x14009acdc
lea eax, [rbx + 1]
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x58], rsi
mov esi, ebx
mov qword [rsp + 0x60], rdi
mov rdi, rbx
nop dword [rax + rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1400e3f88], rax
mov rcx, rax
test rax, rax
jne 0x14009ad16
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x14009acf0
test rcx, rcx
jne 0x14009ad3e
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.14008ee90
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x1400bfe50]
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, ebx
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x1400e3f48], ecx
mov rcx, qword [0x1400e3f88]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglGetConfigs
mov qword [0x1400e3f90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglGetDisplay
mov qword [0x1400e3f98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglGetError
mov qword [0x1400e3fa0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglInitialize
mov qword [0x1400e3fa8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglTerminate
mov qword [0x1400e3fb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglBindAPI
mov qword [0x1400e3fb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglCreateContext
mov qword [0x1400e3fc0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglDestroySurface
mov qword [0x1400e3fc8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglDestroyContext
mov qword [0x1400e3fd0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400e3fd8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglMakeCurrent
mov qword [0x1400e3fe0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglSwapBuffers
mov qword [0x1400e3fe8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglSwapInterval
mov qword [0x1400e3ff0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglQueryString
mov qword [0x1400e3ff8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e3f88]
lea rdx, str.eglGetProcAddress
mov qword [0x1400e4000], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400e3f90], rbx
mov rcx, rax
mov qword [0x1400e4008], rax
je 0x14009b328
cmp qword [0x1400e3f98], rbx
je 0x14009b328
cmp qword [0x1400e3fa0], rbx
je 0x14009b328
cmp qword [0x1400e3fa8], rbx
je 0x14009b328
cmp qword [0x1400e3fb0], rbx
je 0x14009b328
cmp qword [0x1400e3fb8], rbx
je 0x14009b328
cmp qword [0x1400e3fc0], rbx
je 0x14009b328
cmp qword [0x1400e3fc8], rbx
je 0x14009b328
cmp qword [0x1400e3fd0], rbx
je 0x14009b328
cmp qword [0x1400e3fd8], rbx
je 0x14009b328
cmp qword [0x1400e3fe0], rbx
je 0x14009b328
cmp qword [0x1400e3fe8], rbx
je 0x14009b328
cmp qword [0x1400e3ff0], rbx
je 0x14009b328
cmp qword [0x1400e3ff8], rbx
je 0x14009b328
mov rax, qword [0x1400e4000]
test rax, rax
je 0x14009b328
test rcx, rcx
je 0x14009b328
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x14009b002
call qword [0x1400e3fa8]
cmp eax, 0x3000
jne 0x14009b002
mov dword [0x1400e3f60], 1
jmp 0x14009b00e
cmp dword [0x1400e3f60], ebx
je 0x14009b0b6
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.14008dc80
mov rdx, rdi
mov dword [0x1400e3f64], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.14008dc80
mov rdx, rdi
mov dword [0x1400e3f68], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.14008dc80
mov rdx, rdi
mov dword [0x1400e3f6c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.14008dc80
mov rdx, rdi
mov dword [0x1400e3f74], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.14008dc80
mov rdx, rdi
mov dword [0x1400e3f78], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.14008dc80
mov rdx, rdi
mov dword [0x1400e3f7c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.14008dc80
mov rdx, rdi
mov dword [0x1400e3f80], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.14008dc80
mov dword [0x1400e3f84], eax
cmp dword [0x1400e3f64], ebx
je 0x14009b0e6
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400e4008]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400e4010], rax
call qword [0x1400e4008]
mov qword [0x1400e4018], rax
lea rcx, [rsp + 0x50]
call qword [0x1400e2778]
mov dword [0x1400e3f30], eax
test eax, eax
je 0x14009b117
call qword [0x1400e2780]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x1400e3f30]
call qword [0x1400e4010]
jmp 0x14009b126
call qword [0x1400e2780]
mov rcx, rax
call qword [0x1400e3fa0]
mov rcx, qword [rsp + 0x50]
mov qword [0x1400e3f38], rax
call fcn.14008f3a0
mov rcx, qword [0x1400e3f38]
test rcx, rcx
jne 0x14009b17b
call qword [0x1400e3fa8]
mov ecx, eax
call fcn.14009b800
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.14008ee90
call fcn.14009b380
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x1400e3f44]
lea rdx, [0x1400e3f40]
call qword [0x1400e3fb0]
test eax, eax
jne 0x14009b1cb
call qword [0x1400e3fa8]
mov ecx, eax
call fcn.14009b800
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.14008ee90
call fcn.14009b380
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x1400e3f38]
mov edx, 0x3055
call qword [0x1400e4000]
test rax, rax
je 0x14009b1fa
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.14008dc80
test eax, eax
mov eax, 1
jne 0x14009b1fc
mov eax, ebx
mov rcx, qword [0x1400e3f38]
mov edx, 0x3055
mov dword [0x1400e3f4c], eax
call qword [0x1400e4000]
test rax, rax
je 0x14009b231
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.14008dc80
test eax, eax
mov eax, 1
jne 0x14009b233
mov eax, ebx
mov rcx, qword [0x1400e3f38]
mov edx, 0x3055
mov dword [0x1400e3f50], eax
call qword [0x1400e4000]
test rax, rax
je 0x14009b268
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.14008dc80
test eax, eax
mov eax, 1
jne 0x14009b26a
mov eax, ebx
mov rcx, qword [0x1400e3f38]
mov edx, 0x3055
mov dword [0x1400e3f54], eax
call qword [0x1400e4000]
test rax, rax
je 0x14009b29f
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.14008dc80
test eax, eax
mov eax, 1
jne 0x14009b2a1
mov eax, ebx
mov rcx, qword [0x1400e3f38]
mov edx, 0x3055
mov dword [0x1400e3f58], eax
call qword [0x1400e4000]
test rax, rax
je 0x14009b2d6
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.14008dc80
test eax, eax
mov eax, 1
jne 0x14009b2d8
mov eax, ebx
mov rcx, qword [0x1400e3f38]
mov edx, 0x3055
mov dword [0x1400e3f5c], eax
call qword [0x1400e4000]
test rax, rax
je 0x14009b30d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.14008dc80
test eax, eax
je 0x14009b30d
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x1400e3f70], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14008ee90
mov rcx, qword [0x1400e3f38]
test rcx, rcx
je 0x14009b352
call qword [0x1400e3fb8]
mov qword [0x1400e3f38], rbx
mov rcx, qword [0x1400e3f88]
test rcx, rcx
je 0x14009b36a
call fcn.14009c6b0
mov qword [0x1400e3f88], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret