Function at 0x14014f9c0
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 [0x140287028]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
lea rdi, [rsp + 0x40]
mov r8d, 0x170
mov rcx, rdi
mov dl, 0xaa
call fcn.140177800
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 [0x1402983b8]
cmp rbx, 1
jbe 0x1401502d1
mov qword [rsp + 0x1a8], rbx
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14014fac7
mov rcx, qword [rbx]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbx + 8]
jne 0x14014fac7
cmp qword [rax + rcx], 0
jne 0x14014fafe
mov rbx, qword [rsp + 0x1a8]
mov ecx, dword [0x140288f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14015028a
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 0x1401501c0
mov r12, qword [rsi + 0x20]
mov r8, qword [r12 + 0x10]
mov esi, 3
test r8, r8
je 0x14015032a
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 0x1401502a1
mov rcx, r15
cmp r8, r15
ja 0x14014fba7
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 0x14015032a
mov r14, qword [rax]
test r14, r14
je 0x14015032a
mov rax, qword [r14 + 8]
cmp rax, r15
jne 0x14015017a
cmp qword [r14 + 0x10], r15
jne 0x14015019a
cmp byte [r14 + 0x20], 0
jne 0x140150325
mov rsi, qword [r14 + 0x18]
test rsi, rsi
je 0x14014fbf8
lock inc dword [rsi + 8]
mov r15, qword [r14 + 0x10]
cmp r15, qword [r12 + 0x38]
jne 0x14014fc1c
mov rcx, qword [r12 + 0x30]
xorps xmm0, xmm0
movups xmmword [r12 + 0x30], xmm0
test rcx, rcx
je 0x14014fc1c
lock dec dword [rcx + 8]
je 0x1401503f5
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 0x14015033a
cmp rcx, r10
jb 0x14014fc76
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 0x14014fc7f
lea rax, [r12 + 0x18]
cmp r11, rax
je 0x14014fcb4
mov rax, qword [r11 + 8]
cmp r15d, 1
jbe 0x140150377
cmp rax, r10
jb 0x14014fcaf
xor edx, edx
div r10
mov rax, rdx
cmp rax, rcx
je 0x14014fce7
test r9, r9
je 0x14014fcdc
mov r8, qword [r9 + 8]
cmp r15d, 1
jbe 0x14015036b
mov rdx, r8
cmp r8, r10
jb 0x14014fcd7
mov rax, r8
xor edx, edx
div r10
cmp rdx, rcx
je 0x14014fcf4
mov qword [rdi + rcx*8], 0
mov r9, qword [r14]
test r9, r9
je 0x140150282
mov r8, qword [r9 + 8]
cmp r15d, 1
jbe 0x140150360
cmp r8, r10
jb 0x14014fd0e
mov rax, r8
xor edx, edx
div r10
mov r8, rdx
cmp r8, rcx
je 0x14014fd1f
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 0x14014fd41
lock dec dword [rcx + 8]
je 0x140150346
mov rcx, r14
call fcn.140172a44
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, qword [rsi]
mov rax, qword [rax + 8]
lea rcx, [0x14015dc90]
cmp rax, rcx
jne 0x14014fe84
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140150318
mov al, byte [rsi + 0x51]
test al, 1
jne 0x14014ffc9
mov al, byte [rsi + 0x48]
test al, 1
jne 0x14014ffc9
mov byte [rsi + 0x51], 1
mov rbx, qword [rsi + 0x68]
mov r14, qword [rsi + 0x70]
cmp rbx, r14
jne 0x1401501e0
cmp byte [rsi + 0x50], 0
jne 0x14014ffc9
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.1400f1f40
cmp qword [r14 + 0x10], 0
je 0x14014ff0b
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 0x1401503e5
add r14, 0x108
mov rcx, r14
call r13
test al, al
je 0x140150294
inc r12
mov rax, qword [rsp + 0x38]
cmp r12, rax
jb 0x14014fdfe
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
cmp dword [rcx + 4], 4
jne 0x14014ff1e
test rax, rax
je 0x14014ffac
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 0x14014fe62
jmp 0x14014ffac
lea rcx, [0x14010ca50]
cmp rax, rcx
jne 0x1401501a2
lea rbx, [rsi + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140150383
cmp byte [rsi + 0x21], 0
jne 0x140150390
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 0x1401501f5
mov qword [rsi + 0x58], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp rdi, r15
jne 0x140150225
test rdi, rdi
je 0x14014ffd2
mov rcx, rdi
call fcn.140172a44
jmp 0x14014ffd2
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x10]
cmp dword [rcx + 4], 4
je 0x14014ffac
mov r14, qword [rcx + 0xe0]
mov qword [rcx + 0xe0], 0
test r14, r14
je 0x14014ff77
lock dec dword [r14 + 8]
jne 0x14014ff77
mov rax, qword [r14]
mov rax, qword [rax]
lea rcx, [0x14000fc80]
cmp rax, rcx
jne 0x1401501cd
lea rax, [0x14025f768]
mov qword [r14], rax
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x14014ff6f
lock dec dword [rcx + 8]
je 0x140150415
mov rcx, r14
call fcn.140172a44
cmp qword [rsp + 0x38], 0
je 0x14014ffac
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 0x14014ff8f
mov rcx, qword [r15 + 0x20]
mov rdx, rbx
call fcn.140113be0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401503e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor ebp, ebp
test rsi, rsi
je 0x14015014a
lock dec dword [rsi + 8]
jne 0x14015014a
mov rax, qword [rsi]
mov rax, qword [rax + 0xe0]
lea rcx, [fcn.14011f090]
cmp rax, rcx
jne 0x1401500ec
lea rax, [0x14025fbe0]
mov qword [rsi], rax
mov rdi, qword [rsi + 0x68]
test rdi, rdi
je 0x14015002d
mov rbx, qword [rsi + 0x70]
mov rcx, rdi
cmp rbx, rdi
jne 0x140150619
mov qword [rsi + 0x70], rdi
call fcn.140172a44
mov rcx, qword [rsi + 0x58]
mov rax, qword [0x14028a5a0]
and rax, rcx
cmp rax, qword [0x14028a588]
jne 0x140150049
call fcn.1400ebe70
mov qword [rsi + 0x58], 0
mov rbx, qword [rsi + 0x28]
test rbx, rbx
je 0x140150142
lock dec dword [rbx]
jne 0x140150142
lea rcx, [rbx + 0xf0]
mov rdx, qword [rbx + 0xf8]
call fcn.1401271d0
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
jne 0x14015043b
mov r14, qword [rbx + 0xd8]
mov qword [rbx + 0xd8], 0
test r14, r14
jne 0x1401502ad
mov rax, qword [rbx + 0xc8]
mov rdi, qword [rbx + 0xd0]
cmp rdi, rax
jne 0x14015045b
mov rdx, qword [rbx + 0xb8]
lea rcx, fcn.1400fe7c0
xor r8d, r8d
call fcn.1400fd880
mov rdi, qword [rbx + 0x88]
test rdi, rdi
jne 0x1401504d1
mov rcx, rbx
call fcn.140172a44
jmp 0x140150142
lea rcx, [0x140160e10]
cmp rax, rcx
jne 0x1401501b0
lea rax, [0x14025fee0]
mov qword [rsi], rax
lea rcx, [rsi + 0x68]
mov rdx, qword [rsi + 0x70]
call fcn.14010c9e0
mov rdi, qword [rsi + 0x50]
test rdi, rdi
je 0x140150135
mov rbx, qword [rsi + 0x58]
mov rcx, rdi
cmp rbx, rdi
jne 0x1401503c9
mov qword [rsi + 0x58], rdi
call fcn.140172a44
mov rdi, qword [rsi + 0x30]
test rdi, rdi
jne 0x140150398
mov rcx, rsi
call fcn.140172a44
lea rcx, [rsp + 0x40]
call fcn.14011e6a0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401756e0
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 0x14015042f
cmp rax, r8
jb 0x140150191
xor edx, edx
div r8
mov rax, rdx
cmp rax, rcx
jne 0x14015032a
mov r14, qword [r14]
jmp 0x14014fbbc
mov rcx, rsi
call qword [case.0x1401d7990.0]
jmp 0x14014ffd2
mov rcx, rsi
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x14015014a
mov rcx, rbx
call fcn.1400ec2e0
jmp 0x14014fb17
mov rcx, r14
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x14014ff77
mov rcx, qword [rbx]
mov rdx, qword [rsi + 0x58]
call fcn.140022480
add rbx, 0x28
jmp 0x14014fda0
mov r14, qword [r13 - 8]
add r13, 0xfffffffffffffff0
test r14, r14
je 0x14014fed6
lock dec dword [r14]
jne 0x14014fed6
mov rcx, r14
call fcn.14011ef20
mov rcx, r14
call fcn.140172a44
jmp 0x14014fed6
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.0x1401d7990.0]
mov rcx, qword [rbx + 8]
call fcn.14014a020
add rbx, 0x10
cmp rbx, r15
jne 0x140150228
test rdi, rdi
je 0x14014ffd2
mov rbx, qword [r15 - 8]
add r15, 0xfffffffffffffff0
test rbx, rbx
je 0x140150277
lock dec dword [rbx]
je 0x1401505cd
cmp r15, rdi
je 0x14014fefe
jmp 0x140150261
xor r9d, r9d
jmp 0x14014fd1f
call fcn.14003bc30
jmp 0x14014fae5
mov rcx, r14
call fcn.1400ec2e0
jmp 0x14014fe29
lea rcx, [r8 - 1]
and rcx, r15
jmp 0x14014fba7
mov rcx, qword [r14 + 0x10]
mov qword [r14 + 0x10], 0
test rcx, rcx
jne 0x1401505e2
mov rcx, r14
call fcn.140172a44
xor ebp, ebp
jmp 0x1401500a5
lea rcx, [0x1402983b8]
call fcn.140007880
test al, al
je 0x1401505f8
mov qword [0x1402983c8], 0
lea rbx, [0x1402983c0]
mov qword [0x1402983c0], 0xffffffffffffffff
mov rcx, rbx
xor edx, edx
call fcn.140002400
mov qword [0x1402983b8], rbx
jmp 0x14014fa96
mov rcx, rdi
call fcn.1400ec2e0
jmp 0x14014fd7e
mov esi, 0x10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ebp, esi
jmp 0x14015014a
lea rax, [r10 - 1]
and rcx, rax
jmp 0x14014fc76
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x14014fd41
dec r10
and r8, r10
jmp 0x14014fd0e
lea rdx, [r10 - 1]
and rdx, r8
jmp 0x14014fcd7
lea rdx, [r10 - 1]
and rax, rdx
jmp 0x14014fcaf
mov rcx, rbx
call fcn.1400ec2e0
jmp 0x14014fea9
mov rcx, rbx
jmp 0x14014ffcc
mov rbx, qword [rsi + 0x38]
mov rcx, rdi
cmp rbx, rdi
je 0x1401503b9
add rbx, 0xfffffffffffffff0
mov rcx, rbx
call fcn.1401b86b0
cmp rbx, rdi
jne 0x1401503a4
mov rcx, qword [rsi + 0x30]
mov qword [rsi + 0x38], rdi
call fcn.140172a44
xor ebp, ebp
jmp 0x140150142
add rbx, 0xfffffffffffffff0
mov rcx, rbx
call fcn.1401b86b0
cmp rbx, rdi
jne 0x1401503c9
mov rcx, qword [rsi + 0x50]
xor ebp, ebp
jmp 0x14015012c
int3
mov rcx, rdi
call fcn.1400ec2e0
jmp 0x14014ffc9
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
mov edx, 1
mov r15, r11
call qword [case.0x1401d7990.0]
mov r11, r15
jmp 0x14014fc1c
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x14014ff6f
lea rdx, [r8 - 1]
and rax, rdx
jmp 0x140150191
lock dec dword [rcx + 8]
jne 0x14015008a
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x14015008a
mov rcx, qword [rbx + 0xc0]
jbe 0x14015050b
cmp rcx, rdi
jb 0x140150604
cmp rcx, rax
jb 0x140150607
cmp rax, rdi
jg 0x14015060a
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 0x1401504c3
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401d7990.0]
add r15, 0x18
cmp rdi, r15
jne 0x14015049f
jmp 0x1401500bc
mov r14, qword [rbx + 0x90]
mov rcx, rdi
cmp r14, rdi
je 0x1401504f8
add r14, 0xfffffffffffffff8
mov rcx, r14
call fcn.140163590
cmp r14, rdi
jne 0x1401504e0
mov rcx, qword [rbx + 0x88]
mov qword [rbx + 0x90], rdi
call fcn.140172a44
xor ebp, ebp
jmp 0x1401500e2
cmp rcx, rax
jb 0x14015060d
jl 0x140150610
je 0x140150567
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 0x140150557
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401d7990.0]
add r12, 0x18
cmp r15, r12
jne 0x140150533
mov rax, qword [rbx + 0xc0]
cmp rax, rdi
jb 0x140150613
test rdi, rdi
js 0x140150616
mov ebp, 0
je 0x1401500bc
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 0x1401505bf
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401d7990.0]
add r15, 0x18
cmp rdi, r15
jne 0x14015059b
jmp 0x1401500bc
mov rcx, rbx
call fcn.14011ef20
mov rcx, rbx
call fcn.140172a44
jmp 0x140150277
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x1401502c2
mov rbx, qword [0x1402983b8]
jmp 0x14014fa96
int3
int3
int3
int3
int3
int3
int3
mov r14, rbx
add rbx, 0xffffffffffffffd8
lea rcx, [r14 - 0x18]
mov rdx, qword [r14 - 0x10]
call fcn.14010c9e0
mov rcx, qword [r14 - 0x20]
test rcx, rcx
je 0x14015063c
lock dec dword [rcx + 8]
je 0x14015064a
cmp rbx, rdi
jne 0x140150619
mov rcx, qword [rsi + 0x68]
jmp 0x140150024
mov rax, qword [rcx]
mov rax, qword [rax + 0xe0]
mov edx, 1
call qword [case.0x1401d7990.0]
jmp 0x14015063c