Function at 0x100e7220
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1026a5dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x102c1b90], 0
mov dword [ebp - 0x10], str.libEGL.dll
mov dword [ebp - 0xc], str.EGL.dll
mov dword [ebp - 8], 0
je 0x100e7261
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e8209
mov esp, ebp
pop ebp
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 dword [0x102c1b90], eax
test eax, eax
jne 0x100e72a9
mov eax, dword [ebp + esi*4 - 0xc]
inc esi
test eax, eax
jne 0x100e7270
push str.EGL:_Library_not_found
push 0x10006
call fcn.100de0a0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e8209
mov esp, ebp
pop ebp
ret
push 3
push 0x1016c124
push dword [ebp + esi*4 - 0x10]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
neg eax
sbb eax, eax
push str.eglGetConfigAttrib
push dword [0x102c1b90]
inc eax
mov dword [0x102c1b74], eax
call esi
push str.eglGetConfigs
push dword [0x102c1b90]
mov dword [0x102c1b94], eax
call esi
push str.eglGetDisplay
push dword [0x102c1b90]
mov dword [0x102c1b98], eax
call esi
push str.eglGetError
push dword [0x102c1b90]
mov dword [0x102c1b9c], eax
call esi
push str.eglInitialize
push dword [0x102c1b90]
mov dword [0x102c1ba0], eax
call esi
push str.eglTerminate
push dword [0x102c1b90]
mov dword [0x102c1ba4], eax
call esi
push str.eglBindAPI
push dword [0x102c1b90]
mov dword [0x102c1ba8], eax
call esi
push str.eglCreateContext
push dword [0x102c1b90]
mov dword [0x102c1bac], eax
call esi
push str.eglDestroySurface
push dword [0x102c1b90]
mov dword [0x102c1bb0], eax
call esi
push str.eglDestroyContext
push dword [0x102c1b90]
mov dword [0x102c1bb4], eax
call esi
push str.eglCreateWindowSurface
push dword [0x102c1b90]
mov dword [0x102c1bb8], eax
call esi
push str.eglMakeCurrent
push dword [0x102c1b90]
mov dword [0x102c1bbc], eax
call esi
push str.eglSwapBuffers
push dword [0x102c1b90]
mov dword [0x102c1bc0], eax
call esi
push str.eglSwapInterval
push dword [0x102c1b90]
mov dword [0x102c1bc4], eax
call esi
push str.eglQueryString
push dword [0x102c1b90]
mov dword [0x102c1bc8], eax
call esi
push str.eglGetProcAddress
push dword [0x102c1b90]
mov dword [0x102c1bcc], eax
call esi
cmp dword [0x102c1b94], 0
mov dword [0x102c1bd0], eax
je 0x100e7597
cmp dword [0x102c1b98], 0
je 0x100e7597
mov ecx, dword [0x102c1b9c]
test ecx, ecx
je 0x100e7597
cmp dword [0x102c1ba0], 0
je 0x100e7597
cmp dword [0x102c1ba4], 0
je 0x100e7597
cmp dword [0x102c1ba8], 0
je 0x100e7597
cmp dword [0x102c1bac], 0
je 0x100e7597
cmp dword [0x102c1bb0], 0
je 0x100e7597
cmp dword [0x102c1bb4], 0
je 0x100e7597
cmp dword [0x102c1bb8], 0
je 0x100e7597
cmp dword [0x102c1bbc], 0
je 0x100e7597
cmp dword [0x102c1bc0], 0
je 0x100e7597
cmp dword [0x102c1bc4], 0
je 0x100e7597
cmp dword [0x102c1bc8], 0
je 0x100e7597
cmp dword [0x102c1bcc], 0
je 0x100e7597
test eax, eax
je 0x100e7597
push 0
call ecx
mov dword [0x102c1b68], eax
test eax, eax
jne 0x100e74fc
call dword [0x102c1ba0]
push eax
call fcn.100e7970
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.100de0a0
add esp, 0x10
call fcn.100e75f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e8209
mov esp, ebp
pop ebp
ret
push 0x102c1b70
push 0x102c1b6c
push eax
call dword [0x102c1ba4]
test eax, eax
jne 0x100e7525
call dword [0x102c1ba0]
push eax
call fcn.100e7970
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x100e74d8
push str.EGL_KHR_create_context
call fcn.100e7930
push str.EGL_KHR_create_context_no_error
mov dword [0x102c1b78], eax
call fcn.100e7930
push str.EGL_KHR_gl_colorspace
mov dword [0x102c1b7c], eax
call fcn.100e7930
push str.EGL_KHR_get_all_proc_addresses
mov dword [0x102c1b80], eax
call fcn.100e7930
push str.EGL_KHR_context_flush_control
mov dword [0x102c1b84], eax
call fcn.100e7930
push str.EGL_EXT_present_opaque
mov dword [0x102c1b88], eax
call fcn.100e7930
add esp, 0x18
mov dword [0x102c1b8c], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e8209
mov esp, ebp
pop ebp
ret
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.100de0a0
mov eax, dword [0x102c1b68]
add esp, 8
test eax, eax
je 0x100e75c3
push eax
call dword [0x102c1ba8]
mov dword [0x102c1b68], 0
mov eax, dword [0x102c1b90]
test eax, eax
je 0x100e75dd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x102c1b90], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100e8209
mov esp, ebp
pop ebp
ret