Function at 0x1400fac34
Capabilities:
Link many functions at runtime

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140151388]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
lea rax, str.libEGL.dll
cmp qword [0x140155568], rsi
lea rcx, str.EGL.dll
mov qword [r11 - 0x38], rsi
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rcx
mov qword [r11 - 0x20], rsi
je 0x1400fac86
mov eax, 1
jmp 0x1400fb1b1
mov edi, esi
mov rbx, rsi
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140155568], rax
mov rcx, rax
test rax, rax
jne 0x1400facb1
mov rax, qword [rsp + rbx*8 + 0x30]
inc rbx
inc edi
test rax, rax
jne 0x1400fac8b
test rcx, rcx
jne 0x1400faccc
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1400efc94
jmp 0x1400fb1af
movsxd rcx, edi
lea rdx, [0x14013e600]
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, esi
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x140155528], ecx
mov rcx, qword [0x140155568]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglGetConfigs
mov qword [0x140155570], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglGetDisplay
mov qword [0x140155578], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglGetError
mov qword [0x140155580], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglInitialize
mov qword [0x140155588], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglTerminate
mov qword [0x140155590], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglBindAPI
mov qword [0x140155598], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglCreateContext
mov qword [0x1401555a0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglDestroySurface
mov qword [0x1401555a8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglDestroyContext
mov qword [0x1401555b0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1401555b8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglMakeCurrent
mov qword [0x1401555c0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglSwapBuffers
mov qword [0x1401555c8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglSwapInterval
mov qword [0x1401555d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglQueryString
mov qword [0x1401555d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140155568]
lea rdx, str.eglGetProcAddress
mov qword [0x1401555e0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140155570], rsi
mov rcx, rax
mov qword [0x1401555e8], rax
je 0x1400fb199
cmp qword [0x140155578], rsi
je 0x1400fb199
cmp qword [0x140155580], rsi
je 0x1400fb199
cmp qword [0x140155588], rsi
je 0x1400fb199
cmp qword [0x140155590], rsi
je 0x1400fb199
cmp qword [0x140155598], rsi
je 0x1400fb199
cmp qword [0x1401555a0], rsi
je 0x1400fb199
cmp qword [0x1401555a8], rsi
je 0x1400fb199
cmp qword [0x1401555b0], rsi
je 0x1400fb199
cmp qword [0x1401555b8], rsi
je 0x1400fb199
cmp qword [0x1401555c0], rsi
je 0x1400fb199
cmp qword [0x1401555c8], rsi
je 0x1400fb199
cmp qword [0x1401555d0], rsi
je 0x1400fb199
cmp qword [0x1401555d8], rsi
je 0x1400fb199
mov rax, qword [0x1401555e0]
test rax, rax
je 0x1400fb199
test rcx, rcx
je 0x1400fb199
mov edx, 0x3055
xor ecx, ecx
call rax
mov rbx, rax
test rax, rax
je 0x1400faf91
call qword [0x140155588]
cmp eax, 0x3000
jne 0x1400faf91
mov eax, 1
mov dword [0x140155540], eax
jmp 0x1400faf97
mov eax, dword [0x140155540]
test eax, eax
je 0x1400fb047
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_base
call fcn.1400f1958
mov rdx, rbx
mov dword [0x140155544], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400f1958
mov rdx, rbx
mov dword [0x140155548], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400f1958
mov rdx, rbx
mov dword [0x14015554c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400f1958
mov rdx, rbx
mov dword [0x140155554], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400f1958
mov rdx, rbx
mov dword [0x140155558], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400f1958
mov rdx, rbx
mov dword [0x14015555c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400f1958
mov rdx, rbx
mov dword [0x140155560], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400f1958
mov dword [0x140155564], eax
cmp dword [0x140155544], esi
je 0x1400fb077
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1401555e8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1401555f0], rax
call qword [0x1401555e8]
mov qword [0x1401555f8], rax
lea rcx, [rsp + 0x20]
call qword [0x140153d58]
mov dword [0x140155510], eax
test eax, eax
je 0x1400fb0a8
call qword [0x140153d60]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x140155510]
call qword [0x1401555f0]
jmp 0x1400fb0b7
call qword [0x140153d60]
mov rcx, rax
call qword [0x140155580]
mov rcx, qword [rsp + 0x20]
mov qword [0x140155518], rax
call fcn.1400eff68
mov rcx, qword [0x140155518]
test rcx, rcx
jne 0x1400fb0fa
call qword [0x140155588]
mov ecx, eax
call fcn.1400fb598
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov r8, rax
mov ecx, 0x10006
call fcn.1400efc94
jmp 0x1400fb1aa
lea r8, [0x140155524]
lea rdx, [0x140155520]
call qword [0x140155590]
test eax, eax
jne 0x1400fb128
call qword [0x140155588]
mov ecx, eax
call fcn.1400fb598
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x1400fb0e8
lea rcx, str.EGL_KHR_create_context
call fcn.1400fb52c
lea rcx, str.EGL_KHR_create_context_no_error
mov dword [0x14015552c], eax
call fcn.1400fb52c
lea rcx, str.EGL_KHR_gl_colorspace
mov dword [0x140155530], eax
call fcn.1400fb52c
lea rcx, str.EGL_KHR_get_all_proc_addresses
mov dword [0x140155534], eax
call fcn.1400fb52c
lea rcx, str.EGL_KHR_context_flush_control
mov dword [0x140155538], eax
call fcn.1400fb52c
lea rcx, str.EGL_EXT_present_opaque
mov dword [0x14015553c], eax
call fcn.1400fb52c
mov dword [0x140155550], eax
jmp 0x1400fac7c
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400efc94
call fcn.1400fb1d0
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14010ef70
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret