Function at 0x10070640
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
mov eax, dword [0x1011d900]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [0x101364d0], 0
mov dword [esp], str.libEGL.dll
mov dword [esp + 4], str.EGL.dll
mov dword [esp + 8], 0
je 0x10070682
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10072cfd
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 [0x101364d0], ecx
test ecx, ecx
jne 0x100706d2
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x10070691
test ecx, ecx
jne 0x100706d2
push str.EGL:_Library_not_found
push 0x10006
call fcn.10069770
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10072cfd
add esp, 0x10
ret
push 3
push 0x100c2564
push dword [esp + esi*4 + 0x10]
call fcn.100804b0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
neg eax
sbb eax, eax
push str.eglGetConfigAttrib
push dword [0x101364d0]
inc eax
mov dword [0x101364b4], eax
call esi
push str.eglGetConfigs
push dword [0x101364d0]
mov dword [0x101364d4], eax
call esi
push str.eglGetDisplay
push dword [0x101364d0]
mov dword [0x101364d8], eax
call esi
push str.eglGetError
push dword [0x101364d0]
mov dword [0x101364dc], eax
call esi
push str.eglInitialize
push dword [0x101364d0]
mov dword [0x101364e0], eax
call esi
push str.eglTerminate
push dword [0x101364d0]
mov dword [0x101364e4], eax
call esi
push str.eglBindAPI
push dword [0x101364d0]
mov dword [0x101364e8], eax
call esi
push str.eglCreateContext
push dword [0x101364d0]
mov dword [0x101364ec], eax
call esi
push str.eglDestroySurface
push dword [0x101364d0]
mov dword [0x101364f0], eax
call esi
push str.eglDestroyContext
push dword [0x101364d0]
mov dword [0x101364f4], eax
call esi
push str.eglCreateWindowSurface
push dword [0x101364d0]
mov dword [0x101364f8], eax
call esi
push str.eglMakeCurrent
push dword [0x101364d0]
mov dword [0x101364fc], eax
call esi
push str.eglSwapBuffers
push dword [0x101364d0]
mov dword [0x10136500], eax
call esi
push str.eglSwapInterval
push dword [0x101364d0]
mov dword [0x10136504], eax
call esi
push str.eglQueryString
push dword [0x101364d0]
mov dword [0x10136508], eax
call esi
push str.eglGetProcAddress
push dword [0x101364d0]
mov dword [0x1013650c], eax
call esi
cmp dword [0x101364d4], 0
mov dword [0x10136510], eax
je 0x100709c1
cmp dword [0x101364d8], 0
je 0x100709c1
mov ecx, dword [0x101364dc]
test ecx, ecx
je 0x100709c1
cmp dword [0x101364e0], 0
je 0x100709c1
cmp dword [0x101364e4], 0
je 0x100709c1
cmp dword [0x101364e8], 0
je 0x100709c1
cmp dword [0x101364ec], 0
je 0x100709c1
cmp dword [0x101364f0], 0
je 0x100709c1
cmp dword [0x101364f4], 0
je 0x100709c1
cmp dword [0x101364f8], 0
je 0x100709c1
cmp dword [0x101364fc], 0
je 0x100709c1
cmp dword [0x10136500], 0
je 0x100709c1
cmp dword [0x10136504], 0
je 0x100709c1
cmp dword [0x10136508], 0
je 0x100709c1
cmp dword [0x1013650c], 0
je 0x100709c1
test eax, eax
je 0x100709c1
push 0
call ecx
mov dword [0x101364a8], eax
test eax, eax
jne 0x10070925
call dword [0x101364e0]
push eax
call fcn.10070d90
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.10069770
add esp, 0x10
call fcn.10070a20
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10072cfd
add esp, 0x10
ret
push 0x101364b0
push 0x101364ac
push eax
call dword [0x101364e4]
test eax, eax
jne 0x1007094e
call dword [0x101364e0]
push eax
call fcn.10070d90
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x10070900
push str.EGL_KHR_create_context
call fcn.10070d60
push str.EGL_KHR_create_context_no_error
mov dword [0x101364b8], eax
call fcn.10070d60
push str.EGL_KHR_gl_colorspace
mov dword [0x101364bc], eax
call fcn.10070d60
push str.EGL_KHR_get_all_proc_addresses
mov dword [0x101364c0], eax
call fcn.10070d60
push str.EGL_KHR_context_flush_control
mov dword [0x101364c4], eax
call fcn.10070d60
push str.EGL_EXT_present_opaque
mov dword [0x101364c8], eax
call fcn.10070d60
add esp, 0x18
mov dword [0x101364cc], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10072cfd
add esp, 0x10
ret
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.10069770
mov eax, dword [0x101364a8]
add esp, 8
test eax, eax
je 0x100709ed
push eax
call dword [0x101364e8]
mov dword [0x101364a8], 0
mov eax, dword [0x101364d0]
test eax, eax
je 0x10070a07
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x101364d0], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10072cfd
add esp, 0x10
ret