Function at 0x1400cc690
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401b66f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1401b90f8], 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 0x1400cc6e8
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012e5c0
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 [0x1401b90f8], rax
test rax, rax
jne 0x1400cc730
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1400cc6f7
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1400c0a60
jmp 0x1400ccd34
movsxd rcx, esi
lea rdx, [0x140154840]
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 [0x1401b90b8], ecx
mov rcx, qword [0x1401b90f8]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglGetConfigs
mov qword [0x1401b9100], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglGetDisplay
mov qword [0x1401b9108], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglGetError
mov qword [0x1401b9110], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglInitialize
mov qword [0x1401b9118], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglTerminate
mov qword [0x1401b9120], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglBindAPI
mov qword [0x1401b9128], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglCreateContext
mov qword [0x1401b9130], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglDestroySurface
mov qword [0x1401b9138], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglDestroyContext
mov qword [0x1401b9140], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1401b9148], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglMakeCurrent
mov qword [0x1401b9150], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglSwapBuffers
mov qword [0x1401b9158], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglSwapInterval
mov qword [0x1401b9160], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglQueryString
mov qword [0x1401b9168], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401b90f8]
lea rdx, str.eglGetProcAddress
mov qword [0x1401b9170], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1401b9100], rbx
mov rcx, rax
mov qword [0x1401b9178], rax
je 0x1400cccf2
cmp qword [0x1401b9108], rbx
je 0x1400cccf2
cmp qword [0x1401b9110], rbx
je 0x1400cccf2
cmp qword [0x1401b9118], rbx
je 0x1400cccf2
cmp qword [0x1401b9120], rbx
je 0x1400cccf2
cmp qword [0x1401b9128], rbx
je 0x1400cccf2
cmp qword [0x1401b9130], rbx
je 0x1400cccf2
cmp qword [0x1401b9138], rbx
je 0x1400cccf2
cmp qword [0x1401b9140], rbx
je 0x1400cccf2
cmp qword [0x1401b9148], rbx
je 0x1400cccf2
cmp qword [0x1401b9150], rbx
je 0x1400cccf2
cmp qword [0x1401b9158], rbx
je 0x1400cccf2
cmp qword [0x1401b9160], rbx
je 0x1400cccf2
cmp qword [0x1401b9168], rbx
je 0x1400cccf2
mov rax, qword [0x1401b9170]
test rax, rax
je 0x1400cccf2
test rcx, rcx
je 0x1400cccf2
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1400cc9f4
call qword [0x1401b9118]
cmp eax, 0x3000
jne 0x1400cc9f4
mov dword [0x1401b90d0], 1
jmp 0x1400cca00
cmp dword [0x1401b90d0], ebx
je 0x1400ccaa8
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1400bf910
mov rdx, rdi
mov dword [0x1401b90d4], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400bf910
mov rdx, rdi
mov dword [0x1401b90d8], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400bf910
mov rdx, rdi
mov dword [0x1401b90dc], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400bf910
mov rdx, rdi
mov dword [0x1401b90e4], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400bf910
mov rdx, rdi
mov dword [0x1401b90e8], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400bf910
mov rdx, rdi
mov dword [0x1401b90ec], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400bf910
mov rdx, rdi
mov dword [0x1401b90f0], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400bf910
mov dword [0x1401b90f4], eax
cmp dword [0x1401b90d4], ebx
je 0x1400ccad8
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1401b9178]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1401b9180], rax
call qword [0x1401b9178]
mov qword [0x1401b9188], rax
lea rcx, [rsp + 0x20]
call qword [0x1401b78e8]
mov dword [0x1401b90a0], eax
test eax, eax
je 0x1400ccb09
call qword [0x1401b78f0]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1401b90a0]
call qword [0x1401b9180]
jmp 0x1400ccb18
call qword [0x1401b78f0]
mov rcx, rax
call qword [0x1401b9110]
mov rcx, qword [rsp + 0x20]
mov qword [0x1401b90a8], rax
call fcn.1400c0f70
mov rcx, qword [0x1401b90a8]
test rcx, rcx
jne 0x1400ccb60
call qword [0x1401b9118]
mov ecx, eax
call fcn.1400cd1e0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1400c0a60
call fcn.1400ccd60
jmp 0x1400ccd34
lea r8, [0x1401b90b4]
lea rdx, [0x1401b90b0]
call qword [0x1401b9120]
test eax, eax
jne 0x1400ccba3
call qword [0x1401b9118]
mov ecx, eax
call fcn.1400cd1e0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1400c0a60
call fcn.1400ccd60
jmp 0x1400ccd34
mov rcx, qword [0x1401b90a8]
mov edx, 0x3055
call qword [0x1401b9170]
test rax, rax
je 0x1400ccbd2
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1400bf910
test eax, eax
mov eax, 1
jne 0x1400ccbd4
mov eax, ebx
mov rcx, qword [0x1401b90a8]
mov edx, 0x3055
mov dword [0x1401b90bc], eax
call qword [0x1401b9170]
test rax, rax
je 0x1400ccc09
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400bf910
test eax, eax
mov eax, 1
jne 0x1400ccc0b
mov eax, ebx
mov rcx, qword [0x1401b90a8]
mov edx, 0x3055
mov dword [0x1401b90c0], eax
call qword [0x1401b9170]
test rax, rax
je 0x1400ccc40
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400bf910
test eax, eax
mov eax, 1
jne 0x1400ccc42
mov eax, ebx
mov rcx, qword [0x1401b90a8]
mov edx, 0x3055
mov dword [0x1401b90c4], eax
call qword [0x1401b9170]
test rax, rax
je 0x1400ccc77
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400bf910
test eax, eax
mov eax, 1
jne 0x1400ccc79
mov eax, ebx
mov rcx, qword [0x1401b90a8]
mov edx, 0x3055
mov dword [0x1401b90c8], eax
call qword [0x1401b9170]
test rax, rax
je 0x1400cccae
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400bf910
test eax, eax
mov eax, 1
jne 0x1400cccb0
mov eax, ebx
mov rcx, qword [0x1401b90a8]
mov edx, 0x3055
mov dword [0x1401b90cc], eax
call qword [0x1401b9170]
test rax, rax
je 0x1400ccce5
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1400bf910
test eax, eax
je 0x1400ccce5
mov ebx, 1
mov dword [0x1401b90e0], ebx
mov eax, 1
jmp 0x1400ccd36
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400c0a60
mov rcx, qword [0x1401b90a8]
test rcx, rcx
je 0x1400ccd1c
call qword [0x1401b9128]
mov qword [0x1401b90a8], rbx
mov rcx, qword [0x1401b90f8]
test rcx, rcx
je 0x1400ccd34
call fcn.1400ce0b0
mov qword [0x1401b90f8], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012e5c0
add rsp, 0x50
pop rbx
ret