Function at 0x140136c03
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x140389090
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x20]
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1404f6d40]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x38], 0
lea rax, str.libEGL.dll
mov qword [rsp + 0x58], rax
lea rax, str.EGL.dll
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
cmp qword [0x14050cf40], 0
je 0x1403890fa
mov eax, 1
jmp 0x140389682
mov dword [rsp + 0x20], 0
jmp 0x14038910e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + rax*8 + 0x58], 0
je 0x140389140
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + rax*8 + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14050cf40], rax
cmp qword [0x14050cf40], 0
je 0x14038913e
jmp 0x140389140
jmp 0x140389104
cmp qword [0x14050cf40], 0
jne 0x140389162
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1401347fa
xor eax, eax
jmp 0x140389682
movsxd rax, dword [rsp + 0x20]
mov r8d, 3
lea rdx, [0x1404f4624]
mov rcx, qword [rsp + rax*8 + 0x58]
call qword [sym.imp.ucrtbased.dll_strncmp]
test eax, eax
jne 0x140389190
mov dword [rsp + 0x80], 1
jmp 0x14038919b
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
mov dword [0x14050cf00], eax
lea rdx, str.eglGetConfigAttrib
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf48], rax
lea rdx, str.eglGetConfigs
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf50], rax
lea rdx, str.eglGetDisplay
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf58], rax
lea rdx, str.eglGetError
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf60], rax
lea rdx, str.eglInitialize
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf68], rax
lea rdx, str.eglTerminate
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf70], rax
lea rdx, str.eglBindAPI
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf78], rax
lea rdx, str.eglCreateContext
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf80], rax
lea rdx, str.eglDestroySurface
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf88], rax
lea rdx, str.eglDestroyContext
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf90], rax
lea rdx, str.eglCreateWindowSurface
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cf98], rax
lea rdx, str.eglMakeCurrent
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cfa0], rax
lea rdx, str.eglSwapBuffers
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cfa8], rax
lea rdx, str.eglSwapInterval
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cfb0], rax
lea rdx, str.eglQueryString
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cfb8], rax
lea rdx, str.eglGetProcAddress
mov rcx, qword [0x14050cf40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14050cfc0], rax
cmp qword [0x14050cf48], 0
je 0x140389404
cmp qword [0x14050cf50], 0
je 0x140389404
cmp qword [0x14050cf58], 0
je 0x140389404
cmp qword [0x14050cf60], 0
je 0x140389404
cmp qword [0x14050cf68], 0
je 0x140389404
cmp qword [0x14050cf70], 0
je 0x140389404
cmp qword [0x14050cf78], 0
je 0x140389404
cmp qword [0x14050cf80], 0
je 0x140389404
cmp qword [0x14050cf88], 0
je 0x140389404
cmp qword [0x14050cf90], 0
je 0x140389404
cmp qword [0x14050cf98], 0
je 0x140389404
cmp qword [0x14050cfa0], 0
je 0x140389404
cmp qword [0x14050cfa8], 0
je 0x140389404
cmp qword [0x14050cfb0], 0
je 0x140389404
cmp qword [0x14050cfb8], 0
je 0x140389404
cmp qword [0x14050cfc0], 0
jne 0x140389421
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401347fa
call fcn.1401310f5
xor eax, eax
jmp 0x140389682
mov edx, 0x3055
xor ecx, ecx
call qword [0x14050cfb8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140389452
call qword [0x14050cf60]
cmp eax, 0x3000
jne 0x140389452
mov dword [0x14050cf18], 1
cmp dword [0x14050cf18], 0
je 0x140389517
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_EXT_platform_base
call fcn.1401368a7
mov dword [0x14050cf1c], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_EXT_platform_x11
call fcn.1401368a7
mov dword [0x14050cf20], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1401368a7
mov dword [0x14050cf24], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1401368a7
mov dword [0x14050cf28], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1401368a7
mov dword [0x14050cf2c], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1401368a7
mov dword [0x14050cf30], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1401368a7
mov dword [0x14050cf34], eax
mov rdx, qword [rsp + 0x48]
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1401368a7
mov dword [0x14050cf38], eax
cmp dword [0x14050cf1c], 0
je 0x140389548
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x14050cfc0]
mov qword [0x14050cfc8], rax
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
call qword [0x14050cfc0]
mov qword [0x14050cfd0], rax
lea rcx, [rsp + 0x38]
call fcn.140133463
mov dword [0x14050cee8], eax
cmp dword [0x14050cee8], 0
je 0x140389583
call fcn.14013439f
mov r8, qword [rsp + 0x38]
mov rdx, rax
mov ecx, dword [0x14050cee8]
call qword [0x14050cfc8]
mov qword [0x14050cef0], rax
jmp 0x140389598
call fcn.14013439f
mov rcx, rax
call qword [0x14050cf58]
mov qword [0x14050cef0], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ucrtbased.dll_free]
cmp qword [0x14050cef0], 0
jne 0x1403895da
call qword [0x14050cf60]
mov ecx, eax
call fcn.14038a410
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1401347fa
call fcn.1401310f5
xor eax, eax
jmp 0x140389682
lea r8, [0x14050cefc]
lea rdx, [0x14050cef8]
mov rcx, qword [0x14050cef0]
call qword [0x14050cf68]
test eax, eax
jne 0x140389623
call qword [0x14050cf60]
mov ecx, eax
call fcn.14038a410
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1401347fa
call fcn.1401310f5
xor eax, eax
jmp 0x140389682
lea rcx, str.EGL_KHR_create_context
call fcn.14038aa20
mov dword [0x14050cf04], eax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.14038aa20
mov dword [0x14050cf08], eax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.14038aa20
mov dword [0x14050cf0c], eax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.14038aa20
mov dword [0x14050cf10], eax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.14038aa20
mov dword [0x14050cf14], eax
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140431d60]
call fcn.1401365e1
mov rax, rdi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140134205
add rsp, 0x90
pop rdi
ret