Function at 0x14003b410
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x14006bb38], rbx
lea rcx, str.EGL.dll
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rbx
je 0x14003b44c
lea eax, [rbx + 1]
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x58], rsi
mov esi, ebx
mov qword [rsp + 0x60], rdi
mov rdi, rbx
nop dword [rax + rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x14006bb38], rax
mov rcx, rax
test rax, rax
jne 0x14003b486
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x14003b460
test rcx, rcx
jne 0x14003b4ae
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140031a50
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x14005a3a0]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x20]
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 [0x14006baf8], ecx
mov rcx, qword [0x14006bb38]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglGetConfigs
mov qword [0x14006bb40], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglGetDisplay
mov qword [0x14006bb48], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglGetError
mov qword [0x14006bb50], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglInitialize
mov qword [0x14006bb58], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglTerminate
mov qword [0x14006bb60], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglBindAPI
mov qword [0x14006bb68], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglCreateContext
mov qword [0x14006bb70], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglDestroySurface
mov qword [0x14006bb78], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglDestroyContext
mov qword [0x14006bb80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglCreateWindowSurface
mov qword [0x14006bb88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglMakeCurrent
mov qword [0x14006bb90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglSwapBuffers
mov qword [0x14006bb98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglSwapInterval
mov qword [0x14006bba0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglQueryString
mov qword [0x14006bba8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14006bb38]
lea rdx, str.eglGetProcAddress
mov qword [0x14006bbb0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x14006bb40], rbx
mov rcx, rax
mov qword [0x14006bbb8], rax
je 0x14003ba98
cmp qword [0x14006bb48], rbx
je 0x14003ba98
cmp qword [0x14006bb50], rbx
je 0x14003ba98
cmp qword [0x14006bb58], rbx
je 0x14003ba98
cmp qword [0x14006bb60], rbx
je 0x14003ba98
cmp qword [0x14006bb68], rbx
je 0x14003ba98
cmp qword [0x14006bb70], rbx
je 0x14003ba98
cmp qword [0x14006bb78], rbx
je 0x14003ba98
cmp qword [0x14006bb80], rbx
je 0x14003ba98
cmp qword [0x14006bb88], rbx
je 0x14003ba98
cmp qword [0x14006bb90], rbx
je 0x14003ba98
cmp qword [0x14006bb98], rbx
je 0x14003ba98
cmp qword [0x14006bba0], rbx
je 0x14003ba98
cmp qword [0x14006bba8], rbx
je 0x14003ba98
mov rax, qword [0x14006bbb0]
test rax, rax
je 0x14003ba98
test rcx, rcx
je 0x14003ba98
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x14003b772
call qword [0x14006bb58]
cmp eax, 0x3000
jne 0x14003b772
mov dword [0x14006bb10], 1
jmp 0x14003b77e
cmp dword [0x14006bb10], ebx
je 0x14003b826
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.140036e50
mov rdx, rdi
mov dword [0x14006bb14], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140036e50
mov rdx, rdi
mov dword [0x14006bb18], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140036e50
mov rdx, rdi
mov dword [0x14006bb1c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140036e50
mov rdx, rdi
mov dword [0x14006bb24], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140036e50
mov rdx, rdi
mov dword [0x14006bb28], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140036e50
mov rdx, rdi
mov dword [0x14006bb2c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140036e50
mov rdx, rdi
mov dword [0x14006bb30], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140036e50
mov dword [0x14006bb34], eax
cmp dword [0x14006bb14], ebx
je 0x14003b856
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x14006bbb8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x14006bbc0], rax
call qword [0x14006bbb8]
mov qword [0x14006bbc8], rax
lea rcx, [rsp + 0x50]
call qword [0x14006a328]
mov dword [0x14006bae0], eax
test eax, eax
je 0x14003b887
call qword [0x14006a330]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x14006bae0]
call qword [0x14006bbc0]
jmp 0x14003b896
call qword [0x14006a330]
mov rcx, rax
call qword [0x14006bb50]
mov rcx, qword [rsp + 0x50]
mov qword [0x14006bae8], rax
call fcn.140031f60
mov rcx, qword [0x14006bae8]
test rcx, rcx
jne 0x14003b8eb
call qword [0x14006bb58]
mov ecx, eax
call fcn.14003bf70
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140031a50
call fcn.14003baf0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x14006baf4]
lea rdx, [0x14006baf0]
call qword [0x14006bb60]
test eax, eax
jne 0x14003b93b
call qword [0x14006bb58]
mov ecx, eax
call fcn.14003bf70
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140031a50
call fcn.14003baf0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x14006bae8]
mov edx, 0x3055
call qword [0x14006bbb0]
test rax, rax
je 0x14003b96a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140036e50
test eax, eax
mov eax, 1
jne 0x14003b96c
mov eax, ebx
mov rcx, qword [0x14006bae8]
mov edx, 0x3055
mov dword [0x14006bafc], eax
call qword [0x14006bbb0]
test rax, rax
je 0x14003b9a1
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140036e50
test eax, eax
mov eax, 1
jne 0x14003b9a3
mov eax, ebx
mov rcx, qword [0x14006bae8]
mov edx, 0x3055
mov dword [0x14006bb00], eax
call qword [0x14006bbb0]
test rax, rax
je 0x14003b9d8
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140036e50
test eax, eax
mov eax, 1
jne 0x14003b9da
mov eax, ebx
mov rcx, qword [0x14006bae8]
mov edx, 0x3055
mov dword [0x14006bb04], eax
call qword [0x14006bbb0]
test rax, rax
je 0x14003ba0f
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140036e50
test eax, eax
mov eax, 1
jne 0x14003ba11
mov eax, ebx
mov rcx, qword [0x14006bae8]
mov edx, 0x3055
mov dword [0x14006bb08], eax
call qword [0x14006bbb0]
test rax, rax
je 0x14003ba46
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140036e50
test eax, eax
mov eax, 1
jne 0x14003ba48
mov eax, ebx
mov rcx, qword [0x14006bae8]
mov edx, 0x3055
mov dword [0x14006bb0c], eax
call qword [0x14006bbb0]
test rax, rax
je 0x14003ba7d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140036e50
test eax, eax
je 0x14003ba7d
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x14006bb20], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140031a50
mov rcx, qword [0x14006bae8]
test rcx, rcx
je 0x14003bac2
call qword [0x14006bb68]
mov qword [0x14006bae8], rbx
mov rcx, qword [0x14006bb38]
test rcx, rcx
je 0x14003bada
call sub.KERNEL32.dll_FreeLibrary
mov qword [0x14006bb38], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret