Function at 0x1401d68b0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1403372b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x140346030], 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 0x1401d6908
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14023b5b0
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 [0x140346030], rax
test rax, rax
jne 0x1401d6950
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1401d6917
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1401cb560
jmp 0x1401d6f54
movsxd rcx, esi
lea rdx, [0x140286cf0]
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 [0x140345ff0], ecx
mov rcx, qword [0x140346030]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglGetConfigs
mov qword [0x140346038], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglGetDisplay
mov qword [0x140346040], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglGetError
mov qword [0x140346048], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglInitialize
mov qword [0x140346050], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglTerminate
mov qword [0x140346058], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglBindAPI
mov qword [0x140346060], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglCreateContext
mov qword [0x140346068], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglDestroySurface
mov qword [0x140346070], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglDestroyContext
mov qword [0x140346078], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglCreateWindowSurface
mov qword [0x140346080], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglMakeCurrent
mov qword [0x140346088], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglSwapBuffers
mov qword [0x140346090], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglSwapInterval
mov qword [0x140346098], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglQueryString
mov qword [0x1403460a0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140346030]
lea rdx, str.eglGetProcAddress
mov qword [0x1403460a8], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140346038], rbx
mov rcx, rax
mov qword [0x1403460b0], rax
je 0x1401d6f12
cmp qword [0x140346040], rbx
je 0x1401d6f12
cmp qword [0x140346048], rbx
je 0x1401d6f12
cmp qword [0x140346050], rbx
je 0x1401d6f12
cmp qword [0x140346058], rbx
je 0x1401d6f12
cmp qword [0x140346060], rbx
je 0x1401d6f12
cmp qword [0x140346068], rbx
je 0x1401d6f12
cmp qword [0x140346070], rbx
je 0x1401d6f12
cmp qword [0x140346078], rbx
je 0x1401d6f12
cmp qword [0x140346080], rbx
je 0x1401d6f12
cmp qword [0x140346088], rbx
je 0x1401d6f12
cmp qword [0x140346090], rbx
je 0x1401d6f12
cmp qword [0x140346098], rbx
je 0x1401d6f12
cmp qword [0x1403460a0], rbx
je 0x1401d6f12
mov rax, qword [0x1403460a8]
test rax, rax
je 0x1401d6f12
test rcx, rcx
je 0x1401d6f12
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1401d6c14
call qword [0x140346050]
cmp eax, 0x3000
jne 0x1401d6c14
mov dword [0x140346008], 1
jmp 0x1401d6c20
cmp dword [0x140346008], ebx
je 0x1401d6cc8
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1401ca400
mov rdx, rdi
mov dword [0x14034600c], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1401ca400
mov rdx, rdi
mov dword [0x140346010], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1401ca400
mov rdx, rdi
mov dword [0x140346014], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1401ca400
mov rdx, rdi
mov dword [0x14034601c], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1401ca400
mov rdx, rdi
mov dword [0x140346020], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1401ca400
mov rdx, rdi
mov dword [0x140346024], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1401ca400
mov rdx, rdi
mov dword [0x140346028], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1401ca400
mov dword [0x14034602c], eax
cmp dword [0x14034600c], ebx
je 0x1401d6cf8
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1403460b0]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1403460b8], rax
call qword [0x1403460b0]
mov qword [0x1403460c0], rax
lea rcx, [rsp + 0x20]
call qword [0x140344818]
mov dword [0x140345fd8], eax
test eax, eax
je 0x1401d6d29
call qword [0x140344820]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x140345fd8]
call qword [0x1403460b8]
jmp 0x1401d6d38
call qword [0x140344820]
mov rcx, rax
call qword [0x140346048]
mov rcx, qword [rsp + 0x20]
mov qword [0x140345fe0], rax
call fcn.1401cba60
mov rcx, qword [0x140345fe0]
test rcx, rcx
jne 0x1401d6d80
call qword [0x140346050]
mov ecx, eax
call fcn.1401d7400
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1401cb560
call fcn.1401d6f80
jmp 0x1401d6f54
lea r8, [0x140345fec]
lea rdx, [0x140345fe8]
call qword [0x140346058]
test eax, eax
jne 0x1401d6dc3
call qword [0x140346050]
mov ecx, eax
call fcn.1401d7400
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1401cb560
call fcn.1401d6f80
jmp 0x1401d6f54
mov rcx, qword [0x140345fe0]
mov edx, 0x3055
call qword [0x1403460a8]
test rax, rax
je 0x1401d6df2
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1401ca400
test eax, eax
mov eax, 1
jne 0x1401d6df4
mov eax, ebx
mov rcx, qword [0x140345fe0]
mov edx, 0x3055
mov dword [0x140345ff4], eax
call qword [0x1403460a8]
test rax, rax
je 0x1401d6e29
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1401ca400
test eax, eax
mov eax, 1
jne 0x1401d6e2b
mov eax, ebx
mov rcx, qword [0x140345fe0]
mov edx, 0x3055
mov dword [0x140345ff8], eax
call qword [0x1403460a8]
test rax, rax
je 0x1401d6e60
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1401ca400
test eax, eax
mov eax, 1
jne 0x1401d6e62
mov eax, ebx
mov rcx, qword [0x140345fe0]
mov edx, 0x3055
mov dword [0x140345ffc], eax
call qword [0x1403460a8]
test rax, rax
je 0x1401d6e97
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1401ca400
test eax, eax
mov eax, 1
jne 0x1401d6e99
mov eax, ebx
mov rcx, qword [0x140345fe0]
mov edx, 0x3055
mov dword [0x140346000], eax
call qword [0x1403460a8]
test rax, rax
je 0x1401d6ece
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1401ca400
test eax, eax
mov eax, 1
jne 0x1401d6ed0
mov eax, ebx
mov rcx, qword [0x140345fe0]
mov edx, 0x3055
mov dword [0x140346004], eax
call qword [0x1403460a8]
test rax, rax
je 0x1401d6f05
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1401ca400
test eax, eax
je 0x1401d6f05
mov ebx, 1
mov dword [0x140346018], ebx
mov eax, 1
jmp 0x1401d6f56
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401cb560
mov rcx, qword [0x140345fe0]
test rcx, rcx
je 0x1401d6f3c
call qword [0x140346060]
mov qword [0x140345fe0], rbx
mov rcx, qword [0x140346030]
test rcx, rcx
je 0x1401d6f54
call fcn.1401d82e0
mov qword [0x140346030], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14023b5b0
add rsp, 0x50
pop rbx
ret