Function at 0x10062460
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
mov eax, dword [0x100ef900]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [0x10108738], 0
mov dword [esp], str.libEGL.dll
mov dword [esp + 4], str.EGL.dll
mov dword [esp + 8], 0
je 0x100624a2
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1006bae9
add esp, 0x10
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov eax, str.libEGL.dll
push eax
call edi
mov ecx, eax
mov dword [0x10108738], ecx
test ecx, ecx
jne 0x100624f2
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x100624b1
test ecx, ecx
jne 0x100624f2
push str.EGL:_Library_not_found
push 0x10006
call fcn.1005b590
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1006bae9
add esp, 0x10
ret
push 3
push 0x100be344
push dword [esp + esi*4 + 0x10]
call fcn.10079300
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
neg eax
sbb eax, eax
push str.eglGetConfigAttrib
push dword [0x10108738]
inc eax
mov dword [0x1010871c], eax
call esi
push str.eglGetConfigs
push dword [0x10108738]
mov dword [0x1010873c], eax
call esi
push str.eglGetDisplay
push dword [0x10108738]
mov dword [0x10108740], eax
call esi
push str.eglGetError
push dword [0x10108738]
mov dword [0x10108744], eax
call esi
push str.eglInitialize
push dword [0x10108738]
mov dword [0x10108748], eax
call esi
push str.eglTerminate
push dword [0x10108738]
mov dword [0x1010874c], eax
call esi
push str.eglBindAPI
push dword [0x10108738]
mov dword [0x10108750], eax
call esi
push str.eglCreateContext
push dword [0x10108738]
mov dword [0x10108754], eax
call esi
push str.eglDestroySurface
push dword [0x10108738]
mov dword [0x10108758], eax
call esi
push str.eglDestroyContext
push dword [0x10108738]
mov dword [0x1010875c], eax
call esi
push str.eglCreateWindowSurface
push dword [0x10108738]
mov dword [0x10108760], eax
call esi
push str.eglMakeCurrent
push dword [0x10108738]
mov dword [0x10108764], eax
call esi
push str.eglSwapBuffers
push dword [0x10108738]
mov dword [0x10108768], eax
call esi
push str.eglSwapInterval
push dword [0x10108738]
mov dword [0x1010876c], eax
call esi
push str.eglQueryString
push dword [0x10108738]
mov dword [0x10108770], eax
call esi
push str.eglGetProcAddress
push dword [0x10108738]
mov dword [0x10108774], eax
call esi
cmp dword [0x1010873c], 0
mov dword [0x10108778], eax
je 0x100627e1
cmp dword [0x10108740], 0
je 0x100627e1
mov ecx, dword [0x10108744]
test ecx, ecx
je 0x100627e1
cmp dword [0x10108748], 0
je 0x100627e1
cmp dword [0x1010874c], 0
je 0x100627e1
cmp dword [0x10108750], 0
je 0x100627e1
cmp dword [0x10108754], 0
je 0x100627e1
cmp dword [0x10108758], 0
je 0x100627e1
cmp dword [0x1010875c], 0
je 0x100627e1
cmp dword [0x10108760], 0
je 0x100627e1
cmp dword [0x10108764], 0
je 0x100627e1
cmp dword [0x10108768], 0
je 0x100627e1
cmp dword [0x1010876c], 0
je 0x100627e1
cmp dword [0x10108770], 0
je 0x100627e1
cmp dword [0x10108774], 0
je 0x100627e1
test eax, eax
je 0x100627e1
push 0
call ecx
mov dword [0x10108710], eax
test eax, eax
jne 0x10062745
call dword [0x10108748]
push eax
call fcn.10062bb0
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.1005b590
add esp, 0x10
call fcn.10062840
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1006bae9
add esp, 0x10
ret
push 0x10108718
push 0x10108714
push eax
call dword [0x1010874c]
test eax, eax
jne 0x1006276e
call dword [0x10108748]
push eax
call fcn.10062bb0
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x10062720
push str.EGL_KHR_create_context
call fcn.10062b80
push str.EGL_KHR_create_context_no_error
mov dword [0x10108720], eax
call fcn.10062b80
push str.EGL_KHR_gl_colorspace
mov dword [0x10108724], eax
call fcn.10062b80
push str.EGL_KHR_get_all_proc_addresses
mov dword [0x10108728], eax
call fcn.10062b80
push str.EGL_KHR_context_flush_control
mov dword [0x1010872c], eax
call fcn.10062b80
push str.EGL_EXT_present_opaque
mov dword [0x10108730], eax
call fcn.10062b80
add esp, 0x18
mov dword [0x10108734], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1006bae9
add esp, 0x10
ret
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.1005b590
mov eax, dword [0x10108710]
add esp, 8
test eax, eax
je 0x1006280d
push eax
call dword [0x10108750]
mov dword [0x10108710], 0
mov eax, dword [0x10108738]
test eax, eax
je 0x10062827
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x10108738], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1006bae9
add esp, 0x10
ret