Function at 0x43f6e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x73dd74]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x741b64], 0
mov dword [ebp - 0x10], str.libEGL.dll
mov dword [ebp - 0xc], str.EGL.dll
mov dword [ebp - 8], 0
je 0x43f721
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442579
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 [0x741b64], eax
test eax, eax
jne 0x43f769
mov eax, dword [ebp + esi*4 - 0xc]
inc esi
test eax, eax
jne 0x43f730
push str.EGL:_Library_not_found
push 0x10006
call fcn.0043c020
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442579
mov esp, ebp
pop ebp
ret
push 3
push 0x73963c
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 [0x741b64]
inc eax
mov dword [0x741b4c], eax
call esi
push str.eglGetConfigs
push dword [0x741b64]
mov dword [0x741b68], eax
call esi
push str.eglGetDisplay
push dword [0x741b64]
mov dword [0x741b6c], eax
call esi
push str.eglGetError
push dword [0x741b64]
mov dword [0x741b70], eax
call esi
push str.eglInitialize
push dword [0x741b64]
mov dword [0x741b74], eax
call esi
push str.eglTerminate
push dword [0x741b64]
mov dword [0x741b78], eax
call esi
push str.eglBindAPI
push dword [0x741b64]
mov dword [0x741b7c], eax
call esi
push str.eglCreateContext
push dword [0x741b64]
mov dword [0x741b80], eax
call esi
push str.eglDestroySurface
push dword [0x741b64]
mov dword [0x741b84], eax
call esi
push str.eglDestroyContext
push dword [0x741b64]
mov dword [0x741b88], eax
call esi
push str.eglCreateWindowSurface
push dword [0x741b64]
mov dword [0x741b8c], eax
call esi
push str.eglMakeCurrent
push dword [0x741b64]
mov dword [0x741b90], eax
call esi
push str.eglSwapBuffers
push dword [0x741b64]
mov dword [0x741b94], eax
call esi
push str.eglSwapInterval
push dword [0x741b64]
mov dword [0x741b98], eax
call esi
push str.eglQueryString
push dword [0x741b64]
mov dword [0x741b9c], eax
call esi
push str.eglGetProcAddress
push dword [0x741b64]
mov dword [0x741ba0], eax
call esi
cmp dword [0x741b68], 0
mov dword [0x741ba4], eax
je 0x43fa48
cmp dword [0x741b6c], 0
je 0x43fa48
mov ecx, dword [0x741b70]
test ecx, ecx
je 0x43fa48
cmp dword [0x741b74], 0
je 0x43fa48
cmp dword [0x741b78], 0
je 0x43fa48
cmp dword [0x741b7c], 0
je 0x43fa48
cmp dword [0x741b80], 0
je 0x43fa48
cmp dword [0x741b84], 0
je 0x43fa48
cmp dword [0x741b88], 0
je 0x43fa48
cmp dword [0x741b8c], 0
je 0x43fa48
cmp dword [0x741b90], 0
je 0x43fa48
cmp dword [0x741b94], 0
je 0x43fa48
cmp dword [0x741b98], 0
je 0x43fa48
cmp dword [0x741b9c], 0
je 0x43fa48
cmp dword [0x741ba0], 0
je 0x43fa48
test eax, eax
je 0x43fa48
push 0
call ecx
mov dword [0x741b40], eax
test eax, eax
jne 0x43f9bc
call dword [0x741b74]
push eax
call fcn.0043fe20
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.0043c020
add esp, 0x10
call fcn.0043faa0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442579
mov esp, ebp
pop ebp
ret
push 0x741b48
push 0x741b44
push eax
call dword [0x741b78]
test eax, eax
jne 0x43f9e5
call dword [0x741b74]
push eax
call fcn.0043fe20
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
jmp 0x43f998
push str.EGL_KHR_create_context
call fcn.0043fde0
push str.EGL_KHR_create_context_no_error
mov dword [0x741b50], eax
call fcn.0043fde0
push str.EGL_KHR_gl_colorspace
mov dword [0x741b54], eax
call fcn.0043fde0
push str.EGL_KHR_get_all_proc_addresses
mov dword [0x741b58], eax
call fcn.0043fde0
push str.EGL_KHR_context_flush_control
mov dword [0x741b5c], eax
call fcn.0043fde0
add esp, 0x14
mov dword [0x741b60], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442579
mov esp, ebp
pop ebp
ret
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.0043c020
mov eax, dword [0x741b40]
add esp, 8
test eax, eax
je 0x43fa74
push eax
call dword [0x741b7c]
mov dword [0x741b40], 0
mov eax, dword [0x741b64]
test eax, eax
je 0x43fa8e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x741b64], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00442579
mov esp, ebp
pop ebp
ret