Function at 0x14009a2f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1400df938], 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 0x14009a32c
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 [0x1400df938], rax
mov rcx, rax
test rax, rax
jne 0x14009a366
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x14009a340
test rcx, rcx
jne 0x14009a38e
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.14008d7f0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x1400bced0]
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 [0x1400df8f8], ecx
mov rcx, qword [0x1400df938]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglGetConfigs
mov qword [0x1400df940], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglGetDisplay
mov qword [0x1400df948], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglGetError
mov qword [0x1400df950], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglInitialize
mov qword [0x1400df958], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglTerminate
mov qword [0x1400df960], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglBindAPI
mov qword [0x1400df968], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglCreateContext
mov qword [0x1400df970], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglDestroySurface
mov qword [0x1400df978], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglDestroyContext
mov qword [0x1400df980], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400df988], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglMakeCurrent
mov qword [0x1400df990], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglSwapBuffers
mov qword [0x1400df998], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglSwapInterval
mov qword [0x1400df9a0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglQueryString
mov qword [0x1400df9a8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400df938]
lea rdx, str.eglGetProcAddress
mov qword [0x1400df9b0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400df940], rbx
mov rcx, rax
mov qword [0x1400df9b8], rax
je 0x14009a978
cmp qword [0x1400df948], rbx
je 0x14009a978
cmp qword [0x1400df950], rbx
je 0x14009a978
cmp qword [0x1400df958], rbx
je 0x14009a978
cmp qword [0x1400df960], rbx
je 0x14009a978
cmp qword [0x1400df968], rbx
je 0x14009a978
cmp qword [0x1400df970], rbx
je 0x14009a978
cmp qword [0x1400df978], rbx
je 0x14009a978
cmp qword [0x1400df980], rbx
je 0x14009a978
cmp qword [0x1400df988], rbx
je 0x14009a978
cmp qword [0x1400df990], rbx
je 0x14009a978
cmp qword [0x1400df998], rbx
je 0x14009a978
cmp qword [0x1400df9a0], rbx
je 0x14009a978
cmp qword [0x1400df9a8], rbx
je 0x14009a978
mov rax, qword [0x1400df9b0]
test rax, rax
je 0x14009a978
test rcx, rcx
je 0x14009a978
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x14009a652
call qword [0x1400df958]
cmp eax, 0x3000
jne 0x14009a652
mov dword [0x1400df910], 1
jmp 0x14009a65e
cmp dword [0x1400df910], ebx
je 0x14009a706
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.140095ab0
mov rdx, rdi
mov dword [0x1400df914], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140095ab0
mov rdx, rdi
mov dword [0x1400df918], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140095ab0
mov rdx, rdi
mov dword [0x1400df91c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140095ab0
mov rdx, rdi
mov dword [0x1400df924], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140095ab0
mov rdx, rdi
mov dword [0x1400df928], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140095ab0
mov rdx, rdi
mov dword [0x1400df92c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140095ab0
mov rdx, rdi
mov dword [0x1400df930], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140095ab0
mov dword [0x1400df934], eax
cmp dword [0x1400df914], ebx
je 0x14009a736
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400df9b8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400df9c0], rax
call qword [0x1400df9b8]
mov qword [0x1400df9c8], rax
lea rcx, [rsp + 0x50]
call qword [0x1400de128]
mov dword [0x1400df8e0], eax
test eax, eax
je 0x14009a767
call qword [0x1400de130]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x1400df8e0]
call qword [0x1400df9c0]
jmp 0x14009a776
call qword [0x1400de130]
mov rcx, rax
call qword [0x1400df950]
mov rcx, qword [rsp + 0x50]
mov qword [0x1400df8e8], rax
call fcn.14008dd00
mov rcx, qword [0x1400df8e8]
test rcx, rcx
jne 0x14009a7cb
call qword [0x1400df958]
mov ecx, eax
call fcn.14009ae50
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.14008d7f0
call fcn.14009a9d0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x1400df8f4]
lea rdx, [0x1400df8f0]
call qword [0x1400df960]
test eax, eax
jne 0x14009a81b
call qword [0x1400df958]
mov ecx, eax
call fcn.14009ae50
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.14008d7f0
call fcn.14009a9d0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x1400df8e8]
mov edx, 0x3055
call qword [0x1400df9b0]
test rax, rax
je 0x14009a84a
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140095ab0
test eax, eax
mov eax, 1
jne 0x14009a84c
mov eax, ebx
mov rcx, qword [0x1400df8e8]
mov edx, 0x3055
mov dword [0x1400df8fc], eax
call qword [0x1400df9b0]
test rax, rax
je 0x14009a881
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140095ab0
test eax, eax
mov eax, 1
jne 0x14009a883
mov eax, ebx
mov rcx, qword [0x1400df8e8]
mov edx, 0x3055
mov dword [0x1400df900], eax
call qword [0x1400df9b0]
test rax, rax
je 0x14009a8b8
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140095ab0
test eax, eax
mov eax, 1
jne 0x14009a8ba
mov eax, ebx
mov rcx, qword [0x1400df8e8]
mov edx, 0x3055
mov dword [0x1400df904], eax
call qword [0x1400df9b0]
test rax, rax
je 0x14009a8ef
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140095ab0
test eax, eax
mov eax, 1
jne 0x14009a8f1
mov eax, ebx
mov rcx, qword [0x1400df8e8]
mov edx, 0x3055
mov dword [0x1400df908], eax
call qword [0x1400df9b0]
test rax, rax
je 0x14009a926
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140095ab0
test eax, eax
mov eax, 1
jne 0x14009a928
mov eax, ebx
mov rcx, qword [0x1400df8e8]
mov edx, 0x3055
mov dword [0x1400df90c], eax
call qword [0x1400df9b0]
test rax, rax
je 0x14009a95d
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140095ab0
test eax, eax
je 0x14009a95d
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x1400df920], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14008d7f0
mov rcx, qword [0x1400df8e8]
test rcx, rcx
je 0x14009a9a2
call qword [0x1400df968]
mov qword [0x1400df8e8], rbx
mov rcx, qword [0x1400df938]
test rcx, rcx
je 0x14009a9ba
call fcn.14009bd00
mov qword [0x1400df938], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret