Function at 0x1401c0680
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1403c12b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1403cff60], 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 0x1401c06d8
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140226190
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 [0x1403cff60], rax
test rax, rax
jne 0x1401c0720
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1401c06e7
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1401b5330
jmp 0x1401c0d24
movsxd rcx, esi
lea rdx, [0x140270e50]
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 [0x1403cff20], ecx
mov rcx, qword [0x1403cff60]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglGetConfigs
mov qword [0x1403cff68], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglGetDisplay
mov qword [0x1403cff70], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglGetError
mov qword [0x1403cff78], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglInitialize
mov qword [0x1403cff80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglTerminate
mov qword [0x1403cff88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglBindAPI
mov qword [0x1403cff90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglCreateContext
mov qword [0x1403cff98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglDestroySurface
mov qword [0x1403cffa0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglDestroyContext
mov qword [0x1403cffa8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1403cffb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglMakeCurrent
mov qword [0x1403cffb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglSwapBuffers
mov qword [0x1403cffc0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglSwapInterval
mov qword [0x1403cffc8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglQueryString
mov qword [0x1403cffd0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403cff60]
lea rdx, str.eglGetProcAddress
mov qword [0x1403cffd8], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1403cff68], rbx
mov rcx, rax
mov qword [0x1403cffe0], rax
je 0x1401c0ce2
cmp qword [0x1403cff70], rbx
je 0x1401c0ce2
cmp qword [0x1403cff78], rbx
je 0x1401c0ce2
cmp qword [0x1403cff80], rbx
je 0x1401c0ce2
cmp qword [0x1403cff88], rbx
je 0x1401c0ce2
cmp qword [0x1403cff90], rbx
je 0x1401c0ce2
cmp qword [0x1403cff98], rbx
je 0x1401c0ce2
cmp qword [0x1403cffa0], rbx
je 0x1401c0ce2
cmp qword [0x1403cffa8], rbx
je 0x1401c0ce2
cmp qword [0x1403cffb0], rbx
je 0x1401c0ce2
cmp qword [0x1403cffb8], rbx
je 0x1401c0ce2
cmp qword [0x1403cffc0], rbx
je 0x1401c0ce2
cmp qword [0x1403cffc8], rbx
je 0x1401c0ce2
cmp qword [0x1403cffd0], rbx
je 0x1401c0ce2
mov rax, qword [0x1403cffd8]
test rax, rax
je 0x1401c0ce2
test rcx, rcx
je 0x1401c0ce2
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1401c09e4
call qword [0x1403cff80]
cmp eax, 0x3000
jne 0x1401c09e4
mov dword [0x1403cff38], 1
jmp 0x1401c09f0
cmp dword [0x1403cff38], ebx
je 0x1401c0a98
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1401b41d0
mov rdx, rdi
mov dword [0x1403cff3c], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1401b41d0
mov rdx, rdi
mov dword [0x1403cff40], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1401b41d0
mov rdx, rdi
mov dword [0x1403cff44], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1401b41d0
mov rdx, rdi
mov dword [0x1403cff4c], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1401b41d0
mov rdx, rdi
mov dword [0x1403cff50], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1401b41d0
mov rdx, rdi
mov dword [0x1403cff54], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1401b41d0
mov rdx, rdi
mov dword [0x1403cff58], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1401b41d0
mov dword [0x1403cff5c], eax
cmp dword [0x1403cff3c], ebx
je 0x1401c0ac8
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1403cffe0]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1403cffe8], rax
call qword [0x1403cffe0]
mov qword [0x1403cfff0], rax
lea rcx, [rsp + 0x20]
call qword [0x1403ce748]
mov dword [0x1403cff08], eax
test eax, eax
je 0x1401c0af9
call qword [0x1403ce750]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1403cff08]
call qword [0x1403cffe8]
jmp 0x1401c0b08
call qword [0x1403ce750]
mov rcx, rax
call qword [0x1403cff78]
mov rcx, qword [rsp + 0x20]
mov qword [0x1403cff10], rax
call fcn.1401b5830
mov rcx, qword [0x1403cff10]
test rcx, rcx
jne 0x1401c0b50
call qword [0x1403cff80]
mov ecx, eax
call fcn.1401c11d0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1401b5330
call fcn.1401c0d50
jmp 0x1401c0d24
lea r8, [0x1403cff1c]
lea rdx, [0x1403cff18]
call qword [0x1403cff88]
test eax, eax
jne 0x1401c0b93
call qword [0x1403cff80]
mov ecx, eax
call fcn.1401c11d0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1401b5330
call fcn.1401c0d50
jmp 0x1401c0d24
mov rcx, qword [0x1403cff10]
mov edx, 0x3055
call qword [0x1403cffd8]
test rax, rax
je 0x1401c0bc2
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1401b41d0
test eax, eax
mov eax, 1
jne 0x1401c0bc4
mov eax, ebx
mov rcx, qword [0x1403cff10]
mov edx, 0x3055
mov dword [0x1403cff24], eax
call qword [0x1403cffd8]
test rax, rax
je 0x1401c0bf9
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1401b41d0
test eax, eax
mov eax, 1
jne 0x1401c0bfb
mov eax, ebx
mov rcx, qword [0x1403cff10]
mov edx, 0x3055
mov dword [0x1403cff28], eax
call qword [0x1403cffd8]
test rax, rax
je 0x1401c0c30
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1401b41d0
test eax, eax
mov eax, 1
jne 0x1401c0c32
mov eax, ebx
mov rcx, qword [0x1403cff10]
mov edx, 0x3055
mov dword [0x1403cff2c], eax
call qword [0x1403cffd8]
test rax, rax
je 0x1401c0c67
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1401b41d0
test eax, eax
mov eax, 1
jne 0x1401c0c69
mov eax, ebx
mov rcx, qword [0x1403cff10]
mov edx, 0x3055
mov dword [0x1403cff30], eax
call qword [0x1403cffd8]
test rax, rax
je 0x1401c0c9e
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1401b41d0
test eax, eax
mov eax, 1
jne 0x1401c0ca0
mov eax, ebx
mov rcx, qword [0x1403cff10]
mov edx, 0x3055
mov dword [0x1403cff34], eax
call qword [0x1403cffd8]
test rax, rax
je 0x1401c0cd5
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1401b41d0
test eax, eax
je 0x1401c0cd5
mov ebx, 1
mov dword [0x1403cff48], ebx
mov eax, 1
jmp 0x1401c0d26
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401b5330
mov rcx, qword [0x1403cff10]
test rcx, rcx
je 0x1401c0d0c
call qword [0x1403cff90]
mov qword [0x1403cff10], rbx
mov rcx, qword [0x1403cff60]
test rcx, rcx
je 0x1401c0d24
call fcn.1401c20b0
mov qword [0x1403cff60], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140226190
add rsp, 0x50
pop rbx
ret