Function at 0x1400f4440
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401ee7c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x14023eb48], rbx
lea rcx, str.EGL.dll
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rbx
je 0x1400f4498
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400f8f00
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 0x60], rsi
mov esi, ebx
mov qword [rsp + 0x68], rdi
mov rdi, rbx
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x14023eb48], rax
mov rcx, rax
test rax, rax
jne 0x1400f44cd
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1400f44a7
test rcx, rcx
jne 0x1400f44e8
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1400ea050
jmp 0x1400f4aec
movsxd rcx, esi
lea rdx, [0x140128a80]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x28]
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 [0x14023eb08], ecx
mov rcx, qword [0x14023eb48]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglGetConfigs
mov qword [0x14023eb50], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglGetDisplay
mov qword [0x14023eb58], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglGetError
mov qword [0x14023eb60], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglInitialize
mov qword [0x14023eb68], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglTerminate
mov qword [0x14023eb70], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglBindAPI
mov qword [0x14023eb78], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglCreateContext
mov qword [0x14023eb80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglDestroySurface
mov qword [0x14023eb88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglDestroyContext
mov qword [0x14023eb90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglCreateWindowSurface
mov qword [0x14023eb98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglMakeCurrent
mov qword [0x14023eba0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglSwapBuffers
mov qword [0x14023eba8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglSwapInterval
mov qword [0x14023ebb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglQueryString
mov qword [0x14023ebb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14023eb48]
lea rdx, str.eglGetProcAddress
mov qword [0x14023ebc0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x14023eb50], rbx
mov rcx, rax
mov qword [0x14023ebc8], rax
je 0x1400f4aaa
cmp qword [0x14023eb58], rbx
je 0x1400f4aaa
cmp qword [0x14023eb60], rbx
je 0x1400f4aaa
cmp qword [0x14023eb68], rbx
je 0x1400f4aaa
cmp qword [0x14023eb70], rbx
je 0x1400f4aaa
cmp qword [0x14023eb78], rbx
je 0x1400f4aaa
cmp qword [0x14023eb80], rbx
je 0x1400f4aaa
cmp qword [0x14023eb88], rbx
je 0x1400f4aaa
cmp qword [0x14023eb90], rbx
je 0x1400f4aaa
cmp qword [0x14023eb98], rbx
je 0x1400f4aaa
cmp qword [0x14023eba0], rbx
je 0x1400f4aaa
cmp qword [0x14023eba8], rbx
je 0x1400f4aaa
cmp qword [0x14023ebb0], rbx
je 0x1400f4aaa
cmp qword [0x14023ebb8], rbx
je 0x1400f4aaa
mov rax, qword [0x14023ebc0]
test rax, rax
je 0x1400f4aaa
test rcx, rcx
je 0x1400f4aaa
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1400f47ac
call qword [0x14023eb68]
cmp eax, 0x3000
jne 0x1400f47ac
mov dword [0x14023eb20], 1
jmp 0x1400f47b8
cmp dword [0x14023eb20], ebx
je 0x1400f4860
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1400efa60
mov rdx, rdi
mov dword [0x14023eb24], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400efa60
mov rdx, rdi
mov dword [0x14023eb28], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400efa60
mov rdx, rdi
mov dword [0x14023eb2c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400efa60
mov rdx, rdi
mov dword [0x14023eb34], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400efa60
mov rdx, rdi
mov dword [0x14023eb38], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400efa60
mov rdx, rdi
mov dword [0x14023eb3c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400efa60
mov rdx, rdi
mov dword [0x14023eb40], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400efa60
mov dword [0x14023eb44], eax
cmp dword [0x14023eb24], ebx
je 0x1400f4890
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x14023ebc8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x14023ebd0], rax
call qword [0x14023ebc8]
mov qword [0x14023ebd8], rax
lea rcx, [rsp + 0x20]
call qword [0x14023d338]
mov dword [0x14023eaf0], eax
test eax, eax
je 0x1400f48c1
call qword [0x14023d340]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x14023eaf0]
call qword [0x14023ebd0]
jmp 0x1400f48d0
call qword [0x14023d340]
mov rcx, rax
call qword [0x14023eb60]
mov rcx, qword [rsp + 0x20]
mov qword [0x14023eaf8], rax
call fcn.1400ea5a0
mov rcx, qword [0x14023eaf8]
test rcx, rcx
jne 0x1400f4918
call qword [0x14023eb68]
mov ecx, eax
call fcn.1400f4f90
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1400ea050
call fcn.1400f4b10
jmp 0x1400f4aec
lea r8, [0x14023eb04]
lea rdx, [0x14023eb00]
call qword [0x14023eb70]
test eax, eax
jne 0x1400f495b
call qword [0x14023eb68]
mov ecx, eax
call fcn.1400f4f90
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1400ea050
call fcn.1400f4b10
jmp 0x1400f4aec
mov rcx, qword [0x14023eaf8]
mov edx, 0x3055
call qword [0x14023ebc0]
test rax, rax
je 0x1400f498a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1400efa60
test eax, eax
mov eax, 1
jne 0x1400f498c
mov eax, ebx
mov rcx, qword [0x14023eaf8]
mov edx, 0x3055
mov dword [0x14023eb0c], eax
call qword [0x14023ebc0]
test rax, rax
je 0x1400f49c1
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400efa60
test eax, eax
mov eax, 1
jne 0x1400f49c3
mov eax, ebx
mov rcx, qword [0x14023eaf8]
mov edx, 0x3055
mov dword [0x14023eb10], eax
call qword [0x14023ebc0]
test rax, rax
je 0x1400f49f8
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400efa60
test eax, eax
mov eax, 1
jne 0x1400f49fa
mov eax, ebx
mov rcx, qword [0x14023eaf8]
mov edx, 0x3055
mov dword [0x14023eb14], eax
call qword [0x14023ebc0]
test rax, rax
je 0x1400f4a2f
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400efa60
test eax, eax
mov eax, 1
jne 0x1400f4a31
mov eax, ebx
mov rcx, qword [0x14023eaf8]
mov edx, 0x3055
mov dword [0x14023eb18], eax
call qword [0x14023ebc0]
test rax, rax
je 0x1400f4a66
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400efa60
test eax, eax
mov eax, 1
jne 0x1400f4a68
mov eax, ebx
mov rcx, qword [0x14023eaf8]
mov edx, 0x3055
mov dword [0x14023eb1c], eax
call qword [0x14023ebc0]
test rax, rax
je 0x1400f4a9d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1400efa60
test eax, eax
je 0x1400f4a9d
mov ebx, 1
mov dword [0x14023eb30], ebx
mov eax, 1
jmp 0x1400f4aee
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400ea050
mov rcx, qword [0x14023eaf8]
test rcx, rcx
je 0x1400f4ad4
call qword [0x14023eb78]
mov qword [0x14023eaf8], rbx
mov rcx, qword [0x14023eb48]
test rcx, rcx
je 0x1400f4aec
call fcn.1400f5e60
mov qword [0x14023eb48], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400f8f00
add rsp, 0x50
pop rbx
ret