Function at 0x482e40
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 0x482e90
mov eax, 1
jmp 0x48347f
mov dword [ebp - 8], 0
jmp 0x482ea2
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 0x482ed5
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.00486698
mov dword [0x56db94], eax
cmp dword [0x56db94], 0
je 0x482ed3
jmp 0x482ed5
jmp 0x482e99
cmp dword [0x56db94], 0
jne 0x482ef7
push str.EGL:_Library_not_found
push 0x10006
call fcn.00474810
add esp, 8
xor eax, eax
jmp 0x48347f
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.00486698
test eax, eax
jne 0x482f25
mov dword [ebp - 0x30], 1
jmp 0x482f2c
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
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.00486698
mov dword [0x56dbd4], eax
cmp dword [0x56db98], 0
je 0x4831c3
cmp dword [0x56db9c], 0
je 0x4831c3
cmp dword [0x56dba0], 0
je 0x4831c3
cmp dword [0x56dba4], 0
je 0x4831c3
cmp dword [0x56dba8], 0
je 0x4831c3
cmp dword [0x56dbac], 0
je 0x4831c3
cmp dword [0x56dbb0], 0
je 0x4831c3
cmp dword [0x56dbb4], 0
je 0x4831c3
cmp dword [0x56dbb8], 0
je 0x4831c3
cmp dword [0x56dbbc], 0
je 0x4831c3
cmp dword [0x56dbc0], 0
je 0x4831c3
cmp dword [0x56dbc4], 0
je 0x4831c3
cmp dword [0x56dbc8], 0
je 0x4831c3
cmp dword [0x56dbcc], 0
je 0x4831c3
cmp dword [0x56dbd0], 0
je 0x4831c3
cmp dword [0x56dbd4], 0
jne 0x4831e1
push str.EGL:_Failed_to_load_required_entry_points
push 0x10008
call fcn.00474810
add esp, 8
call fcn.004834e0
xor eax, eax
jmp 0x48347f
mov esi, esp
push 0x3055
push 0
call dword [0x56dbd0]
cmp esi, esp
call fcn.00486698
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x483220
mov esi, esp
call dword [0x56dba4]
cmp esi, esp
call fcn.00486698
cmp eax, 0x3000
jne 0x483220
mov dword [0x56db70], 1
cmp dword [0x56db70], 0
je 0x4832dd
mov edx, dword [ebp - 0x18]
push edx
push str.EGL_EXT_platform_base
call fcn.0047ab90
add esp, 8
mov dword [0x56db74], eax
mov eax, dword [ebp - 0x18]
push eax
push str.EGL_EXT_platform_x11
call fcn.0047ab90
add esp, 8
mov dword [0x56db78], eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.EGL_EXT_platform_wayland
call fcn.0047ab90
add esp, 8
mov dword [0x56db7c], eax
mov edx, dword [ebp - 0x18]
push edx
push str.EGL_ANGLE_platform_angle
call fcn.0047ab90
add esp, 8
mov dword [0x56db80], eax
mov eax, dword [ebp - 0x18]
push eax
push str.EGL_ANGLE_platform_angle_opengl
call fcn.0047ab90
add esp, 8
mov dword [0x56db84], eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.EGL_ANGLE_platform_angle_d3d
call fcn.0047ab90
add esp, 8
mov dword [0x56db88], eax
mov edx, dword [ebp - 0x18]
push edx
push str.EGL_ANGLE_platform_angle_vulkan
call fcn.0047ab90
add esp, 8
mov dword [0x56db8c], eax
mov eax, dword [ebp - 0x18]
push eax
push str.EGL_ANGLE_platform_angle_metal
call fcn.0047ab90
add esp, 8
mov dword [0x56db90], eax
cmp dword [0x56db74], 0
je 0x483318
mov esi, esp
push str.eglGetPlatformDisplayEXT
call dword [0x56dbd4]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbd8], eax
mov esi, esp
push str.eglCreatePlatformWindowSurfaceEXT
call dword [0x56dbd4]
cmp esi, esp
call fcn.00486698
mov dword [0x56dbdc], eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00477260
add esp, 4
mov dword [0x56db48], eax
cmp dword [0x56db48], 0
je 0x483358
mov esi, esp
mov edx, dword [ebp - 0x10]
push edx
call fcn.00477380
push eax
mov eax, dword [0x56db48]
push eax
call dword [0x56dbd8]
cmp esi, esp
call fcn.00486698
mov dword [0x56db4c], eax
jmp 0x483372
call fcn.00477380
mov esi, esp
push eax
call dword [0x56dba0]
cmp esi, esp
call fcn.00486698
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.00486698
cmp dword [0x56db4c], 0
jne 0x4833c8
mov esi, esp
call dword [0x56dba4]
cmp esi, esp
call fcn.00486698
push eax
call fcn.00484150
add esp, 4
push eax
push str.EGL:_Failed_to_get_EGL_display:__s
push 0x10006
call fcn.00474810
add esp, 0xc
call fcn.004834e0
xor eax, eax
jmp 0x48347f
mov esi, esp
push 0x56db54
push 0x56db50
mov edx, dword [0x56db4c]
push edx
call dword [0x56dba8]
cmp esi, esp
call fcn.00486698
test eax, eax
jne 0x483420
mov esi, esp
call dword [0x56dba4]
cmp esi, esp
call fcn.00486698
push eax
call fcn.00484150
add esp, 4
push eax
push str.EGL:_Failed_to_initialize_EGL:__s
push 0x10006
call fcn.00474810
add esp, 0xc
call fcn.004834e0
xor eax, eax
jmp 0x48347f
push str.EGL_KHR_create_context
call fcn.00484720
add esp, 4
mov dword [0x56db5c], eax
push str.EGL_KHR_create_context_no_error
call fcn.00484720
add esp, 4
mov dword [0x56db60], eax
push str.EGL_KHR_gl_colorspace
call fcn.00484720
add esp, 4
mov dword [0x56db64], eax
push str.EGL_KHR_get_all_proc_addresses
call fcn.00484720
add esp, 4
mov dword [0x56db68], eax
push str.EGL_KHR_context_flush_control
call fcn.00484720
add esp, 4
mov dword [0x56db6c], eax
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x4834ac]
call fcn.00486644
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00485c99
add esp, 0x30
cmp ebp, esp
call fcn.00486698
mov esp, ebp
pop ebp
ret