Function at 0x1006bf90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x10113900]
xor eax, esp
mov dword [esp + 0x44], eax
cmp dword [0x1012c3a0], 0
push esi
push edi
jne 0x1006c289
push str.opengl32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1012c3a0], eax
test eax, eax
jne 0x1006bfec
push str.WGL:_Failed_to_load_opengl32.dll
push 0x10008
call fcn.1006ade0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1006f8b7
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.wglCreateContext
push eax
call esi
push str.wglDeleteContext
push dword [0x1012c3a0]
mov dword [0x1012c3a4], eax
call esi
push str.wglGetProcAddress
push dword [0x1012c3a0]
mov dword [0x1012c3a8], eax
call esi
push str.wglGetCurrentDC
push dword [0x1012c3a0]
mov dword [0x1012c3ac], eax
call esi
push str.wglGetCurrentContext
push dword [0x1012c3a0]
mov dword [0x1012c3b0], eax
call esi
push str.wglMakeCurrent
push dword [0x1012c3a0]
mov dword [0x1012c3b4], eax
call esi
push str.wglShareLists
push dword [0x1012c3a0]
mov dword [0x1012c3b8], eax
call esi
push dword [0x1012b57c]
mov dword [0x1012c3bc], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
push eax
push eax
push edi
movaps xmmword [esp + 0x2c], xmm0
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x1c], 0x10028
mov dword [esp + 0x20], 0x25
mov word [esp + 0x24], 0x1800
call dword [sym.imp.GDI32.dll_ChoosePixelFormat]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetPixelFormat]
test eax, eax
jne 0x1006c0e1
push str.WGL:_Failed_to_set_pixel_format_for_dummy_context
push 0x10008
call fcn.1006ade0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1006f8b7
mov esp, ebp
pop ebp
ret
push edi
call dword [0x1012c3a4]
mov esi, eax
test esi, esi
jne 0x1006c113
push str.WGL:_Failed_to_create_dummy_context
push 0x10008
call fcn.1006ade0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1006f8b7
mov esp, ebp
pop ebp
ret
call dword [0x1012c3b0]
mov dword [esp + 0xc], eax
call dword [0x1012c3b4]
push esi
push edi
mov dword [esp + 0x10], eax
call dword [0x1012c3b8]
test eax, eax
jne 0x1006c16d
push str.WGL:_Failed_to_make_dummy_context_current
push 0x10008
call fcn.1006ade0
add esp, 8
push dword [esp + 8]
push dword [esp + 0x10]
call dword [0x1012c3b8]
push esi
call dword [0x1012c3a8]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.1006f8b7
mov esp, ebp
pop ebp
ret
push str.wglGetExtensionsStringEXT
call dword [0x1012c3ac]
push str.wglGetExtensionsStringARB
mov dword [0x1012c3c8], eax
call dword [0x1012c3ac]
push str.wglCreateContextAttribsARB
mov dword [0x1012c3cc], eax
call dword [0x1012c3ac]
push str.wglSwapIntervalEXT
mov dword [0x1012c3d0], eax
call dword [0x1012c3ac]
push str.wglGetPixelFormatAttribivARB
mov dword [0x1012c3c0], eax
call dword [0x1012c3ac]
push str.WGL_ARB_multisample
mov dword [0x1012c3c4], eax
call fcn.1006cb80
push str.WGL_ARB_framebuffer_sRGB
mov dword [0x1012c3dc], eax
call fcn.1006cb80
push str.WGL_EXT_framebuffer_sRGB
mov dword [0x1012c3e0], eax
call fcn.1006cb80
push str.WGL_ARB_create_context
mov dword [0x1012c3e4], eax
call fcn.1006cb80
push str.WGL_ARB_create_context_profile
mov dword [0x1012c3ec], eax
call fcn.1006cb80
push str.WGL_EXT_create_context_es2_profile
mov dword [0x1012c3f0], eax
call fcn.1006cb80
push str.WGL_ARB_create_context_robustness
mov dword [0x1012c3f4], eax
call fcn.1006cb80
push str.WGL_ARB_create_context_no_error
mov dword [0x1012c3f8], eax
call fcn.1006cb80
push str.WGL_EXT_swap_control
mov dword [0x1012c3fc], eax
call fcn.1006cb80
push str.WGL_EXT_colorspace
mov dword [0x1012c3d4], eax
call fcn.1006cb80
push str.WGL_ARB_pixel_format
mov dword [0x1012c3d8], eax
call fcn.1006cb80
push str.WGL_ARB_context_flush_control
mov dword [0x1012c3e8], eax
call fcn.1006cb80
add esp, 0x30
mov dword [0x1012c400], eax
push dword [esp + 8]
push dword [esp + 0x10]
call dword [0x1012c3b8]
push esi
call dword [0x1012c3a8]
mov ecx, dword [esp + 0x4c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.1006f8b7
mov esp, ebp
pop ebp
ret