Function at 0x40420f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4bb014]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
mov eax, str.libEGL.dll
cmp dword [0x4be4dc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], str.EGL.dll
je 0x404243
xor eax, eax
inc eax
jmp 0x404552
push esi
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4be4dc], eax
test eax, eax
jne 0x404275
mov eax, dword [ebp + esi*4 - 0xc]
inc esi
test eax, eax
jne 0x404246
push str.EGL:_Library_not_found
push 0x10006
call fcn.00404b1d
pop ecx
pop ecx
jmp 0x40454f
push 3
push 0x43675c
push dword [ebp + esi*4 - 0x10]
call fcn.00411760
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
neg eax
sbb eax, eax
push str.eglGetConfigAttrib
push dword [0x4be4dc]
inc eax
mov dword [0x4be4c4], eax
call esi
push str.eglGetConfigs
push dword [0x4be4dc]
mov dword [0x4be4e0], eax
call esi
push str.eglGetDisplay
push dword [0x4be4dc]
mov dword [0x4be4e4], eax
call esi
push str.eglGetError
push dword [0x4be4dc]
mov dword [0x4be4e8], eax
call esi
push str.eglInitialize
push dword [0x4be4dc]
mov dword [0x4be4ec], eax
call esi
push str.eglTerminate
push dword [0x4be4dc]
mov dword [0x4be4f0], eax
call esi
push str.eglBindAPI
push dword [0x4be4dc]
mov dword [0x4be4f4], eax
call esi
push str.eglCreateContext
push dword [0x4be4dc]
mov dword [0x4be4f8], eax
call esi
push str.eglDestroySurface
push dword [0x4be4dc]
mov dword [0x4be4fc], eax
call esi
push str.eglDestroyContext
push dword [0x4be4dc]
mov dword [0x4be500], eax
call esi
push str.eglCreateWindowSurface
push dword [0x4be4dc]
mov dword [0x4be504], eax
call esi
push str.eglMakeCurrent
push dword [0x4be4dc]
mov dword [0x4be508], eax
call esi
push str.eglSwapBuffers
push dword [0x4be4dc]
mov dword [0x4be50c], eax
call esi
push str.eglSwapInterval
push dword [0x4be4dc]
mov dword [0x4be510], eax
call esi
push str.eglQueryString
push dword [0x4be4dc]
mov dword [0x4be514], eax
call esi
push str.eglGetProcAddress
push dword [0x4be4dc]
mov dword [0x4be518], eax
call esi
cmp dword [0x4be4e0], 0
mov dword [0x4be51c], eax
je 0x404539
cmp dword [0x4be4e4], 0
je 0x404539
mov ecx, dword [0x4be4e8]
test ecx, ecx
je 0x404539
cmp dword [0x4be4ec], 0
je 0x404539
cmp dword [0x4be4f0], 0
je 0x404539
cmp dword [0x4be4f4], 0
je 0x404539
cmp dword [0x4be4f8], 0
je 0x404539
cmp dword [0x4be4fc], 0
je 0x404539
cmp dword [0x4be500], 0
je 0x404539
cmp dword [0x4be504], 0
je 0x404539
cmp dword [0x4be508], 0
je 0x404539
cmp dword [0x4be50c], 0
je 0x404539
cmp dword [0x4be510], 0
je 0x404539
cmp dword [0x4be514], 0
je 0x404539
cmp dword [0x4be518], 0
je 0x404539
test eax, eax
je 0x404539
push 0
call ecx
mov dword [0x4be4b8], eax
test eax, eax
jne 0x4044b6
call dword [0x4be4ec]
mov ecx, eax
call fcn.00403de2
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.00404b1d
add esp, 0xc
jmp 0x40454a
push 0x4be4c0
push 0x4be4bc
push eax
call dword [0x4be4f0]
test eax, eax
jne 0x4044e0
call dword [0x4be4ec]
mov ecx, eax
call fcn.00403de2
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x4044a4
push str.EGL_KHR_create_context
call fcn.00404150
mov dword [0x4be4c8], eax
mov dword [esp], str.EGL_KHR_create_context_no_error
call fcn.00404150
mov dword [0x4be4cc], eax
mov dword [esp], str.EGL_KHR_gl_colorspace
call fcn.00404150
mov dword [0x4be4d0], eax
mov dword [esp], str.EGL_KHR_get_all_proc_addresses
call fcn.00404150
mov dword [0x4be4d4], eax
mov dword [esp], str.EGL_KHR_context_flush_control
call fcn.00404150
mov dword [0x4be4d8], eax
xor eax, eax
pop ecx
inc eax
jmp 0x404551
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.00404b1d
pop ecx
pop ecx
call fcn.0040455e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e4c9
leave
ret