Function at 0x1400c7360
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401b06f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1401cb218], 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 0x1400c73b8
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401292a0
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 [0x1401cb218], rax
test rax, rax
jne 0x1400c7400
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1400c73c7
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1400bb730
jmp 0x1400c7a04
movsxd rcx, esi
lea rdx, [0x14014e860]
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 [0x1401cb1d8], ecx
mov rcx, qword [0x1401cb218]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglGetConfigs
mov qword [0x1401cb220], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglGetDisplay
mov qword [0x1401cb228], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglGetError
mov qword [0x1401cb230], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglInitialize
mov qword [0x1401cb238], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglTerminate
mov qword [0x1401cb240], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglBindAPI
mov qword [0x1401cb248], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglCreateContext
mov qword [0x1401cb250], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglDestroySurface
mov qword [0x1401cb258], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglDestroyContext
mov qword [0x1401cb260], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1401cb268], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglMakeCurrent
mov qword [0x1401cb270], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglSwapBuffers
mov qword [0x1401cb278], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglSwapInterval
mov qword [0x1401cb280], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglQueryString
mov qword [0x1401cb288], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401cb218]
lea rdx, str.eglGetProcAddress
mov qword [0x1401cb290], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1401cb220], rbx
mov rcx, rax
mov qword [0x1401cb298], rax
je 0x1400c79c2
cmp qword [0x1401cb228], rbx
je 0x1400c79c2
cmp qword [0x1401cb230], rbx
je 0x1400c79c2
cmp qword [0x1401cb238], rbx
je 0x1400c79c2
cmp qword [0x1401cb240], rbx
je 0x1400c79c2
cmp qword [0x1401cb248], rbx
je 0x1400c79c2
cmp qword [0x1401cb250], rbx
je 0x1400c79c2
cmp qword [0x1401cb258], rbx
je 0x1400c79c2
cmp qword [0x1401cb260], rbx
je 0x1400c79c2
cmp qword [0x1401cb268], rbx
je 0x1400c79c2
cmp qword [0x1401cb270], rbx
je 0x1400c79c2
cmp qword [0x1401cb278], rbx
je 0x1400c79c2
cmp qword [0x1401cb280], rbx
je 0x1400c79c2
cmp qword [0x1401cb288], rbx
je 0x1400c79c2
mov rax, qword [0x1401cb290]
test rax, rax
je 0x1400c79c2
test rcx, rcx
je 0x1400c79c2
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1400c76c4
call qword [0x1401cb238]
cmp eax, 0x3000
jne 0x1400c76c4
mov dword [0x1401cb1f0], 1
jmp 0x1400c76d0
cmp dword [0x1401cb1f0], ebx
je 0x1400c7778
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1400ba5e0
mov rdx, rdi
mov dword [0x1401cb1f4], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400ba5e0
mov rdx, rdi
mov dword [0x1401cb1f8], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400ba5e0
mov rdx, rdi
mov dword [0x1401cb1fc], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400ba5e0
mov rdx, rdi
mov dword [0x1401cb204], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400ba5e0
mov rdx, rdi
mov dword [0x1401cb208], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400ba5e0
mov rdx, rdi
mov dword [0x1401cb20c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400ba5e0
mov rdx, rdi
mov dword [0x1401cb210], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400ba5e0
mov dword [0x1401cb214], eax
cmp dword [0x1401cb1f4], ebx
je 0x1400c77a8
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1401cb298]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1401cb2a0], rax
call qword [0x1401cb298]
mov qword [0x1401cb2a8], rax
lea rcx, [rsp + 0x20]
call qword [0x1401c9a08]
mov dword [0x1401cb1c0], eax
test eax, eax
je 0x1400c77d9
call qword [0x1401c9a10]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1401cb1c0]
call qword [0x1401cb2a0]
jmp 0x1400c77e8
call qword [0x1401c9a10]
mov rcx, rax
call qword [0x1401cb230]
mov rcx, qword [rsp + 0x20]
mov qword [0x1401cb1c8], rax
call fcn.1400bbc40
mov rcx, qword [0x1401cb1c8]
test rcx, rcx
jne 0x1400c7830
call qword [0x1401cb238]
mov ecx, eax
call fcn.1400c7eb0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1400bb730
call fcn.1400c7a30
jmp 0x1400c7a04
lea r8, [0x1401cb1d4]
lea rdx, [0x1401cb1d0]
call qword [0x1401cb240]
test eax, eax
jne 0x1400c7873
call qword [0x1401cb238]
mov ecx, eax
call fcn.1400c7eb0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1400bb730
call fcn.1400c7a30
jmp 0x1400c7a04
mov rcx, qword [0x1401cb1c8]
mov edx, 0x3055
call qword [0x1401cb290]
test rax, rax
je 0x1400c78a2
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1400ba5e0
test eax, eax
mov eax, 1
jne 0x1400c78a4
mov eax, ebx
mov rcx, qword [0x1401cb1c8]
mov edx, 0x3055
mov dword [0x1401cb1dc], eax
call qword [0x1401cb290]
test rax, rax
je 0x1400c78d9
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400ba5e0
test eax, eax
mov eax, 1
jne 0x1400c78db
mov eax, ebx
mov rcx, qword [0x1401cb1c8]
mov edx, 0x3055
mov dword [0x1401cb1e0], eax
call qword [0x1401cb290]
test rax, rax
je 0x1400c7910
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400ba5e0
test eax, eax
mov eax, 1
jne 0x1400c7912
mov eax, ebx
mov rcx, qword [0x1401cb1c8]
mov edx, 0x3055
mov dword [0x1401cb1e4], eax
call qword [0x1401cb290]
test rax, rax
je 0x1400c7947
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400ba5e0
test eax, eax
mov eax, 1
jne 0x1400c7949
mov eax, ebx
mov rcx, qword [0x1401cb1c8]
mov edx, 0x3055
mov dword [0x1401cb1e8], eax
call qword [0x1401cb290]
test rax, rax
je 0x1400c797e
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400ba5e0
test eax, eax
mov eax, 1
jne 0x1400c7980
mov eax, ebx
mov rcx, qword [0x1401cb1c8]
mov edx, 0x3055
mov dword [0x1401cb1ec], eax
call qword [0x1401cb290]
test rax, rax
je 0x1400c79b5
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1400ba5e0
test eax, eax
je 0x1400c79b5
mov ebx, 1
mov dword [0x1401cb200], ebx
mov eax, 1
jmp 0x1400c7a06
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400bb730
mov rcx, qword [0x1401cb1c8]
test rcx, rcx
je 0x1400c79ec
call qword [0x1401cb248]
mov qword [0x1401cb1c8], rbx
mov rcx, qword [0x1401cb218]
test rcx, rcx
je 0x1400c7a04
call fcn.1400c8d80
mov qword [0x1401cb218], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401292a0
add rsp, 0x50
pop rbx
ret