Function at 0x14003ab40
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1400a21c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edi, edi
lea rax, str.libEGL.dll
cmp qword [0x1400a7538], rdi
lea rcx, str.EGL.dll
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdi
je 0x14003ab98
lea eax, [rdi + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400531d0
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x60], rbx
mov rbx, rdi
mov qword [rsp + 0x68], rsi
mov esi, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400a7538], rax
mov rcx, rax
test rax, rax
jne 0x14003abce
mov rax, qword [rsp + rbx*8 + 0x30]
inc rbx
inc esi
test rax, rax
jne 0x14003aba7
test rcx, rcx
jne 0x14003abe9
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140031cf0
jmp 0x14003b1c5
movsxd rcx, esi
lea rdx, [0x14007b1c0]
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, edi
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x1400a74f8], ecx
mov rcx, qword [0x1400a7538]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglGetConfigs
mov qword [0x1400a7540], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglGetDisplay
mov qword [0x1400a7548], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglGetError
mov qword [0x1400a7550], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglInitialize
mov qword [0x1400a7558], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglTerminate
mov qword [0x1400a7560], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglBindAPI
mov qword [0x1400a7568], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglCreateContext
mov qword [0x1400a7570], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglDestroySurface
mov qword [0x1400a7578], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglDestroyContext
mov qword [0x1400a7580], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400a7588], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglMakeCurrent
mov qword [0x1400a7590], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglSwapBuffers
mov qword [0x1400a7598], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglSwapInterval
mov qword [0x1400a75a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglQueryString
mov qword [0x1400a75a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a7538]
lea rdx, str.eglGetProcAddress
mov qword [0x1400a75b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400a7540], rdi
mov rcx, rax
mov qword [0x1400a75b8], rax
je 0x14003b182
cmp qword [0x1400a7548], rdi
je 0x14003b182
cmp qword [0x1400a7550], rdi
je 0x14003b182
cmp qword [0x1400a7558], rdi
je 0x14003b182
cmp qword [0x1400a7560], rdi
je 0x14003b182
cmp qword [0x1400a7568], rdi
je 0x14003b182
cmp qword [0x1400a7570], rdi
je 0x14003b182
cmp qword [0x1400a7578], rdi
je 0x14003b182
cmp qword [0x1400a7580], rdi
je 0x14003b182
cmp qword [0x1400a7588], rdi
je 0x14003b182
cmp qword [0x1400a7590], rdi
je 0x14003b182
cmp qword [0x1400a7598], rdi
je 0x14003b182
cmp qword [0x1400a75a0], rdi
je 0x14003b182
cmp qword [0x1400a75a8], rdi
je 0x14003b182
mov rax, qword [0x1400a75b0]
test rax, rax
je 0x14003b182
test rcx, rcx
je 0x14003b182
mov edx, 0x3055
xor ecx, ecx
call rax
mov rbx, rax
test rax, rax
je 0x14003aebd
call qword [0x1400a7558]
cmp eax, 0x3000
jne 0x14003aebd
mov dword [0x1400a7510], 1
jmp 0x14003aec9
cmp dword [0x1400a7510], edi
je 0x14003af71
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_base
call fcn.140032e10
mov rdx, rbx
mov dword [0x1400a7514], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140032e10
mov rdx, rbx
mov dword [0x1400a7518], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140032e10
mov rdx, rbx
mov dword [0x1400a751c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140032e10
mov rdx, rbx
mov dword [0x1400a7520], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140032e10
mov rdx, rbx
mov dword [0x1400a7524], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140032e10
mov rdx, rbx
mov dword [0x1400a7528], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140032e10
mov rdx, rbx
mov dword [0x1400a752c], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140032e10
mov dword [0x1400a7530], eax
cmp dword [0x1400a7514], edi
je 0x14003afa1
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400a75b8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400a75c0], rax
call qword [0x1400a75b8]
mov qword [0x1400a75c8], rax
lea rcx, [rsp + 0x20]
call fcn.140033470
mov dword [0x1400a74e0], eax
test eax, eax
je 0x14003afd0
call fcn.140033450
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1400a74e0]
call qword [0x1400a75c0]
jmp 0x14003afde
call fcn.140033450
mov rcx, rax
call qword [0x1400a7550]
mov rcx, qword [rsp + 0x20]
mov qword [0x1400a74e8], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400a74e8]
test rcx, rcx
jne 0x14003b027
call qword [0x1400a7558]
mov ecx, eax
call fcn.14003b610
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140031cf0
call fcn.14003b1f0
jmp 0x14003b1c5
lea r8, [0x1400a74f4]
lea rdx, [0x1400a74f0]
call qword [0x1400a7560]
test eax, eax
jne 0x14003b06a
call qword [0x1400a7558]
mov ecx, eax
call fcn.14003b610
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140031cf0
call fcn.14003b1f0
jmp 0x14003b1c5
mov rcx, qword [0x1400a74e8]
mov edx, 0x3055
call qword [0x1400a75b0]
test rax, rax
je 0x14003b099
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140032e10
test eax, eax
mov eax, 1
jne 0x14003b09b
mov eax, edi
mov rcx, qword [0x1400a74e8]
mov edx, 0x3055
mov dword [0x1400a74fc], eax
call qword [0x1400a75b0]
test rax, rax
je 0x14003b0d0
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140032e10
test eax, eax
mov eax, 1
jne 0x14003b0d2
mov eax, edi
mov rcx, qword [0x1400a74e8]
mov edx, 0x3055
mov dword [0x1400a7500], eax
call qword [0x1400a75b0]
test rax, rax
je 0x14003b107
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140032e10
test eax, eax
mov eax, 1
jne 0x14003b109
mov eax, edi
mov rcx, qword [0x1400a74e8]
mov edx, 0x3055
mov dword [0x1400a7504], eax
call qword [0x1400a75b0]
test rax, rax
je 0x14003b13e
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140032e10
test eax, eax
mov eax, 1
jne 0x14003b140
mov eax, edi
mov rcx, qword [0x1400a74e8]
mov edx, 0x3055
mov dword [0x1400a7508], eax
call qword [0x1400a75b0]
test rax, rax
je 0x14003b175
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140032e10
test eax, eax
je 0x14003b175
mov edi, 1
mov dword [0x1400a750c], edi
mov eax, 1
jmp 0x14003b1c7
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140031cf0
mov rcx, qword [0x1400a74e8]
test rcx, rcx
je 0x14003b1ac
call qword [0x1400a7568]
mov qword [0x1400a74e8], rdi
mov rcx, qword [0x1400a7538]
test rcx, rcx
je 0x14003b1c5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400a7538], rdi
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400531d0
add rsp, 0x50
pop rdi
ret