Function at 0x14005f060
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x140122cd8], 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 0x14005f09e
mov eax, 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]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x140122cd8], rax
mov rcx, rax
test rax, rax
jne 0x14005f0d6
mov rax, qword [rsp + rdi*8 + 0x28]
inc rdi
inc esi
test rax, rax
jne 0x14005f0b0
test rcx, rcx
jne 0x14005f0fe
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140053230
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
movsxd rcx, esi
lea rdx, [0x1400edbf0]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x20]
call fcn.140097750
mov ecx, ebx
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x140122c98], ecx
mov rcx, qword [0x140122cd8]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglGetConfigs
mov qword [0x140122ce0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglGetDisplay
mov qword [0x140122ce8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglGetError
mov qword [0x140122cf0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglInitialize
mov qword [0x140122cf8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglTerminate
mov qword [0x140122d00], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglBindAPI
mov qword [0x140122d08], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglCreateContext
mov qword [0x140122d10], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglDestroySurface
mov qword [0x140122d18], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglDestroyContext
mov qword [0x140122d20], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglCreateWindowSurface
mov qword [0x140122d28], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglMakeCurrent
mov qword [0x140122d30], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglSwapBuffers
mov qword [0x140122d38], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglSwapInterval
mov qword [0x140122d40], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglQueryString
mov qword [0x140122d48], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x140122cd8]
lea rdx, str.eglGetProcAddress
mov qword [0x140122d50], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x140122ce0], rbx
mov rcx, rax
mov qword [0x140122d58], rax
je 0x14005f6e7
cmp qword [0x140122ce8], rbx
je 0x14005f6e7
cmp qword [0x140122cf0], rbx
je 0x14005f6e7
cmp qword [0x140122cf8], rbx
je 0x14005f6e7
cmp qword [0x140122d00], rbx
je 0x14005f6e7
cmp qword [0x140122d08], rbx
je 0x14005f6e7
cmp qword [0x140122d10], rbx
je 0x14005f6e7
cmp qword [0x140122d18], rbx
je 0x14005f6e7
cmp qword [0x140122d20], rbx
je 0x14005f6e7
cmp qword [0x140122d28], rbx
je 0x14005f6e7
cmp qword [0x140122d30], rbx
je 0x14005f6e7
cmp qword [0x140122d38], rbx
je 0x14005f6e7
cmp qword [0x140122d40], rbx
je 0x14005f6e7
cmp qword [0x140122d48], rbx
je 0x14005f6e7
mov rax, qword [0x140122d50]
test rax, rax
je 0x14005f6e7
test rcx, rcx
je 0x14005f6e7
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x14005f3c1
call qword [0x140122cf8]
cmp eax, 0x3000
jne 0x14005f3c1
mov dword [0x140122cb0], 1
jmp 0x14005f3cd
cmp dword [0x140122cb0], ebx
je 0x14005f475
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.140052130
mov rdx, rdi
mov dword [0x140122cb4], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140052130
mov rdx, rdi
mov dword [0x140122cb8], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140052130
mov rdx, rdi
mov dword [0x140122cbc], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140052130
mov rdx, rdi
mov dword [0x140122cc4], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140052130
mov rdx, rdi
mov dword [0x140122cc8], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140052130
mov rdx, rdi
mov dword [0x140122ccc], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140052130
mov rdx, rdi
mov dword [0x140122cd0], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140052130
mov dword [0x140122cd4], eax
cmp dword [0x140122cb4], ebx
je 0x14005f4a5
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x140122d58]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x140122d60], rax
call qword [0x140122d58]
mov qword [0x140122d68], rax
lea rcx, [rsp + 0x50]
call qword [0x1401214c8]
mov dword [0x140122c80], eax
test eax, eax
je 0x14005f4d6
call qword [0x1401214d0]
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov ecx, dword [0x140122c80]
call qword [0x140122d60]
jmp 0x14005f4e5
call qword [0x1401214d0]
mov rcx, rax
call qword [0x140122cf0]
mov rcx, qword [rsp + 0x50]
mov qword [0x140122c88], rax
call fcn.140053740
mov rcx, qword [0x140122c88]
test rcx, rcx
jne 0x14005f53a
call qword [0x140122cf8]
mov ecx, eax
call fcn.14005fbc0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140053230
call fcn.14005f740
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
lea r8, [0x140122c94]
lea rdx, [0x140122c90]
call qword [0x140122d00]
test eax, eax
jne 0x14005f58a
call qword [0x140122cf8]
mov ecx, eax
call fcn.14005fbc0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140053230
call fcn.14005f740
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [0x140122c88]
mov edx, 0x3055
call qword [0x140122d50]
test rax, rax
je 0x14005f5b9
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140052130
test eax, eax
mov eax, 1
jne 0x14005f5bb
mov eax, ebx
mov rcx, qword [0x140122c88]
mov edx, 0x3055
mov dword [0x140122c9c], eax
call qword [0x140122d50]
test rax, rax
je 0x14005f5f0
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140052130
test eax, eax
mov eax, 1
jne 0x14005f5f2
mov eax, ebx
mov rcx, qword [0x140122c88]
mov edx, 0x3055
mov dword [0x140122ca0], eax
call qword [0x140122d50]
test rax, rax
je 0x14005f627
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140052130
test eax, eax
mov eax, 1
jne 0x14005f629
mov eax, ebx
mov rcx, qword [0x140122c88]
mov edx, 0x3055
mov dword [0x140122ca4], eax
call qword [0x140122d50]
test rax, rax
je 0x14005f65e
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140052130
test eax, eax
mov eax, 1
jne 0x14005f660
mov eax, ebx
mov rcx, qword [0x140122c88]
mov edx, 0x3055
mov dword [0x140122ca8], eax
call qword [0x140122d50]
test rax, rax
je 0x14005f695
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140052130
test eax, eax
mov eax, 1
jne 0x14005f697
mov eax, ebx
mov rcx, qword [0x140122c88]
mov edx, 0x3055
mov dword [0x140122cac], eax
call qword [0x140122d50]
test rax, rax
je 0x14005f6cc
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.140052130
test eax, eax
je 0x14005f6cc
mov ebx, 1
mov rsi, qword [rsp + 0x58]
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov dword [0x140122cc0], ebx
add rsp, 0x40
pop rbx
ret
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140053230
mov rcx, qword [0x140122c88]
test rcx, rcx
je 0x14005f711
call qword [0x140122d08]
mov qword [0x140122c88], rbx
mov rcx, qword [0x140122cd8]
test rcx, rcx
je 0x14005f729
call fcn.140060bd0
mov qword [0x140122cd8], rbx
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret