Function at 0x4863c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0xec8980]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0xecd294], 0
mov dword [ebp - 0x10], str.libEGL.dll
mov dword [ebp - 0xc], str.EGL.dll
mov dword [ebp - 8], 0
je 0x486401
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f09
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 [0xecd294], eax
test eax, eax
jne 0x486449
mov eax, dword [ebp + esi*4 - 0xc]
inc esi
test eax, eax
jne 0x486410
push str.EGL:_Library_not_found
push 0x10006
call fcn.0047deb0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f09
mov esp, ebp
pop ebp
ret
push 3
push 0x4d8bc4
push dword [ebp + esi*4 - 0x10]
call fcn.00498110
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
neg eax
sbb eax, eax
push str.eglGetConfigAttrib
push dword [0xecd294]
inc eax
mov dword [0xecd27c], eax
call esi
push str.eglGetConfigs
push dword [0xecd294]
mov dword [0xecd298], eax
call esi
push str.eglGetDisplay
push dword [0xecd294]
mov dword [0xecd29c], eax
call esi
push str.eglGetError
push dword [0xecd294]
mov dword [0xecd2a0], eax
call esi
push str.eglInitialize
push dword [0xecd294]
mov dword [0xecd2a4], eax
call esi
push str.eglTerminate
push dword [0xecd294]
mov dword [0xecd2a8], eax
call esi
push str.eglBindAPI
push dword [0xecd294]
mov dword [0xecd2ac], eax
call esi
push str.eglCreateContext
push dword [0xecd294]
mov dword [0xecd2b0], eax
call esi
push str.eglDestroySurface
push dword [0xecd294]
mov dword [0xecd2b4], eax
call esi
push str.eglDestroyContext
push dword [0xecd294]
mov dword [0xecd2b8], eax
call esi
push str.eglCreateWindowSurface
push dword [0xecd294]
mov dword [0xecd2bc], eax
call esi
push str.eglMakeCurrent
push dword [0xecd294]
mov dword [0xecd2c0], eax
call esi
push str.eglSwapBuffers
push dword [0xecd294]
mov dword [0xecd2c4], eax
call esi
push str.eglSwapInterval
push dword [0xecd294]
mov dword [0xecd2c8], eax
call esi
push str.eglQueryString
push dword [0xecd294]
mov dword [0xecd2cc], eax
call esi
push str.eglGetProcAddress
push dword [0xecd294]
mov dword [0xecd2d0], eax
call esi
cmp dword [0xecd298], 0
mov dword [0xecd2d4], eax
je 0x486727
cmp dword [0xecd29c], 0
je 0x486727
mov ecx, dword [0xecd2a0]
test ecx, ecx
je 0x486727
cmp dword [0xecd2a4], 0
je 0x486727
cmp dword [0xecd2a8], 0
je 0x486727
cmp dword [0xecd2ac], 0
je 0x486727
cmp dword [0xecd2b0], 0
je 0x486727
cmp dword [0xecd2b4], 0
je 0x486727
cmp dword [0xecd2b8], 0
je 0x486727
cmp dword [0xecd2bc], 0
je 0x486727
cmp dword [0xecd2c0], 0
je 0x486727
cmp dword [0xecd2c4], 0
je 0x486727
cmp dword [0xecd2c8], 0
je 0x486727
cmp dword [0xecd2cc], 0
je 0x486727
cmp dword [0xecd2d0], 0
je 0x486727
test eax, eax
je 0x486727
push 0
call ecx
mov dword [0xecd270], eax
test eax, eax
jne 0x48669b
call dword [0xecd2a4]
push eax
call fcn.00486b00
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.0047deb0
add esp, 0x10
call fcn.00486780
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f09
mov esp, ebp
pop ebp
ret
push 0xecd278
push 0xecd274
push eax
call dword [0xecd2a8]
test eax, eax
jne 0x4866c4
call dword [0xecd2a4]
push eax
call fcn.00486b00
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x486677
push str.EGL_KHR_create_context
call fcn.00486ac0
push str.EGL_KHR_create_context_no_error
mov dword [0xecd280], eax
call fcn.00486ac0
push str.EGL_KHR_gl_colorspace
mov dword [0xecd284], eax
call fcn.00486ac0
push str.EGL_KHR_get_all_proc_addresses
mov dword [0xecd288], eax
call fcn.00486ac0
push str.EGL_KHR_context_flush_control
mov dword [0xecd28c], eax
call fcn.00486ac0
add esp, 0x14
mov dword [0xecd290], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f09
mov esp, ebp
pop ebp
ret
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.0047deb0
mov eax, dword [0xecd270]
add esp, 8
test eax, eax
je 0x486753
push eax
call dword [0xecd2ac]
mov dword [0xecd270], 0
mov eax, dword [0xecd294]
test eax, eax
je 0x48676d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0xecd294], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00488f09
mov esp, ebp
pop ebp
ret