Function at 0x14000b4b0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r12, rdx
mov rbx, rcx
mov rax, qword [0x1400ff028]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp rcx, 0x10
ja 0x14000b61b
lea rax, [rbx - 1]
test rbx, rax
sete al
test rbx, rbx
setne cl
test cl, al
je 0x14000bbc3
mov r15, qword [0x140105600]
test r15, r15
je 0x14000b943
movabs rax, 0xaaaaaaaaaaaaaaaa
mov edx, 0x40
mov ecx, 0x40
test r12, r12
je 0x14000b528
bsr rcx, r12
xor rcx, 0x3f
sub rdx, rcx
lea rcx, [0x1400edaf0]
mov cl, byte [rdx + rcx]
mov rbp, r12
shr rbp, cl
and ebp, 7
lea rcx, [0x1400edb40]
mov rcx, qword [rcx + rdx*8]
and rcx, r12
lea rdx, [rdx*8]
add rdx, rbp
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x1400ed2d8]
movzx r14d, word [rcx + rdx*2 + 0x400]
mov byte [rsp + 0x4f], 0
mov qword [rsp + 0x40], rax
cmp byte [r15], 2
jne 0x14000b58d
mov al, byte [0x140102470]
cmp al, 2
je 0x14000bb3f
cmp byte [r15 + 2], 0
je 0x14000b861
mov esi, dword [0x1401085a4]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test edi, edi
jne 0x14000b847
cmp rsi, 2
jb 0x14000b95d
inc qword [rsi + 0x5a0]
cmp r14w, 0x29
jae 0x14000b98d
mov rbx, r14
shl rbx, 4
mov rdi, rsi
add rdi, rbx
mov rbp, qword [rsi + rbx]
test rbp, rbp
je 0x14000baeb
inc qword [rsi + 0x5a8]
mov rax, qword [rbp]
test rax, rax
je 0x14000b68b
mov rcx, rax
not rcx
cmp qword [rbp + 8], rcx
jne 0x14000bae6
bswap rax
prefetcht0 byte [rax]
jmp 0x14000b68d
mov r14, qword [0x140105600]
test r14, r14
je 0x14000b950
lea r13, [rbx - 1]
test rbx, r13
sete al
test rbx, rbx
setne cl
test cl, al
je 0x14000bbc6
cmp rbx, 0x100001
jae 0x14000bbc9
cmp rbx, 0x4001
jb 0x14000b666
cmp r12, 0xf0001
jae 0x14000bbcc
cmp rbx, 0x4000
jbe 0x14000b674
mov r15, r12
jmp 0x14000b6d8
cmp r12, rbx
jb 0x14000b6c7
mov rax, r12
dec rax
je 0x14000b6b8
bsr rcx, rax
xor rcx, 0x3f
jmp 0x14000b6bd
xor eax, eax
dec byte [rsi + rbx + 8]
mov qword [rdi], rax
movzx eax, word [rsi + rbx + 0xa]
mov qword [rsp + 0x40], rax
movzx eax, word [rsi + rbx + 0xa]
sub qword [rsi + 0x590], rax
test rbp, rbp
jne 0x14000b826
jmp 0x14000b99b
mov ecx, 0x40
neg cl
mov ebx, 1
shl rbx, cl
mov r15, rbx
mov ebx, 0x4000
cmp r15, r12
jb 0x14000bb51
movabs rax, 0xaaaaaaaaaaaaaaaa
mov edx, 0x40
mov ecx, 0x40
test r15, r15
je 0x14000b6f9
bsr rcx, r15
xor rcx, 0x3f
sub rdx, rcx
lea rcx, [0x1400edaf0]
mov cl, byte [rdx + rcx]
mov rbp, r15
shr rbp, cl
and ebp, 7
lea rcx, [0x1400edb40]
mov rcx, qword [rcx + rdx*8]
and rcx, r15
lea rdx, [rdx*8]
add rdx, rbp
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x1400ed2d8]
movzx r12d, word [rcx + rdx*2 + 0x400]
mov byte [rsp + 0x4f], 0
mov qword [rsp + 0x40], rax
cmp byte [r14], 2
jne 0x14000b75e
mov al, byte [0x140102470]
cmp al, 2
je 0x14000bb59
cmp byte [r14 + 2], 0
je 0x14000b8b6
cmp rbx, 0x4000
ja 0x14000b8b6
mov ebx, dword [0x1401085a4]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test edi, edi
jne 0x14000b854
cmp rbx, 2
jb 0x14000b975
inc qword [rbx + 0x5a0]
cmp r12w, 0x29
jae 0x14000ba3c
mov rsi, r12
shl rsi, 4
mov rdi, rbx
add rdi, rsi
mov rbp, qword [rbx + rsi]
test rbp, rbp
je 0x14000bb15
inc qword [rbx + 0x5a8]
mov rax, qword [rbp]
test rax, rax
je 0x14000b7f5
mov rcx, rax
not rcx
cmp qword [rbp + 8], rcx
jne 0x14000bae6
bswap rax
prefetcht0 byte [rax]
jmp 0x14000b7f7
xor eax, eax
dec byte [rbx + rsi + 8]
mov qword [rdi], rax
movzx eax, word [rbx + rsi + 0xa]
mov qword [rsp + 0x40], rax
movzx eax, word [rbx + rsi + 0xa]
sub qword [rbx + 0x590], rax
test rbp, rbp
je 0x14000ba4a
test r13, rbp
jne 0x14000bbcf
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140069b80
mov rax, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000b5b9
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000b797
lea rax, [r14 + r14*4]
lea rsi, [r15 + rax*8]
add rsi, 0x10
lea r14, [r15 + 8]
mov edi, 1
xor ebx, ebx
mov rbp, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r13d, 0x40
mov rcx, r14
call rbp
test al, al
jne 0x14000b9f0
mov eax, edi
test edi, edi
jle 0x14000b8a0
pause
dec eax
jne 0x14000b898
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, r13d
cmp ebx, 0x3e8
jl 0x14000b885
jmp 0x14000b9e7
lea rax, [r12 + r12*4]
lea r12, [r14 + rax*8]
add r12, 0x10
lea rsi, [r14 + 8]
mov edi, 1
mov dword [rsp + 0x3c], 0
mov rbp, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, rsi
call rbp
test al, al
jne 0x14000b913
mov eax, edi
test edi, edi
jle 0x14000b8f3
pause
dec eax
jne 0x14000b8e9
add dword [rsp + 0x3c], edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp dword [rsp + 0x3c], 0x3e8
jl 0x14000b8da
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
cmp rbx, 0x4000
ja 0x14000b92c
mov rax, qword [r12]
mov rbp, qword [rax]
test rbp, rbp
jne 0x14000baad
lea rax, [rsp + 0x4f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov rcx, r12
jmp 0x14000bbad
call fcn.1400969a0
mov r15, rax
jmp 0x14000b507
call fcn.1400969a0
mov r14, rax
jmp 0x14000b62b
lea r8, [rsp + 0x40]
mov rcx, r15
mov edx, r14d
call fcn.140005610
mov rbp, rax
jmp 0x14000b6aa
lea r8, [rsp + 0x40]
mov rcx, r14
mov edx, r12d
call fcn.140005610
mov rbp, rax
jmp 0x14000b814
inc qword [rsi + 0x5c0]
inc qword [rsi + 0x5b0]
lea rax, [r14 + r14*4]
lea rsi, [r15 + rax*8]
add rsi, 0x10
lea r14, [r15 + 8]
mov edi, 1
xor ebx, ebx
mov rbp, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov r13d, 0x40
mov rcx, r14
call rbp
test al, al
jne 0x14000b9f0
mov eax, edi
test edi, edi
jle 0x14000b9d6
pause
dec eax
jne 0x14000b9ce
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, r13d
cmp ebx, 0x3e8
jl 0x14000b9bf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [rsi]
mov rbp, qword [rax]
test rbp, rbp
je 0x14000bb6b
mov byte [rsp + 0x4f], 0
mov rcx, qword [rbp]
test rcx, rcx
je 0x14000ba25
mov rdx, rcx
not rdx
cmp qword [rbp + 8], rdx
jne 0x14000bae6
bswap rcx
prefetcht0 byte [rcx]
jmp 0x14000ba27
xor ecx, ecx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14000b826
inc qword [rbx + 0x5c0]
inc qword [rbx + 0x5b0]
lea rax, [r12 + r12*4]
lea rbx, [r14 + rax*8]
add rbx, 0x10
lea rsi, [r14 + 8]
mov edi, 1
xor ebp, ebp
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, rsi
call r12
test al, al
jne 0x14000ba9e
mov eax, edi
test edi, edi
jle 0x14000ba80
pause
dec eax
jne 0x14000ba78
add ebp, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebp, 0x3e8
jl 0x14000ba68
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [rbx]
mov rbp, qword [rax]
test rbp, rbp
je 0x14000bb97
mov byte [rsp + 0x4f], 0
mov rcx, qword [rbp]
test rcx, rcx
je 0x14000bacf
mov rdx, rcx
not rdx
cmp qword [rbp + 8], rdx
jne 0x14000bae6
bswap rcx
prefetcht0 byte [rcx]
jmp 0x14000bad1
xor ecx, ecx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x14000b81d
call fcn.140094cc0
inc qword [rsi + 0x5b8]
inc qword [rsi + 0x5b0]
mov rcx, rsi
mov rdx, r14
call fcn.140039f40
mov rbp, qword [rdi]
test rbp, rbp
jne 0x14000b5f6
jmp 0x14000b99b
inc qword [rbx + 0x5b8]
inc qword [rbx + 0x5b0]
mov rcx, rbx
mov rdx, r12
call fcn.140039f40
mov rbp, qword [rdi]
test rbp, rbp
jne 0x14000b7d4
jmp 0x14000ba4a
call fcn.140091850
mov rcx, rax
call fcn.1400a7640
jmp 0x14000b58d
mov rcx, r12
call fcn.1400a7610
call fcn.140091850
mov rcx, rax
call fcn.1400a7640
jmp 0x14000b75e
lea rax, [rsp + 0x4f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, rsi
mov rdx, r15
xor r8d, r8d
mov r9, r12
call fcn.140003210
mov rbp, rax
jmp 0x14000ba2e
lea rax, [rsp + 0x4f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
mov r9, r15
call fcn.140003210
mov rbp, rax
jmp 0x14000bad8
int3
int3
int3
int3
int3