Function at 0x14009b420
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1400e04b8], 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 0x14009b45c
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 [0x1400e04b8], rax
mov rcx, rax
test rax, rax
jne 0x14009b496
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x14009b470
test rcx, rcx
jne 0x14009b4be
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140091000
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x1400bedd0]
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 [0x1400e0478], ecx
mov rcx, qword [0x1400e04b8]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglGetConfigs
mov qword [0x1400e04c0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglGetDisplay
mov qword [0x1400e04c8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglGetError
mov qword [0x1400e04d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglInitialize
mov qword [0x1400e04d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglTerminate
mov qword [0x1400e04e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglBindAPI
mov qword [0x1400e04e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglCreateContext
mov qword [0x1400e04f0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglDestroySurface
mov qword [0x1400e04f8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglDestroyContext
mov qword [0x1400e0500], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400e0508], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglMakeCurrent
mov qword [0x1400e0510], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglSwapBuffers
mov qword [0x1400e0518], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglSwapInterval
mov qword [0x1400e0520], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglQueryString
mov qword [0x1400e0528], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e04b8]
lea rdx, str.eglGetProcAddress
mov qword [0x1400e0530], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400e04c0], rbx
mov rcx, rax
mov qword [0x1400e0538], rax
je 0x14009baa8
cmp qword [0x1400e04c8], rbx
je 0x14009baa8
cmp qword [0x1400e04d0], rbx
je 0x14009baa8
cmp qword [0x1400e04d8], rbx
je 0x14009baa8
cmp qword [0x1400e04e0], rbx
je 0x14009baa8
cmp qword [0x1400e04e8], rbx
je 0x14009baa8
cmp qword [0x1400e04f0], rbx
je 0x14009baa8
cmp qword [0x1400e04f8], rbx
je 0x14009baa8
cmp qword [0x1400e0500], rbx
je 0x14009baa8
cmp qword [0x1400e0508], rbx
je 0x14009baa8
cmp qword [0x1400e0510], rbx
je 0x14009baa8
cmp qword [0x1400e0518], rbx
je 0x14009baa8
cmp qword [0x1400e0520], rbx
je 0x14009baa8
cmp qword [0x1400e0528], rbx
je 0x14009baa8
mov rax, qword [0x1400e0530]
test rax, rax
je 0x14009baa8
test rcx, rcx
je 0x14009baa8
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x14009b782
call qword [0x1400e04d8]
cmp eax, 0x3000
jne 0x14009b782
mov dword [0x1400e0490], 1
jmp 0x14009b78e
cmp dword [0x1400e0490], ebx
je 0x14009b836
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.140096ae0
mov rdx, rdi
mov dword [0x1400e0494], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140096ae0
mov rdx, rdi
mov dword [0x1400e0498], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140096ae0
mov rdx, rdi
mov dword [0x1400e049c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140096ae0
mov rdx, rdi
mov dword [0x1400e04a4], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140096ae0
mov rdx, rdi
mov dword [0x1400e04a8], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140096ae0
mov rdx, rdi
mov dword [0x1400e04ac], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140096ae0
mov rdx, rdi
mov dword [0x1400e04b0], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140096ae0
mov dword [0x1400e04b4], eax
cmp dword [0x1400e0494], ebx
je 0x14009b866
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400e0538]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400e0540], rax
call qword [0x1400e0538]
mov qword [0x1400e0548], rax
lea rcx, [rsp + 0x50]
call qword [0x1400deca8]
mov dword [0x1400e0460], eax
test eax, eax
je 0x14009b897
call qword [0x1400decb0]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x1400e0460]
call qword [0x1400e0540]
jmp 0x14009b8a6
call qword [0x1400decb0]
mov rcx, rax
call qword [0x1400e04d0]
mov rcx, qword [rsp + 0x50]
mov qword [0x1400e0468], rax
call fcn.140091510
mov rcx, qword [0x1400e0468]
test rcx, rcx
jne 0x14009b8fb
call qword [0x1400e04d8]
mov ecx, eax
call fcn.14009bf80
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140091000
call fcn.14009bb00
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x1400e0474]
lea rdx, [0x1400e0470]
call qword [0x1400e04e0]
test eax, eax
jne 0x14009b94b
call qword [0x1400e04d8]
mov ecx, eax
call fcn.14009bf80
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140091000
call fcn.14009bb00
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x1400e0468]
mov edx, 0x3055
call qword [0x1400e0530]
test rax, rax
je 0x14009b97a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140096ae0
test eax, eax
mov eax, 1
jne 0x14009b97c
mov eax, ebx
mov rcx, qword [0x1400e0468]
mov edx, 0x3055
mov dword [0x1400e047c], eax
call qword [0x1400e0530]
test rax, rax
je 0x14009b9b1
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140096ae0
test eax, eax
mov eax, 1
jne 0x14009b9b3
mov eax, ebx
mov rcx, qword [0x1400e0468]
mov edx, 0x3055
mov dword [0x1400e0480], eax
call qword [0x1400e0530]
test rax, rax
je 0x14009b9e8
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140096ae0
test eax, eax
mov eax, 1
jne 0x14009b9ea
mov eax, ebx
mov rcx, qword [0x1400e0468]
mov edx, 0x3055
mov dword [0x1400e0484], eax
call qword [0x1400e0530]
test rax, rax
je 0x14009ba1f
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140096ae0
test eax, eax
mov eax, 1
jne 0x14009ba21
mov eax, ebx
mov rcx, qword [0x1400e0468]
mov edx, 0x3055
mov dword [0x1400e0488], eax
call qword [0x1400e0530]
test rax, rax
je 0x14009ba56
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140096ae0
test eax, eax
mov eax, 1
jne 0x14009ba58
mov eax, ebx
mov rcx, qword [0x1400e0468]
mov edx, 0x3055
mov dword [0x1400e048c], eax
call qword [0x1400e0530]
test rax, rax
je 0x14009ba8d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140096ae0
test eax, eax
je 0x14009ba8d
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x1400e04a0], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140091000
mov rcx, qword [0x1400e0468]
test rcx, rcx
je 0x14009bad2
call qword [0x1400e04e8]
mov qword [0x1400e0468], rbx
mov rcx, qword [0x1400e04b8]
test rcx, rcx
je 0x14009baea
call fcn.14009ce30
mov qword [0x1400e04b8], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret