Function at 0x1006be90
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
mov eax, dword [0x100f3900]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [0x1010c448], 0
mov dword [esp], str.libEGL.dll
mov dword [esp + 4], str.EGL.dll
mov dword [esp + 8], 0
je 0x1006bed2
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10075417
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 [0x1010c448], ecx
test ecx, ecx
jne 0x1006bf22
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x1006bee1
test ecx, ecx
jne 0x1006bf22
push str.EGL:_Library_not_found
push 0x10006
call fcn.10064fa0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10075417
add esp, 0x10
ret
push 3
push 0x100c44d4
push dword [esp + esi*4 + 0x10]
call fcn.100822e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
neg eax
sbb eax, eax
push str.eglGetConfigAttrib
push dword [0x1010c448]
inc eax
mov dword [0x1010c42c], eax
call esi
push str.eglGetConfigs
push dword [0x1010c448]
mov dword [0x1010c44c], eax
call esi
push str.eglGetDisplay
push dword [0x1010c448]
mov dword [0x1010c450], eax
call esi
push str.eglGetError
push dword [0x1010c448]
mov dword [0x1010c454], eax
call esi
push str.eglInitialize
push dword [0x1010c448]
mov dword [0x1010c458], eax
call esi
push str.eglTerminate
push dword [0x1010c448]
mov dword [0x1010c45c], eax
call esi
push str.eglBindAPI
push dword [0x1010c448]
mov dword [0x1010c460], eax
call esi
push str.eglCreateContext
push dword [0x1010c448]
mov dword [0x1010c464], eax
call esi
push str.eglDestroySurface
push dword [0x1010c448]
mov dword [0x1010c468], eax
call esi
push str.eglDestroyContext
push dword [0x1010c448]
mov dword [0x1010c46c], eax
call esi
push str.eglCreateWindowSurface
push dword [0x1010c448]
mov dword [0x1010c470], eax
call esi
push str.eglMakeCurrent
push dword [0x1010c448]
mov dword [0x1010c474], eax
call esi
push str.eglSwapBuffers
push dword [0x1010c448]
mov dword [0x1010c478], eax
call esi
push str.eglSwapInterval
push dword [0x1010c448]
mov dword [0x1010c47c], eax
call esi
push str.eglQueryString
push dword [0x1010c448]
mov dword [0x1010c480], eax
call esi
push str.eglGetProcAddress
push dword [0x1010c448]
mov dword [0x1010c484], eax
call esi
cmp dword [0x1010c44c], 0
mov dword [0x1010c488], eax
je 0x1006c211
cmp dword [0x1010c450], 0
je 0x1006c211
mov ecx, dword [0x1010c454]
test ecx, ecx
je 0x1006c211
cmp dword [0x1010c458], 0
je 0x1006c211
cmp dword [0x1010c45c], 0
je 0x1006c211
cmp dword [0x1010c460], 0
je 0x1006c211
cmp dword [0x1010c464], 0
je 0x1006c211
cmp dword [0x1010c468], 0
je 0x1006c211
cmp dword [0x1010c46c], 0
je 0x1006c211
cmp dword [0x1010c470], 0
je 0x1006c211
cmp dword [0x1010c474], 0
je 0x1006c211
cmp dword [0x1010c478], 0
je 0x1006c211
cmp dword [0x1010c47c], 0
je 0x1006c211
cmp dword [0x1010c480], 0
je 0x1006c211
cmp dword [0x1010c484], 0
je 0x1006c211
test eax, eax
je 0x1006c211
push 0
call ecx
mov dword [0x1010c420], eax
test eax, eax
jne 0x1006c175
call dword [0x1010c458]
push eax
call fcn.1006c5e0
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.10064fa0
add esp, 0x10
call fcn.1006c270
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10075417
add esp, 0x10
ret
push 0x1010c428
push 0x1010c424
push eax
call dword [0x1010c45c]
test eax, eax
jne 0x1006c19e
call dword [0x1010c458]
push eax
call fcn.1006c5e0
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x1006c150
push str.EGL_KHR_create_context
call fcn.1006c5b0
push str.EGL_KHR_create_context_no_error
mov dword [0x1010c430], eax
call fcn.1006c5b0
push str.EGL_KHR_gl_colorspace
mov dword [0x1010c434], eax
call fcn.1006c5b0
push str.EGL_KHR_get_all_proc_addresses
mov dword [0x1010c438], eax
call fcn.1006c5b0
push str.EGL_KHR_context_flush_control
mov dword [0x1010c43c], eax
call fcn.1006c5b0
push str.EGL_EXT_present_opaque
mov dword [0x1010c440], eax
call fcn.1006c5b0
add esp, 0x18
mov dword [0x1010c444], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10075417
add esp, 0x10
ret
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.10064fa0
mov eax, dword [0x1010c420]
add esp, 8
test eax, eax
je 0x1006c23d
push eax
call dword [0x1010c460]
mov dword [0x1010c420], 0
mov eax, dword [0x1010c448]
test eax, eax
je 0x1006c257
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1010c448], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10075417
add esp, 0x10
ret