Function at 0x1402ba0a0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140432c18]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x14043ce78], 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 0x1402ba0f8
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140313160
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 [0x14043ce78], rax
mov rcx, rax
test rax, rax
jne 0x1402ba12d
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1402ba107
test rcx, rcx
jne 0x1402ba148
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1402ad6e0
jmp 0x1402ba74b
movsxd rcx, esi
lea rdx, [0x1403fbe70]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x28]
call fcn.14032a670
mov ecx, ebx
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x14043ce38], ecx
mov rcx, qword [0x14043ce78]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglGetConfigs
mov qword [0x14043ce80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglGetDisplay
mov qword [0x14043ce88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglGetError
mov qword [0x14043ce90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglInitialize
mov qword [0x14043ce98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglTerminate
mov qword [0x14043cea0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglBindAPI
mov qword [0x14043cea8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglCreateContext
mov qword [0x14043ceb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglDestroySurface
mov qword [0x14043ceb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglDestroyContext
mov qword [0x14043cec0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglCreateWindowSurface
mov qword [0x14043cec8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglMakeCurrent
mov qword [0x14043ced0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglSwapBuffers
mov qword [0x14043ced8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglSwapInterval
mov qword [0x14043cee0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglQueryString
mov qword [0x14043cee8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043ce78]
lea rdx, str.eglGetProcAddress
mov qword [0x14043cef0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x14043ce80], rbx
mov rcx, rax
mov qword [0x14043cef8], rax
je 0x1402ba709
cmp qword [0x14043ce88], rbx
je 0x1402ba709
cmp qword [0x14043ce90], rbx
je 0x1402ba709
cmp qword [0x14043ce98], rbx
je 0x1402ba709
cmp qword [0x14043cea0], rbx
je 0x1402ba709
cmp qword [0x14043cea8], rbx
je 0x1402ba709
cmp qword [0x14043ceb0], rbx
je 0x1402ba709
cmp qword [0x14043ceb8], rbx
je 0x1402ba709
cmp qword [0x14043cec0], rbx
je 0x1402ba709
cmp qword [0x14043cec8], rbx
je 0x1402ba709
cmp qword [0x14043ced0], rbx
je 0x1402ba709
cmp qword [0x14043ced8], rbx
je 0x1402ba709
cmp qword [0x14043cee0], rbx
je 0x1402ba709
cmp qword [0x14043cee8], rbx
je 0x1402ba709
mov rax, qword [0x14043cef0]
test rax, rax
je 0x1402ba709
test rcx, rcx
je 0x1402ba709
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1402ba40b
call qword [0x14043ce98]
cmp eax, 0x3000
jne 0x1402ba40b
mov dword [0x14043ce50], 1
jmp 0x1402ba417
cmp dword [0x14043ce50], ebx
je 0x1402ba4bf
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1402af3e0
mov rdx, rdi
mov dword [0x14043ce54], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1402af3e0
mov rdx, rdi
mov dword [0x14043ce58], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1402af3e0
mov rdx, rdi
mov dword [0x14043ce5c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1402af3e0
mov rdx, rdi
mov dword [0x14043ce64], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1402af3e0
mov rdx, rdi
mov dword [0x14043ce68], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1402af3e0
mov rdx, rdi
mov dword [0x14043ce6c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1402af3e0
mov rdx, rdi
mov dword [0x14043ce70], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1402af3e0
mov dword [0x14043ce74], eax
cmp dword [0x14043ce54], ebx
je 0x1402ba4ef
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x14043cef8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x14043cf00], rax
call qword [0x14043cef8]
mov qword [0x14043cf08], rax
lea rcx, [rsp + 0x20]
call qword [0x14043b668]
mov dword [0x14043ce20], eax
test eax, eax
je 0x1402ba520
call qword [0x14043b670]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x14043ce20]
call qword [0x14043cf00]
jmp 0x1402ba52f
call qword [0x14043b670]
mov rcx, rax
call qword [0x14043ce90]
mov rcx, qword [rsp + 0x20]
mov qword [0x14043ce28], rax
call fcn.1402adc30
mov rcx, qword [0x14043ce28]
test rcx, rcx
jne 0x1402ba577
call qword [0x14043ce98]
mov ecx, eax
call fcn.1402babf0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1402ad6e0
call fcn.1402ba770
jmp 0x1402ba74b
lea r8, [0x14043ce34]
lea rdx, [0x14043ce30]
call qword [0x14043cea0]
test eax, eax
jne 0x1402ba5ba
call qword [0x14043ce98]
mov ecx, eax
call fcn.1402babf0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1402ad6e0
call fcn.1402ba770
jmp 0x1402ba74b
mov rcx, qword [0x14043ce28]
mov edx, 0x3055
call qword [0x14043cef0]
test rax, rax
je 0x1402ba5e9
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1402af3e0
test eax, eax
mov eax, 1
jne 0x1402ba5eb
mov eax, ebx
mov rcx, qword [0x14043ce28]
mov edx, 0x3055
mov dword [0x14043ce3c], eax
call qword [0x14043cef0]
test rax, rax
je 0x1402ba620
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1402af3e0
test eax, eax
mov eax, 1
jne 0x1402ba622
mov eax, ebx
mov rcx, qword [0x14043ce28]
mov edx, 0x3055
mov dword [0x14043ce40], eax
call qword [0x14043cef0]
test rax, rax
je 0x1402ba657
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1402af3e0
test eax, eax
mov eax, 1
jne 0x1402ba659
mov eax, ebx
mov rcx, qword [0x14043ce28]
mov edx, 0x3055
mov dword [0x14043ce44], eax
call qword [0x14043cef0]
test rax, rax
je 0x1402ba68e
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1402af3e0
test eax, eax
mov eax, 1
jne 0x1402ba690
mov eax, ebx
mov rcx, qword [0x14043ce28]
mov edx, 0x3055
mov dword [0x14043ce48], eax
call qword [0x14043cef0]
test rax, rax
je 0x1402ba6c5
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1402af3e0
test eax, eax
mov eax, 1
jne 0x1402ba6c7
mov eax, ebx
mov rcx, qword [0x14043ce28]
mov edx, 0x3055
mov dword [0x14043ce4c], eax
call qword [0x14043cef0]
test rax, rax
je 0x1402ba6fc
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1402af3e0
test eax, eax
je 0x1402ba6fc
mov ebx, 1
mov dword [0x14043ce60], ebx
mov eax, 1
jmp 0x1402ba74d
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1402ad6e0
mov rcx, qword [0x14043ce28]
test rcx, rcx
je 0x1402ba733
call qword [0x14043cea8]
mov qword [0x14043ce28], rbx
mov rcx, qword [0x14043ce78]
test rcx, rcx
je 0x1402ba74b
call fcn.1402bbae0
mov qword [0x14043ce78], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140313160
add rsp, 0x50
pop rbx
ret