Function at 0x485db0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0xec8960]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0xecd234], 0
mov dword [ebp - 0x10], str.libEGL.dll
mov dword [ebp - 0xc], str.EGL.dll
mov dword [ebp - 8], 0
je 0x485df1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004888df
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 [0xecd234], eax
test eax, eax
jne 0x485e39
mov eax, dword [ebp + esi*4 - 0xc]
inc esi
test eax, eax
jne 0x485e00
push str.EGL:_Library_not_found
push 0x10006
call fcn.0047d8a0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004888df
mov esp, ebp
pop ebp
ret
push 3
push 0x4d8ba4
push dword [ebp + esi*4 - 0x10]
call fcn.00497b00
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
add esp, 0xc
neg eax
sbb eax, eax
push str.eglGetConfigAttrib
push dword [0xecd234]
inc eax
mov dword [0xecd21c], eax
call esi
push str.eglGetConfigs
push dword [0xecd234]
mov dword [0xecd238], eax
call esi
push str.eglGetDisplay
push dword [0xecd234]
mov dword [0xecd23c], eax
call esi
push str.eglGetError
push dword [0xecd234]
mov dword [0xecd240], eax
call esi
push str.eglInitialize
push dword [0xecd234]
mov dword [0xecd244], eax
call esi
push str.eglTerminate
push dword [0xecd234]
mov dword [0xecd248], eax
call esi
push str.eglBindAPI
push dword [0xecd234]
mov dword [0xecd24c], eax
call esi
push str.eglCreateContext
push dword [0xecd234]
mov dword [0xecd250], eax
call esi
push str.eglDestroySurface
push dword [0xecd234]
mov dword [0xecd254], eax
call esi
push str.eglDestroyContext
push dword [0xecd234]
mov dword [0xecd258], eax
call esi
push str.eglCreateWindowSurface
push dword [0xecd234]
mov dword [0xecd25c], eax
call esi
push str.eglMakeCurrent
push dword [0xecd234]
mov dword [0xecd260], eax
call esi
push str.eglSwapBuffers
push dword [0xecd234]
mov dword [0xecd264], eax
call esi
push str.eglSwapInterval
push dword [0xecd234]
mov dword [0xecd268], eax
call esi
push str.eglQueryString
push dword [0xecd234]
mov dword [0xecd26c], eax
call esi
push str.eglGetProcAddress
push dword [0xecd234]
mov dword [0xecd270], eax
call esi
cmp dword [0xecd238], 0
mov dword [0xecd274], eax
je 0x486117
cmp dword [0xecd23c], 0
je 0x486117
mov ecx, dword [0xecd240]
test ecx, ecx
je 0x486117
cmp dword [0xecd244], 0
je 0x486117
cmp dword [0xecd248], 0
je 0x486117
cmp dword [0xecd24c], 0
je 0x486117
cmp dword [0xecd250], 0
je 0x486117
cmp dword [0xecd254], 0
je 0x486117
cmp dword [0xecd258], 0
je 0x486117
cmp dword [0xecd25c], 0
je 0x486117
cmp dword [0xecd260], 0
je 0x486117
cmp dword [0xecd264], 0
je 0x486117
cmp dword [0xecd268], 0
je 0x486117
cmp dword [0xecd26c], 0
je 0x486117
cmp dword [0xecd270], 0
je 0x486117
test eax, eax
je 0x486117
push 0
call ecx
mov dword [0xecd210], eax
test eax, eax
jne 0x48608b
call dword [0xecd244]
push eax
call fcn.004864f0
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.0047d8a0
add esp, 0x10
call fcn.00486170
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004888df
mov esp, ebp
pop ebp
ret
push 0xecd218
push 0xecd214
push eax
call dword [0xecd248]
test eax, eax
jne 0x4860b4
call dword [0xecd244]
push eax
call fcn.004864f0
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x486067
push str.EGL_KHR_create_context
call fcn.004864b0
push str.EGL_KHR_create_context_no_error
mov dword [0xecd220], eax
call fcn.004864b0
push str.EGL_KHR_gl_colorspace
mov dword [0xecd224], eax
call fcn.004864b0
push str.EGL_KHR_get_all_proc_addresses
mov dword [0xecd228], eax
call fcn.004864b0
push str.EGL_KHR_context_flush_control
mov dword [0xecd22c], eax
call fcn.004864b0
add esp, 0x14
mov dword [0xecd230], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004888df
mov esp, ebp
pop ebp
ret
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.0047d8a0
mov eax, dword [0xecd210]
add esp, 8
test eax, eax
je 0x486143
push eax
call dword [0xecd24c]
mov dword [0xecd210], 0
mov eax, dword [0xecd234]
test eax, eax
je 0x48615d
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0xecd234], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004888df
mov esp, ebp
pop ebp
ret