Function at 0x482d10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4bf380]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], str.libEGL.dll
mov dword [ebp - 0x24], str.EGL.dll
mov dword [ebp - 0x20], 0
cmp dword [0x56db94], 0
je 0x482d60
mov eax, 1
jmp 0x48334f
mov dword [ebp - 8], 0
jmp 0x482d72
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ebp + ecx*4 - 0x28], 0
je 0x482da5
mov esi, esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp + edx*4 - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.00486562
mov dword [0x56db94], eax
cmp dword [0x56db94], 0
je 0x482da3
jmp 0x482da5
jmp 0x482d69
cmp dword [0x56db94], 0
jne 0x482dc7
push str.EGL:_Library_not_found
push 0x10006
call fcn.004746d0
add esp, 8
xor eax, eax
jmp 0x48334f
mov esi, esp
push 3
push 0x4bd8e8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + ecx*4 - 0x28]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
cmp esi, esp
call fcn.00486562
test eax, eax
jne 0x482df5
mov dword [ebp - 0x30], 1
jmp 0x482dfc
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [0x56db58], eax
mov esi, esp
push str.eglGetConfigAttrib
mov ecx, dword [0x56db94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56db98], eax
mov esi, esp
push str.eglGetConfigs
mov edx, dword [0x56db94]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56db9c], eax
mov esi, esp
push str.eglGetDisplay
mov eax, dword [0x56db94]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dba0], eax
mov esi, esp
push str.eglGetError
mov ecx, dword [0x56db94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dba4], eax
mov esi, esp
push str.eglInitialize
mov edx, dword [0x56db94]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dba8], eax
mov esi, esp
push str.eglTerminate
mov eax, dword [0x56db94]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbac], eax
mov esi, esp
push str.eglBindAPI
mov ecx, dword [0x56db94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbb0], eax
mov esi, esp
push str.eglCreateContext
mov edx, dword [0x56db94]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbb4], eax
mov esi, esp
push str.eglDestroySurface
mov eax, dword [0x56db94]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbb8], eax
mov esi, esp
push str.eglDestroyContext
mov ecx, dword [0x56db94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbbc], eax
mov esi, esp
push str.eglCreateWindowSurface
mov edx, dword [0x56db94]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbc0], eax
mov esi, esp
push str.eglMakeCurrent
mov eax, dword [0x56db94]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbc4], eax
mov esi, esp
push str.eglSwapBuffers
mov ecx, dword [0x56db94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbc8], eax
mov esi, esp
push str.eglSwapInterval
mov edx, dword [0x56db94]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbcc], eax
mov esi, esp
push str.eglQueryString
mov eax, dword [0x56db94]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbd0], eax
mov esi, esp
push str.eglGetProcAddress
mov ecx, dword [0x56db94]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbd4], eax
cmp dword [0x56db98], 0
je 0x483093
cmp dword [0x56db9c], 0
je 0x483093
cmp dword [0x56dba0], 0
je 0x483093
cmp dword [0x56dba4], 0
je 0x483093
cmp dword [0x56dba8], 0
je 0x483093
cmp dword [0x56dbac], 0
je 0x483093
cmp dword [0x56dbb0], 0
je 0x483093
cmp dword [0x56dbb4], 0
je 0x483093
cmp dword [0x56dbb8], 0
je 0x483093
cmp dword [0x56dbbc], 0
je 0x483093
cmp dword [0x56dbc0], 0
je 0x483093
cmp dword [0x56dbc4], 0
je 0x483093
cmp dword [0x56dbc8], 0
je 0x483093
cmp dword [0x56dbcc], 0
je 0x483093
cmp dword [0x56dbd0], 0
je 0x483093
cmp dword [0x56dbd4], 0
jne 0x4830b1
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.004746d0
add esp, 8
call fcn.004833b0
xor eax, eax
jmp 0x48334f
mov esi, esp
push 0x3055
push 0
call dword [0x56dbd0]
cmp esi, esp
call fcn.00486562
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4830f0
mov esi, esp
call dword [0x56dba4]
cmp esi, esp
call fcn.00486562
cmp eax, 0x3000
jne 0x4830f0
mov dword [0x56db70], 1
cmp dword [0x56db70], 0
je 0x4831ad
mov edx, dword [ebp - 0x18]
push edx
push str.EGL_EXT_platform_base
call fcn.0047aa50
add esp, 8
mov dword [0x56db74], eax
mov eax, dword [ebp - 0x18]
push eax
push str.EGL_EXT_platform_x11
call fcn.0047aa50
add esp, 8
mov dword [0x56db78], eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.EGL_EXT_platform_wayland
call fcn.0047aa50
add esp, 8
mov dword [0x56db7c], eax
mov edx, dword [ebp - 0x18]
push edx
push str.EGL_ANGLE_platform_angle
call fcn.0047aa50
add esp, 8
mov dword [0x56db80], eax
mov eax, dword [ebp - 0x18]
push eax
push str.EGL_ANGLE_platform_angle_opengl
call fcn.0047aa50
add esp, 8
mov dword [0x56db84], eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.EGL_ANGLE_platform_angle_d3d
call fcn.0047aa50
add esp, 8
mov dword [0x56db88], eax
mov edx, dword [ebp - 0x18]
push edx
push str.EGL_ANGLE_platform_angle_vulkan
call fcn.0047aa50
add esp, 8
mov dword [0x56db8c], eax
mov eax, dword [ebp - 0x18]
push eax
push str.EGL_ANGLE_platform_angle_metal
call fcn.0047aa50
add esp, 8
mov dword [0x56db90], eax
cmp dword [0x56db74], 0
je 0x4831e8
mov esi, esp
push str.eglGetPlatformDisplayEXT
call dword [0x56dbd4]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbd8], eax
mov esi, esp
push str.eglCreatePlatformWindowSurfaceEXT
call dword [0x56dbd4]
cmp esi, esp
call fcn.00486562
mov dword [0x56dbdc], eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00477120
add esp, 4
mov dword [0x56db48], eax
cmp dword [0x56db48], 0
je 0x483228
mov esi, esp
mov edx, dword [ebp - 0x10]
push edx
call fcn.00477240
push eax
mov eax, dword [0x56db48]
push eax
call dword [0x56dbd8]
cmp esi, esp
call fcn.00486562
mov dword [0x56db4c], eax
jmp 0x483242
call fcn.00477240
mov esi, esp
push eax
call dword [0x56dba0]
cmp esi, esp
call fcn.00486562
mov dword [0x56db4c], eax
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp esi, esp
call fcn.00486562
cmp dword [0x56db4c], 0
jne 0x483298
mov esi, esp
call dword [0x56dba4]
cmp esi, esp
call fcn.00486562
push eax
call fcn.00484020
add esp, 4
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.004746d0
add esp, 0xc
call fcn.004833b0
xor eax, eax
jmp 0x48334f
mov esi, esp
push 0x56db54
push 0x56db50
mov edx, dword [0x56db4c]
push edx
call dword [0x56dba8]
cmp esi, esp
call fcn.00486562
test eax, eax
jne 0x4832f0
mov esi, esp
call dword [0x56dba4]
cmp esi, esp
call fcn.00486562
push eax
call fcn.00484020
add esp, 4
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
push 0x10006
call fcn.004746d0
add esp, 0xc
call fcn.004833b0
xor eax, eax
jmp 0x48334f
push str.EGL_KHR_create_context
call fcn.004845f0
add esp, 4
mov dword [0x56db5c], eax
push str.EGL_KHR_create_context_no_error
call fcn.004845f0
add esp, 4
mov dword [0x56db60], eax
push str.EGL_KHR_gl_colorspace
call fcn.004845f0
add esp, 4
mov dword [0x56db64], eax
push str.EGL_KHR_get_all_proc_addresses
call fcn.004845f0
add esp, 4
mov dword [0x56db68], eax
push str.EGL_KHR_context_flush_control
call fcn.004845f0
add esp, 4
mov dword [0x56db6c], eax
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x48337c]
call fcn.0048650e
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485b63
add esp, 0x30
cmp ebp, esp
call fcn.00486562
mov esp, ebp
pop ebp
ret