Function at 0x1402bb7e0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140435c18]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x14043fe78], 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 0x1402bb838
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140314b10
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 [0x14043fe78], rax
mov rcx, rax
test rax, rax
jne 0x1402bb86d
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x1402bb847
test rcx, rcx
jne 0x1402bb888
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.1402aee20
jmp 0x1402bbe8b
movsxd rcx, esi
lea rdx, [0x1403fdf30]
mov r8d, 3
mov rcx, qword [rsp + rcx*8 + 0x28]
call fcn.14032c020
mov ecx, ebx
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x14043fe38], ecx
mov rcx, qword [0x14043fe78]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglGetConfigs
mov qword [0x14043fe80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglGetDisplay
mov qword [0x14043fe88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglGetError
mov qword [0x14043fe90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglInitialize
mov qword [0x14043fe98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglTerminate
mov qword [0x14043fea0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglBindAPI
mov qword [0x14043fea8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglCreateContext
mov qword [0x14043feb0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglDestroySurface
mov qword [0x14043feb8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglDestroyContext
mov qword [0x14043fec0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglCreateWindowSurface
mov qword [0x14043fec8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglMakeCurrent
mov qword [0x14043fed0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglSwapBuffers
mov qword [0x14043fed8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglSwapInterval
mov qword [0x14043fee0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglQueryString
mov qword [0x14043fee8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14043fe78]
lea rdx, str.eglGetProcAddress
mov qword [0x14043fef0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x14043fe80], rbx
mov rcx, rax
mov qword [0x14043fef8], rax
je 0x1402bbe49
cmp qword [0x14043fe88], rbx
je 0x1402bbe49
cmp qword [0x14043fe90], rbx
je 0x1402bbe49
cmp qword [0x14043fe98], rbx
je 0x1402bbe49
cmp qword [0x14043fea0], rbx
je 0x1402bbe49
cmp qword [0x14043fea8], rbx
je 0x1402bbe49
cmp qword [0x14043feb0], rbx
je 0x1402bbe49
cmp qword [0x14043feb8], rbx
je 0x1402bbe49
cmp qword [0x14043fec0], rbx
je 0x1402bbe49
cmp qword [0x14043fec8], rbx
je 0x1402bbe49
cmp qword [0x14043fed0], rbx
je 0x1402bbe49
cmp qword [0x14043fed8], rbx
je 0x1402bbe49
cmp qword [0x14043fee0], rbx
je 0x1402bbe49
cmp qword [0x14043fee8], rbx
je 0x1402bbe49
mov rax, qword [0x14043fef0]
test rax, rax
je 0x1402bbe49
test rcx, rcx
je 0x1402bbe49
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1402bbb4b
call qword [0x14043fe98]
cmp eax, 0x3000
jne 0x1402bbb4b
mov dword [0x14043fe50], 1
jmp 0x1402bbb57
cmp dword [0x14043fe50], ebx
je 0x1402bbbff
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1402b0b20
mov rdx, rdi
mov dword [0x14043fe54], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1402b0b20
mov rdx, rdi
mov dword [0x14043fe58], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1402b0b20
mov rdx, rdi
mov dword [0x14043fe5c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1402b0b20
mov rdx, rdi
mov dword [0x14043fe64], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1402b0b20
mov rdx, rdi
mov dword [0x14043fe68], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1402b0b20
mov rdx, rdi
mov dword [0x14043fe6c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1402b0b20
mov rdx, rdi
mov dword [0x14043fe70], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1402b0b20
mov dword [0x14043fe74], eax
cmp dword [0x14043fe54], ebx
je 0x1402bbc2f
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x14043fef8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x14043ff00], rax
call qword [0x14043fef8]
mov qword [0x14043ff08], rax
lea rcx, [rsp + 0x20]
call qword [0x14043e668]
mov dword [0x14043fe20], eax
test eax, eax
je 0x1402bbc60
call qword [0x14043e670]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x14043fe20]
call qword [0x14043ff00]
jmp 0x1402bbc6f
call qword [0x14043e670]
mov rcx, rax
call qword [0x14043fe90]
mov rcx, qword [rsp + 0x20]
mov qword [0x14043fe28], rax
call fcn.1402af370
mov rcx, qword [0x14043fe28]
test rcx, rcx
jne 0x1402bbcb7
call qword [0x14043fe98]
mov ecx, eax
call fcn.1402bc330
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.1402aee20
call fcn.1402bbeb0
jmp 0x1402bbe8b
lea r8, [0x14043fe34]
lea rdx, [0x14043fe30]
call qword [0x14043fea0]
test eax, eax
jne 0x1402bbcfa
call qword [0x14043fe98]
mov ecx, eax
call fcn.1402bc330
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.1402aee20
call fcn.1402bbeb0
jmp 0x1402bbe8b
mov rcx, qword [0x14043fe28]
mov edx, 0x3055
call qword [0x14043fef0]
test rax, rax
je 0x1402bbd29
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1402b0b20
test eax, eax
mov eax, 1
jne 0x1402bbd2b
mov eax, ebx
mov rcx, qword [0x14043fe28]
mov edx, 0x3055
mov dword [0x14043fe3c], eax
call qword [0x14043fef0]
test rax, rax
je 0x1402bbd60
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1402b0b20
test eax, eax
mov eax, 1
jne 0x1402bbd62
mov eax, ebx
mov rcx, qword [0x14043fe28]
mov edx, 0x3055
mov dword [0x14043fe40], eax
call qword [0x14043fef0]
test rax, rax
je 0x1402bbd97
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1402b0b20
test eax, eax
mov eax, 1
jne 0x1402bbd99
mov eax, ebx
mov rcx, qword [0x14043fe28]
mov edx, 0x3055
mov dword [0x14043fe44], eax
call qword [0x14043fef0]
test rax, rax
je 0x1402bbdce
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1402b0b20
test eax, eax
mov eax, 1
jne 0x1402bbdd0
mov eax, ebx
mov rcx, qword [0x14043fe28]
mov edx, 0x3055
mov dword [0x14043fe48], eax
call qword [0x14043fef0]
test rax, rax
je 0x1402bbe05
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1402b0b20
test eax, eax
mov eax, 1
jne 0x1402bbe07
mov eax, ebx
mov rcx, qword [0x14043fe28]
mov edx, 0x3055
mov dword [0x14043fe4c], eax
call qword [0x14043fef0]
test rax, rax
je 0x1402bbe3c
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1402b0b20
test eax, eax
je 0x1402bbe3c
mov ebx, 1
mov dword [0x14043fe60], ebx
mov eax, 1
jmp 0x1402bbe8d
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1402aee20
mov rcx, qword [0x14043fe28]
test rcx, rcx
je 0x1402bbe73
call qword [0x14043fea8]
mov qword [0x14043fe28], rbx
mov rcx, qword [0x14043fe78]
test rcx, rcx
je 0x1402bbe8b
call fcn.1402bd220
mov qword [0x14043fe78], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140314b10
add rsp, 0x50
pop rbx
ret