Function at 0x140120f80
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x88], rax
test byte [0x14029c020], 0x19
jne 0x140121235
call fcn.14017b234
mov ebp, dword [rax]
call fcn.14017b234
mov dword [rax], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [0x1402a4528]
cmp rbx, 1
jbe 0x1401211c1
mov r14, qword [rsi + 8]
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140121208
mov rcx, qword [rbx]
shl rcx, 4
mov qword [rax + rcx], r14
mov ecx, dword [rbx + 8]
mov rdx, qword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov r14, qword [rsi]
test r14, r14
je 0x140121028
cmp qword [rsi + 8], 0
je 0x1401210bb
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14017b234
mov dword [rax], ebp
cmp byte [rsi + 0x38], 0
je 0x14012104a
lea rcx, [rsi + 0x40]
call fcn.1401212e0
mov byte [rsi + 0x38], 0
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14012106e
mov ecx, dword [rsi + 0x20]
cmp dword [rax + 0x18], ecx
jbe 0x14012106e
mov rax, qword [rax + 0x10]
shl rcx, 7
cmp dword [rax + rcx + 0x68], 0
jne 0x140121145
mov rcx, qword [rsi + 0x28]
mov qword [rsi + 0x28], 0
test rcx, rcx
jne 0x140121136
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14012109c
mov rcx, qword [rax + 8]
lock dec dword [rcx + 0x38]
mov rax, qword [rax + 8]
lock inc dword [rax + 0x3c]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14017e7b0
nop
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rbx, qword [r14 + 0x28]
add rbx, 0x28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140121185
mov qword [r14 + 0x20], 0
cmp byte [r14 + 0x3a], 0
jne 0x14012110a
cmp byte [r14 + 0x38], 0
mov rax, qword [r14 + 0x28]
jne 0x140121192
dec dword [rax + 0x120]
cmp byte [r14 + 0x18], 0
je 0x1401212b9
cmp byte [r14 + 0x19], 0
je 0x14012111f
mov word [r14 + 0x38], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x140121028
cmp byte [r14 + 0x39], 0
mov rcx, qword [r14 + 0x28]
jne 0x1401212bb
dec dword [rcx + 0x124]
jmp 0x14012110a
mov edx, 1
call fcn.1401bb2c0
jmp 0x140121083
mov rbx, qword [0x1402a0ca0]
lea rdi, [rbx + 0xc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140121228
mov rcx, qword [rsi + 0x18]
sub rbx, 0xffffffffffffff80
mov edx, dword [rsi + 0x20]
mov r8, rbx
call fcn.1401bcf10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14012106e
mov rcx, rbx
call fcn.1400fdfc0
jmp 0x1401210d4
mov rcx, qword [rax + 0x40]
mov rdx, qword [rax + 0x100]
dec rdx
mov qword [rax + 0x100], rdx
cmp rcx, qword [rax + 0x48]
je 0x1401211b6
cmp qword [rax + 0x110], rdx
jae 0x14012121b
mov word [rax + 0x78], 0
jmp 0x1401210f8
lea rcx, [0x1402a4528]
call fcn.140008ab0
test al, al
je 0x1401212cc
mov qword [0x1402a4538], 0
lea rbx, [0x1402a4530]
mov qword [0x1402a4530], 0xffffffffffffffff
mov rcx, rbx
xor edx, edx
call fcn.140002850
mov qword [0x1402a4528], rbx
jmp 0x140120fe2
test r14, r14
je 0x140121015
call fcn.140002990
jmp 0x140120ffc
movzx ecx, word [rcx + 0x10]
mov word [rax + 0x78], cx
jmp 0x1401210f8
mov rcx, rdi
call fcn.1400fdfc0
jmp 0x140121164
movaps xmm0, xmmword [0x140270690]
lea rdi, [rsp + 0x60]
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14029c020]
lea r9, [0x14027250a]
mov rcx, rdi
mov dl, 0x45
call fcn.1400fdfb0
mov rbx, qword [rdi]
test rbx, rbx
je 0x1401212aa
mov bpl, byte [rsp + 0x78]
mov r14, qword [rsp + 0x68]
lea rdi, [rsp + 0x38]
mov rcx, rdi
xor edx, edx
call fcn.140178b40
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0
mov byte [rdi + 0x20], bpl
mov rcx, rdi
call fcn.1400fe100
lea rcx, [rsp + 0x60]
call fcn.1400c9740
jmp 0x140120faf
ud2
dec qword [rcx + 0x108]
call fcn.140205940
jmp 0x14012110a
mov rbx, qword [0x1402a4528]
jmp 0x140120fe2