Function at 0x140078ba0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400c1fc0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1400c9c48], 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 0x140078bf8
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007c870
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 [0x1400c9c48], rax
test rax, rax
jne 0x140078c40
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x140078c07
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.14006ea30
jmp 0x140079244
movsxd rcx, esi
lea rdx, [0x1400a6100]
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 [0x1400c9c08], ecx
mov rcx, qword [0x1400c9c48]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglGetConfigs
mov qword [0x1400c9c50], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglGetDisplay
mov qword [0x1400c9c58], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglGetError
mov qword [0x1400c9c60], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglInitialize
mov qword [0x1400c9c68], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglTerminate
mov qword [0x1400c9c70], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglBindAPI
mov qword [0x1400c9c78], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglCreateContext
mov qword [0x1400c9c80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglDestroySurface
mov qword [0x1400c9c88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglDestroyContext
mov qword [0x1400c9c90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400c9c98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglMakeCurrent
mov qword [0x1400c9ca0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglSwapBuffers
mov qword [0x1400c9ca8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglSwapInterval
mov qword [0x1400c9cb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglQueryString
mov qword [0x1400c9cb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400c9c48]
lea rdx, str.eglGetProcAddress
mov qword [0x1400c9cc0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400c9c50], rbx
mov rcx, rax
mov qword [0x1400c9cc8], rax
je 0x140079202
cmp qword [0x1400c9c58], rbx
je 0x140079202
cmp qword [0x1400c9c60], rbx
je 0x140079202
cmp qword [0x1400c9c68], rbx
je 0x140079202
cmp qword [0x1400c9c70], rbx
je 0x140079202
cmp qword [0x1400c9c78], rbx
je 0x140079202
cmp qword [0x1400c9c80], rbx
je 0x140079202
cmp qword [0x1400c9c88], rbx
je 0x140079202
cmp qword [0x1400c9c90], rbx
je 0x140079202
cmp qword [0x1400c9c98], rbx
je 0x140079202
cmp qword [0x1400c9ca0], rbx
je 0x140079202
cmp qword [0x1400c9ca8], rbx
je 0x140079202
cmp qword [0x1400c9cb0], rbx
je 0x140079202
cmp qword [0x1400c9cb8], rbx
je 0x140079202
mov rax, qword [0x1400c9cc0]
test rax, rax
je 0x140079202
test rcx, rcx
je 0x140079202
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x140078f04
call qword [0x1400c9c68]
cmp eax, 0x3000
jne 0x140078f04
mov dword [0x1400c9c20], 1
jmp 0x140078f10
cmp dword [0x1400c9c20], ebx
je 0x140078fb8
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.140074300
mov rdx, rdi
mov dword [0x1400c9c24], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140074300
mov rdx, rdi
mov dword [0x1400c9c28], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140074300
mov rdx, rdi
mov dword [0x1400c9c2c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140074300
mov rdx, rdi
mov dword [0x1400c9c34], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140074300
mov rdx, rdi
mov dword [0x1400c9c38], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140074300
mov rdx, rdi
mov dword [0x1400c9c3c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140074300
mov rdx, rdi
mov dword [0x1400c9c40], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140074300
mov dword [0x1400c9c44], eax
cmp dword [0x1400c9c24], ebx
je 0x140078fe8
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400c9cc8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400c9cd0], rax
call qword [0x1400c9cc8]
mov qword [0x1400c9cd8], rax
lea rcx, [rsp + 0x20]
call qword [0x1400c8438]
mov dword [0x1400c9bf0], eax
test eax, eax
je 0x140079019
call qword [0x1400c8440]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1400c9bf0]
call qword [0x1400c9cd0]
jmp 0x140079028
call qword [0x1400c8440]
mov rcx, rax
call qword [0x1400c9c60]
mov rcx, qword [rsp + 0x20]
mov qword [0x1400c9bf8], rax
call fcn.14006ef80
mov rcx, qword [0x1400c9bf8]
test rcx, rcx
jne 0x140079070
call qword [0x1400c9c68]
mov ecx, eax
call fcn.1400796f0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.14006ea30
call fcn.140079270
jmp 0x140079244
lea r8, [0x1400c9c04]
lea rdx, [0x1400c9c00]
call qword [0x1400c9c70]
test eax, eax
jne 0x1400790b3
call qword [0x1400c9c68]
mov ecx, eax
call fcn.1400796f0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.14006ea30
call fcn.140079270
jmp 0x140079244
mov rcx, qword [0x1400c9bf8]
mov edx, 0x3055
call qword [0x1400c9cc0]
test rax, rax
je 0x1400790e2
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140074300
test eax, eax
mov eax, 1
jne 0x1400790e4
mov eax, ebx
mov rcx, qword [0x1400c9bf8]
mov edx, 0x3055
mov dword [0x1400c9c0c], eax
call qword [0x1400c9cc0]
test rax, rax
je 0x140079119
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140074300
test eax, eax
mov eax, 1
jne 0x14007911b
mov eax, ebx
mov rcx, qword [0x1400c9bf8]
mov edx, 0x3055
mov dword [0x1400c9c10], eax
call qword [0x1400c9cc0]
test rax, rax
je 0x140079150
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140074300
test eax, eax
mov eax, 1
jne 0x140079152
mov eax, ebx
mov rcx, qword [0x1400c9bf8]
mov edx, 0x3055
mov dword [0x1400c9c14], eax
call qword [0x1400c9cc0]
test rax, rax
je 0x140079187
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140074300
test eax, eax
mov eax, 1
jne 0x140079189
mov eax, ebx
mov rcx, qword [0x1400c9bf8]
mov edx, 0x3055
mov dword [0x1400c9c18], eax
call qword [0x1400c9cc0]
test rax, rax
je 0x1400791be
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140074300
test eax, eax
mov eax, 1
jne 0x1400791c0
mov eax, ebx
mov rcx, qword [0x1400c9bf8]
mov edx, 0x3055
mov dword [0x1400c9c1c], eax
call qword [0x1400c9cc0]
test rax, rax
je 0x1400791f5
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140074300
test eax, eax
je 0x1400791f5
mov ebx, 1
mov dword [0x1400c9c30], ebx
mov eax, 1
jmp 0x140079246
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14006ea30
mov rcx, qword [0x1400c9bf8]
test rcx, rcx
je 0x14007922c
call qword [0x1400c9c78]
mov qword [0x1400c9bf8], rbx
mov rcx, qword [0x1400c9c48]
test rcx, rcx
je 0x140079244
call fcn.14007a5d0
mov qword [0x1400c9c48], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007c870
add rsp, 0x50
pop rbx
ret