Function at 0x1400fa3d0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401e56c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1401e8238], 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 0x1400fa428
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14015bde0
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 [0x1401e8238], rax
test rax, rax
jne 0x1400fa470
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1400fa437
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1400efff0
jmp 0x1400faa74
movsxd rcx, esi
lea rdx, [0x140185a60]
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 [0x1401e81f8], ecx
mov rcx, qword [0x1401e8238]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglGetConfigs
mov qword [0x1401e8240], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglGetDisplay
mov qword [0x1401e8248], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglGetError
mov qword [0x1401e8250], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglInitialize
mov qword [0x1401e8258], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglTerminate
mov qword [0x1401e8260], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglBindAPI
mov qword [0x1401e8268], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglCreateContext
mov qword [0x1401e8270], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglDestroySurface
mov qword [0x1401e8278], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglDestroyContext
mov qword [0x1401e8280], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1401e8288], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglMakeCurrent
mov qword [0x1401e8290], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglSwapBuffers
mov qword [0x1401e8298], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglSwapInterval
mov qword [0x1401e82a0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglQueryString
mov qword [0x1401e82a8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401e8238]
lea rdx, str.eglGetProcAddress
mov qword [0x1401e82b0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1401e8240], rbx
mov rcx, rax
mov qword [0x1401e82b8], rax
je 0x1400faa32
cmp qword [0x1401e8248], rbx
je 0x1400faa32
cmp qword [0x1401e8250], rbx
je 0x1400faa32
cmp qword [0x1401e8258], rbx
je 0x1400faa32
cmp qword [0x1401e8260], rbx
je 0x1400faa32
cmp qword [0x1401e8268], rbx
je 0x1400faa32
cmp qword [0x1401e8270], rbx
je 0x1400faa32
cmp qword [0x1401e8278], rbx
je 0x1400faa32
cmp qword [0x1401e8280], rbx
je 0x1400faa32
cmp qword [0x1401e8288], rbx
je 0x1400faa32
cmp qword [0x1401e8290], rbx
je 0x1400faa32
cmp qword [0x1401e8298], rbx
je 0x1400faa32
cmp qword [0x1401e82a0], rbx
je 0x1400faa32
cmp qword [0x1401e82a8], rbx
je 0x1400faa32
mov rax, qword [0x1401e82b0]
test rax, rax
je 0x1400faa32
test rcx, rcx
je 0x1400faa32
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1400fa734
call qword [0x1401e8258]
cmp eax, 0x3000
jne 0x1400fa734
mov dword [0x1401e8210], 1
jmp 0x1400fa740
cmp dword [0x1401e8210], ebx
je 0x1400fa7e8
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1400f5a90
mov rdx, rdi
mov dword [0x1401e8214], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400f5a90
mov rdx, rdi
mov dword [0x1401e8218], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400f5a90
mov rdx, rdi
mov dword [0x1401e821c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400f5a90
mov rdx, rdi
mov dword [0x1401e8224], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400f5a90
mov rdx, rdi
mov dword [0x1401e8228], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400f5a90
mov rdx, rdi
mov dword [0x1401e822c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400f5a90
mov rdx, rdi
mov dword [0x1401e8230], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400f5a90
mov dword [0x1401e8234], eax
cmp dword [0x1401e8214], ebx
je 0x1400fa818
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1401e82b8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1401e82c0], rax
call qword [0x1401e82b8]
mov qword [0x1401e82c8], rax
lea rcx, [rsp + 0x20]
call qword [0x1401e6a28]
mov dword [0x1401e81e0], eax
test eax, eax
je 0x1400fa849
call qword [0x1401e6a30]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1401e81e0]
call qword [0x1401e82c0]
jmp 0x1400fa858
call qword [0x1401e6a30]
mov rcx, rax
call qword [0x1401e8250]
mov rcx, qword [rsp + 0x20]
mov qword [0x1401e81e8], rax
call fcn.1400f0500
mov rcx, qword [0x1401e81e8]
test rcx, rcx
jne 0x1400fa8a0
call qword [0x1401e8258]
mov ecx, eax
call fcn.1400faf20
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1400efff0
call fcn.1400faaa0
jmp 0x1400faa74
lea r8, [0x1401e81f4]
lea rdx, [0x1401e81f0]
call qword [0x1401e8260]
test eax, eax
jne 0x1400fa8e3
call qword [0x1401e8258]
mov ecx, eax
call fcn.1400faf20
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1400efff0
call fcn.1400faaa0
jmp 0x1400faa74
mov rcx, qword [0x1401e81e8]
mov edx, 0x3055
call qword [0x1401e82b0]
test rax, rax
je 0x1400fa912
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1400f5a90
test eax, eax
mov eax, 1
jne 0x1400fa914
mov eax, ebx
mov rcx, qword [0x1401e81e8]
mov edx, 0x3055
mov dword [0x1401e81fc], eax
call qword [0x1401e82b0]
test rax, rax
je 0x1400fa949
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400f5a90
test eax, eax
mov eax, 1
jne 0x1400fa94b
mov eax, ebx
mov rcx, qword [0x1401e81e8]
mov edx, 0x3055
mov dword [0x1401e8200], eax
call qword [0x1401e82b0]
test rax, rax
je 0x1400fa980
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400f5a90
test eax, eax
mov eax, 1
jne 0x1400fa982
mov eax, ebx
mov rcx, qword [0x1401e81e8]
mov edx, 0x3055
mov dword [0x1401e8204], eax
call qword [0x1401e82b0]
test rax, rax
je 0x1400fa9b7
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400f5a90
test eax, eax
mov eax, 1
jne 0x1400fa9b9
mov eax, ebx
mov rcx, qword [0x1401e81e8]
mov edx, 0x3055
mov dword [0x1401e8208], eax
call qword [0x1401e82b0]
test rax, rax
je 0x1400fa9ee
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400f5a90
test eax, eax
mov eax, 1
jne 0x1400fa9f0
mov eax, ebx
mov rcx, qword [0x1401e81e8]
mov edx, 0x3055
mov dword [0x1401e820c], eax
call qword [0x1401e82b0]
test rax, rax
je 0x1400faa25
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1400f5a90
test eax, eax
je 0x1400faa25
mov ebx, 1
mov dword [0x1401e8220], ebx
mov eax, 1
jmp 0x1400faa76
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1400efff0
mov rcx, qword [0x1401e81e8]
test rcx, rcx
je 0x1400faa5c
call qword [0x1401e8268]
mov qword [0x1401e81e8], rbx
mov rcx, qword [0x1401e8238]
test rcx, rcx
je 0x1400faa74
call fcn.1400fbdf0
mov qword [0x1401e8238], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14015bde0
add rsp, 0x50
pop rbx
ret