Function at 0x1400f9c14
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140151388]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
cmp qword [0x1401567b0], rbx
je 0x1400f9c4e
lea eax, [rbx + 1]
jmp 0x1400f9f44
lea rcx, str.opengl32.dll
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1401567b0], rax
test rax, rax
jne 0x1400f9c7e
lea rdx, str.WGL:_Failed_to_load_opengl32.dll
mov ecx, 0x10008
call fcn.1400f7c70
xor eax, eax
jmp 0x1400f9f44
lea rdx, str.wglCreateContext
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401567b0]
lea rdx, str.wglDeleteContext
mov qword [0x1401567b8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401567b0]
lea rdx, str.wglGetProcAddress
mov qword [0x1401567c0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401567b0]
lea rdx, str.wglGetCurrentDC
mov qword [0x1401567c8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401567b0]
lea rdx, str.wglGetCurrentContext
mov qword [0x1401567d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401567b0]
lea rdx, str.wglMakeCurrent
mov qword [0x1401567d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401567b0]
lea rdx, str.wglShareLists
mov qword [0x1401567e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1401556a0]
mov qword [0x1401567e8], rax
call qword [sym.imp.USER32.dll_GetDC]
xor edx, edx
lea rcx, [rsp + 0x20]
mov rbp, rax
lea r8d, [rdx + 0x28]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x10028
mov rcx, rbp
mov dword [rsp + 0x24], 0x25
mov esi, 1
mov word [rsp + 0x28], 0x1800
call qword [sym.imp.GDI32.dll_ChoosePixelFormat]
lea r8, [rsp + 0x20]
mov rcx, rbp
mov edx, eax
call qword [sym.imp.GDI32.dll_SetPixelFormat]
test eax, eax
jne 0x1400f9d9a
lea rdx, str.WGL:_Failed_to_set_pixel_format_for_dummy_context
jmp 0x1400f9c6d
mov rcx, rbp
call qword [0x1401567b8]
mov rdi, rax
test rax, rax
jne 0x1400f9db7
lea rdx, str.WGL:_Failed_to_create_dummy_context
jmp 0x1400f9c6d
call qword [0x1401567d0]
mov r14, rax
call qword [0x1401567d8]
mov rdx, rdi
mov rcx, rbp
mov r15, rax
call qword [0x1401567e0]
test eax, eax
jne 0x1400f9def
lea rdx, str.WGL:_Failed_to_make_dummy_context_current
mov ecx, 0x10008
call fcn.1400f7c70
jmp 0x1400f9f2d
lea rcx, str.wglGetExtensionsStringEXT
call qword [0x1401567c8]
lea rcx, str.wglGetExtensionsStringARB
mov qword [0x140156800], rax
call qword [0x1401567c8]
lea rcx, str.wglCreateContextAttribsARB
mov qword [0x140156808], rax
call qword [0x1401567c8]
lea rcx, str.wglSwapIntervalEXT
mov qword [0x140156810], rax
call qword [0x1401567c8]
lea rcx, str.wglGetPixelFormatAttribivARB
mov qword [0x1401567f0], rax
call qword [0x1401567c8]
lea rcx, str.WGL_ARB_multisample
mov qword [0x1401567f8], rax
call fcn.1400fa510
lea rcx, str.WGL_ARB_framebuffer_sRGB
mov dword [0x140156820], eax
call fcn.1400fa510
lea rcx, str.WGL_EXT_framebuffer_sRGB
mov dword [0x140156824], eax
call fcn.1400fa510
lea rcx, str.WGL_ARB_create_context
mov dword [0x140156828], eax
call fcn.1400fa510
lea rcx, str.WGL_ARB_create_context_profile
mov dword [0x140156830], eax
call fcn.1400fa510
lea rcx, str.WGL_EXT_create_context_es2_profile
mov dword [0x140156834], eax
call fcn.1400fa510
lea rcx, str.WGL_ARB_create_context_robustness
mov dword [0x140156838], eax
call fcn.1400fa510
lea rcx, str.WGL_ARB_create_context_no_error
mov dword [0x14015683c], eax
call fcn.1400fa510
lea rcx, str.WGL_EXT_swap_control
mov dword [0x140156840], eax
call fcn.1400fa510
lea rcx, str.WGL_EXT_colorspace
mov dword [0x140156818], eax
call fcn.1400fa510
lea rcx, str.WGL_ARB_pixel_format
mov dword [0x14015681c], eax
call fcn.1400fa510
lea rcx, str.WGL_ARB_context_flush_control
mov dword [0x14015682c], eax
call fcn.1400fa510
mov dword [0x140156844], eax
mov ebx, esi
mov rdx, r15
mov rcx, r14
call qword [0x1401567e0]
mov rcx, rdi
call qword [0x1401567c0]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14010ef70
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret