Function at 0x1400c37e0
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, 0x78
mov ebp, r9d
mov r13d, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, qword [0x140319710]
cmp rbx, 1
jbe 0x1400c3de2
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c3fa4
movsxd rcx, dword [rbx]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbx + 4]
jne 0x1400c3fa4
mov rax, qword [rax + rcx]
mov qword [rsi], rax
mov rbx, qword [0x140319750]
cmp rbx, 1
jbe 0x1400c3ee6
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c3fab
movsxd rcx, dword [rbx]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rbx + 4]
jne 0x1400c3fab
mov rax, qword [rax + rcx]
mov qword [rsi + 8], rax
cmp r13d, 1
je 0x1400c3fb2
test rax, rax
jne 0x1400c3d18
xor eax, eax
mov byte [rsi + 0x10], al
lea r12, [rsi + 0x18]
mov rdi, qword [rdi + 0x18]
mov qword [rsp + 0x30], 0x11be9915
mov rcx, qword [0x140317e60]
test rcx, rcx
jne 0x1400c3fb9
mov qword [r12], 0
mov qword [rsi + 0x28], 0
mov dword [rsi + 0x30], 0x11be9915
mov byte [rsi + 0x38], 0
mov rdi, qword [0x140319750]
cmp rdi, 1
jbe 0x1400c3f33
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c3f91
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 [0x14031b0c0]
cmp rdi, 1
jbe 0x1400c3e99
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c39e6
movsxd rcx, dword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 4]
jne 0x1400c39e6
mov rax, qword [rax + rcx]
test rax, rax
je 0x1400c39e6
cmp byte [rax], 0
jne 0x1400c39e6
mov eax, dword [0x14031b090]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c3e64
cmp byte [0x14031b08c], 0
je 0x1400c39e6
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400c39b8
mov rax, qword [rsi + 8]
test rax, rax
jne 0x1400c3d5a
mov edx, r13d
call fcn.14010efa0
mov rax, qword [r12]
test rax, rax
jne 0x1400c3fee
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140115e50
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
test ebp, ebp
jne 0x1400c3bc0
cmp byte [rsi + 0x10], 0
jne 0x1400c3bc0
cmp qword [rsi + 8], 0
jne 0x1400c399b
cmp byte [rsi + 0x38], 0
jne 0x1400c4097
lea rcx, [rsi + 0x40]
call qword [fcn.1400c45f0]
mov r14, qword [rsi + 0x40]
mov eax, dword [0x140319728]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c3d78
lea rcx, [0x140319720]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400c3f80
mov eax, dword [0x140319748]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c3dad
cmp qword [0x140319740], 0
je 0x1400c3ba2
mov eax, dword [0x140319738]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c3e2f
mov rbp, qword [0x140319730]
movabs r15, 0x7fffffffffffffff
mov rbx, r14
test rbp, rbp
je 0x1400c3af7
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 0x1400c3af7
mov qword [rsi + 0x48], rbp
lock inc dword [rbp]
jmp 0x1400c3baa
mov rax, r14
sub rax, rbx
cmp rax, 0x989680
jl 0x1400c3b0f
mov byte [rbp + 0x200], 1
mov rbx, r14
mov ecx, 0x208
call fcn.140112048
mov rdi, rax
mov dword [rax], 0
lea rcx, [rax + 8]
mov r8d, 0x1e8
xor edx, edx
call fcn.140117f60
mov qword [rdi + 0x1f0], rbx
mov qword [rdi + 0x1f8], 0
mov byte [rdi + 0x200], 0
lock add dword [rdi], 1
test rbp, rbp
je 0x1400c3c0a
mov ebx, r13d
cmp byte [rbp + 0x200], 0
je 0x1400c3d20
mov rbp, qword [0x140319730]
lock inc dword [rdi]
mov qword [0x140319730], rdi
test rbp, rbp
mov r13d, ebx
je 0x1400c3c14
lock dec dword [rbp]
jne 0x1400c3c14
mov rcx, rbp
call fcn.14014e9a0
mov rcx, rbp
call fcn.140112038
jmp 0x1400c3c14
mov qword [rsi + 0x48], 0
lea rcx, [0x140319720]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov byte [rsi + 0x38], 1
jmp 0x1400c399b
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400c399b
cmp byte [rax + 0x38], 0
je 0x1400c399b
mov rdi, qword [rax + 0x48]
mov qword [rax + 0x48], 0
test rdi, rdi
je 0x1400c399b
lock dec dword [rdi]
jne 0x1400c399b
mov rcx, rdi
call fcn.14014e9a0
mov rcx, rdi
call fcn.140112038
jmp 0x1400c399b
lock inc dword [rdi]
mov qword [0x140319730], rdi
lea rcx, [0x140319720]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub r14, qword [rdi + 0x1f0]
lea rax, [r14 + r15]
add rax, 2
cmp rax, 2
jae 0x1400c3c43
lea rbp, [r15 + 1]
test r14, r14
cmovs rbp, r15
jmp 0x1400c3c5a
mov ebp, 0x3938700
xor eax, eax
cmp rbp, r14
setns al
add rax, r15
sub rbp, r14
cmovo rbp, rax
mov ecx, 0x28
call fcn.140112048
mov rbx, rax
mov dword [rax], 1
lea rax, [0x140195910]
mov qword [rbx + 8], rax
lea rax, [0x1401cbd30]
mov qword [rbx + 0x10], rax
lea rax, [0x14007f050]
mov qword [rbx + 0x18], rax
mov qword [rsp + 0x50], rbx
lea rdx, str.MonitorNextJankWindowIfNecessary
lea r8, [0x1402d1246]
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x9c
call fcn.1400c0870
mov qword [rsp + 0x50], 0
call fcn.1400d1080
mov qword [rsp + 0x58], 0
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], 0
mov rax, qword [rcx]
lea r8, [rsp + 0x68]
mov rdx, r15
mov r9, rbp
call qword [rax]
lea rcx, [rsp + 0x60]
call fcn.1400c40e0
lea rcx, [rsp + 0x58]
call fcn.1400c40e0
lea rcx, [rsp + 0x50]
call fcn.1400c40e0
mov qword [rsi + 0x48], rdi
mov byte [rsi + 0x38], 1
jmp 0x1400c399b
mov al, byte [rax + 0x10]
jmp 0x1400c38a5
lock inc dword [rdi]
mov r13, qword [rbp + 0x1f8]
mov qword [rbp + 0x1f8], rdi
test r13, r13
je 0x1400c3b69
lock dec dword [r13]
jne 0x1400c3b69
mov rcx, r13
call fcn.14014e9a0
mov rcx, r13
call fcn.140112038
jmp 0x1400c3b69
cmp r13d, 1
jne 0x1400c39b8
cmp byte [rax + 0x10], 0
jne 0x1400c39b8
call fcn.140221730
jmp 0x1400c39b8
lea rcx, [0x140319728]
call fcn.1401120e4
cmp dword [0x140319728], 0xffffffff
jne 0x1400c3a3c
mov qword [0x140319720], 0
lea rcx, [0x140319728]
call fcn.140112084
jmp 0x1400c3a3c
lea rcx, [0x140319748]
call fcn.1401120e4
cmp dword [0x140319748], 0xffffffff
jne 0x1400c3a76
mov qword [0x140319740], 0
lea rcx, [0x140319748]
call fcn.140112084
jmp 0x1400c3a76
lea rcx, [0x140319710]
call fcn.1400c4120
test al, al
je 0x1400c40a9
mov qword [0x140319718], 0
lea r15, [0x140319710]
lea rbx, [0x140319718]
mov rcx, rbx
xor edx, edx
call fcn.1400bc270
mov rcx, r15
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call fcn.1400c4100
jmp 0x1400c381c
lea rcx, [0x140319738]
call fcn.1401120e4
cmp dword [0x140319738], 0xffffffff
jne 0x1400c3aa9
mov qword [0x140319730], 0
lea rcx, [0x140319738]
call fcn.140112084
jmp 0x1400c3aa9
lea rcx, [0x14031b090]
call fcn.1401120e4
cmp dword [0x14031b090], 0xffffffff
jne 0x1400c3992
call fcn.14015eda0
mov byte [0x14031b08c], al
lea rcx, [0x14031b090]
call fcn.140112084
jmp 0x1400c3992
lea rcx, [0x14031b0c0]
call fcn.1400c4120
test al, al
je 0x1400c40b5
mov qword [0x14031b0c8], 0
lea r15, [0x14031b0c0]
lea rdi, [0x14031b0c8]
mov rcx, rdi
xor edx, edx
call fcn.1400bc270
mov rcx, r15
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call fcn.1400c4100
jmp 0x1400c3935
lea rcx, [0x140319750]
call fcn.1400c4120
test al, al
je 0x1400c40c1
mov qword [0x140319758], 0
lea r15, [0x140319750]
lea rbx, [0x140319758]
mov rcx, rbx
xor edx, edx
call fcn.1400bc270
mov rcx, r15
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call fcn.1400c4100
jmp 0x1400c385e
lea rcx, [0x140319750]
call fcn.1400c4120
test al, al
je 0x1400c40cd
mov qword [0x140319758], 0
lea r15, [0x140319750]
lea rdi, [0x140319758]
mov rcx, rdi
xor edx, edx
call fcn.1400bc270
mov rcx, r15
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call fcn.1400c4100
jmp 0x1400c38f5
lea rcx, [0x140319720]
call fcn.1400bb6f0
jmp 0x1400c3a51
test rsi, rsi
je 0x1400c3924
call fcn.1400086f0
jmp 0x1400c390b
xor eax, eax
jmp 0x1400c384a
xor eax, eax
jmp 0x1400c388c
mov al, 1
jmp 0x1400c38a5
call fcn.1401cc5d0
mov qword [r12], rax
test rax, rax
je 0x1400c38d1
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rdx, rdi
xor r8d, r8d
mov r9b, 0xf0
call fcn.1401cc610
mov dword [rsi + 0x20], eax
jmp 0x1400c38d1
mov eax, dword [rax + 0x18]
cmp eax, dword [rsi + 0x20]
jbe 0x1400c39c5
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi], rax
mov rcx, rdi
call qword [fcn.1400c45f0]
mov rcx, r12
call fcn.1402019d0
mov rbx, rax
mov rax, qword [rdi]
lea rdi, [rsp + 0x68]
mov qword [rdi], rax
lea rax, str.timestamp_us
lea rbp, [rsp + 0x30]
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.1402011e0
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 + 0x30]
lea r9, [rsp + 0x68]
mov rcx, rbx
mov r8b, 8
call fcn.1402011e0
jmp 0x1400c39c5
lea rcx, [rsi + 0x40]
call fcn.14001b850
mov byte [rsi + 0x38], 0
jmp 0x1400c3a09
mov rbx, qword [0x140319710]
jmp 0x1400c381c
mov rdi, qword [0x14031b0c0]
jmp 0x1400c3935
mov rbx, qword [0x140319750]
jmp 0x1400c385e
mov rdi, qword [0x140319750]
jmp 0x1400c38f5