Function at 0x1400c59e0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401ae6f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1401c9208], 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 0x1400c5a38
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140127920
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 [0x1401c9208], rax
test rax, rax
jne 0x1400c5a80
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1400c5a47
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1400b9db0
jmp 0x1400c6084
movsxd rcx, esi
lea rdx, [0x14014c860]
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 [0x1401c91c8], ecx
mov rcx, qword [0x1401c9208]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglGetConfigs
mov qword [0x1401c9210], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglGetDisplay
mov qword [0x1401c9218], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglGetError
mov qword [0x1401c9220], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglInitialize
mov qword [0x1401c9228], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglTerminate
mov qword [0x1401c9230], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglBindAPI
mov qword [0x1401c9238], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglCreateContext
mov qword [0x1401c9240], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglDestroySurface
mov qword [0x1401c9248], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglDestroyContext
mov qword [0x1401c9250], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1401c9258], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglMakeCurrent
mov qword [0x1401c9260], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglSwapBuffers
mov qword [0x1401c9268], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglSwapInterval
mov qword [0x1401c9270], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglQueryString
mov qword [0x1401c9278], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401c9208]
lea rdx, str.eglGetProcAddress
mov qword [0x1401c9280], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1401c9210], rbx
mov rcx, rax
mov qword [0x1401c9288], rax
je 0x1400c6042
cmp qword [0x1401c9218], rbx
je 0x1400c6042
cmp qword [0x1401c9220], rbx
je 0x1400c6042
cmp qword [0x1401c9228], rbx
je 0x1400c6042
cmp qword [0x1401c9230], rbx
je 0x1400c6042
cmp qword [0x1401c9238], rbx
je 0x1400c6042
cmp qword [0x1401c9240], rbx
je 0x1400c6042
cmp qword [0x1401c9248], rbx
je 0x1400c6042
cmp qword [0x1401c9250], rbx
je 0x1400c6042
cmp qword [0x1401c9258], rbx
je 0x1400c6042
cmp qword [0x1401c9260], rbx
je 0x1400c6042
cmp qword [0x1401c9268], rbx
je 0x1400c6042
cmp qword [0x1401c9270], rbx
je 0x1400c6042
cmp qword [0x1401c9278], rbx
je 0x1400c6042
mov rax, qword [0x1401c9280]
test rax, rax
je 0x1400c6042
test rcx, rcx
je 0x1400c6042
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1400c5d44
call qword [0x1401c9228]
cmp eax, 0x3000
jne 0x1400c5d44
mov dword [0x1401c91e0], 1
jmp 0x1400c5d50
cmp dword [0x1401c91e0], ebx
je 0x1400c5df8
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1400b8c60
mov rdx, rdi
mov dword [0x1401c91e4], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400b8c60
mov rdx, rdi
mov dword [0x1401c91e8], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400b8c60
mov rdx, rdi
mov dword [0x1401c91ec], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400b8c60
mov rdx, rdi
mov dword [0x1401c91f4], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400b8c60
mov rdx, rdi
mov dword [0x1401c91f8], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400b8c60
mov rdx, rdi
mov dword [0x1401c91fc], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400b8c60
mov rdx, rdi
mov dword [0x1401c9200], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400b8c60
mov dword [0x1401c9204], eax
cmp dword [0x1401c91e4], ebx
je 0x1400c5e28
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1401c9288]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1401c9290], rax
call qword [0x1401c9288]
mov qword [0x1401c9298], rax
lea rcx, [rsp + 0x20]
call qword [0x1401c79f8]
mov dword [0x1401c91b0], eax
test eax, eax
je 0x1400c5e59
call qword [0x1401c7a00]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1401c91b0]
call qword [0x1401c9290]
jmp 0x1400c5e68
call qword [0x1401c7a00]
mov rcx, rax
call qword [0x1401c9220]
mov rcx, qword [rsp + 0x20]
mov qword [0x1401c91b8], rax
call fcn.1400ba2c0
mov rcx, qword [0x1401c91b8]
test rcx, rcx
jne 0x1400c5eb0
call qword [0x1401c9228]
mov ecx, eax
call fcn.1400c6530
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1400b9db0
call fcn.1400c60b0
jmp 0x1400c6084
lea r8, [0x1401c91c4]
lea rdx, [0x1401c91c0]
call qword [0x1401c9230]
test eax, eax
jne 0x1400c5ef3
call qword [0x1401c9228]
mov ecx, eax
call fcn.1400c6530
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1400b9db0
call fcn.1400c60b0
jmp 0x1400c6084
mov rcx, qword [0x1401c91b8]
mov edx, 0x3055
call qword [0x1401c9280]
test rax, rax
je 0x1400c5f22
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1400b8c60
test eax, eax
mov eax, 1
jne 0x1400c5f24
mov eax, ebx
mov rcx, qword [0x1401c91b8]
mov edx, 0x3055
mov dword [0x1401c91cc], eax
call qword [0x1401c9280]
test rax, rax
je 0x1400c5f59
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400b8c60
test eax, eax
mov eax, 1
jne 0x1400c5f5b
mov eax, ebx
mov rcx, qword [0x1401c91b8]
mov edx, 0x3055
mov dword [0x1401c91d0], eax
call qword [0x1401c9280]
test rax, rax
je 0x1400c5f90
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400b8c60
test eax, eax
mov eax, 1
jne 0x1400c5f92
mov eax, ebx
mov rcx, qword [0x1401c91b8]
mov edx, 0x3055
mov dword [0x1401c91d4], eax
call qword [0x1401c9280]
test rax, rax
je 0x1400c5fc7
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400b8c60
test eax, eax
mov eax, 1
jne 0x1400c5fc9
mov eax, ebx
mov rcx, qword [0x1401c91b8]
mov edx, 0x3055
mov dword [0x1401c91d8], eax
call qword [0x1401c9280]
test rax, rax
je 0x1400c5ffe
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400b8c60
test eax, eax
mov eax, 1
jne 0x1400c6000
mov eax, ebx
mov rcx, qword [0x1401c91b8]
mov edx, 0x3055
mov dword [0x1401c91dc], eax
call qword [0x1401c9280]
test rax, rax
je 0x1400c6035
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1400b8c60
test eax, eax
je 0x1400c6035
mov ebx, 1
mov dword [0x1401c91f0], ebx
mov eax, 1
jmp 0x1400c6086
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400b9db0
mov rcx, qword [0x1401c91b8]
test rcx, rcx
je 0x1400c606c
call qword [0x1401c9238]
mov qword [0x1401c91b8], rbx
mov rcx, qword [0x1401c9208]
test rcx, rcx
je 0x1400c6084
call fcn.1400c7400
mov qword [0x1401c9208], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140127920
add rsp, 0x50
pop rbx
ret