Function at 0x140212f10
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14039c2b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1403ab270], 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 0x140212f68
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140278960
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 [0x1403ab270], rax
test rax, rax
jne 0x140212fb0
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x140212f77
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140207bc0
jmp 0x1402135b4
movsxd rcx, esi
lea rdx, [0x1402c3e50]
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 [0x1403ab230], ecx
mov rcx, qword [0x1403ab270]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglGetConfigs
mov qword [0x1403ab278], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglGetDisplay
mov qword [0x1403ab280], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglGetError
mov qword [0x1403ab288], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglInitialize
mov qword [0x1403ab290], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglTerminate
mov qword [0x1403ab298], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglBindAPI
mov qword [0x1403ab2a0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglCreateContext
mov qword [0x1403ab2a8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglDestroySurface
mov qword [0x1403ab2b0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglDestroyContext
mov qword [0x1403ab2b8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1403ab2c0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglMakeCurrent
mov qword [0x1403ab2c8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglSwapBuffers
mov qword [0x1403ab2d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglSwapInterval
mov qword [0x1403ab2d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglQueryString
mov qword [0x1403ab2e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1403ab270]
lea rdx, str.eglGetProcAddress
mov qword [0x1403ab2e8], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1403ab278], rbx
mov rcx, rax
mov qword [0x1403ab2f0], rax
je 0x140213572
cmp qword [0x1403ab280], rbx
je 0x140213572
cmp qword [0x1403ab288], rbx
je 0x140213572
cmp qword [0x1403ab290], rbx
je 0x140213572
cmp qword [0x1403ab298], rbx
je 0x140213572
cmp qword [0x1403ab2a0], rbx
je 0x140213572
cmp qword [0x1403ab2a8], rbx
je 0x140213572
cmp qword [0x1403ab2b0], rbx
je 0x140213572
cmp qword [0x1403ab2b8], rbx
je 0x140213572
cmp qword [0x1403ab2c0], rbx
je 0x140213572
cmp qword [0x1403ab2c8], rbx
je 0x140213572
cmp qword [0x1403ab2d0], rbx
je 0x140213572
cmp qword [0x1403ab2d8], rbx
je 0x140213572
cmp qword [0x1403ab2e0], rbx
je 0x140213572
mov rax, qword [0x1403ab2e8]
test rax, rax
je 0x140213572
test rcx, rcx
je 0x140213572
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x140213274
call qword [0x1403ab290]
cmp eax, 0x3000
jne 0x140213274
mov dword [0x1403ab248], 1
jmp 0x140213280
cmp dword [0x1403ab248], ebx
je 0x140213328
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.140206a60
mov rdx, rdi
mov dword [0x1403ab24c], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140206a60
mov rdx, rdi
mov dword [0x1403ab250], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140206a60
mov rdx, rdi
mov dword [0x1403ab254], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140206a60
mov rdx, rdi
mov dword [0x1403ab25c], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140206a60
mov rdx, rdi
mov dword [0x1403ab260], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140206a60
mov rdx, rdi
mov dword [0x1403ab264], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140206a60
mov rdx, rdi
mov dword [0x1403ab268], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140206a60
mov dword [0x1403ab26c], eax
cmp dword [0x1403ab24c], ebx
je 0x140213358
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1403ab2f0]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1403ab2f8], rax
call qword [0x1403ab2f0]
mov qword [0x1403ab300], rax
lea rcx, [rsp + 0x20]
call qword [0x1403a9a58]
mov dword [0x1403ab218], eax
test eax, eax
je 0x140213389
call qword [0x1403a9a60]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1403ab218]
call qword [0x1403ab2f8]
jmp 0x140213398
call qword [0x1403a9a60]
mov rcx, rax
call qword [0x1403ab288]
mov rcx, qword [rsp + 0x20]
mov qword [0x1403ab220], rax
call fcn.1402080c0
mov rcx, qword [0x1403ab220]
test rcx, rcx
jne 0x1402133e0
call qword [0x1403ab290]
mov ecx, eax
call fcn.140213a60
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140207bc0
call fcn.1402135e0
jmp 0x1402135b4
lea r8, [0x1403ab22c]
lea rdx, [0x1403ab228]
call qword [0x1403ab298]
test eax, eax
jne 0x140213423
call qword [0x1403ab290]
mov ecx, eax
call fcn.140213a60
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140207bc0
call fcn.1402135e0
jmp 0x1402135b4
mov rcx, qword [0x1403ab220]
mov edx, 0x3055
call qword [0x1403ab2e8]
test rax, rax
je 0x140213452
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140206a60
test eax, eax
mov eax, 1
jne 0x140213454
mov eax, ebx
mov rcx, qword [0x1403ab220]
mov edx, 0x3055
mov dword [0x1403ab234], eax
call qword [0x1403ab2e8]
test rax, rax
je 0x140213489
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140206a60
test eax, eax
mov eax, 1
jne 0x14021348b
mov eax, ebx
mov rcx, qword [0x1403ab220]
mov edx, 0x3055
mov dword [0x1403ab238], eax
call qword [0x1403ab2e8]
test rax, rax
je 0x1402134c0
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140206a60
test eax, eax
mov eax, 1
jne 0x1402134c2
mov eax, ebx
mov rcx, qword [0x1403ab220]
mov edx, 0x3055
mov dword [0x1403ab23c], eax
call qword [0x1403ab2e8]
test rax, rax
je 0x1402134f7
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140206a60
test eax, eax
mov eax, 1
jne 0x1402134f9
mov eax, ebx
mov rcx, qword [0x1403ab220]
mov edx, 0x3055
mov dword [0x1403ab240], eax
call qword [0x1403ab2e8]
test rax, rax
je 0x14021352e
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140206a60
test eax, eax
mov eax, 1
jne 0x140213530
mov eax, ebx
mov rcx, qword [0x1403ab220]
mov edx, 0x3055
mov dword [0x1403ab244], eax
call qword [0x1403ab2e8]
test rax, rax
je 0x140213565
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140206a60
test eax, eax
je 0x140213565
mov ebx, 1
mov dword [0x1403ab258], ebx
mov eax, 1
jmp 0x1402135b6
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140207bc0
mov rcx, qword [0x1403ab220]
test rcx, rcx
je 0x14021359c
call qword [0x1403ab2a0]
mov qword [0x1403ab220], rbx
mov rcx, qword [0x1403ab270]
test rcx, rcx
je 0x1402135b4
call fcn.140214940
mov qword [0x1403ab270], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140278960
add rsp, 0x50
pop rbx
ret