Function at 0x180048d40
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180078fc0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
lea rax, str.libEGL.dll
cmp qword [0x18007ad20], 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 0x180048d98
lea eax, [rbx + 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004b330
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 [0x18007ad20], rax
test rax, rax
jne 0x180048de0
mov rax, qword [rsp + rdi*8 + 0x30]
inc rdi
inc esi
test rax, rax
jne 0x180048da7
lea rdx, str.EGL:_Library_not_found
mov ecx, 0x10006
call fcn.18003f2a0
jmp 0x180049420
movsxd rcx, esi
lea rdx, [0x180068400]
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 [0x18007acd8], ecx
mov rcx, qword [0x18007ad20]
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglGetConfigs
mov qword [0x18007ad28], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglGetDisplay
mov qword [0x18007ad30], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglGetError
mov qword [0x18007ad38], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglInitialize
mov qword [0x18007ad40], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglTerminate
mov qword [0x18007ad48], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglBindAPI
mov qword [0x18007ad50], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglCreateContext
mov qword [0x18007ad58], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglDestroySurface
mov qword [0x18007ad60], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglDestroyContext
mov qword [0x18007ad68], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglCreateWindowSurface
mov qword [0x18007ad70], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglCreatePbufferSurface
mov qword [0x18007ad78], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglMakeCurrent
mov qword [0x18007ad80], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglSwapBuffers
mov qword [0x18007ad88], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglSwapInterval
mov qword [0x18007ad90], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglQueryString
mov qword [0x18007ad98], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x18007ad20]
lea rdx, str.eglGetProcAddress
mov qword [0x18007ada0], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x18007ad28], rbx
mov rcx, rax
mov qword [0x18007ada8], rax
je 0x1800493de
cmp qword [0x18007ad30], rbx
je 0x1800493de
cmp qword [0x18007ad38], rbx
je 0x1800493de
cmp qword [0x18007ad40], rbx
je 0x1800493de
cmp qword [0x18007ad48], rbx
je 0x1800493de
cmp qword [0x18007ad50], rbx
je 0x1800493de
cmp qword [0x18007ad58], rbx
je 0x1800493de
cmp qword [0x18007ad60], rbx
je 0x1800493de
cmp qword [0x18007ad68], rbx
je 0x1800493de
cmp qword [0x18007ad70], rbx
je 0x1800493de
cmp qword [0x18007ad78], rbx
je 0x1800493de
cmp qword [0x18007ad80], rbx
je 0x1800493de
cmp qword [0x18007ad88], rbx
je 0x1800493de
cmp qword [0x18007ad90], rbx
je 0x1800493de
cmp qword [0x18007ad98], rbx
je 0x1800493de
mov rax, qword [0x18007ada0]
test rax, rax
je 0x1800493de
test rcx, rcx
je 0x1800493de
mov edx, 0x3055
xor ecx, ecx
call rax
mov rdi, rax
test rax, rax
je 0x1800490cb
call qword [0x18007ad40]
cmp eax, 0x3000
jne 0x1800490cb
mov dword [0x18007acf0], 1
jmp 0x1800490d7
cmp dword [0x18007acf0], ebx
je 0x180049194
mov rdx, rdi
lea rcx, str.EGL_EXT_platform_base
call fcn.1800446a0
mov rdx, rdi
mov dword [0x18007acf4], eax
lea rcx, str.EGL_EXT_platform_x11
call fcn.1800446a0
mov rdx, rdi
mov dword [0x18007acf8], eax
lea rcx, str.EGL_EXT_platform_wayland
call fcn.1800446a0
mov rdx, rdi
mov dword [0x18007acfc], eax
lea rcx, str.EGL_ANGLE_platform_angle
call fcn.1800446a0
mov rdx, rdi
mov dword [0x18007ad04], eax
lea rcx, str.EGL_ANGLE_platform_angle_opengl
call fcn.1800446a0
mov rdx, rdi
mov dword [0x18007ad08], eax
lea rcx, str.EGL_ANGLE_platform_angle_d3d
call fcn.1800446a0
mov rdx, rdi
mov dword [0x18007ad0c], eax
lea rcx, str.EGL_ANGLE_platform_angle_vulkan
call fcn.1800446a0
mov rdx, rdi
mov dword [0x18007ad10], eax
lea rcx, str.EGL_ANGLE_platform_angle_metal
call fcn.1800446a0
mov rdx, rdi
mov dword [0x18007ad14], eax
lea rcx, str.EGL_MESA_platform_surfaceless
call fcn.1800446a0
mov dword [0x18007ad18], eax
cmp dword [0x18007acf4], ebx
je 0x1800491c4
lea rcx, str.eglGetPlatformDisplayEXT
call qword [0x18007ada8]
lea rcx, str.eglCreatePlatformWindowSurfaceEXT
mov qword [0x18007adb0], rax
call qword [0x18007ada8]
mov qword [0x18007adb8], rax
lea rcx, [rsp + 0x20]
call qword [0x180079508]
mov dword [0x18007acc0], eax
test eax, eax
je 0x1800491f5
call qword [0x180079510]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov ecx, dword [0x18007acc0]
call qword [0x18007adb0]
jmp 0x180049204
call qword [0x180079510]
mov rcx, rax
call qword [0x18007ad38]
mov rcx, qword [rsp + 0x20]
mov qword [0x18007acc8], rax
call fcn.18003f7b0
mov rcx, qword [0x18007acc8]
test rcx, rcx
jne 0x18004924c
call qword [0x18007ad40]
mov ecx, eax
call fcn.1800498d0
mov r8, rax
lea rdx, str.EGL:_Failed_to_get_EGL_display:__s
mov ecx, 0x10006
call fcn.18003f2a0
call fcn.180049440
jmp 0x180049420
lea r8, [0x18007acd4]
lea rdx, [0x18007acd0]
call qword [0x18007ad48]
test eax, eax
jne 0x18004928f
call qword [0x18007ad40]
mov ecx, eax
call fcn.1800498d0
mov r8, rax
lea rdx, str.EGL:_Failed_to_initialize_EGL:__s
mov ecx, 0x10006
call fcn.18003f2a0
call fcn.180049440
jmp 0x180049420
mov rcx, qword [0x18007acc8]
mov edx, 0x3055
call qword [0x18007ada0]
test rax, rax
je 0x1800492be
mov rdx, rax
lea rcx, str.EGL_KHR_create_context
call fcn.1800446a0
test eax, eax
mov eax, 1
jne 0x1800492c0
mov eax, ebx
mov rcx, qword [0x18007acc8]
mov edx, 0x3055
mov dword [0x18007acdc], eax
call qword [0x18007ada0]
test rax, rax
je 0x1800492f5
mov rdx, rax
lea rcx, str.EGL_KHR_create_context_no_error
call fcn.1800446a0
test eax, eax
mov eax, 1
jne 0x1800492f7
mov eax, ebx
mov rcx, qword [0x18007acc8]
mov edx, 0x3055
mov dword [0x18007ace0], eax
call qword [0x18007ada0]
test rax, rax
je 0x18004932c
mov rdx, rax
lea rcx, str.EGL_KHR_gl_colorspace
call fcn.1800446a0
test eax, eax
mov eax, 1
jne 0x18004932e
mov eax, ebx
mov rcx, qword [0x18007acc8]
mov edx, 0x3055
mov dword [0x18007ace4], eax
call qword [0x18007ada0]
test rax, rax
je 0x180049363
mov rdx, rax
lea rcx, str.EGL_KHR_get_all_proc_addresses
call fcn.1800446a0
test eax, eax
mov eax, 1
jne 0x180049365
mov eax, ebx
mov rcx, qword [0x18007acc8]
mov edx, 0x3055
mov dword [0x18007ace8], eax
call qword [0x18007ada0]
test rax, rax
je 0x18004939a
mov rdx, rax
lea rcx, str.EGL_KHR_context_flush_control
call fcn.1800446a0
test eax, eax
mov eax, 1
jne 0x18004939c
mov eax, ebx
mov rcx, qword [0x18007acc8]
mov edx, 0x3055
mov dword [0x18007acec], eax
call qword [0x18007ada0]
test rax, rax
je 0x1800493d1
mov rdx, rax
lea rcx, str.EGL_EXT_present_opaque
call fcn.1800446a0
test eax, eax
je 0x1800493d1
mov ebx, 1
mov dword [0x18007ad00], ebx
mov eax, 1
jmp 0x180049422
lea rdx, str.EGL:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.18003f2a0
mov rcx, qword [0x18007acc8]
test rcx, rcx
je 0x180049408
call qword [0x18007ad50]
mov qword [0x18007acc8], rbx
mov rcx, qword [0x18007ad20]
test rcx, rcx
je 0x180049420
call sub.KERNEL32.dll_FreeLibrary
mov qword [0x18007ad20], rbx
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004b330
add rsp, 0x50
pop rbx
ret