Function at 0x14001ea7c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbp, rcx
mov r12b, r8b
mov ecx, dword [0x14003d17c]
mov esi, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rdi, rax
test rax, rax
jne 0x14001eacd
mov ebx, dword [0x14003d17c]
lea rdx, [rsp + 0x70]
and dword [rsp + 0x70], eax
lea rdi, [rsp + 0x70]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rdi]
mov rcx, qword [0x14003d048]
lea r15, [0x14003d048]
lea r9, [0x140035650]
mov r8d, 0x1e1
lea r14d, [r8 - 2]
cmp rcx, r15
je 0x14001eb40
test byte [rcx + 0x1c], 1
je 0x14001eb40
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, r8d
ja 0x14001eb0d
mov eax, edx
mov edx, r14d
sub rdx, rax
jmp 0x14001eb0f
xor edx, edx
mov rcx, qword [rcx + 0x10]
add r9, rdx
movzx eax, r12b
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
call fcn.14001ab0c
mov rcx, qword [0x14003d048]
lea r9, [0x140035650]
mov r8d, 0x1e1
mov r15d, dword [rbp + 0x90]
cmp esi, r15d
jl 0x14001ec2d
lea eax, [r15 - 6]
cmp eax, 1
ja 0x14001ebaa
cmp esi, 8
jne 0x14001ebaa
lea r12, [0x14003d048]
cmp rcx, r12
je 0x14001ecc2
test byte [rcx + 0x1c], sil
je 0x14001ec7c
mov eax, dword [rdi]
inc eax
lea edx, [rax + rax*4]
cmp edx, r8d
ja 0x14001eb8e
mov eax, edx
mov rdx, r14
sub rdx, rax
jmp 0x14001eb90
xor edx, edx
add r9, rdx
mov dword [rsp + 0x28], r15d
mov edx, 0x47
mov dword [rsp + 0x20], 8
jmp 0x14001ec6c
mov dword [rbp + 0x90], esi
test r12b, r12b
jne 0x14001ebd1
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14001ebd1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8064
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x14001ebd9
mov rcx, rbp
call fcn.14001ecfc
test r15d, r15d
jne 0x14001ebf6
cmp esi, 7
jne 0x14001ebf6
mov dl, 1
mov rcx, rbp
call fcn.1400212f8
lea r12, [0x14003d048]
jmp 0x14001ec75
lea eax, [rsi - 6]
cmp eax, 1
jbe 0x14001ec13
cmp esi, 8
jne 0x14001ebed
mov rcx, rbp
call fcn.140021654
test al, al
jne 0x14001ebed
xor edx, edx
jmp 0x14001ebe5
mov rcx, qword [rbp + 0x60]
xor r9d, r9d
mov edx, 0x7b4
mov r8d, 0x3e8
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x14001ebed
lea r12, [0x14003d048]
cmp rcx, r12
je 0x14001ecc2
test byte [rcx + 0x1c], 8
je 0x14001ec7c
mov eax, dword [rdi]
inc eax
lea edx, [rax + rax*4]
cmp edx, r8d
ja 0x14001ec59
mov eax, edx
mov rdx, r14
sub rdx, rax
jmp 0x14001ec5b
xor edx, edx
add r9, rdx
mov dword [rsp + 0x28], r15d
mov edx, 0x48
mov dword [rsp + 0x20], esi
mov rcx, qword [rcx + 0x10]
call fcn.14001aa00
mov rcx, qword [0x14003d048]
cmp rcx, r12
je 0x14001ecc2
test byte [rcx + 0x1c], 1
je 0x14001ecc2
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14001ec9b
mov eax, edx
sub r14, rax
jmp 0x14001ec9e
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r14
mov qword [rsp + 0x20], rbp
mov edx, 0x49
lea r8, [0x140036cb8]
call fcn.140001370
or eax, 0xffffffff
add dword [rdi], eax
cmp ebx, eax
je 0x14001ece2
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14001ece2
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret