Function at 0x140071e30
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1400f6e78], 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 0x140071e6c
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 [0x1400f6e78], rax
mov rcx, rax
test rax, rax
jne 0x140071ea6
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x140071e80
test rcx, rcx
jne 0x140071ece
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140064a30
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x14009ba80]
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 [0x1400f6e38], ecx
mov rcx, qword [0x1400f6e78]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglGetConfigs
mov qword [0x1400f6e80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglGetDisplay
mov qword [0x1400f6e88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglGetError
mov qword [0x1400f6e90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglInitialize
mov qword [0x1400f6e98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglTerminate
mov qword [0x1400f6ea0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglBindAPI
mov qword [0x1400f6ea8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglCreateContext
mov qword [0x1400f6eb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglDestroySurface
mov qword [0x1400f6eb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglDestroyContext
mov qword [0x1400f6ec0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400f6ec8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglMakeCurrent
mov qword [0x1400f6ed0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglSwapBuffers
mov qword [0x1400f6ed8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglSwapInterval
mov qword [0x1400f6ee0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglQueryString
mov qword [0x1400f6ee8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400f6e78]
lea rdx, str.eglGetProcAddress
mov qword [0x1400f6ef0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400f6e80], rbx
mov rcx, rax
mov qword [0x1400f6ef8], rax
je 0x1400724b8
cmp qword [0x1400f6e88], rbx
je 0x1400724b8
cmp qword [0x1400f6e90], rbx
je 0x1400724b8
cmp qword [0x1400f6e98], rbx
je 0x1400724b8
cmp qword [0x1400f6ea0], rbx
je 0x1400724b8
cmp qword [0x1400f6ea8], rbx
je 0x1400724b8
cmp qword [0x1400f6eb0], rbx
je 0x1400724b8
cmp qword [0x1400f6eb8], rbx
je 0x1400724b8
cmp qword [0x1400f6ec0], rbx
je 0x1400724b8
cmp qword [0x1400f6ec8], rbx
je 0x1400724b8
cmp qword [0x1400f6ed0], rbx
je 0x1400724b8
cmp qword [0x1400f6ed8], rbx
je 0x1400724b8
cmp qword [0x1400f6ee0], rbx
je 0x1400724b8
cmp qword [0x1400f6ee8], rbx
je 0x1400724b8
mov rax, qword [0x1400f6ef0]
test rax, rax
je 0x1400724b8
test rcx, rcx
je 0x1400724b8
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x140072192
call qword [0x1400f6e98]
cmp eax, 0x3000
jne 0x140072192
mov dword [0x1400f6e50], 1
jmp 0x14007219e
cmp dword [0x1400f6e50], ebx
je 0x140072246
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1400679e0
mov rdx, rdi
mov dword [0x1400f6e54], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1400679e0
mov rdx, rdi
mov dword [0x1400f6e58], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1400679e0
mov rdx, rdi
mov dword [0x1400f6e5c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1400679e0
mov rdx, rdi
mov dword [0x1400f6e64], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1400679e0
mov rdx, rdi
mov dword [0x1400f6e68], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1400679e0
mov rdx, rdi
mov dword [0x1400f6e6c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1400679e0
mov rdx, rdi
mov dword [0x1400f6e70], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1400679e0
mov dword [0x1400f6e74], eax
cmp dword [0x1400f6e54], ebx
je 0x140072276
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400f6ef8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400f6f00], rax
call qword [0x1400f6ef8]
mov qword [0x1400f6f08], rax
lea rcx, [rsp + 0x50]
call qword [0x1400f5668]
mov dword [0x1400f6e20], eax
test eax, eax
je 0x1400722a7
call qword [0x1400f5670]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x1400f6e20]
call qword [0x1400f6f00]
jmp 0x1400722b6
call qword [0x1400f5670]
mov rcx, rax
call qword [0x1400f6e90]
mov rcx, qword [rsp + 0x50]
mov qword [0x1400f6e28], rax
call fcn.140064f40
mov rcx, qword [0x1400f6e28]
test rcx, rcx
jne 0x14007230b
call qword [0x1400f6e98]
mov ecx, eax
call fcn.140072990
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140064a30
call fcn.140072510
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x1400f6e34]
lea rdx, [0x1400f6e30]
call qword [0x1400f6ea0]
test eax, eax
jne 0x14007235b
call qword [0x1400f6e98]
mov ecx, eax
call fcn.140072990
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140064a30
call fcn.140072510
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x1400f6e28]
mov edx, 0x3055
call qword [0x1400f6ef0]
test rax, rax
je 0x14007238a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1400679e0
test eax, eax
mov eax, 1
jne 0x14007238c
mov eax, ebx
mov rcx, qword [0x1400f6e28]
mov edx, 0x3055
mov dword [0x1400f6e3c], eax
call qword [0x1400f6ef0]
test rax, rax
je 0x1400723c1
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1400679e0
test eax, eax
mov eax, 1
jne 0x1400723c3
mov eax, ebx
mov rcx, qword [0x1400f6e28]
mov edx, 0x3055
mov dword [0x1400f6e40], eax
call qword [0x1400f6ef0]
test rax, rax
je 0x1400723f8
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1400679e0
test eax, eax
mov eax, 1
jne 0x1400723fa
mov eax, ebx
mov rcx, qword [0x1400f6e28]
mov edx, 0x3055
mov dword [0x1400f6e44], eax
call qword [0x1400f6ef0]
test rax, rax
je 0x14007242f
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1400679e0
test eax, eax
mov eax, 1
jne 0x140072431
mov eax, ebx
mov rcx, qword [0x1400f6e28]
mov edx, 0x3055
mov dword [0x1400f6e48], eax
call qword [0x1400f6ef0]
test rax, rax
je 0x140072466
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1400679e0
test eax, eax
mov eax, 1
jne 0x140072468
mov eax, ebx
mov rcx, qword [0x1400f6e28]
mov edx, 0x3055
mov dword [0x1400f6e4c], eax
call qword [0x1400f6ef0]
test rax, rax
je 0x14007249d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1400679e0
test eax, eax
je 0x14007249d
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x1400f6e60], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140064a30
mov rcx, qword [0x1400f6e28]
test rcx, rcx
je 0x1400724e2
call qword [0x1400f6ea8]
mov qword [0x1400f6e28], rbx
mov rcx, qword [0x1400f6e78]
test rcx, rcx
je 0x1400724fa
call fcn.140069a30
mov qword [0x1400f6e78], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret