Function at 0x1401fd0d0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1405ca2b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1405d9100], 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 0x1401fd128
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140261670
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 [0x1405d9100], rax
test rax, rax
jne 0x1401fd170
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1401fd137
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1401f1d80
jmp 0x1401fd774
movsxd rcx, esi
lea rdx, [0x1402ace10]
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 [0x1405d90c0], ecx
mov rcx, qword [0x1405d9100]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglGetConfigs
mov qword [0x1405d9108], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglGetDisplay
mov qword [0x1405d9110], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglGetError
mov qword [0x1405d9118], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglInitialize
mov qword [0x1405d9120], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglTerminate
mov qword [0x1405d9128], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglBindAPI
mov qword [0x1405d9130], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglCreateContext
mov qword [0x1405d9138], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglDestroySurface
mov qword [0x1405d9140], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglDestroyContext
mov qword [0x1405d9148], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1405d9150], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglMakeCurrent
mov qword [0x1405d9158], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglSwapBuffers
mov qword [0x1405d9160], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglSwapInterval
mov qword [0x1405d9168], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglQueryString
mov qword [0x1405d9170], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1405d9100]
lea rdx, str.eglGetProcAddress
mov qword [0x1405d9178], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1405d9108], rbx
mov rcx, rax
mov qword [0x1405d9180], rax
je 0x1401fd732
cmp qword [0x1405d9110], rbx
je 0x1401fd732
cmp qword [0x1405d9118], rbx
je 0x1401fd732
cmp qword [0x1405d9120], rbx
je 0x1401fd732
cmp qword [0x1405d9128], rbx
je 0x1401fd732
cmp qword [0x1405d9130], rbx
je 0x1401fd732
cmp qword [0x1405d9138], rbx
je 0x1401fd732
cmp qword [0x1405d9140], rbx
je 0x1401fd732
cmp qword [0x1405d9148], rbx
je 0x1401fd732
cmp qword [0x1405d9150], rbx
je 0x1401fd732
cmp qword [0x1405d9158], rbx
je 0x1401fd732
cmp qword [0x1405d9160], rbx
je 0x1401fd732
cmp qword [0x1405d9168], rbx
je 0x1401fd732
cmp qword [0x1405d9170], rbx
je 0x1401fd732
mov rax, qword [0x1405d9178]
test rax, rax
je 0x1401fd732
test rcx, rcx
je 0x1401fd732
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1401fd434
call qword [0x1405d9120]
cmp eax, 0x3000
jne 0x1401fd434
mov dword [0x1405d90d8], 1
jmp 0x1401fd440
cmp dword [0x1405d90d8], ebx
je 0x1401fd4e8
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1401f0c20
mov rdx, rdi
mov dword [0x1405d90dc], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1401f0c20
mov rdx, rdi
mov dword [0x1405d90e0], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1401f0c20
mov rdx, rdi
mov dword [0x1405d90e4], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1401f0c20
mov rdx, rdi
mov dword [0x1405d90ec], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1401f0c20
mov rdx, rdi
mov dword [0x1405d90f0], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1401f0c20
mov rdx, rdi
mov dword [0x1405d90f4], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1401f0c20
mov rdx, rdi
mov dword [0x1405d90f8], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1401f0c20
mov dword [0x1405d90fc], eax
cmp dword [0x1405d90dc], ebx
je 0x1401fd518
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1405d9180]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1405d9188], rax
call qword [0x1405d9180]
mov qword [0x1405d9190], rax
lea rcx, [rsp + 0x20]
call qword [0x1405d78e8]
mov dword [0x1405d90a8], eax
test eax, eax
je 0x1401fd549
call qword [0x1405d78f0]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1405d90a8]
call qword [0x1405d9188]
jmp 0x1401fd558
call qword [0x1405d78f0]
mov rcx, rax
call qword [0x1405d9118]
mov rcx, qword [rsp + 0x20]
mov qword [0x1405d90b0], rax
call fcn.1401f2280
mov rcx, qword [0x1405d90b0]
test rcx, rcx
jne 0x1401fd5a0
call qword [0x1405d9120]
mov ecx, eax
call fcn.1401fdc20
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1401f1d80
call fcn.1401fd7a0
jmp 0x1401fd774
lea r8, [0x1405d90bc]
lea rdx, [0x1405d90b8]
call qword [0x1405d9128]
test eax, eax
jne 0x1401fd5e3
call qword [0x1405d9120]
mov ecx, eax
call fcn.1401fdc20
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1401f1d80
call fcn.1401fd7a0
jmp 0x1401fd774
mov rcx, qword [0x1405d90b0]
mov edx, 0x3055
call qword [0x1405d9178]
test rax, rax
je 0x1401fd612
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1401f0c20
test eax, eax
mov eax, 1
jne 0x1401fd614
mov eax, ebx
mov rcx, qword [0x1405d90b0]
mov edx, 0x3055
mov dword [0x1405d90c4], eax
call qword [0x1405d9178]
test rax, rax
je 0x1401fd649
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1401f0c20
test eax, eax
mov eax, 1
jne 0x1401fd64b
mov eax, ebx
mov rcx, qword [0x1405d90b0]
mov edx, 0x3055
mov dword [0x1405d90c8], eax
call qword [0x1405d9178]
test rax, rax
je 0x1401fd680
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1401f0c20
test eax, eax
mov eax, 1
jne 0x1401fd682
mov eax, ebx
mov rcx, qword [0x1405d90b0]
mov edx, 0x3055
mov dword [0x1405d90cc], eax
call qword [0x1405d9178]
test rax, rax
je 0x1401fd6b7
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1401f0c20
test eax, eax
mov eax, 1
jne 0x1401fd6b9
mov eax, ebx
mov rcx, qword [0x1405d90b0]
mov edx, 0x3055
mov dword [0x1405d90d0], eax
call qword [0x1405d9178]
test rax, rax
je 0x1401fd6ee
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1401f0c20
test eax, eax
mov eax, 1
jne 0x1401fd6f0
mov eax, ebx
mov rcx, qword [0x1405d90b0]
mov edx, 0x3055
mov dword [0x1405d90d4], eax
call qword [0x1405d9178]
test rax, rax
je 0x1401fd725
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1401f0c20
test eax, eax
je 0x1401fd725
mov ebx, 1
mov dword [0x1405d90e8], ebx
mov eax, 1
jmp 0x1401fd776
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401f1d80
mov rcx, qword [0x1405d90b0]
test rcx, rcx
je 0x1401fd75c
call qword [0x1405d9130]
mov qword [0x1405d90b0], rbx
mov rcx, qword [0x1405d9100]
test rcx, rcx
je 0x1401fd774
call fcn.1401feb00
mov qword [0x1405d9100], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140261670
add rsp, 0x50
pop rbx
ret