Function at 0x457a60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4898c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x48c008], 0
mov dword [ebp - 0x10], str.libEGL.dll
mov dword [ebp - 0xc], str.EGL.dll
mov dword [ebp - 8], 0
je 0x457aa1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b097
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 [0x48c008], eax
test eax, eax
jne 0x457ae9
mov eax, dword [ebp + esi*4 - 0xc]
inc esi
test eax, eax
jne 0x457ab0
push str.EGL:_Library_not_found
push 0x10006
call fcn.00453f20
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b097
mov esp, ebp
pop ebp
ret
push 3
push 0x4774bc
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 [0x48c008]
inc eax
mov dword [0x48bfec], eax
call esi
push str.eglGetConfigs
push dword [0x48c008]
mov dword [0x48c00c], eax
call esi
push str.eglGetDisplay
push dword [0x48c008]
mov dword [0x48c010], eax
call esi
push str.eglGetError
push dword [0x48c008]
mov dword [0x48c014], eax
call esi
push str.eglInitialize
push dword [0x48c008]
mov dword [0x48c018], eax
call esi
push str.eglTerminate
push dword [0x48c008]
mov dword [0x48c01c], eax
call esi
push str.eglBindAPI
push dword [0x48c008]
mov dword [0x48c020], eax
call esi
push str.eglCreateContext
push dword [0x48c008]
mov dword [0x48c024], eax
call esi
push str.eglDestroySurface
push dword [0x48c008]
mov dword [0x48c028], eax
call esi
push str.eglDestroyContext
push dword [0x48c008]
mov dword [0x48c02c], eax
call esi
push str.eglCreateWindowSurface
push dword [0x48c008]
mov dword [0x48c030], eax
call esi
push str.eglMakeCurrent
push dword [0x48c008]
mov dword [0x48c034], eax
call esi
push str.eglSwapBuffers
push dword [0x48c008]
mov dword [0x48c038], eax
call esi
push str.eglSwapInterval
push dword [0x48c008]
mov dword [0x48c03c], eax
call esi
push str.eglQueryString
push dword [0x48c008]
mov dword [0x48c040], eax
call esi
push str.eglGetProcAddress
push dword [0x48c008]
mov dword [0x48c044], eax
call esi
cmp dword [0x48c00c], 0
mov dword [0x48c048], eax
je 0x457dd7
cmp dword [0x48c010], 0
je 0x457dd7
mov ecx, dword [0x48c014]
test ecx, ecx
je 0x457dd7
cmp dword [0x48c018], 0
je 0x457dd7
cmp dword [0x48c01c], 0
je 0x457dd7
cmp dword [0x48c020], 0
je 0x457dd7
cmp dword [0x48c024], 0
je 0x457dd7
cmp dword [0x48c028], 0
je 0x457dd7
cmp dword [0x48c02c], 0
je 0x457dd7
cmp dword [0x48c030], 0
je 0x457dd7
cmp dword [0x48c034], 0
je 0x457dd7
cmp dword [0x48c038], 0
je 0x457dd7
cmp dword [0x48c03c], 0
je 0x457dd7
cmp dword [0x48c040], 0
je 0x457dd7
cmp dword [0x48c044], 0
je 0x457dd7
test eax, eax
je 0x457dd7
push 0
call ecx
mov dword [0x48bfe0], eax
test eax, eax
jne 0x457d3c
call dword [0x48c018]
push eax
call fcn.004581a0
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.00453f20
add esp, 0x10
call fcn.00457e30
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b097
mov esp, ebp
pop ebp
ret
push 0x48bfe8
push 0x48bfe4
push eax
call dword [0x48c01c]
test eax, eax
jne 0x457d65
call dword [0x48c018]
push eax
call fcn.004581a0
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x457d18
push str.EGL_KHR_create_context
call fcn.00458170
push str.EGL_KHR_create_context_no_error
mov dword [0x48bff0], eax
call fcn.00458170
push str.EGL_KHR_gl_colorspace
mov dword [0x48bff4], eax
call fcn.00458170
push str.EGL_KHR_get_all_proc_addresses
mov dword [0x48bff8], eax
call fcn.00458170
push str.EGL_KHR_context_flush_control
mov dword [0x48bffc], eax
call fcn.00458170
push str.EGL_EXT_present_opaque
mov dword [0x48c000], eax
call fcn.00458170
add esp, 0x18
mov dword [0x48c004], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b097
mov esp, ebp
pop ebp
ret
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.00453f20
mov eax, dword [0x48bfe0]
add esp, 8
test eax, eax
je 0x457e03
push eax
call dword [0x48c020]
mov dword [0x48bfe0], 0
mov eax, dword [0x48c008]
test eax, eax
je 0x457e1d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x48c008], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0045b097
mov esp, ebp
pop ebp
ret