Function at 0x14003a830
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1400a21a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edi, edi
lea rax, str.libEGL.dll
cmp qword [0x1400a73a8], rdi
lea rcx, str.EGL.dll
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdi
je 0x14003a888
lea eax, [rdi + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052eb0
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x60], rbx
mov rbx, rdi
mov qword [rsp + 0x68], rsi
mov esi, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400a73a8], rax
mov rcx, rax
test rax, rax
jne 0x14003a8be
mov rax, qword [rsp + rbx*8 + 0x30]
inc rbx
inc esi
test rax, rax
jne 0x14003a897
test rcx, rcx
jne 0x14003a8d9
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.14002ffa0
jmp 0x14003aeb5
movsxd rcx, esi
lea rdx, [0x14007b230]
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, edi
lea rdx, str.eglGetConfigAttrib
test eax, eax
sete cl
mov dword [0x1400a7368], ecx
mov rcx, qword [0x1400a73a8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglGetConfigs
mov qword [0x1400a73b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglGetDisplay
mov qword [0x1400a73b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglGetError
mov qword [0x1400a73c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglInitialize
mov qword [0x1400a73c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglTerminate
mov qword [0x1400a73d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglBindAPI
mov qword [0x1400a73d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglCreateContext
mov qword [0x1400a73e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglDestroySurface
mov qword [0x1400a73e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglDestroyContext
mov qword [0x1400a73f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglCreateWindowSurface
mov qword [0x1400a73f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglMakeCurrent
mov qword [0x1400a7400], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglSwapBuffers
mov qword [0x1400a7408], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglSwapInterval
mov qword [0x1400a7410], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglQueryString
mov qword [0x1400a7418], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a73a8]
lea rdx, str.eglGetProcAddress
mov qword [0x1400a7420], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400a73b0], rdi
mov rcx, rax
mov qword [0x1400a7428], rax
je 0x14003ae72
cmp qword [0x1400a73b8], rdi
je 0x14003ae72
cmp qword [0x1400a73c0], rdi
je 0x14003ae72
cmp qword [0x1400a73c8], rdi
je 0x14003ae72
cmp qword [0x1400a73d0], rdi
je 0x14003ae72
cmp qword [0x1400a73d8], rdi
je 0x14003ae72
cmp qword [0x1400a73e0], rdi
je 0x14003ae72
cmp qword [0x1400a73e8], rdi
je 0x14003ae72
cmp qword [0x1400a73f0], rdi
je 0x14003ae72
cmp qword [0x1400a73f8], rdi
je 0x14003ae72
cmp qword [0x1400a7400], rdi
je 0x14003ae72
cmp qword [0x1400a7408], rdi
je 0x14003ae72
cmp qword [0x1400a7410], rdi
je 0x14003ae72
cmp qword [0x1400a7418], rdi
je 0x14003ae72
mov rax, qword [0x1400a7420]
test rax, rax
je 0x14003ae72
test rcx, rcx
je 0x14003ae72
mov edx, 0x3055
xor ecx, ecx
call rax
mov rbx, rax
test rax, rax
je 0x14003abad
call qword [0x1400a73c8]
cmp eax, 0x3000
jne 0x14003abad
mov dword [0x1400a7380], 1
jmp 0x14003abb9
cmp dword [0x1400a7380], edi
je 0x14003ac61
mov rdx, rbx
lea rcx, str.EGL_EXT_platform_base
call fcn.140031ac0
mov rdx, rbx
mov dword [0x1400a7384], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.140031ac0
mov rdx, rbx
mov dword [0x1400a7388], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.140031ac0
mov rdx, rbx
mov dword [0x1400a738c], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.140031ac0
mov rdx, rbx
mov dword [0x1400a7390], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.140031ac0
mov rdx, rbx
mov dword [0x1400a7394], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.140031ac0
mov rdx, rbx
mov dword [0x1400a7398], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.140031ac0
mov rdx, rbx
mov dword [0x1400a739c], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.140031ac0
mov dword [0x1400a73a0], eax
cmp dword [0x1400a7384], edi
je 0x14003ac91
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x1400a7428]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x1400a7430], rax
call qword [0x1400a7428]
mov qword [0x1400a7438], rax
lea rcx, [rsp + 0x20]
call fcn.140036870
mov dword [0x1400a7350], eax
test eax, eax
je 0x14003acc0
call fcn.140036850
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x1400a7350]
call qword [0x1400a7430]
jmp 0x14003acce
call fcn.140036850
mov rcx, rax
call qword [0x1400a73c0]
mov rcx, qword [rsp + 0x20]
mov qword [0x1400a7358], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x1400a7358]
test rcx, rcx
jne 0x14003ad17
call qword [0x1400a73c8]
mov ecx, eax
call fcn.14003b300
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.14002ffa0
call fcn.14003aee0
jmp 0x14003aeb5
lea r8, [0x1400a7364]
lea rdx, [0x1400a7360]
call qword [0x1400a73d0]
test eax, eax
jne 0x14003ad5a
call qword [0x1400a73c8]
mov ecx, eax
call fcn.14003b300
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.14002ffa0
call fcn.14003aee0
jmp 0x14003aeb5
mov rcx, qword [0x1400a7358]
mov edx, 0x3055
call qword [0x1400a7420]
test rax, rax
je 0x14003ad89
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.140031ac0
test eax, eax
mov eax, 1
jne 0x14003ad8b
mov eax, edi
mov rcx, qword [0x1400a7358]
mov edx, 0x3055
mov dword [0x1400a736c], eax
call qword [0x1400a7420]
test rax, rax
je 0x14003adc0
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.140031ac0
test eax, eax
mov eax, 1
jne 0x14003adc2
mov eax, edi
mov rcx, qword [0x1400a7358]
mov edx, 0x3055
mov dword [0x1400a7370], eax
call qword [0x1400a7420]
test rax, rax
je 0x14003adf7
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.140031ac0
test eax, eax
mov eax, 1
jne 0x14003adf9
mov eax, edi
mov rcx, qword [0x1400a7358]
mov edx, 0x3055
mov dword [0x1400a7374], eax
call qword [0x1400a7420]
test rax, rax
je 0x14003ae2e
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.140031ac0
test eax, eax
mov eax, 1
jne 0x14003ae30
mov eax, edi
mov rcx, qword [0x1400a7358]
mov edx, 0x3055
mov dword [0x1400a7378], eax
call qword [0x1400a7420]
test rax, rax
je 0x14003ae65
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.140031ac0
test eax, eax
je 0x14003ae65
mov edi, 1
mov dword [0x1400a737c], edi
mov eax, 1
jmp 0x14003aeb7
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14002ffa0
mov rcx, qword [0x1400a7358]
test rcx, rcx
je 0x14003ae9c
call qword [0x1400a73d8]
mov qword [0x1400a7358], rdi
mov rcx, qword [0x1400a73a8]
test rcx, rcx
je 0x14003aeb5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1400a73a8], rdi
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052eb0
add rsp, 0x50
pop rdi
ret