Function at 0x140073e40
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400fc740]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x1400fe928], 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 0x140073e98
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140077f60
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 [0x1400fe928], rax
test rax, rax
jne 0x140073ee0
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x140073ea7
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.140067450
jmp 0x1400744e4
movsxd rcx, esi
lea rdx, [0x14009ea50]
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 [0x1400fe8e8], ecx
mov rcx, qword [0x1400fe928]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglGetConfigs
mov qword [0x1400fe930], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglGetDisplay
mov qword [0x1400fe938], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglGetError
mov qword [0x1400fe940], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglInitialize
mov qword [0x1400fe948], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglTerminate
mov qword [0x1400fe950], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglBindAPI
mov qword [0x1400fe958], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglCreateContext
mov qword [0x1400fe960], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglDestroySurface
mov qword [0x1400fe968], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglDestroyContext
mov qword [0x1400fe970], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400fe978], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglMakeCurrent
mov qword [0x1400fe980], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglSwapBuffers
mov qword [0x1400fe988], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglSwapInterval
mov qword [0x1400fe990], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglQueryString
mov qword [0x1400fe998], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400fe928]
lea rdx, str.eglGetProcAddress
mov qword [0x1400fe9a0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400fe930], rbx
mov rcx, rax
mov qword [0x1400fe9a8], rax
je 0x1400744a2
cmp qword [0x1400fe938], rbx
je 0x1400744a2
cmp qword [0x1400fe940], rbx
je 0x1400744a2
cmp qword [0x1400fe948], rbx
je 0x1400744a2
cmp qword [0x1400fe950], rbx
je 0x1400744a2
cmp qword [0x1400fe958], rbx
je 0x1400744a2
cmp qword [0x1400fe960], rbx
je 0x1400744a2
cmp qword [0x1400fe968], rbx
je 0x1400744a2
cmp qword [0x1400fe970], rbx
je 0x1400744a2
cmp qword [0x1400fe978], rbx
je 0x1400744a2
cmp qword [0x1400fe980], rbx
je 0x1400744a2
cmp qword [0x1400fe988], rbx
je 0x1400744a2
cmp qword [0x1400fe990], rbx
je 0x1400744a2
cmp qword [0x1400fe998], rbx
je 0x1400744a2
mov rax, qword [0x1400fe9a0]
test rax, rax
je 0x1400744a2
test rcx, rcx
je 0x1400744a2
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1400741a4
call qword [0x1400fe948]
cmp eax, 0x3000
jne 0x1400741a4
mov dword [0x1400fe900], 1
jmp 0x1400741b0
cmp dword [0x1400fe900], ebx
je 0x140074258
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.14006aea0
mov rdx, rdi
mov dword [0x1400fe904], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.14006aea0
mov rdx, rdi
mov dword [0x1400fe908], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.14006aea0
mov rdx, rdi
mov dword [0x1400fe90c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.14006aea0
mov rdx, rdi
mov dword [0x1400fe914], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.14006aea0
mov rdx, rdi
mov dword [0x1400fe918], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.14006aea0
mov rdx, rdi
mov dword [0x1400fe91c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.14006aea0
mov rdx, rdi
mov dword [0x1400fe920], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.14006aea0
mov dword [0x1400fe924], eax
cmp dword [0x1400fe904], ebx
je 0x140074288
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400fe9a8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400fe9b0], rax
call qword [0x1400fe9a8]
mov qword [0x1400fe9b8], rax
lea rcx, [rsp + 0x20]
call qword [0x1400fd118]
mov dword [0x1400fe8d0], eax
test eax, eax
je 0x1400742b9
call qword [0x1400fd120]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1400fe8d0]
call qword [0x1400fe9b0]
jmp 0x1400742c8
call qword [0x1400fd120]
mov rcx, rax
call qword [0x1400fe940]
mov rcx, qword [rsp + 0x20]
mov qword [0x1400fe8d8], rax
call fcn.140067960
mov rcx, qword [0x1400fe8d8]
test rcx, rcx
jne 0x140074310
call qword [0x1400fe948]
mov ecx, eax
call fcn.140074990
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.140067450
call fcn.140074510
jmp 0x1400744e4
lea r8, [0x1400fe8e4]
lea rdx, [0x1400fe8e0]
call qword [0x1400fe950]
test eax, eax
jne 0x140074353
call qword [0x1400fe948]
mov ecx, eax
call fcn.140074990
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.140067450
call fcn.140074510
jmp 0x1400744e4
mov rcx, qword [0x1400fe8d8]
mov edx, 0x3055
call qword [0x1400fe9a0]
test rax, rax
je 0x140074382
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.14006aea0
test eax, eax
mov eax, 1
jne 0x140074384
mov eax, ebx
mov rcx, qword [0x1400fe8d8]
mov edx, 0x3055
mov dword [0x1400fe8ec], eax
call qword [0x1400fe9a0]
test rax, rax
je 0x1400743b9
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.14006aea0
test eax, eax
mov eax, 1
jne 0x1400743bb
mov eax, ebx
mov rcx, qword [0x1400fe8d8]
mov edx, 0x3055
mov dword [0x1400fe8f0], eax
call qword [0x1400fe9a0]
test rax, rax
je 0x1400743f0
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.14006aea0
test eax, eax
mov eax, 1
jne 0x1400743f2
mov eax, ebx
mov rcx, qword [0x1400fe8d8]
mov edx, 0x3055
mov dword [0x1400fe8f4], eax
call qword [0x1400fe9a0]
test rax, rax
je 0x140074427
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.14006aea0
test eax, eax
mov eax, 1
jne 0x140074429
mov eax, ebx
mov rcx, qword [0x1400fe8d8]
mov edx, 0x3055
mov dword [0x1400fe8f8], eax
call qword [0x1400fe9a0]
test rax, rax
je 0x14007445e
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.14006aea0
test eax, eax
mov eax, 1
jne 0x140074460
mov eax, ebx
mov rcx, qword [0x1400fe8d8]
mov edx, 0x3055
mov dword [0x1400fe8fc], eax
call qword [0x1400fe9a0]
test rax, rax
je 0x140074495
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.14006aea0
test eax, eax
je 0x140074495
mov ebx, 1
mov dword [0x1400fe910], ebx
mov eax, 1
jmp 0x1400744e6
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140067450
mov rcx, qword [0x1400fe8d8]
test rcx, rcx
je 0x1400744cc
call qword [0x1400fe958]
mov qword [0x1400fe8d8], rbx
mov rcx, qword [0x1400fe928]
test rcx, rcx
je 0x1400744e4
call fcn.140075870
mov qword [0x1400fe928], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140077f60
add rsp, 0x50
pop rbx
ret