Function at 0x14003b120
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x60
mov rax, qword [0x140093880]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, str.OpenGL_ES_CL
mov rsi, rcx
mov qword [rsp + 0x40], rax
lea rbp, str.OpenGL_ES_CM
lea rax, str.OpenGL_ES
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov eax, dword [rdx + 4]
mov r13, rdx
mov dword [rcx + 0x20c], eax
mov dword [rcx + 0x208], 0x30001
mov ecx, dword [0x1400a1988]
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x14009ffe0], r14d
mov rbx, rax
jne 0x14003b1a6
xor edx, edx
mov ecx, 0x10001
call fcn.140039200
jmp 0x14003b1f5
mov ecx, dword [0x1400a1988]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
cmp dword [rsi + 0x208], r14d
jne 0x14003b1d1
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
call fcn.140039200
jmp 0x14003b1f5
test rdx, rdx
je 0x14003b1ec
mov eax, dword [rax + 0x20c]
cmp dword [rsi + 0x20c], eax
je 0x14003b1ec
xor ecx, ecx
call qword [rdx + 0x250]
mov rcx, rsi
call qword [rsi + 0x250]
mov qword [rsp + 0xa0], rdi
lea rcx, str.glGetIntegerv
mov qword [rsp + 0xa8], r15
call qword [rsi + 0x270]
lea rcx, str.glGetString
mov qword [rsi + 0x240], rax
call qword [rsi + 0x270]
mov qword [rsi + 0x248], rax
cmp qword [rsi + 0x240], r14
je 0x14003b674
test rax, rax
je 0x14003b674
mov ecx, 0x1f02
call rax
mov r15, rax
test rax, rax
jne 0x14003b2e0
cmp dword [r13], 0x30001
lea rax, str.OpenGL_ES_version_string_retrieval_is_broken
lea rdx, str.OpenGL_version_string_retrieval_is_broken
mov ecx, 0x10008
cmovne rdx, rax
call fcn.140039200
cmp dword [0x14009ffe0], r14d
je 0x14003b404
mov ecx, dword [0x1400a1988]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8, rax
test rbx, rbx
je 0x14003b2a8
cmp dword [rbx + 0x208], r14d
je 0x14003b6af
test r8, r8
je 0x14003b6e2
test rbx, rbx
je 0x14003b2c8
mov eax, dword [rax + 0x20c]
cmp dword [rbx + 0x20c], eax
je 0x14003b6e7
xor ecx, ecx
call qword [r8 + 0x250]
jmp 0x14003b6e2
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rbp], 0
jne 0x14003b2e7
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14003b312
mov rbp, qword [rsp + r14*8 + 0x40]
inc r14
test rbp, rbp
jne 0x14003b2e0
jmp 0x14003b31f
add r15, rdi
mov dword [rsi + 0x208], 0x30002
lea rax, [rsi + 0x218]
mov rcx, r15
lea r9, [rsi + 0x214]
mov qword [rsp + 0x20], rax
lea r8, [rsi + 0x210]
lea rdx, str._d._d._d
call fcn.14001bba0
test eax, eax
jne 0x14003b3a3
cmp dword [rsi + 0x208], 0x30001
lea rax, str.No_version_found_in_OpenGL_ES_version_string
lea rdx, str.No_version_found_in_OpenGL_version_string
mov ecx, 0x10008
cmovne rdx, rax
call fcn.140039200
cmp dword [0x14009ffe0], 0
je 0x14003b404
mov ecx, dword [0x1400a1988]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x14003b6c2
cmp dword [rbx + 0x208], 0
jmp 0x14003b6ad
mov eax, dword [rsi + 0x210]
mov r8d, dword [r13 + 8]
cmp eax, r8d
jl 0x14003b637
jne 0x14003b3c8
mov ecx, dword [rsi + 0x214]
cmp ecx, dword [r13 + 0xc]
jl 0x14003b63d
cmp eax, 3
jl 0x14003b415
lea rcx, str.glGetStringi
call qword [rsi + 0x270]
mov qword [rsi + 0x238], rax
test rax, rax
jne 0x14003b415
lea rdx, str.Entry_point_retrieval_is_broken
mov ecx, 0x10008
call fcn.140039200
cmp dword [0x14009ffe0], 0
jne 0x14003b37f
xor edx, edx
mov ecx, 0x10001
call fcn.140039200
jmp 0x14003b6f0
cmp dword [rsi + 0x208], 0x30001
jne 0x14003b4f8
cmp dword [rsi + 0x210], 3
jl 0x14003b487
lea rdx, [rsp + 0x30]
mov ecx, 0x821e
call qword [rsi + 0x240]
mov eax, dword [rsp + 0x30]
test al, 1
je 0x14003b450
mov dword [rsi + 0x21c], 1
test al, 2
jne 0x14003b46f
lea rcx, str.GL_ARB_debug_output
call fcn.1400404d0
test eax, eax
je 0x14003b4cf
cmp dword [r13 + 0x14], 0
je 0x14003b4cf
mov eax, dword [rsp + 0x30]
mov dword [rsi + 0x220], 1
test al, 8
je 0x14003b487
mov dword [rsi + 0x224], 1
mov eax, dword [rsi + 0x210]
cmp eax, 4
jge 0x14003b4a0
cmp eax, 3
jne 0x14003b4ef
cmp dword [rsi + 0x214], 2
jl 0x14003b4ef
lea rdx, [rsp + 0x30]
mov ecx, 0x9126
call qword [rsi + 0x240]
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x14003b4e5
test al, 1
je 0x14003b4d5
mov dword [rsi + 0x228], 0x32001
lea rcx, str.GL_ARB_robustness
jmp 0x14003b4ff
mov eax, dword [rsp + 0x30]
jmp 0x14003b479
lea rcx, str.GL_ARB_compatibility
call fcn.1400404d0
test eax, eax
je 0x14003b4ef
mov dword [rsi + 0x228], 0x32002
lea rcx, str.GL_ARB_robustness
jmp 0x14003b4ff
lea rcx, str.GL_EXT_robustness
call fcn.1400404d0
test eax, eax
je 0x14003b540
lea rdx, [rsp + 0x30]
mov ecx, 0x8256
call qword [rsi + 0x240]
mov eax, dword [rsp + 0x30]
cmp eax, 0x8252
jne 0x14003b52f
mov dword [rsi + 0x22c], 0x31002
jmp 0x14003b540
cmp eax, 0x8261
jne 0x14003b540
mov dword [rsi + 0x22c], 0x31001
lea rcx, str.GL_KHR_context_flush_control
call fcn.1400404d0
test eax, eax
je 0x14003b585
lea rdx, [rsp + 0x30]
mov ecx, 0x82fb
call qword [rsi + 0x240]
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14003b574
mov dword [rsi + 0x230], 0x35002
jmp 0x14003b585
cmp eax, 0x82fc
jne 0x14003b585
mov dword [rsi + 0x230], 0x35001
lea rcx, str.glClear
call qword [rsi + 0x270]
mov ecx, 0x4000
call rax
cmp dword [rsi + 0x30], 0
je 0x14003b5a8
mov rcx, rsi
call qword [rsi + 0x258]
cmp dword [0x14009ffe0], 0
jne 0x14003b5c7
xor edx, edx
mov ecx, 0x10001
call fcn.140039200
mov eax, 1
jmp 0x14003b6f2
mov ecx, dword [0x1400a1988]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x14003b5ff
cmp dword [rbx + 0x208], 0
jne 0x14003b5ff
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
call fcn.140039200
mov eax, 1
jmp 0x14003b6f2
test rdx, rdx
je 0x14003b61f
test rbx, rbx
je 0x14003b617
mov eax, dword [rax + 0x20c]
cmp dword [rbx + 0x20c], eax
je 0x14003b624
xor ecx, ecx
call qword [rdx + 0x250]
test rbx, rbx
je 0x14003b62d
mov rcx, rbx
call qword [rbx + 0x250]
mov eax, 1
jmp 0x14003b6f2
mov ecx, dword [rsi + 0x214]
cmp dword [rsi + 0x208], 0x30001
lea r9, str.Requested_OpenGL_ES_version__i._i__got_version__i._i
mov dword [rsp + 0x28], ecx
lea rdx, str.Requested_OpenGL_version__i._i__got_version__i._i
cmovne rdx, r9
mov dword [rsp + 0x20], eax
mov r9d, dword [r13 + 0xc]
mov ecx, 0x10007
call fcn.140039200
jmp 0x14003b3f7
lea rdx, str.Entry_point_retrieval_is_broken
mov ecx, 0x10008
call fcn.140039200
cmp dword [0x14009ffe0], r14d
je 0x14003b404
mov ecx, dword [0x1400a1988]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x14003b6c2
cmp dword [rbx + 0x208], r14d
jne 0x14003b6c2
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
call fcn.140039200
jmp 0x14003b6f0
test rdx, rdx
je 0x14003b6e2
test rbx, rbx
je 0x14003b6da
mov eax, dword [rax + 0x20c]
cmp dword [rbx + 0x20c], eax
je 0x14003b6e7
xor ecx, ecx
call qword [rdx + 0x250]
test rbx, rbx
je 0x14003b6f0
mov rcx, rbx
call qword [rbx + 0x250]
xor eax, eax
mov r15, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400451f0
add rsp, 0x60
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret