Function at 0x45f130
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x49594c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4978fc], 0
mov dword [ebp - 0x10], str.libEGL.dll
mov dword [ebp - 0xc], str.EGL.dll
mov dword [ebp - 8], 0
je 0x45f171
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461fbb
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 [0x4978fc], eax
test eax, eax
jne 0x45f1b9
mov eax, dword [ebp + esi*4 - 0xc]
inc esi
test eax, eax
jne 0x45f180
push str.EGL:_Library_not_found
push 0x10006
call fcn.0045b820
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461fbb
mov esp, ebp
pop ebp
ret
push 3
push 0x4826dc
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 [0x4978fc]
inc eax
mov dword [0x4978e4], eax
call esi
push str.eglGetConfigs
push dword [0x4978fc]
mov dword [0x497900], eax
call esi
push str.eglGetDisplay
push dword [0x4978fc]
mov dword [0x497904], eax
call esi
push str.eglGetError
push dword [0x4978fc]
mov dword [0x497908], eax
call esi
push str.eglInitialize
push dword [0x4978fc]
mov dword [0x49790c], eax
call esi
push str.eglTerminate
push dword [0x4978fc]
mov dword [0x497910], eax
call esi
push str.eglBindAPI
push dword [0x4978fc]
mov dword [0x497914], eax
call esi
push str.eglCreateContext
push dword [0x4978fc]
mov dword [0x497918], eax
call esi
push str.eglDestroySurface
push dword [0x4978fc]
mov dword [0x49791c], eax
call esi
push str.eglDestroyContext
push dword [0x4978fc]
mov dword [0x497920], eax
call esi
push str.eglCreateWindowSurface
push dword [0x4978fc]
mov dword [0x497924], eax
call esi
push str.eglMakeCurrent
push dword [0x4978fc]
mov dword [0x497928], eax
call esi
push str.eglSwapBuffers
push dword [0x4978fc]
mov dword [0x49792c], eax
call esi
push str.eglSwapInterval
push dword [0x4978fc]
mov dword [0x497930], eax
call esi
push str.eglQueryString
push dword [0x4978fc]
mov dword [0x497934], eax
call esi
push str.eglGetProcAddress
push dword [0x4978fc]
mov dword [0x497938], eax
call esi
cmp dword [0x497900], 0
mov dword [0x49793c], eax
je 0x45f498
cmp dword [0x497904], 0
je 0x45f498
mov ecx, dword [0x497908]
test ecx, ecx
je 0x45f498
cmp dword [0x49790c], 0
je 0x45f498
cmp dword [0x497910], 0
je 0x45f498
cmp dword [0x497914], 0
je 0x45f498
cmp dword [0x497918], 0
je 0x45f498
cmp dword [0x49791c], 0
je 0x45f498
cmp dword [0x497920], 0
je 0x45f498
cmp dword [0x497924], 0
je 0x45f498
cmp dword [0x497928], 0
je 0x45f498
cmp dword [0x49792c], 0
je 0x45f498
cmp dword [0x497930], 0
je 0x45f498
cmp dword [0x497934], 0
je 0x45f498
cmp dword [0x497938], 0
je 0x45f498
test eax, eax
je 0x45f498
push 0
call ecx
mov dword [0x4978d8], eax
test eax, eax
jne 0x45f40c
call dword [0x49790c]
push eax
call fcn.0045f870
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.0045b820
add esp, 0x10
call fcn.0045f4f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461fbb
mov esp, ebp
pop ebp
ret
push 0x4978e0
push 0x4978dc
push eax
call dword [0x497910]
test eax, eax
jne 0x45f435
call dword [0x49790c]
push eax
call fcn.0045f870
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x45f3e8
push str.EGL_KHR_create_context
call fcn.0045f830
push str.EGL_KHR_create_context_no_error
mov dword [0x4978e8], eax
call fcn.0045f830
push str.EGL_KHR_gl_colorspace
mov dword [0x4978ec], eax
call fcn.0045f830
push str.EGL_KHR_get_all_proc_addresses
mov dword [0x4978f0], eax
call fcn.0045f830
push str.EGL_KHR_context_flush_control
mov dword [0x4978f4], eax
call fcn.0045f830
add esp, 0x14
mov dword [0x4978f8], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461fbb
mov esp, ebp
pop ebp
ret
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.0045b820
mov eax, dword [0x4978d8]
add esp, 8
test eax, eax
je 0x45f4c4
push eax
call dword [0x497914]
mov dword [0x4978d8], 0
mov eax, dword [0x4978fc]
test eax, eax
je 0x45f4de
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4978fc], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00461fbb
mov esp, ebp
pop ebp
ret