Function at 0x100e5f20
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1026a5dc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x102c1b00], 0
push esi
push edi
jne 0x100e6223
push str.opengl32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x102c1b00], eax
test eax, eax
jne 0x100e5f8d
push str.WGL:_Failed_to_load_opengl32.dll
push 0x10008
call fcn.100e3070
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e8209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.wglCreateContext
push eax
call esi
push str.wglDeleteContext
push dword [0x102c1b00]
mov dword [0x102c1b04], eax
call esi
push 0x1016b850
push dword [0x102c1b00]
mov dword [0x102c1b08], eax
call esi
push 0x1016b864
push dword [0x102c1b00]
mov dword [0x102c1b0c], eax
call esi
push str.wglGetCurrentContext
push dword [0x102c1b00]
mov dword [0x102c1b10], eax
call esi
push str.wglMakeCurrent
push dword [0x102c1b00]
mov dword [0x102c1b14], eax
call esi
push str.wglShareLists
push dword [0x102c1b00]
mov dword [0x102c1b18], eax
call esi
push dword [0x102c0cdc]
mov dword [0x102c1b1c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x40]
movaps xmmword [ebp - 0x40], xmm0
push eax
push eax
push edi
movaps xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x40], 0x10028
mov dword [ebp - 0x3c], 0x25
mov word [ebp - 0x38], 0x1800
call dword [sym.imp.GDI32.dll_ChoosePixelFormat]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetPixelFormat]
test eax, eax
jne 0x100e607d
push str.WGL:_Failed_to_set_pixel_format_for_dummy_context
push 0x10008
call fcn.100e3070
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e8209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push edi
call dword [0x102c1b04]
mov esi, eax
test esi, esi
jne 0x100e60b1
push str.WGL:_Failed_to_create_dummy_context
push 0x10008
call fcn.100e3070
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e8209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [0x102c1b10]
mov dword [ebp - 0x48], eax
call dword [0x102c1b14]
push esi
push edi
mov dword [ebp - 0x44], eax
call dword [0x102c1b18]
test eax, eax
jne 0x100e6109
push str.WGL:_Failed_to_make_dummy_context_current
push 0x10008
call fcn.100e3070
add esp, 8
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call dword [0x102c1b18]
push esi
call dword [0x102c1b08]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e8209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.wglGetExtensionsStringEXT
call dword [0x102c1b0c]
push str.wglGetExtensionsStringARB
mov dword [0x102c1b28], eax
call dword [0x102c1b0c]
push str.wglCreateContextAttribsARB
mov dword [0x102c1b2c], eax
call dword [0x102c1b0c]
push str.wglSwapIntervalEXT
mov dword [0x102c1b30], eax
call dword [0x102c1b0c]
push str.wglGetPixelFormatAttribivARB
mov dword [0x102c1b20], eax
call dword [0x102c1b0c]
push str.WGL_ARB_multisample
mov dword [0x102c1b24], eax
call fcn.100e6b20
push str.WGL_ARB_framebuffer_sRGB
mov dword [0x102c1b3c], eax
call fcn.100e6b20
push str.WGL_EXT_framebuffer_sRGB
mov dword [0x102c1b40], eax
call fcn.100e6b20
push str.WGL_ARB_create_context
mov dword [0x102c1b44], eax
call fcn.100e6b20
push str.WGL_ARB_create_context_profile
mov dword [0x102c1b4c], eax
call fcn.100e6b20
push str.WGL_EXT_create_context_es2_profile
mov dword [0x102c1b50], eax
call fcn.100e6b20
push str.WGL_ARB_create_context_robustness
mov dword [0x102c1b54], eax
call fcn.100e6b20
push str.WGL_ARB_create_context_no_error
mov dword [0x102c1b58], eax
call fcn.100e6b20
push str.WGL_EXT_swap_control
mov dword [0x102c1b5c], eax
call fcn.100e6b20
push str.WGL_EXT_colorspace
mov dword [0x102c1b34], eax
call fcn.100e6b20
push str.WGL_ARB_pixel_format
mov dword [0x102c1b38], eax
call fcn.100e6b20
push str.WGL_ARB_context_flush_control
mov dword [0x102c1b48], eax
call fcn.100e6b20
add esp, 0x30
mov dword [0x102c1b60], eax
push dword [ebp - 0x44]
push dword [ebp - 0x48]
call dword [0x102c1b18]
push esi
call dword [0x102c1b08]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100e8209
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret