Function at 0x1401559a0
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, 0x1b8
mov r15, rdx
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
lea rdi, [rsp + 0x40]
mov r8d, 0x170
mov rcx, rdi
mov dl, 0xaa
call fcn.1401808d0
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x130], rax
mov byte [rsp + 0x108], 1
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x128], rcx
lea rax, [rsp + 0x138]
lea rcx, [rsp + 0x178]
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x1a0], rax
mov byte [rsp + 0x178], 1
mov qword [rsp + 0x188], rax
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x198], rcx
mov rbx, qword [0x14029f558]
cmp rbx, 1
jbe 0x140156283
mov qword [rsp + 0x1a8], rbx
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140155aa7
mov rcx, qword [rbx]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbx + 8]
jne 0x140155aa7
cmp qword [rax + rcx], 0
jne 0x140155ade
mov rbx, qword [rsp + 0x1a8]
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14015623c
mov rcx, qword [rbx]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rbx + 8]
mov rdx, qword [rbx]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rbx, qword [rsi + 0x20]
add rbx, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140156172
mov r12, qword [rsi + 0x20]
mov r8, qword [r12 + 0x10]
mov esi, 3
test r8, r8
je 0x1401562dc
mov rax, r8
shr rax, 1
movabs r11, 0x5555555555555555
and rax, r11
mov rcx, r8
sub rcx, rax
movabs r13, 0x3333333333333333
mov rax, rcx
and rax, r13
shr rcx, 2
and rcx, r13
add rcx, rax
mov r9, rcx
shr r9, 4
add r9, rcx
movabs rdi, 0xf0f0f0f0f0f0f0f
and r9, rdi
movabs rbp, 0x101010101010101
imul r9, rbp
shr r9, 0x38
cmp r9, 1
jbe 0x140156253
mov rcx, r15
cmp r8, r15
ja 0x140155b87
mov rax, r15
xor edx, edx
div r8
mov rcx, rdx
mov rax, qword [r12 + 8]
mov rax, qword [rax + rcx*8]
test rax, rax
je 0x1401562dc
mov r14, qword [rax]
test r14, r14
je 0x1401562dc
mov rax, qword [r14 + 8]
cmp rax, r15
jne 0x14015612c
cmp qword [r14 + 0x10], r15
jne 0x14015614c
cmp byte [r14 + 0x20], 0
jne 0x1401562d7
mov rsi, qword [r14 + 0x18]
test rsi, rsi
je 0x140155bd8
lock inc dword [rsi + 8]
mov r15, qword [r14 + 0x10]
cmp r15, qword [r12 + 0x38]
jne 0x140155bfc
mov rcx, qword [r12 + 0x30]
xorps xmm0, xmm0
movups xmmword [r12 + 0x30], xmm0
test rcx, rcx
je 0x140155bfc
lock dec dword [rcx + 8]
je 0x1401563a7
mov r9, qword [r14]
mov rcx, qword [r14 + 8]
mov r10, qword [r12 + 0x10]
mov rax, r10
shr rax, 1
and rax, r11
mov rdx, r10
sub rdx, rax
mov rax, rdx
and rax, r13
shr rdx, 2
and rdx, r13
add rdx, rax
mov r15, rdx
shr r15, 4
add r15, rdx
and r15, rdi
imul r15, rbp
shr r15, 0x38
cmp r15, 1
jbe 0x1401562ec
cmp rcx, r10
jb 0x140155c56
mov rax, rcx
xor edx, edx
div r10
mov rcx, rdx
mov rdi, qword [r12 + 8]
mov rax, qword [rdi + rcx*8]
mov r11, rax
mov rax, qword [rax]
cmp rax, r14
jne 0x140155c5f
lea rax, [r12 + 0x18]
cmp r11, rax
je 0x140155c94
mov rax, qword [r11 + 8]
cmp r15d, 1
jbe 0x140156329
cmp rax, r10
jb 0x140155c8f
xor edx, edx
div r10
mov rax, rdx
cmp rax, rcx
je 0x140155cc7
test r9, r9
je 0x140155cbc
mov r8, qword [r9 + 8]
cmp r15d, 1
jbe 0x14015631d
mov rdx, r8
cmp r8, r10
jb 0x140155cb7
mov rax, r8
xor edx, edx
div r10
cmp rdx, rcx
je 0x140155cd4
mov qword [rdi + rcx*8], 0
mov r9, qword [r14]
test r9, r9
je 0x140156234
mov r8, qword [r9 + 8]
cmp r15d, 1
jbe 0x140156312
cmp r8, r10
jb 0x140155cee
mov rax, r8
xor edx, edx
div r10
mov r8, rdx
cmp r8, rcx
je 0x140155cff
mov rax, qword [r12 + 8]
mov qword [rax + r8*8], r11
mov r9, qword [r14]
mov qword [r11], r9
mov qword [r14], 0
dec qword [r12 + 0x20]
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x140155d21
lock dec dword [rcx + 8]
je 0x1401562f8
mov rcx, r14
call fcn.14017b254
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [rsi]
mov rax, qword [rax + 8]
lea rcx, [0x14016c390]
cmp rax, rcx
jne 0x140155e64
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401562ca
mov al, byte [rsi + 0x51]
test al, 1
jne 0x140155fa9
mov al, byte [rsi + 0x48]
test al, 1
jne 0x140155fa9
mov byte [rsi + 0x51], 1
mov rbx, qword [rsi + 0x68]
mov r14, qword [rsi + 0x70]
cmp rbx, r14
jne 0x140156192
cmp byte [rsi + 0x50], 0
jne 0x140155fa9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r15, qword [rsi + 0x10]
lea rbx, [rsi + 0x18]
lea rdx, [rsp + 0x30]
mov qword [rdx - 8], rbx
lea r14, [rsp + 0x28]
mov qword [r14 + 8], r14
mov qword [r14 + 0x10], 1
mov rcx, r14
xor r8d, r8d
call fcn.140104a10
cmp qword [r14 + 0x10], 0
je 0x140155eeb
xor r12d, r12d
mov r13, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + r12*8]
mov r14, qword [rax + 0x10]
test r14, r14
je 0x140156397
add r14, 0x108
mov rcx, r14
call r13
test al, al
je 0x140156246
inc r12
mov rax, qword [rsp + 0x38]
cmp r12, rax
jb 0x140155dde
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
cmp dword [rcx + 4], 4
jne 0x140155efe
test rax, rax
je 0x140155f8c
xor r14d, r14d
mov r12d, 0x108
mov r13, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + r14*8]
mov rcx, qword [rax + 0x10]
add rcx, r12
call r13
inc r14
cmp r14, qword [rsp + 0x38]
jb 0x140155e42
jmp 0x140155f8c
lea rcx, [0x140120420]
cmp rax, rcx
jne 0x140156154
lea rbx, [rsi + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140156335
cmp byte [rsi + 0x21], 0
jne 0x140156342
mov byte [rsi + 0x21], 1
mov rdi, qword [rsi + 0x30]
mov r15, qword [rsi + 0x38]
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
mov qword [rsi + 0x40], 0
mov r13, qword [rsi + 0x58]
mov r12, qword [rsi + 0x50]
cmp r13, r12
jne 0x1401561a7
mov qword [rsi + 0x58], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp rdi, r15
jne 0x1401561d7
test rdi, rdi
je 0x140155fb2
mov rcx, rdi
call fcn.14017b254
jmp 0x140155fb2
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x10]
cmp dword [rcx + 4], 4
je 0x140155f8c
mov r14, qword [rcx + 0xe0]
mov qword [rcx + 0xe0], 0
test r14, r14
je 0x140155f57
lock dec dword [r14 + 8]
jne 0x140155f57
mov rax, qword [r14]
mov rax, qword [rax]
lea rcx, [0x14000d930]
cmp rax, rcx
jne 0x14015617f
lea rax, [0x14026eae0]
mov qword [r14], rax
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x140155f4f
lock dec dword [rcx + 8]
je 0x1401563c7
mov rcx, r14
call fcn.14017b254
cmp qword [rsp + 0x38], 0
je 0x140155f8c
xor r14d, r14d
mov r12d, 0x108
mov r13, qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + r14*8]
mov rcx, qword [rax + 0x10]
add rcx, r12
call r13
inc r14
cmp r14, qword [rsp + 0x38]
jb 0x140155f6f
mov rcx, qword [r15 + 0x20]
mov rdx, rbx
call fcn.140122150
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14015639a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor ebp, ebp
test rsi, rsi
je 0x1401560fc
lock dec dword [rsi + 8]
jne 0x1401560fc
mov rax, qword [rsi]
mov rax, qword [rax + 0xe0]
lea rcx, [fcn.140127660]
cmp rax, rcx
jne 0x14015609e
lea rax, [0x14026ef58]
mov qword [rsi], rax
mov rdi, qword [rsi + 0x68]
test rdi, rdi
je 0x14015600d
mov rbx, qword [rsi + 0x70]
mov rcx, rdi
cmp rbx, rdi
jne 0x1401565cb
mov qword [rsi + 0x70], rdi
call fcn.14017b254
mov rbx, qword [rsi + 0x28]
test rbx, rbx
je 0x1401560f4
lock dec dword [rbx]
jne 0x1401560f4
lea rcx, [rbx + 0xf0]
mov rdx, qword [rbx + 0xf8]
call fcn.14012fda0
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
jne 0x1401563ed
mov r14, qword [rbx + 0xd8]
mov qword [rbx + 0xd8], 0
test r14, r14
jne 0x14015625f
mov rax, qword [rbx + 0xc8]
mov rdi, qword [rbx + 0xd0]
cmp rdi, rax
jne 0x14015640d
mov rcx, qword [rbx + 0xb8]
call fcn.14017b220
mov rdi, qword [rbx + 0x88]
test rdi, rdi
jne 0x140156483
mov rcx, rbx
call fcn.14017b254
jmp 0x1401560f4
lea rcx, [0x14016f690]
cmp rax, rcx
jne 0x140156162
lea rax, [0x14026f258]
mov qword [rsi], rax
lea rcx, [rsi + 0x68]
mov rdx, qword [rsi + 0x70]
call fcn.140120290
mov rdi, qword [rsi + 0x50]
test rdi, rdi
je 0x1401560e7
mov rbx, qword [rsi + 0x58]
mov rcx, rdi
cmp rbx, rdi
jne 0x14015637b
mov qword [rsi + 0x58], rdi
call fcn.14017b254
mov rdi, qword [rsi + 0x30]
test rdi, rdi
jne 0x14015634a
mov rcx, rsi
call fcn.14017b254
lea rcx, [rsp + 0x40]
call fcn.140126c90
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14017e7b0
mov eax, ebp
add rsp, 0x1b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp r9d, 1
jbe 0x1401563e1
cmp rax, r8
jb 0x140156143
xor edx, edx
div r8
mov rax, rdx
cmp rax, rcx
jne 0x1401562dc
mov r14, qword [r14]
jmp 0x140155b9c
mov rcx, rsi
call qword [case.0x1401e7f70.0]
jmp 0x140155fb2
mov rcx, rsi
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x1401560fc
mov rcx, rbx
call fcn.1400fdfc0
jmp 0x140155af7
mov rcx, r14
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x140155f57
mov rcx, qword [rbx]
mov rdx, qword [rsi + 0x58]
call fcn.1400209c0
add rbx, 0x28
jmp 0x140155d80
mov r14, qword [r13 - 8]
add r13, 0xfffffffffffffff0
test r14, r14
je 0x140155eb6
lock dec dword [r14]
jne 0x140155eb6
mov rcx, r14
call fcn.140127500
mov rcx, r14
call fcn.14017b254
jmp 0x140155eb6
mov rbx, rdi
mov r8, qword [rbx]
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0xb0]
mov rdx, rsi
call qword [case.0x1401e7f70.0]
mov rcx, qword [rbx + 8]
call fcn.140156620
add rbx, 0x10
cmp rbx, r15
jne 0x1401561da
test rdi, rdi
je 0x140155fb2
mov rbx, qword [r15 - 8]
add r15, 0xfffffffffffffff0
test rbx, rbx
je 0x140156229
lock dec dword [rbx]
je 0x14015657f
cmp r15, rdi
je 0x140155ede
jmp 0x140156213
xor r9d, r9d
jmp 0x140155cff
call fcn.140002990
jmp 0x140155ac5
mov rcx, r14
call fcn.1400fdfc0
jmp 0x140155e09
lea rcx, [r8 - 1]
and rcx, r15
jmp 0x140155b87
mov rcx, qword [r14 + 0x10]
mov qword [r14 + 0x10], 0
test rcx, rcx
jne 0x140156594
mov rcx, r14
call fcn.14017b254
xor ebp, ebp
jmp 0x140156061
lea rcx, [0x14029f558]
call fcn.140008ab0
test al, al
je 0x1401565aa
mov qword [0x14029f568], 0
lea rbx, [0x14029f560]
mov qword [0x14029f560], 0xffffffffffffffff
mov rcx, rbx
xor edx, edx
call fcn.140002850
mov qword [0x14029f558], rbx
jmp 0x140155a76
mov rcx, rdi
call fcn.1400fdfc0
jmp 0x140155d5e
mov esi, 0x10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ebp, esi
jmp 0x1401560fc
lea rax, [r10 - 1]
and rcx, rax
jmp 0x140155c56
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x140155d21
dec r10
and r8, r10
jmp 0x140155cee
lea rdx, [r10 - 1]
and rdx, r8
jmp 0x140155cb7
lea rdx, [r10 - 1]
and rax, rdx
jmp 0x140155c8f
mov rcx, rbx
call fcn.1400fdfc0
jmp 0x140155e89
mov rcx, rbx
jmp 0x140155fac
mov rbx, qword [rsi + 0x38]
mov rcx, rdi
cmp rbx, rdi
je 0x14015636b
add rbx, 0xfffffffffffffff0
mov rcx, rbx
call fcn.1401c6b70
cmp rbx, rdi
jne 0x140156356
mov rcx, qword [rsi + 0x30]
mov qword [rsi + 0x38], rdi
call fcn.14017b254
xor ebp, ebp
jmp 0x1401560f4
add rbx, 0xfffffffffffffff0
mov rcx, rbx
call fcn.1401c6b70
cmp rbx, rdi
jne 0x14015637b
mov rcx, qword [rsi + 0x50]
xor ebp, ebp
jmp 0x1401560de
int3
mov rcx, rdi
call fcn.1400fdfc0
jmp 0x140155fa9
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
mov edx, 1
mov r15, r11
call qword [case.0x1401e7f70.0]
mov r11, r15
jmp 0x140155bfc
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x140155f4f
lea rdx, [r8 - 1]
and rax, rdx
jmp 0x140156143
lock dec dword [rcx + 8]
jne 0x140156046
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x140156046
mov rcx, qword [rbx + 0xc0]
jbe 0x1401564bd
cmp rcx, rdi
jb 0x1401565b6
cmp rcx, rax
jb 0x1401565b9
cmp rax, rdi
jg 0x1401565bc
mov r14, qword [rbx + 0xb8]
shl rdi, 3
lea rdi, [rdi + rdi*2]
shl rax, 3
lea r15, [rax + rax*2]
mov ebp, 0
mov rcx, qword [r14 + r15 + 0x10]
mov qword [r14 + r15 + 0x10], 0
test rcx, rcx
je 0x140156475
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401e7f70.0]
add r15, 0x18
cmp rdi, r15
jne 0x140156451
jmp 0x140156078
mov r14, qword [rbx + 0x90]
mov rcx, rdi
cmp r14, rdi
je 0x1401564aa
add r14, 0xfffffffffffffff8
mov rcx, r14
call fcn.140171310
cmp r14, rdi
jne 0x140156492
mov rcx, qword [rbx + 0x88]
mov qword [rbx + 0x90], rdi
call fcn.14017b254
xor ebp, ebp
jmp 0x140156094
cmp rcx, rax
jb 0x1401565bf
jl 0x1401565c2
je 0x140156519
mov r14, qword [rbx + 0xb8]
shl rcx, 3
lea r15, [rcx + rcx*2]
shl rax, 3
lea r12, [rax + rax*2]
mov rcx, qword [r14 + r12 + 0x10]
mov qword [r14 + r12 + 0x10], 0
test rcx, rcx
je 0x140156509
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401e7f70.0]
add r12, 0x18
cmp r15, r12
jne 0x1401564e5
mov rax, qword [rbx + 0xc0]
cmp rax, rdi
jb 0x1401565c5
test rdi, rdi
js 0x1401565c8
mov ebp, 0
je 0x140156078
mov r14, qword [rbx + 0xb8]
shl rdi, 3
lea rdi, [rdi + rdi*2]
xor r15d, r15d
mov ebp, 0
mov rcx, qword [r14 + r15 + 0x10]
mov qword [r14 + r15 + 0x10], 0
test rcx, rcx
je 0x140156571
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401e7f70.0]
add r15, 0x18
cmp rdi, r15
jne 0x14015654d
jmp 0x140156078
mov rcx, rbx
call fcn.140127500
mov rcx, rbx
call fcn.14017b254
jmp 0x140156229
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x140156274
mov rbx, qword [0x14029f558]
jmp 0x140155a76
int3
int3
int3
int3
int3
int3
int3
mov r14, rbx
add rbx, 0xffffffffffffffd8
lea rcx, [r14 - 0x18]
mov rdx, qword [r14 - 0x10]
call fcn.140120290
mov rcx, qword [r14 - 0x20]
test rcx, rcx
je 0x1401565ee
lock dec dword [rcx + 8]
je 0x1401565fc
cmp rbx, rdi
jne 0x1401565cb
mov rcx, qword [rsi + 0x68]
jmp 0x140156004
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x1401565ee