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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rcx
mov r15, r8
mov ecx, dword [0x14003d17c]
mov rsi, rdx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
or ebx, 0xffffffff
mov rdi, rax
mov dword [rbp + 0x48], ebx
test rax, rax
jne 0x14002fc80
mov ebx, dword [0x14003d17c]
lea rdx, [rbp - 0x10]
and dword [rbp - 0x10], eax
lea rdi, [rbp - 0x10]
mov ecx, ebx
mov dword [rbp + 0x48], ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
inc dword [rdi]
mov r10, qword [0x14003d048]
lea rax, [0x14003d048]
lea rdx, [0x140035650]
mov r14d, 0x1df
cmp r10, rax
je 0x14002fce0
test byte [r10 + 0x1c], 1
je 0x14002fce0
mov eax, dword [rdi]
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002fcc0
mov eax, ecx
mov ecx, r14d
sub rcx, rax
jmp 0x14002fcc2
xor ecx, ecx
lea r9, [rcx + rdx]
mov qword [rsp + 0x20], r15
mov rcx, qword [r10 + 0x10]
lea r8, [0x140037220]
mov edx, Ordinal_20
call fcn.140004a7c
mov rax, qword [rsi]
lea rdx, [rbp - 0x20]
and qword [rbp - 0x20], 0
mov rcx, rsi
mov rax, qword [rax + 0x38]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14002fe00
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp + 0x38]
mov dword [rbp + 0x38], 1
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140034e68]
mov esi, eax
test eax, eax
js 0x14002fe00
lea rbx, [0x14003d048]
cmp dword [rbp + 0x38], 0
je 0x14002fdfd
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp - 0x18]
and qword [rbp - 0x18], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140034e68]
mov r8d, eax
test eax, eax
js 0x14002fd71
mov r8, qword [rbp - 0x18]
mov rdx, r15
mov rcx, r12
call fcn.14002f880
mov r8d, eax
test eax, eax
jns 0x14002fdc3
mov r10, qword [0x14003d048]
cmp r10, rbx
je 0x14002fdc3
test byte [r10 + 0x1c], 0x10
je 0x14002fdc3
mov eax, dword [rdi]
inc eax
lea ecx, [rax + rax*4]
cmp ecx, 0x1e1
ja 0x14002fd9d
mov eax, ecx
mov rcx, r14
sub rcx, rax
jmp 0x14002fd9f
xor ecx, ecx
mov dword [rsp + 0x20], r8d
lea r9, [0x140035650]
add r9, rcx
lea r8, [0x140037220]
mov rcx, qword [r10 + 0x10]
mov edx, Ordinal_20
call fcn.140001304
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140034e68]
mov rcx, qword [rbp - 0x18]
mov esi, eax
test rcx, rcx
je 0x14002fdf5
and qword [rbp - 0x18], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
test esi, esi
jns 0x14002fd30
mov ebx, dword [rbp + 0x48]
mov rcx, qword [0x14003d048]
lea rax, [0x14003d048]
cmp rcx, rax
je 0x14002fe53
test byte [rcx + 0x1c], 1
je 0x14002fe53
mov eax, dword [rdi]
lea edx, [rax + rax*4]
cmp edx, 0x1e1
ja 0x14002fe2d
mov eax, edx
sub r14, rax
jmp 0x14002fe30
xor r14d, r14d
mov rcx, qword [rcx + 0x10]
lea r9, [0x140035650]
add r9, r14
mov dword [rsp + 0x20], esi
mov edx, Ordinal_20
lea r8, [0x140037220]
call fcn.140001304
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14002fe6e
and qword [rbp - 0x20], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140034e68]
or eax, 0xffffffff
add dword [rdi], eax
cmp ebx, eax
je 0x14002fe8e
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsGetValue]
test rax, rax
je 0x14002fe8e
xor edx, edx
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
lea r11, [rsp + 0x50]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret