Function at 0x14005f2a0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1400f9028]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x140100b30]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005f548
cmp byte [rdi], 0
je 0x14005f50f
mov eax, dword [0x140100760]
mov ecx, dword [0x1400fc638]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005f57e
cmp byte [0x14010075c], 0
je 0x14005f530
lea rcx, [rsp + 0x50]
call fcn.140033d50
mov rax, qword [0x1400fc3f8]
lea rcx, [0x140027440]
cmp rax, rcx
jne 0x14005f5e1
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x58]
movabs rcx, 0x8637bd05af6
cmp rax, rcx
jg 0x14005f385
imul rax, rax, 0xf4240
cqo
idiv qword [0x140100790]
jmp 0x14005f3a7
mov rcx, qword [0x140100790]
cqo
idiv rcx
imul rbp, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, rbp
mov qword [rsp + 0x58], rax
movabs rcx, 0x7fffffffffffffff
mov rdx, qword [0x140100938]
lea rbp, [rdx + rcx]
add rbp, 2
cmp rbp, 2
jae 0x14005f3e1
cmp rax, rdx
je 0x14005f747
lea rax, [rcx + 1]
test rdx, rdx
cmovs rax, rcx
jmp 0x14005f3f4
xor ebp, ebp
cmp rax, rdx
setns bpl
add rbp, rcx
sub rax, rdx
cmovo rax, rbp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx esi, byte [rdi]
test esi, esi
je 0x14005f50f
mov ebp, eax
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005f440
movsxd rcx, dword [0x140100aa0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140100aa4]
jne 0x14005f440
cmp qword [rax + rcx], 0
jne 0x14005f50f
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005f53e
lea rcx, [0x140100aa0]
movsxd rdx, dword [0x140100aa0]
shl rdx, 4
mov qword [rax + rdx], rcx
mov ecx, dword [0x140100aa4]
movsxd rdx, dword [0x140100aa0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test sil, 8
jne 0x14005f5f4
test sil, 1
je 0x14005f604
mov rax, qword [0x140100b20]
test rax, rax
je 0x14005f645
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], 0xffffffffffffffff
mov byte [rsp + 0x20], 0
mov rcx, rdi
mov rdx, r14
mov r8, rbx
mov r9d, ebp
call rax
mov ecx, dword [0x1400fc468]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005f50f
movsxd rcx, dword [0x140100aa0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x140100aa4]
movsxd rdx, dword [0x140100aa0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140065120
nop
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsp + 0x50], 0
jmp 0x14005f334
call fcn.1400065a0
jmp 0x14005f456
lea rcx, [0x140100b30]
int3
lea rcx, [0x140100760]
int3
lea rbp, [rsp + 0x58]
mov rcx, rbp
call rax
mov rax, qword [rbp]
jmp 0x14005f3ac
mov rcx, rdi
mov rdx, r14
int3
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1a0], xmm0
mov qword [rsp + 0x1b0], 0
test sil, 0x10
jne 0x14005f74a
cmp byte [rsp + 0x1b7], 0
jns 0x14005f4d5
mov rcx, qword [rsp + 0x1a0]
call fcn.140062b78
jmp 0x14005f4d5
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1a0], xmm0
mov qword [rsp + 0x1b0], 0
movabs rax, 0xaaaaaaaaaaaaaa00
lea rdx, [rsp + 0x190]
mov qword [rdx + 8], rax
lea rax, [0x1401007a8]
mov qword [rdx], rax
mov rcx, rbx
int3
int3
mov rcx, rdi
mov rdx, r14
int3