Function at 0x140171c80
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x14040fe80], 0
je 0x140171cb7
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x50
pop rdi
ret
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14040fe80], rax
test rax, rax
jne 0x140171cf6
lea rdx, str.WGL:_Failed_to_load_opengl32.dll
mov ecx, 0x10008
call fcn.14016d120
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x50
pop rdi
ret
lea rdx, str.wglCreateContext
mov qword [rsp + 0x70], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040fe80]
lea rdx, str.wglDeleteContext
mov qword [0x14040fe88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040fe80]
lea rdx, [0x1402f6b30]
mov qword [0x14040fe90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040fe80]
lea rdx, [0x1402f6b48]
mov qword [0x14040fe98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040fe80]
lea rdx, str.wglGetCurrentContext
mov qword [0x14040fea0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040fe80]
lea rdx, str.wglMakeCurrent
mov qword [0x14040fea8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040fe80]
lea rdx, str.wglShareLists
mov qword [0x14040feb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14040f060]
mov qword [0x14040feb8], rax
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
lea rdx, [rsp + 0x20]
xor eax, eax
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea edi, [rax + 1]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0x10028
mov dword [rsp + 0x24], 0x25
mov word [rsp + 0x28], 0x1800
call qword [sym.imp.GDI32.dll_ChoosePixelFormat]
lea r8, [rsp + 0x20]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.GDI32.dll_SetPixelFormat]
test eax, eax
jne 0x140171e33
lea rdx, str.WGL:_Failed_to_set_pixel_format_for_dummy_context
mov ecx, 0x10008
call fcn.14016d120
xor eax, eax
jmp 0x14017201c
mov rcx, rsi
mov qword [rsp + 0x60], rbx
call qword [0x14040fe88]
mov rbx, rax
test rax, rax
jne 0x140171e61
lea rdx, str.WGL:_Failed_to_create_dummy_context
mov ecx, 0x10008
call fcn.14016d120
xor eax, eax
jmp 0x140172017
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x78], r14
call qword [0x14040fea0]
mov rbp, rax
call qword [0x14040fea8]
mov rdx, rbx
mov rcx, rsi
mov r14, rax
call qword [0x14040feb0]
test eax, eax
jne 0x140171eba
lea rdx, str.WGL:_Failed_to_make_dummy_context_current
mov ecx, 0x10008
call fcn.14016d120
mov rdx, r14
mov rcx, rbp
call qword [0x14040feb0]
mov rcx, rbx
call qword [0x14040fe90]
xor eax, eax
jmp 0x14017200d
lea rcx, [0x1402f6c20]
call qword [0x14040fe98]
lea rcx, [0x1402f6c40]
mov qword [0x14040fed0], rax
call qword [0x14040fe98]
lea rcx, [0x1402f6c60]
mov qword [0x14040fed8], rax
call qword [0x14040fe98]
lea rcx, [0x1402f6c80]
mov qword [0x14040fee0], rax
call qword [0x14040fe98]
lea rcx, [0x1402f6c98]
mov qword [0x14040fec0], rax
call qword [0x14040fe98]
lea rcx, [0x1402f6cb8]
mov qword [0x14040fec8], rax
call fcn.140172580
lea rcx, [0x1402f6cd0]
mov dword [0x14040fef0], eax
call fcn.140172580
lea rcx, [0x1402f6cf0]
mov dword [0x14040fef4], eax
call fcn.140172580
lea rcx, [0x1402f6d10]
mov dword [0x14040fef8], eax
call fcn.140172580
lea rcx, [0x1402f6d28]
mov dword [0x14040ff00], eax
call fcn.140172580
lea rcx, [0x1402f6d48]
mov dword [0x14040ff04], eax
call fcn.140172580
lea rcx, [0x1402f6d70]
mov dword [0x14040ff08], eax
call fcn.140172580
lea rcx, [0x1402f6d98]
mov dword [0x14040ff0c], eax
call fcn.140172580
lea rcx, [0x1402f6db8]
mov dword [0x14040ff10], eax
call fcn.140172580
lea rcx, [0x1402f6dd0]
mov dword [0x14040fee8], eax
call fcn.140172580
lea rcx, [0x1402f6de8]
mov dword [0x14040feec], eax
call fcn.140172580
lea rcx, [0x1402f6e00]
mov dword [0x14040fefc], eax
call fcn.140172580
mov rdx, r14
mov dword [0x14040ff14], eax
mov rcx, rbp
call qword [0x14040feb0]
mov rcx, rbx
call qword [0x14040fe90]
mov eax, edi
mov rbp, qword [rsp + 0x68]
mov r14, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14027f960
add rsp, 0x50
pop rdi
ret