Function at 0x14008ed50
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, 0x68
mov ebp, r9d
mov r13d, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, qword [0x140297f30]
cmp rbx, 1
jbe 0x14008f34a
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14008f50c
movsxd rcx, dword [rbx]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbx + 4]
jne 0x14008f50c
mov rax, qword [rax + rcx]
mov qword [rsi], rax
mov rbx, qword [0x140297f70]
cmp rbx, 1
jbe 0x14008f44e
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14008f513
movsxd rcx, dword [rbx]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbx + 4]
jne 0x14008f513
mov rax, qword [rax + rcx]
mov qword [rsi + 8], rax
cmp r13d, 1
je 0x14008f51a
test rax, rax
jne 0x14008f280
xor eax, eax
mov byte [rsi + 0x10], al
lea r12, [rsi + 0x18]
mov rdi, qword [rdi + 0x18]
mov qword [rsp + 0x28], 0x11be9915
mov rcx, qword [0x140297e98]
test rcx, rcx
jne 0x14008f521
mov qword [r12], 0
mov qword [rsi + 0x28], 0
mov dword [rsi + 0x30], 0x11be9915
mov byte [rsi + 0x38], 0
mov rdi, qword [0x140297f70]
cmp rdi, 1
jbe 0x14008f49b
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14008f4f9
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [0x140299ab8]
cmp rdi, 1
jbe 0x14008f401
mov ecx, dword [0x1402910c8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14008ef56
movsxd rcx, dword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 4]
jne 0x14008ef56
mov rax, qword [rax + rcx]
test rax, rax
je 0x14008ef56
cmp byte [rax], 0
jne 0x14008ef56
mov eax, dword [0x140299a98]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008f3cc
cmp byte [0x140299a94], 0
je 0x14008ef56
mov rcx, qword [rsi]
test rcx, rcx
je 0x14008ef28
mov rax, qword [rsi + 8]
test rax, rax
jne 0x14008f2c2
mov edx, r13d
call fcn.1400c4eb0
mov rax, qword [r12]
test rax, rax
jne 0x14008f556
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ccfe0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test ebp, ebp
jne 0x14008f130
cmp byte [rsi + 0x10], 0
jne 0x14008f130
cmp qword [rsi + 8], 0
jne 0x14008ef0b
cmp byte [rsi + 0x38], 0
jne 0x14008f5ff
lea rcx, [rsi + 0x40]
call qword [fcn.14007b660]
mov r14, qword [rsi + 0x40]
mov eax, dword [0x140297f48]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008f2e0
lea rcx, [0x140297f40]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14008f4e8
mov eax, dword [0x140297f68]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008f315
cmp qword [0x140297f60], 0
je 0x14008f112
mov eax, dword [0x140297f58]
mov ecx, dword [0x140293330]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14008f397
mov rbp, qword [0x140297f50]
movabs r15, 0x7fffffffffffffff
mov rbx, r14
test rbp, rbp
je 0x14008f067
mov rax, qword [rbp + 0x1f0]
mov ebx, 0x3938700
xor ecx, ecx
mov edx, 0x3938700
add rdx, rax
setns cl
add rcx, r15
add rbx, rax
cmovo rbx, rcx
cmp rbx, r14
jle 0x14008f067
mov qword [rsi + 0x48], rbp
lock inc dword [rbp]
jmp 0x14008f11a
mov rax, r14
sub rax, rbx
cmp rax, 0x989680
jl 0x14008f07f
mov byte [rbp + 0x200], 1
mov rbx, r14
mov ecx, 0x208
call fcn.1400c9cbc
mov rdi, rax
mov dword [rax], 0
lea rcx, [rax + 8]
mov r8d, 0x1e8
xor edx, edx
call fcn.1400cf750
mov qword [rdi + 0x1f0], rbx
mov qword [rdi + 0x1f8], 0
mov byte [rdi + 0x200], 0
lock add dword [rdi], 1
test rbp, rbp
je 0x14008f17a
mov ebx, r13d
cmp byte [rbp + 0x200], 0
je 0x14008f288
mov rbp, qword [0x140297f50]
lock inc dword [rdi]
mov qword [0x140297f50], rdi
test rbp, rbp
mov r13d, ebx
je 0x14008f184
lock dec dword [rbp]
jne 0x14008f184
mov rcx, rbp
call fcn.14010f310
mov rcx, rbp
call fcn.1400c9cac
jmp 0x14008f184
mov qword [rsi + 0x48], 0
lea rcx, [0x140297f40]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov byte [rsi + 0x38], 1
jmp 0x14008ef0b
mov rax, qword [rsi + 8]
test rax, rax
je 0x14008ef0b
cmp byte [rax + 0x38], 0
je 0x14008ef0b
mov rdi, qword [rax + 0x48]
mov qword [rax + 0x48], 0
test rdi, rdi
je 0x14008ef0b
lock dec dword [rdi]
jne 0x14008ef0b
mov rcx, rdi
call fcn.14010f310
mov rcx, rdi
call fcn.1400c9cac
jmp 0x14008ef0b
lock inc dword [rdi]
mov qword [0x140297f50], rdi
lea rcx, [0x140297f40]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub r14, qword [rdi + 0x1f0]
lea rax, [r14 + r15]
add rax, 2
cmp rax, 2
jae 0x14008f1b3
lea rbx, [r15 + 1]
test r14, r14
cmovs rbx, r15
jmp 0x14008f1ca
mov ebx, 0x3938700
xor eax, eax
cmp rbx, r14
setns al
add rax, r15
sub rbx, r14
cmovo rbx, rax
mov ecx, 0x28
call fcn.1400c9cbc
mov rbp, rax
mov dword [rax], 1
lea rax, [0x14014d160]
mov qword [rbp + 8], rax
lea rax, [0x140128b10]
mov qword [rbp + 0x10], rax
lea rax, [0x140059e90]
mov qword [rbp + 0x18], rax
mov qword [rsp + 0x48], rbp
lea rdx, str.MonitorNextJankWindowIfNecessary
lea r8, str..._.._base_threading_scoped_blocking_call_internal.cc
lea r15, [rsp + 0x28]
mov rcx, r15
mov r9d, 0x9c
call fcn.14007e2d0
mov qword [rsp + 0x48], 0
call fcn.14007e770
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], 0
mov rbp, qword [rax + 8]
lea rcx, [rax + 8]
mov qword [rsp + 0x20], rbx
lea r8, [0x14025c929]
lea r9, [rsp + 0x58]
mov rdx, r15
call qword [rbp + 8]
lea rcx, [rsp + 0x50]
call fcn.14008f650
lea rcx, [rsp + 0x48]
call fcn.14008f650
mov qword [rsi + 0x48], rdi
mov byte [rsi + 0x38], 1
jmp 0x14008ef0b
mov al, byte [rax + 0x10]
jmp 0x14008ee15
lock inc dword [rdi]
mov r13, qword [rbp + 0x1f8]
mov qword [rbp + 0x1f8], rdi
test r13, r13
je 0x14008f0d9
lock dec dword [r13]
jne 0x14008f0d9
mov rcx, r13
call fcn.14010f310
mov rcx, r13
call fcn.1400c9cac
jmp 0x14008f0d9
cmp r13d, 1
jne 0x14008ef28
cmp byte [rax + 0x10], 0
jne 0x14008ef28
call fcn.1401a6850
jmp 0x14008ef28
lea rcx, [0x140297f48]
call fcn.1400c9d58
cmp dword [0x140297f48], 0xffffffff
jne 0x14008efac
mov qword [0x140297f40], 0
lea rcx, [0x140297f48]
call fcn.1400c9cf8
jmp 0x14008efac
lea rcx, [0x140297f68]
call fcn.1400c9d58
cmp dword [0x140297f68], 0xffffffff
jne 0x14008efe6
mov qword [0x140297f60], 0
lea rcx, [0x140297f68]
call fcn.1400c9cf8
jmp 0x14008efe6
lea rcx, [0x140297f30]
call fcn.14008f690
test al, al
je 0x14008f611
mov qword [0x140297f38], 0
lea r15, [0x140297f30]
lea rbx, [0x140297f38]
mov rcx, rbx
xor edx, edx
call fcn.1400721e0
mov rcx, r15
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call fcn.14008f670
jmp 0x14008ed8c
lea rcx, [0x140297f58]
call fcn.1400c9d58
cmp dword [0x140297f58], 0xffffffff
jne 0x14008f019
mov qword [0x140297f50], 0
lea rcx, [0x140297f58]
call fcn.1400c9cf8
jmp 0x14008f019
lea rcx, [0x140299a98]
call fcn.1400c9d58
cmp dword [0x140299a98], 0xffffffff
jne 0x14008ef02
call fcn.140122510
mov byte [0x140299a94], al
lea rcx, [0x140299a98]
call fcn.1400c9cf8
jmp 0x14008ef02
lea rcx, [0x140299ab8]
call fcn.14008f690
test al, al
je 0x14008f61d
mov qword [0x140299ac0], 0
lea r15, [0x140299ab8]
lea rdi, [0x140299ac0]
mov rcx, rdi
xor edx, edx
call fcn.1400721e0
mov rcx, r15
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call fcn.14008f670
jmp 0x14008eea5
lea rcx, [0x140297f70]
call fcn.14008f690
test al, al
je 0x14008f629
mov qword [0x140297f78], 0
lea r15, [0x140297f70]
lea rbx, [0x140297f78]
mov rcx, rbx
xor edx, edx
call fcn.1400721e0
mov rcx, r15
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call fcn.14008f670
jmp 0x14008edce
lea rcx, [0x140297f70]
call fcn.14008f690
test al, al
je 0x14008f635
mov qword [0x140297f78], 0
lea r15, [0x140297f70]
lea rdi, [0x140297f78]
mov rcx, rdi
xor edx, edx
call fcn.1400721e0
mov rcx, r15
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call fcn.14008f670
jmp 0x14008ee65
lea rcx, [0x140297f40]
call fcn.1400711f0
jmp 0x14008efc1
test rsi, rsi
je 0x14008ee94
call fcn.140008460
jmp 0x14008ee7b
xor eax, eax
jmp 0x14008edba
xor eax, eax
jmp 0x14008edfc
mov al, 1
jmp 0x14008ee15
call fcn.140180f10
mov qword [r12], rax
test rax, rax
je 0x14008ee41
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, rdi
xor r8d, r8d
mov r9b, 0xf0
call fcn.140180f50
mov dword [rsi + 0x20], eax
jmp 0x14008ee41
mov eax, dword [rax + 0x18]
cmp eax, dword [rsi + 0x20]
jbe 0x14008ef35
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi], rax
mov rcx, rdi
call qword [fcn.14007b660]
mov rcx, r12
call fcn.14018f440
mov rbx, rax
mov rax, qword [rdi]
lea rdi, [rsp + 0x58]
mov qword [rdi], rax
lea rax, str.timestamp_us
lea rbp, [rsp + 0x28]
mov qword [rbp], rax
mov qword [rbp + 8], 0xc
mov r14d, 8
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rbp
mov r8b, 8
mov r9, rdi
call fcn.14018ec50
movsxd rax, r13d
mov qword [rdi], rax
lea rax, str.blocking_type
mov qword [rbp], rax
mov qword [rbp + 8], 0xd
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x58]
mov rcx, rbx
mov r8b, 8
call fcn.14018ec50
jmp 0x14008ef35
lea rcx, [rsi + 0x40]
call fcn.1400189d0
mov byte [rsi + 0x38], 0
jmp 0x14008ef79
mov rbx, qword [0x140297f30]
jmp 0x14008ed8c
mov rdi, qword [0x140299ab8]
jmp 0x14008eea5
mov rbx, qword [0x140297f70]
jmp 0x14008edce
mov rdi, qword [0x140297f70]
jmp 0x14008ee65