Function at 0x1400d6110
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, 0x1c8
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp byte [rdx], 0
je 0x1400d6390
mov r15, r9
mov r14, r8
mov r13, rdx
mov rsi, rcx
mov eax, dword [0x1401fe610]
mov ecx, dword [0x1401f8a8c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d63c6
cmp byte [0x1401fe60c], 0
je 0x1400d643a
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
call fcn.1400b67a0
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x1400d61ae
jnp 0x1400d63b5
movsd xmm1, qword [rsp + 0x50]
unpcklps xmm1, xmmword [0x1401c8a60]
subpd xmm1, xmmword [0x1401c8a70]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1401d1950]
cvttsd2si rax, xmm2
mov qword [rsp + 0x48], rax
mov rax, qword [0x1401f6fa8]
lea rcx, [0x1400eff50]
cmp rax, rcx
jne 0x1400d6427
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
movabs rcx, 0x8637bd05af6
cmp rax, rcx
jg 0x1400d65a8
imul rax, rax, 0xf4240
cqo
idiv qword [0x1401fe650]
mov qword [rsp + 0x50], rax
movabs rcx, 0x7fffffffffffffff
mov rdx, qword [rsi + 0x198]
lea rbp, [rdx + rcx]
add rbp, 2
cmp rbp, 2
jb 0x1400d6448
xor ebp, ebp
cmp rax, rdx
setns bpl
add rbp, rcx
sub rax, rdx
cmovo rax, rbp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx edi, byte [r13]
test edi, edi
je 0x1400d6390
mov ebp, eax
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400d62c1
movsxd rcx, dword [rsi + 0x300]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 0x304]
jne 0x1400d62c1
cmp qword [rax + rcx], 0
jne 0x1400d6390
lea rbx, [rsi + 0x300]
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400d63bc
movsxd rcx, dword [rsi + 0x300]
shl rcx, 4
mov qword [rax + rcx], rbx
mov ecx, dword [rsi + 0x304]
movsxd rdx, dword [rsi + 0x300]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test dil, 8
jne 0x1400d64a4
test dil, 1
je 0x1400d6461
mov rax, qword [rsi + 0x380]
test rax, rax
je 0x1400d64b4
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rsp + 0x20], 0
mov rcx, r13
mov rdx, r14
mov r8, r15
mov r9d, ebp
call rax
mov ecx, dword [0x1401f6f88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400d6390
movsxd rcx, dword [rsi + 0x300]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rsi + 0x304]
movsxd rdx, dword [rsi + 0x300]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400f32c0
nop
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x1400d61e0
call fcn.140001340
jmp 0x1400d62de
lea rcx, [0x1401fe610]
call fcn.1400f0548
cmp dword [0x1401fe610], 0xffffffff
jne 0x1400d616f
lea rbp, [rsp + 0x50]
mov rcx, rbp
call fcn.14002fa80
mov bl, byte [rbp + 0x2e]
cmp byte [rbp + 0x5f], 0
jns 0x1400d6402
mov rcx, qword [rsp + 0x98]
call fcn.1400f0498
cmp byte [rsp + 0x97], 0
js 0x1400d664e
mov byte [0x1401fe60c], bl
lea rcx, [0x1401fe610]
call fcn.1400f07ac
jmp 0x1400d616f
lea rbp, [rsp + 0x50]
mov rcx, rbp
call rax
mov rax, qword [rbp]
jmp 0x1400d623d
mov qword [rsp + 0x48], 0
jmp 0x1400d61e5
cmp rax, rdx
je 0x1400d6660
lea rax, [rcx + 1]
test rdx, rdx
cmovs rax, rcx
jmp 0x1400d6273
xorpd xmm0, xmm0
movapd xmmword [rsp + 0x1a0], xmm0
mov qword [rsp + 0x1b0], 0
test dil, 0x10
jne 0x1400d65ec
cmp byte [rsp + 0x1b7], 0
jns 0x1400d6356
mov rcx, qword [rsp + 0x1a0]
call fcn.1400f0498
jmp 0x1400d6356
mov rcx, r13
mov rdx, r14
call fcn.14014b4e0
jmp 0x1400d630c
xorpd xmm0, xmm0
movapd xmmword [rsp + 0x1a0], xmm0
mov qword [rsp + 0x1b0], 0
movapd xmm0, xmmword [0x1401c8a80]
lea r8, [rsp + 0x190]
movapd xmmword [r8], xmm0
lea rax, [rsi + 8]
mov qword [r8], rax
mov byte [r8 + 8], 0
mov rcx, rsi
mov rdx, r15
call fcn.14014b600
mov rbp, rax
test rax, rax
je 0x1400d651a
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov rcx, rbp
mov r9, 0xffffffffffffffff
call fcn.14014b760
mov rax, qword [rsi + 0x1a0]
test al, 8
jne 0x1400d65fc
cmp byte [rsp + 0x198], 0
je 0x1400d6541
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movzx ebp, byte [rsp + 0x1b7]
mov r12, rbp
test bpl, bpl
jns 0x1400d6559
mov r12, qword [rsp + 0x1a8]
test r12, r12
je 0x1400d647a
mov ecx, 2
call fcn.1400e8860
test al, al
je 0x1400d647a
lea rdx, str..._.._base_trace_event_trace_log.cc
lea r15, [rsp + 0x50]
mov rcx, r15
mov r8d, 0x5e9
mov r9d, 2
call fcn.140002b90
lea rcx, [rsp + 0x60]
test bpl, bpl
jns 0x1400d65cf
mov rdx, qword [rsp + 0x1a0]
jmp 0x1400d65d7
mov rcx, qword [0x1401fe650]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
jmp 0x1400d6238
lea rdx, [rsp + 0x1a0]
mov r8, r12
call fcn.1400d6670
mov rcx, r15
call fcn.14002ed20
jmp 0x1400d647a
mov rcx, r13
mov rdx, r14
call fcn.14014b3b0
jmp 0x1400d6484
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov rcx, rsi
mov r8b, 0x45
call fcn.14014a100
cmp byte [rsp + 0x1b7], 0
jns 0x1400d662d
mov rcx, qword [rsp + 0x1a0]
call fcn.1400f0498
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x1b0], rax
movupd xmm0, xmmword [rsp + 0x50]
movapd xmmword [rsp + 0x1a0], xmm0
jmp 0x1400d6529
mov rcx, qword [rsp + 0x80]
call fcn.1400f0498
jmp 0x1400d6410
int3