Function at 0x14001797c
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa68]
sub rsp, 0xb28
movaps xmmword [rax - 0x58], xmm6
mov rax, qword [0x14002c298]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov rdi, qword [rbp + 0xa90]
xor r13d, r13d
cmp dword [0x14002d85c], r13d
mov r15, r9
mov r12, qword [rbp + 0xa98]
mov rsi, r8
mov r14d, edx
mov ebx, ecx
jne 0x140017a5f
cmp dword [0x14002d88c], r13d
je 0x1400179eb
mov word [rsp + 0x40], r13w
jmp 0x140017a70
cmp rsi, 0x40000000
jl 0x140017a20
mov ecx, 0x3fffffff
mov rax, rsi
and rax, rcx
lea rax, [rax + rax*4]
add rax, rax
cqo
and rdx, rcx
lea r9, [rdx + rax]
sar r9, 0x1e
lea rdx, str._4d._01d_g
shr r8, 0x1e
jmp 0x140017a53
cmp rsi, 0x100000
jl 0x140017a5f
mov ecx, 0xfffff
mov rax, rsi
and rax, rcx
lea rax, [rax + rax*4]
add rax, rax
cqo
and rdx, rcx
lea r9, [rdx + rax]
sar r9, 0x14
lea rdx, str._4d._01d_m
shr r8, 0x14
lea rcx, [rsp + 0x40]
call fcn.140014ca4
jmp 0x140017a70
lea rdx, str._8I64d
lea rcx, [rsp + 0x40]
call fcn.140014ca4
lea r9, [rbp - 0x80]
mov r8d, r14d
lea rdx, [rbp + 0x800]
mov ecx, ebx
call fcn.140016718
cmp dword [0x14002d888], r13d
je 0x140017a93
mov word [rbp - 0x80], r13w
mov qword [rsp + 0x28], r12
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x80]
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0x800]
lea rcx, [rbp]
call fcn.140009b6c
mov edx, 1
lea rcx, [rbp]
call fcn.140018800
xor edx, edx
mov word [rbp], r13w
mov rcx, rdi
call fcn.140018698
cmp dword [rbp + 0xaa0], r13d
je 0x140017d00
cmp qword [0x14002d658], r13
je 0x140017d00
cmp dword [0x14002d810], r13d
jne 0x140017aff
mov rax, qword [0x1400240d0]
jmp 0x140017b1c
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
call fcn.140018f6c
test eax, eax
je 0x140017d00
cmp dword [0x14002d810], r13d
jne 0x140017b3e
mov rax, qword [0x1400240d0]
jmp 0x140017b5b
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
cmove rax, qword [0x1400240d0]
mov rcx, rax
call fcn.140018f6c
mov rbx, qword [0x14002d658]
lea rcx, [rsp + 0x30]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
divsd xmm6, qword [0x1400270c8]
call qword [sym.imp.msvcrt.dll_time]
nop dword [rax + rax]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2sd xmm0, rbx
mov ebx, 0x7fffffff
cvtsi2sd xmm1, rsi
divsd xmm0, xmm6
divsd xmm1, xmm0
cvttsd2si eax, xmm1
movsxd rcx, eax
add rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rcx
test rdi, rdi
je 0x140017bea
mov edx, ebx
mov rax, rdi
cmp word [rax], r13w
je 0x140017bd3
add rax, 2
sub rdx, 1
jne 0x140017bc3
mov rcx, rbx
mov rax, rdx
sub rcx, rdx
neg rax
sbb r8, r8
and r8, rcx
test rdx, rdx
jne 0x140017bed
mov r8, r13
lea r14, [0x1400253c8]
mov esi, 0x400
cmp r8d, 8
jge 0x140017c0d
mov r8, r14
lea rcx, [rbp]
mov edx, esi
call fcn.140008c2c
test rdi, rdi
je 0x140017c39
mov rcx, rbx
cmp word [rdi], r13w
je 0x140017c25
add rdi, 2
sub rcx, 1
jne 0x140017c15
sub rbx, rcx
mov rax, rcx
neg rax
sbb rdx, rdx
and rdx, rbx
test rcx, rcx
jne 0x140017c3c
mov rdx, r13
cmp edx, 2
jge 0x140017c50
mov r8, r14
lea rcx, [rbp]
mov rdx, rsi
call fcn.140008c2c
mov r8, r14
lea rcx, [rbp]
mov rdx, rsi
call fcn.140008c2c
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_ctime]
nop dword [rax + rax]
mov r8, rax
lea rdx, [0x140026448]
lea rcx, [rbp - 0x80]
call fcn.140014ce4
lea r8, [rbp - 0x6a]
mov word [rbp - 0x60], r13w
mov rdx, rsi
lea rcx, [rbp]
call fcn.140008c2c
lea r8, [0x140026450]
mov rdx, rsi
lea rcx, [rbp]
call fcn.140008c2c
lea rcx, [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_ctime]
nop dword [rax + rax]
mov r8, rax
lea rdx, [0x140026448]
lea rcx, [rbp - 0x80]
call fcn.140014ce4
lea r8, [rbp - 0x6a]
mov word [rbp - 0x60], r13w
mov rdx, rsi
lea rcx, [rbp]
call fcn.140008c2c
lea rdx, [rbp]
call fcn.1400169a8
mov rcx, qword [0x14002d368]
call qword [sym.imp.msvcrt.dll_fflush]
nop dword [rax + rax]
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.140001a50
movaps xmm6, xmmword [rsp + 0xb10]
add rsp, 0xb28
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret