Function at 0x140048cd0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x60
mov rax, qword [0x140137010]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rax, str.OpenGL_ES_CL
mov rsi, rcx
mov qword [rsp + 0x38], rax
lea rbp, str.OpenGL_ES_CM
lea rax, str.OpenGL_ES
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov eax, dword [rdx + 4]
mov r13, rdx
mov dword [rcx + 0x204], eax
mov dword [rcx + 0x200], 0x30001
mov ecx, dword [0x1401403e0]
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x14013edc0], r14d
mov rbx, rax
jne 0x140048d56
xor edx, edx
mov ecx, 0x10001
call fcn.14004aaa0
jmp 0x140048da5
mov ecx, dword [0x1401403e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
cmp dword [rsi + 0x200], r14d
jne 0x140048d81
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
call fcn.14004aaa0
jmp 0x140048da5
test rdx, rdx
je 0x140048d9c
mov eax, dword [rax + 0x204]
cmp dword [rsi + 0x204], eax
je 0x140048d9c
xor ecx, ecx
call qword [rdx + 0x248]
mov rcx, rsi
call qword [rsi + 0x248]
mov qword [rsp + 0xa0], rdi
lea rcx, [0x1400e3b38]
mov qword [rsp + 0xa8], r15
call qword [rsi + 0x268]
lea rcx, [0x1400e3bc8]
mov qword [rsi + 0x238], rax
call qword [rsi + 0x268]
mov qword [rsi + 0x240], rax
cmp qword [rsi + 0x238], r14
je 0x140049224
test rax, rax
je 0x140049224
mov ecx, 0x1f02
call rax
mov r15, rax
test rax, rax
jne 0x140048e90
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.14004aaa0
cmp dword [0x14013edc0], r14d
je 0x140048fb4
mov ecx, dword [0x1401403e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r8, rax
test rbx, rbx
je 0x140048e58
cmp dword [rbx + 0x200], r14d
je 0x14004925f
test r8, r8
je 0x140049292
test rbx, rbx
je 0x140048e78
mov eax, dword [rax + 0x204]
cmp dword [rbx + 0x204], eax
je 0x140049297
xor ecx, ecx
call qword [r8 + 0x248]
jmp 0x140049292
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rbp], 0
jne 0x140048e97
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 0x140048ec2
mov rbp, qword [rsp + r14*8 + 0x38]
inc r14
test rbp, rbp
jne 0x140048e90
jmp 0x140048ecf
add r15, rdi
mov dword [rsi + 0x200], 0x30002
lea rax, [rsi + 0x210]
mov rcx, r15
lea r9, [rsi + 0x20c]
mov qword [rsp + 0x20], rax
lea r8, [rsi + 0x208]
lea rdx, str._d._d._d
call fcn.140048800
test eax, eax
jne 0x140048f53
cmp dword [rsi + 0x200], 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.14004aaa0
cmp dword [0x14013edc0], 0
je 0x140048fb4
mov ecx, dword [0x1401403e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x140049272
cmp dword [rbx + 0x200], 0
jmp 0x14004925d
mov eax, dword [rsi + 0x208]
mov r8d, dword [r13 + 8]
cmp eax, r8d
jl 0x1400491e7
jne 0x140048f78
mov ecx, dword [rsi + 0x20c]
cmp ecx, dword [r13 + 0xc]
jl 0x1400491ed
cmp eax, 3
jl 0x140048fc5
lea rcx, str.glGetStringi
call qword [rsi + 0x268]
mov qword [rsi + 0x230], rax
test rax, rax
jne 0x140048fc5
lea rdx, str.Entry_point_retrieval_is_broken
mov ecx, 0x10008
call fcn.14004aaa0
cmp dword [0x14013edc0], 0
jne 0x140048f2f
xor edx, edx
mov ecx, 0x10001
call fcn.14004aaa0
jmp 0x1400492a0
cmp dword [rsi + 0x200], 0x30001
jne 0x1400490a8
cmp dword [rsi + 0x208], 3
jl 0x140049037
lea rdx, [rsp + 0x50]
mov ecx, 0x821e
call qword [rsi + 0x238]
mov eax, dword [rsp + 0x50]
test al, 1
je 0x140049000
mov dword [rsi + 0x214], 1
test al, 2
jne 0x14004901f
lea rcx, str.GL_ARB_debug_output
call fcn.140049360
test eax, eax
je 0x14004907f
cmp dword [r13 + 0x14], 0
je 0x14004907f
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x218], 1
test al, 8
je 0x140049037
mov dword [rsi + 0x21c], 1
mov eax, dword [rsi + 0x208]
cmp eax, 4
jge 0x140049050
cmp eax, 3
jne 0x14004909f
cmp dword [rsi + 0x20c], 2
jl 0x14004909f
lea rdx, [rsp + 0x50]
mov ecx, 0x9126
call qword [rsi + 0x238]
mov eax, dword [rsp + 0x50]
test al, 2
jne 0x140049095
test al, 1
je 0x140049085
mov dword [rsi + 0x220], 0x32001
lea rcx, str.GL_ARB_robustness
jmp 0x1400490af
mov eax, dword [rsp + 0x50]
jmp 0x140049029
lea rcx, str.GL_ARB_compatibility
call fcn.140049360
test eax, eax
je 0x14004909f
mov dword [rsi + 0x220], 0x32002
lea rcx, str.GL_ARB_robustness
jmp 0x1400490af
lea rcx, str.GL_EXT_robustness
call fcn.140049360
test eax, eax
je 0x1400490f0
lea rdx, [rsp + 0x50]
mov ecx, 0x8256
call qword [rsi + 0x238]
mov eax, dword [rsp + 0x50]
cmp eax, 0x8252
jne 0x1400490df
mov dword [rsi + 0x224], 0x31002
jmp 0x1400490f0
cmp eax, 0x8261
jne 0x1400490f0
mov dword [rsi + 0x224], 0x31001
lea rcx, str.GL_KHR_context_flush_control
call fcn.140049360
test eax, eax
je 0x140049135
lea rdx, [rsp + 0x50]
mov ecx, 0x82fb
call qword [rsi + 0x238]
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x140049124
mov dword [rsi + 0x228], 0x35002
jmp 0x140049135
cmp eax, 0x82fc
jne 0x140049135
mov dword [rsi + 0x228], 0x35001
lea rcx, [0x1400e3d70]
call qword [rsi + 0x268]
mov ecx, 0x4000
call rax
cmp dword [rsi + 0x28], 0
je 0x140049158
mov rcx, rsi
call qword [rsi + 0x250]
cmp dword [0x14013edc0], 0
jne 0x140049177
xor edx, edx
mov ecx, 0x10001
call fcn.14004aaa0
mov eax, 1
jmp 0x1400492a2
mov ecx, dword [0x1401403e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x1400491af
cmp dword [rbx + 0x200], 0
jne 0x1400491af
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
call fcn.14004aaa0
mov eax, 1
jmp 0x1400492a2
test rdx, rdx
je 0x1400491cf
test rbx, rbx
je 0x1400491c7
mov eax, dword [rax + 0x204]
cmp dword [rbx + 0x204], eax
je 0x1400491d4
xor ecx, ecx
call qword [rdx + 0x248]
test rbx, rbx
je 0x1400491dd
mov rcx, rbx
call qword [rbx + 0x248]
mov eax, 1
jmp 0x1400492a2
mov ecx, dword [rsi + 0x20c]
cmp dword [rsi + 0x200], 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.14004aaa0
jmp 0x140048fa7
lea rdx, str.Entry_point_retrieval_is_broken
mov ecx, 0x10008
call fcn.14004aaa0
cmp dword [0x14013edc0], r14d
je 0x140048fb4
mov ecx, dword [0x1401403e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
test rbx, rbx
je 0x140049272
cmp dword [rbx + 0x200], r14d
jne 0x140049272
lea rdx, str.Cannot_make_current_with_a_window_that_has_no_OpenGL_or_OpenGL_ES_context
mov ecx, 0x1000a
call fcn.14004aaa0
jmp 0x1400492a0
test rdx, rdx
je 0x140049292
test rbx, rbx
je 0x14004928a
mov eax, dword [rax + 0x204]
cmp dword [rbx + 0x204], eax
je 0x140049297
xor ecx, ecx
call qword [rdx + 0x248]
test rbx, rbx
je 0x1400492a0
mov rcx, rbx
call qword [rbx + 0x248]
xor eax, eax
mov r15, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b5770
add rsp, 0x60
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret