Function at 0x14007c7e7
Capabilities:
Link many functions at runtime

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov ebx, 1
cmp qword [0x1401f2100], 0
je 0x14007c80d
mov eax, ebx
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov qword [0x1401f2100], rax
test rax, rax
je 0x14007cac8
lea rdx, str.wglCreateContext
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rbx
mov qword [0x1401f2108], rax
lea rdx, str.wglDeleteContext
mov rcx, qword [0x1401f2100]
call rbx
mov qword [0x1401f2110], rax
lea rdx, str.wglGetProcAddress
mov rcx, qword [0x1401f2100]
call rbx
mov qword [0x1401f2118], rax
lea rdx, str.wglGetCurrentDC
mov rcx, qword [0x1401f2100]
call rbx
mov qword [0x1401f2120], rax
lea rdx, str.wglGetCurrentContext
mov rcx, qword [0x1401f2100]
call rbx
mov qword [0x1401f2128], rax
lea rdx, str.wglMakeCurrent
mov rcx, qword [0x1401f2100]
call rbx
mov qword [0x1401f2130], rax
lea rdx, str.wglShareLists
mov rcx, qword [0x1401f2100]
call rbx
mov qword [0x1401f2138], rax
mov rcx, qword [0x1401f1240]
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
lea rbx, [rsp + 0x20]
pxor xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x20], 0x28
mov word [rsp + 0x22], 1
mov dword [rsp + 0x24], 0x25
mov byte [rsp + 0x29], 0x18
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.GDI32.dll_ChoosePixelFormat]
mov edx, eax
mov r8, rbx
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SetPixelFormat]
mov ebx, eax
test eax, eax
je 0x14007cae3
mov rcx, rsi
call qword [0x1401f2108]
mov rdi, rax
test rax, rax
je 0x14007caf9
call qword [0x1401f2120]
mov r12, rax
call qword [0x1401f2128]
mov rbp, rax
mov rdx, rdi
mov rcx, rsi
call qword [0x1401f2130]
mov ebx, eax
test eax, eax
je 0x14007cb14
lea rcx, str.wglGetExtensionsStringEXT
call qword [0x1401f2118]
mov qword [0x1401f2150], rax
lea rcx, str.wglGetExtensionsStringARB
call qword [0x1401f2118]
mov qword [0x1401f2158], rax
lea rcx, str.wglCreateContextAttribsARB
call qword [0x1401f2118]
mov qword [0x1401f2160], rax
lea rcx, str.wglSwapIntervalEXT
call qword [0x1401f2118]
mov qword [0x1401f2140], rax
lea rcx, str.wglGetPixelFormatAttribivARB
call qword [0x1401f2118]
mov qword [0x1401f2148], rax
lea rcx, str.WGL_ARB_multisample
call sym.extensionSupportedWGL
mov dword [0x1401f2170], eax
lea rcx, str.WGL_ARB_framebuffer_sRGB
call sym.extensionSupportedWGL
mov dword [0x1401f2174], eax
lea rcx, str.WGL_EXT_framebuffer_sRGB
call sym.extensionSupportedWGL
mov dword [0x1401f2178], eax
lea rcx, str.WGL_ARB_create_context
call sym.extensionSupportedWGL
mov dword [0x1401f2180], eax
lea rcx, str.WGL_ARB_create_context_profile
call sym.extensionSupportedWGL
mov dword [0x1401f2184], eax
lea rcx, str.WGL_EXT_create_context_es2_profile
call sym.extensionSupportedWGL
mov dword [0x1401f2188], eax
lea rcx, str.WGL_ARB_create_context_robustness
call sym.extensionSupportedWGL
mov dword [0x1401f218c], eax
lea rcx, str.WGL_ARB_create_context_no_error
call sym.extensionSupportedWGL
mov dword [0x1401f2190], eax
lea rcx, str.WGL_EXT_swap_control
call sym.extensionSupportedWGL
mov dword [0x1401f2168], eax
lea rcx, str.WGL_EXT_colorspace
call sym.extensionSupportedWGL
mov dword [0x1401f216c], eax
lea rcx, str.WGL_ARB_pixel_format
call sym.extensionSupportedWGL
mov dword [0x1401f217c], eax
lea rcx, str.WGL_ARB_context_flush_control
call sym.extensionSupportedWGL
mov dword [0x1401f2194], eax
mov rdx, rbp
mov rcx, r12
call qword [0x1401f2130]
mov rcx, rdi
call qword [0x1401f2110]
mov ebx, 1
jmp 0x14007c800
lea rdx, str.WGL:_Failed_to_load_opengl32.dll
mov ecx, 0x10008
call sym._glfwInputErrorWin32
mov ebx, 0
jmp 0x14007c800
lea rdx, str.WGL:_Failed_to_set_pixel_format_for_dummy_context
mov ecx, 0x10008
call sym._glfwInputErrorWin32
jmp 0x14007c800
lea rdx, str.WGL:_Failed_to_create_dummy_context
mov ecx, 0x10008
call sym._glfwInputErrorWin32
mov ebx, 0
jmp 0x14007c800
lea rdx, str.WGL:_Failed_to_make_dummy_context_current
mov ecx, 0x10008
call sym._glfwInputErrorWin32
mov rdx, rbp
mov rcx, r12
call qword [0x1401f2130]
mov rcx, rdi
call qword [0x1401f2110]
jmp 0x14007c800