Function at 0x140078560
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1400b96c8], rbx
lea rcx, str.EGL.dll
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rbx
je 0x14007859c
lea eax, [rbx + 1]
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x58], rsi
mov esi, ebx
mov qword [rsp + 0x60], rdi
mov rdi, rbx
nop dword [rax + rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1400b96c8], rax
mov rcx, rax
test rax, rax
jne 0x1400785d6
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x1400785b0
test rcx, rcx
jne 0x1400785fe
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.14006e1a0
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x14009cdf0]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x20]
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 [0x1400b9688], ecx
mov rcx, qword [0x1400b96c8]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglGetConfigs
mov qword [0x1400b96d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglGetDisplay
mov qword [0x1400b96d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglGetError
mov qword [0x1400b96e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglInitialize
mov qword [0x1400b96e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglTerminate
mov qword [0x1400b96f0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglBindAPI
mov qword [0x1400b96f8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglCreateContext
mov qword [0x1400b9700], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglDestroySurface
mov qword [0x1400b9708], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglDestroyContext
mov qword [0x1400b9710], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400b9718], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglMakeCurrent
mov qword [0x1400b9720], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglSwapBuffers
mov qword [0x1400b9728], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglSwapInterval
mov qword [0x1400b9730], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglQueryString
mov qword [0x1400b9738], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400b96c8]
lea rdx, str.eglGetProcAddress
mov qword [0x1400b9740], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400b96d0], rbx
mov rcx, rax
mov qword [0x1400b9748], rax
je 0x140078be8
cmp qword [0x1400b96d8], rbx
je 0x140078be8
cmp qword [0x1400b96e0], rbx
je 0x140078be8
cmp qword [0x1400b96e8], rbx
je 0x140078be8
cmp qword [0x1400b96f0], rbx
je 0x140078be8
cmp qword [0x1400b96f8], rbx
je 0x140078be8
cmp qword [0x1400b9700], rbx
je 0x140078be8
cmp qword [0x1400b9708], rbx
je 0x140078be8
cmp qword [0x1400b9710], rbx
je 0x140078be8
cmp qword [0x1400b9718], rbx
je 0x140078be8
cmp qword [0x1400b9720], rbx
je 0x140078be8
cmp qword [0x1400b9728], rbx
je 0x140078be8
cmp qword [0x1400b9730], rbx
je 0x140078be8
cmp qword [0x1400b9738], rbx
je 0x140078be8
mov rax, qword [0x1400b9740]
test rax, rax
je 0x140078be8
test rcx, rcx
je 0x140078be8
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1400788c2
call qword [0x1400b96e8]
cmp eax, 0x3000
jne 0x1400788c2
mov dword [0x1400b96a0], 1
jmp 0x1400788ce
cmp dword [0x1400b96a0], ebx
je 0x140078976
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.140073c80
mov rdx, rdi
mov dword [0x1400b96a4], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140073c80
mov rdx, rdi
mov dword [0x1400b96a8], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140073c80
mov rdx, rdi
mov dword [0x1400b96ac], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140073c80
mov rdx, rdi
mov dword [0x1400b96b4], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140073c80
mov rdx, rdi
mov dword [0x1400b96b8], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140073c80
mov rdx, rdi
mov dword [0x1400b96bc], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140073c80
mov rdx, rdi
mov dword [0x1400b96c0], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140073c80
mov dword [0x1400b96c4], eax
cmp dword [0x1400b96a4], ebx
je 0x1400789a6
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400b9748]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400b9750], rax
call qword [0x1400b9748]
mov qword [0x1400b9758], rax
lea rcx, [rsp + 0x50]
call qword [0x1400b7eb8]
mov dword [0x1400b9670], eax
test eax, eax
je 0x1400789d7
call qword [0x1400b7ec0]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x1400b9670]
call qword [0x1400b9750]
jmp 0x1400789e6
call qword [0x1400b7ec0]
mov rcx, rax
call qword [0x1400b96e0]
mov rcx, qword [rsp + 0x50]
mov qword [0x1400b9678], rax
call fcn.14006e6b0
mov rcx, qword [0x1400b9678]
test rcx, rcx
jne 0x140078a3b
call qword [0x1400b96e8]
mov ecx, eax
call fcn.1400790c0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.14006e1a0
call fcn.140078c40
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x1400b9684]
lea rdx, [0x1400b9680]
call qword [0x1400b96f0]
test eax, eax
jne 0x140078a8b
call qword [0x1400b96e8]
mov ecx, eax
call fcn.1400790c0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.14006e1a0
call fcn.140078c40
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x1400b9678]
mov edx, 0x3055
call qword [0x1400b9740]
test rax, rax
je 0x140078aba
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140073c80
test eax, eax
mov eax, 1
jne 0x140078abc
mov eax, ebx
mov rcx, qword [0x1400b9678]
mov edx, 0x3055
mov dword [0x1400b968c], eax
call qword [0x1400b9740]
test rax, rax
je 0x140078af1
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140073c80
test eax, eax
mov eax, 1
jne 0x140078af3
mov eax, ebx
mov rcx, qword [0x1400b9678]
mov edx, 0x3055
mov dword [0x1400b9690], eax
call qword [0x1400b9740]
test rax, rax
je 0x140078b28
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140073c80
test eax, eax
mov eax, 1
jne 0x140078b2a
mov eax, ebx
mov rcx, qword [0x1400b9678]
mov edx, 0x3055
mov dword [0x1400b9694], eax
call qword [0x1400b9740]
test rax, rax
je 0x140078b5f
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140073c80
test eax, eax
mov eax, 1
jne 0x140078b61
mov eax, ebx
mov rcx, qword [0x1400b9678]
mov edx, 0x3055
mov dword [0x1400b9698], eax
call qword [0x1400b9740]
test rax, rax
je 0x140078b96
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140073c80
test eax, eax
mov eax, 1
jne 0x140078b98
mov eax, ebx
mov rcx, qword [0x1400b9678]
mov edx, 0x3055
mov dword [0x1400b969c], eax
call qword [0x1400b9740]
test rax, rax
je 0x140078bcd
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140073c80
test eax, eax
je 0x140078bcd
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x1400b96b0], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14006e1a0
mov rcx, qword [0x1400b9678]
test rcx, rcx
je 0x140078c12
call qword [0x1400b96f8]
mov qword [0x1400b9678], rbx
mov rcx, qword [0x1400b96c8]
test rcx, rcx
je 0x140078c2a
call fcn.140079f70
mov qword [0x1400b96c8], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret