Function at 0x14003b060
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 [0x1400a0978]
mov qword [rsp + 0x50], r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x14009efd0], r14d
mov rbx, rax
jne 0x14003b0e6
xor edx, edx
mov ecx, 0x10001
call fcn.140039140
jmp 0x14003b135
mov ecx, dword [0x1400a0978]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
cmp dword [rsi + 0x208], r14d
jne 0x14003b111
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
call fcn.140039140
jmp 0x14003b135
test rdx, rdx
je 0x14003b12c
mov eax, dword [rax + 0x20c]
cmp dword [rsi + 0x20c], eax
je 0x14003b12c
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 0x14003b5b4
test rax, rax
je 0x14003b5b4
mov ecx, 0x1f02
call rax
mov r15, rax
test rax, rax
jne 0x14003b220
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.140039140
cmp dword [0x14009efd0], r14d
je 0x14003b344
mov ecx, dword [0x1400a0978]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8, rax
test rbx, rbx
je 0x14003b1e8
cmp dword [rbx + 0x208], r14d
je 0x14003b5ef
test r8, r8
je 0x14003b622
test rbx, rbx
je 0x14003b208
mov eax, dword [rax + 0x20c]
cmp dword [rbx + 0x20c], eax
je 0x14003b627
xor ecx, ecx
call qword [r8 + 0x250]
jmp 0x14003b622
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rbp], 0
jne 0x14003b227
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 0x14003b252
mov rbp, qword [rsp + r14*8 + 0x40]
inc r14
test rbp, rbp
jne 0x14003b220
jmp 0x14003b25f
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.14001bae0
test eax, eax
jne 0x14003b2e3
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.140039140
cmp dword [0x14009efd0], 0
je 0x14003b344
mov ecx, dword [0x1400a0978]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x14003b602
cmp dword [rbx + 0x208], 0
jmp 0x14003b5ed
mov eax, dword [rsi + 0x210]
mov r8d, dword [r13 + 8]
cmp eax, r8d
jl 0x14003b577
jne 0x14003b308
mov ecx, dword [rsi + 0x214]
cmp ecx, dword [r13 + 0xc]
jl 0x14003b57d
cmp eax, 3
jl 0x14003b355
lea rcx, str.glGetStringi
call qword [rsi + 0x270]
mov qword [rsi + 0x238], rax
test rax, rax
jne 0x14003b355
lea rdx, str.Entry_point_retrieval_is_broken
mov ecx, 0x10008
call fcn.140039140
cmp dword [0x14009efd0], 0
jne 0x14003b2bf
xor edx, edx
mov ecx, 0x10001
call fcn.140039140
jmp 0x14003b630
cmp dword [rsi + 0x208], 0x30001
jne 0x14003b438
cmp dword [rsi + 0x210], 3
jl 0x14003b3c7
lea rdx, [rsp + 0x30]
mov ecx, 0x821e
call qword [rsi + 0x240]
mov eax, dword [rsp + 0x30]
test al, 1
je 0x14003b390
mov dword [rsi + 0x21c], 1
test al, 2
jne 0x14003b3af
lea rcx, str.GL_ARB_debug_output
call fcn.140040410
test eax, eax
je 0x14003b40f
cmp dword [r13 + 0x14], 0
je 0x14003b40f
mov eax, dword [rsp + 0x30]
mov dword [rsi + 0x220], 1
test al, 8
je 0x14003b3c7
mov dword [rsi + 0x224], 1
mov eax, dword [rsi + 0x210]
cmp eax, 4
jge 0x14003b3e0
cmp eax, 3
jne 0x14003b42f
cmp dword [rsi + 0x214], 2
jl 0x14003b42f
lea rdx, [rsp + 0x30]
mov ecx, 0x9126
call qword [rsi + 0x240]
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x14003b425
test al, 1
je 0x14003b415
mov dword [rsi + 0x228], 0x32001
lea rcx, str.GL_ARB_robustness
jmp 0x14003b43f
mov eax, dword [rsp + 0x30]
jmp 0x14003b3b9
lea rcx, str.GL_ARB_compatibility
call fcn.140040410
test eax, eax
je 0x14003b42f
mov dword [rsi + 0x228], 0x32002
lea rcx, str.GL_ARB_robustness
jmp 0x14003b43f
lea rcx, str.GL_EXT_robustness
call fcn.140040410
test eax, eax
je 0x14003b480
lea rdx, [rsp + 0x30]
mov ecx, 0x8256
call qword [rsi + 0x240]
mov eax, dword [rsp + 0x30]
cmp eax, 0x8252
jne 0x14003b46f
mov dword [rsi + 0x22c], 0x31002
jmp 0x14003b480
cmp eax, 0x8261
jne 0x14003b480
mov dword [rsi + 0x22c], 0x31001
lea rcx, str.GL_KHR_context_flush_control
call fcn.140040410
test eax, eax
je 0x14003b4c5
lea rdx, [rsp + 0x30]
mov ecx, 0x82fb
call qword [rsi + 0x240]
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14003b4b4
mov dword [rsi + 0x230], 0x35002
jmp 0x14003b4c5
cmp eax, 0x82fc
jne 0x14003b4c5
mov dword [rsi + 0x230], 0x35001
lea rcx, str.glClear
call qword [rsi + 0x270]
mov ecx, 0x4000
call rax
cmp dword [rsi + 0x30], 0
je 0x14003b4e8
mov rcx, rsi
call qword [rsi + 0x258]
cmp dword [0x14009efd0], 0
jne 0x14003b507
xor edx, edx
mov ecx, 0x10001
call fcn.140039140
mov eax, 1
jmp 0x14003b632
mov ecx, dword [0x1400a0978]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x14003b53f
cmp dword [rbx + 0x208], 0
jne 0x14003b53f
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
call fcn.140039140
mov eax, 1
jmp 0x14003b632
test rdx, rdx
je 0x14003b55f
test rbx, rbx
je 0x14003b557
mov eax, dword [rax + 0x20c]
cmp dword [rbx + 0x20c], eax
je 0x14003b564
xor ecx, ecx
call qword [rdx + 0x250]
test rbx, rbx
je 0x14003b56d
mov rcx, rbx
call qword [rbx + 0x250]
mov eax, 1
jmp 0x14003b632
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.140039140
jmp 0x14003b337
lea rdx, str.Entry_point_retrieval_is_broken
mov ecx, 0x10008
call fcn.140039140
cmp dword [0x14009efd0], r14d
je 0x14003b344
mov ecx, dword [0x1400a0978]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x14003b602
cmp dword [rbx + 0x208], r14d
jne 0x14003b602
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
call fcn.140039140
jmp 0x14003b630
test rdx, rdx
je 0x14003b622
test rbx, rbx
je 0x14003b61a
mov eax, dword [rax + 0x20c]
cmp dword [rbx + 0x20c], eax
je 0x14003b627
xor ecx, ecx
call qword [rdx + 0x250]
test rbx, rbx
je 0x14003b630
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.1400450c0
add rsp, 0x60
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret