Function at 0x180048870
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
mov rbp, rsp
sub rsp, 0x60
lea rax, [0x1801506d0]
movzx ebx, dl
mov qword [rbp + 0x30], rax
lea rdx, str.QT_OPENGL_DLL
lea rax, [0x1801506f8]
mov rsi, rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x38], rax
call qword [sym.imp.Qt5Core.dll_class_QByteArray___cdecl_qgetenv_char_const____ptr64_]
mov rax, qword [rbp + 0x20]
cmp dword [rax + 4], 0
jne 0x1800488ca
test bl, bl
lea rax, [rbp + 0x30]
lea rdx, [rbp + 0x38]
cmove rdx, rax
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::operator_class_QByteArray_const____ptr64____ptr64]
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll__toLower_QByteArray__QEGBA_AV1_XZ]
mov rdx, rax
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_class_QByteArray____ptr64___cdecl_QByteArray::operator_class_QByteArray____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + 0x30]
cmp ecx, dword [rax + 4]
jne 0x18004893c
mov qword [rsp + 0x88], rdi
mov rdi, rcx
lea rcx, [rbp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
lea rcx, [rbp + 0x20]
mov rbx, rax
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
mov rdi, qword [rsp + 0x88]
test eax, eax
je 0x18004893e
mov al, 1
mov byte [rsi + 0x58], al
call fcn.1800110f0
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_bool___cdecl_QLoggingCategory::isDebugEnabled_void_const___ptr64]
test al, al
je 0x1800489a7
call fcn.1800110f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x28]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
mov rcx, rax
lea rdx, str.Qt:_Using_WGL_and_OpenGL_from
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___class_QByteArray_const____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsi + 0x50], rax
test rax, rax
jne 0x180048a13
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_char_const____ptr64___cdecl_QByteArray::constData_void_const___ptr64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rdx, str.Failed_to_load__s
mov ecx, eax
call qword [sym.imp.Qt5Core.dll_void___cdecl_qErrnoWarning_int__char_const____ptr64_]
xor bl, bl
lea rcx, [rbp + 0x20]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QByteArray::destructor_void____ptr64]
movzx eax, bl
add rsp, 0x60
pop rsi
pop rbx
pop rbp
ret
xor ebx, ebx
cmp byte [rsi + 0x58], bl
je 0x180048a88
lea rcx, [0x1800fa590]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rax, qword [rsi + 0x50]
test rax, rax
jne 0x180048a88
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x60], rbx
mov qword [rsi + 0x68], rbx
mov qword [rsi + 0x70], rbx
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x40], rbx
cmp qword [rsi], 0
mov qword [rsi + 0x48], rbx
je 0x1800489e8
cmp qword [rsi + 0x38], 0
je 0x1800489e8
test rbx, rbx
je 0x1800489e8
mov bl, 1
jmp 0x1800489ea
lea rdx, str.wglCreateContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi], rax
test rcx, rcx
je 0x180048a33
lea rdx, str.wglDeleteContext
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 8], rax
test rcx, rcx
je 0x180048a37
lea rdx, str.wglGetCurrentContext
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x10], rax
test rcx, rcx
je 0x180048a3b
lea rdx, str.wglGetCurrentDC
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x18], rax
test rcx, rcx
je 0x180048a3f
lea rdx, str.wglGetProcAddress
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x180048a43
lea rdx, str.wglMakeCurrent
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x28], rax
test rcx, rcx
je 0x180048a47
lea rdx, str.wglShareLists
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x30], rax
test rcx, rcx
je 0x180048a4b
lea rdx, str.wglSwapBuffers
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x60], rax
test rcx, rcx
je 0x180048a4f
lea rdx, str.wglSetPixelFormat
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x68], rax
test rcx, rcx
je 0x180048a53
lea rdx, str.wglDescribePixelFormat
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x70], rax
test rcx, rcx
je 0x180048a57
lea rdx, str.glGetError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x38], rax
test rcx, rcx
je 0x180048a5b
lea rdx, str.glGetIntegerv
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x40], rax
test rcx, rcx
je 0x180048a5f
lea rdx, str.glGetString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
jmp 0x180048a5f