Function at 0x140202870
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14038a2b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1403991e0], 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 0x1402028c8
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140266db0
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 [0x1403991e0], rax
test rax, rax
jne 0x140202910
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1402028d7
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1401f7520
jmp 0x140202f14
movsxd rcx, esi
lea rdx, [0x1402b5f60]
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 [0x1403991a0], ecx
mov rcx, qword [0x1403991e0]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglGetConfigs
mov qword [0x1403991e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglGetDisplay
mov qword [0x1403991f0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglGetError
mov qword [0x1403991f8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglInitialize
mov qword [0x140399200], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglTerminate
mov qword [0x140399208], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglBindAPI
mov qword [0x140399210], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglCreateContext
mov qword [0x140399218], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglDestroySurface
mov qword [0x140399220], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglDestroyContext
mov qword [0x140399228], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglCreateWindowSurface
mov qword [0x140399230], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglMakeCurrent
mov qword [0x140399238], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglSwapBuffers
mov qword [0x140399240], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglSwapInterval
mov qword [0x140399248], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglQueryString
mov qword [0x140399250], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403991e0]
lea rdx, str.eglGetProcAddress
mov qword [0x140399258], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1403991e8], rbx
mov rcx, rax
mov qword [0x140399260], rax
je 0x140202ed2
cmp qword [0x1403991f0], rbx
je 0x140202ed2
cmp qword [0x1403991f8], rbx
je 0x140202ed2
cmp qword [0x140399200], rbx
je 0x140202ed2
cmp qword [0x140399208], rbx
je 0x140202ed2
cmp qword [0x140399210], rbx
je 0x140202ed2
cmp qword [0x140399218], rbx
je 0x140202ed2
cmp qword [0x140399220], rbx
je 0x140202ed2
cmp qword [0x140399228], rbx
je 0x140202ed2
cmp qword [0x140399230], rbx
je 0x140202ed2
cmp qword [0x140399238], rbx
je 0x140202ed2
cmp qword [0x140399240], rbx
je 0x140202ed2
cmp qword [0x140399248], rbx
je 0x140202ed2
cmp qword [0x140399250], rbx
je 0x140202ed2
mov rax, qword [0x140399258]
test rax, rax
je 0x140202ed2
test rcx, rcx
je 0x140202ed2
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x140202bd4
call qword [0x140399200]
cmp eax, 0x3000
jne 0x140202bd4
mov dword [0x1403991b8], 1
jmp 0x140202be0
cmp dword [0x1403991b8], ebx
je 0x140202c88
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1401f63c0
mov rdx, rdi
mov dword [0x1403991bc], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1401f63c0
mov rdx, rdi
mov dword [0x1403991c0], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1401f63c0
mov rdx, rdi
mov dword [0x1403991c4], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1401f63c0
mov rdx, rdi
mov dword [0x1403991cc], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1401f63c0
mov rdx, rdi
mov dword [0x1403991d0], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1401f63c0
mov rdx, rdi
mov dword [0x1403991d4], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1401f63c0
mov rdx, rdi
mov dword [0x1403991d8], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1401f63c0
mov dword [0x1403991dc], eax
cmp dword [0x1403991bc], ebx
je 0x140202cb8
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x140399260]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x140399268], rax
call qword [0x140399260]
mov qword [0x140399270], rax
lea rcx, [rsp + 0x20]
call qword [0x1403979c8]
mov dword [0x140399188], eax
test eax, eax
je 0x140202ce9
call qword [0x1403979d0]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x140399188]
call qword [0x140399268]
jmp 0x140202cf8
call qword [0x1403979d0]
mov rcx, rax
call qword [0x1403991f8]
mov rcx, qword [rsp + 0x20]
mov qword [0x140399190], rax
call fcn.1401f7a20
mov rcx, qword [0x140399190]
test rcx, rcx
jne 0x140202d40
call qword [0x140399200]
mov ecx, eax
call fcn.1402033c0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1401f7520
call fcn.140202f40
jmp 0x140202f14
lea r8, [0x14039919c]
lea rdx, [0x140399198]
call qword [0x140399208]
test eax, eax
jne 0x140202d83
call qword [0x140399200]
mov ecx, eax
call fcn.1402033c0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1401f7520
call fcn.140202f40
jmp 0x140202f14
mov rcx, qword [0x140399190]
mov edx, 0x3055
call qword [0x140399258]
test rax, rax
je 0x140202db2
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1401f63c0
test eax, eax
mov eax, 1
jne 0x140202db4
mov eax, ebx
mov rcx, qword [0x140399190]
mov edx, 0x3055
mov dword [0x1403991a4], eax
call qword [0x140399258]
test rax, rax
je 0x140202de9
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1401f63c0
test eax, eax
mov eax, 1
jne 0x140202deb
mov eax, ebx
mov rcx, qword [0x140399190]
mov edx, 0x3055
mov dword [0x1403991a8], eax
call qword [0x140399258]
test rax, rax
je 0x140202e20
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1401f63c0
test eax, eax
mov eax, 1
jne 0x140202e22
mov eax, ebx
mov rcx, qword [0x140399190]
mov edx, 0x3055
mov dword [0x1403991ac], eax
call qword [0x140399258]
test rax, rax
je 0x140202e57
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1401f63c0
test eax, eax
mov eax, 1
jne 0x140202e59
mov eax, ebx
mov rcx, qword [0x140399190]
mov edx, 0x3055
mov dword [0x1403991b0], eax
call qword [0x140399258]
test rax, rax
je 0x140202e8e
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1401f63c0
test eax, eax
mov eax, 1
jne 0x140202e90
mov eax, ebx
mov rcx, qword [0x140399190]
mov edx, 0x3055
mov dword [0x1403991b4], eax
call qword [0x140399258]
test rax, rax
je 0x140202ec5
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1401f63c0
test eax, eax
je 0x140202ec5
mov ebx, 1
mov dword [0x1403991c8], ebx
mov eax, 1
jmp 0x140202f16
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401f7520
mov rcx, qword [0x140399190]
test rcx, rcx
je 0x140202efc
call qword [0x140399210]
mov qword [0x140399190], rbx
mov rcx, qword [0x1403991e0]
test rcx, rcx
je 0x140202f14
call fcn.1402042a0
mov qword [0x1403991e0], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140266db0
add rsp, 0x50
pop rbx
ret