Function at 0x140018480
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, str.framebuffers_start_up
lea rcx, [rsp + 0x30]
call fcn.140015630
movzx eax, byte [rbx + 0x33]
test al, al
jne 0x1400184b8
cmp byte [rbx + 0x34], al
jne 0x1400184b8
lea rcx, str.FBOs_not_supported
call fcn.140015000
jmp 0x140018893
test al, al
lea rdx, str.init_FBOs__ARB_
lea rcx, str.init_FBOs__core_
cmove rcx, rdx
call fcn.140014910
lea rcx, str.glGenFramebuffers
mov dword [0x140252b0c], 0x8d40
mov dword [0x140252c04], 0x8ca9
mov dword [0x140252af0], 0x8ca8
mov dword [0x140252b20], 0x8ce0
mov dword [0x140252b08], 0x8d00
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov rcx, rax
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x140018552
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x14001853f
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
xor ecx, ecx
jmp 0x140018552
lea rdx, str.glGenFramebuffers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x140252ae8], rcx
lea rcx, str.glDeleteFramebuffers
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov rcx, rax
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x1400185a8
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140018595
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
xor ecx, ecx
jmp 0x1400185a8
lea rdx, str.glDeleteFramebuffers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x140252b38], rcx
lea rcx, str.glBindFramebuffer
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov rcx, rax
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x1400185fe
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400185eb
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
xor ecx, ecx
jmp 0x1400185fe
lea rdx, str.glBindFramebuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x140252b00], rcx
lea rcx, str.glFramebufferTexture2D
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
mov rcx, rax
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x140018654
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140018641
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
xor ecx, ecx
jmp 0x140018654
lea rdx, str.glFramebufferTexture2D
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x140252af8], rcx
lea rcx, str.glCheckFramebufferStatus
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x1400186a2
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140018692
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
jmp 0x1400186a2
lea rdx, str.glCheckFramebufferStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.glBlitFramebuffer
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x1400186e9
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400186d9
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
jmp 0x1400186e9
lea rdx, str.glBlitFramebuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.glGenRenderbuffers
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x140018730
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140018720
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
jmp 0x140018730
lea rdx, str.glGenRenderbuffers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.glDeleteRenderbuffers
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x140018777
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140018767
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
jmp 0x140018777
lea rdx, str.glDeleteRenderbuffers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.glBindRenderbuffer
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x1400187be
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400187ae
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
jmp 0x1400187be
lea rdx, str.glBindRenderbuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.glRenderbufferStorage
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x140018805
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400187f5
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
jmp 0x140018805
lea rdx, str.glRenderbufferStorage
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.glRenderbufferStorageMultisample
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x14001884c
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x14001883c
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
jmp 0x14001884c
lea rdx, str.glRenderbufferStorageMultisample
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.glFramebufferRenderbuffer
call qword [sym.imp.OPENGL32.dll_wglGetProcAddress]
add rax, 0xfffffffffffffffc
cmp rax, 0xfffffffffffffffa
jbe 0x140018893
lea rcx, str.opengl32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140018883
lea rcx, str.loading_opengl32.dll_failed
call fcn.140015000
jmp 0x140018893
lea rdx, str.glFramebufferRenderbuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140252b0c]
xor edx, edx
mov dword [0x14006dafc], 0
mov dword [0x140252b24], 0
mov dword [0x140252b2c], 0
call qword [0x140252b00]
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov eax, 0x10
cmp byte [rax + rbx], 0
jne 0x1400188db
call fcn.140023368
mov edx, 0x30
add rdx, rbx
movsxd rcx, dword [rdx]
test ecx, ecx
jle 0x140018903
lea eax, [rcx - 1]
mov dword [rdx], eax
cmp eax, 0x40
jge 0x140018914
mov ecx, dword [rdx + rcx*4]
mov dword [rdx + 0x104], ecx
add rsp, 0x20
pop rbx
ret
lea rcx, str.logging_context_tried_to_pop_with_zero_depth
add rsp, 0x20
pop rbx
jmp fcn.140015000
add rsp, 0x20
pop rbx
ret