Function at 0x1400aa1b0
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402c94a0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rdx
xor eax, eax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov edi, 0xffffffff
mov dword [rbp - 0x21], edi
mov r13d, edi
cmp rcx, 0xffffffffffffffff
cmovne rax, rcx
mov qword [rbp + 0xf], rax
xor r14d, r14d
mov eax, r14d
cmp rcx, 0xffffffffffffffff
cmove eax, edi
mov dword [rbp - 0x11], eax
mov ebx, r14d
setne bl
mov ecx, dword [0x1402c4060]
cmp ecx, edi
jne 0x1400aa236
mov r15d, ebx
jmp 0x1400aa286
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r15d, ebx
test rax, rax
je 0x1400aa286
mov ecx, dword [0x1402c4060]
cmp ecx, edi
jne 0x1400aa253
mov rax, r14
jmp 0x1400aa25f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1402c4060]
cmp byte [rax + 0x70], r14b
je 0x1400aa286
mov dword [rbp - 0x21], ebx
cmp ecx, edi
jne 0x1400aa271
mov rax, r14
jmp 0x1400aa277
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x68]
mov eax, ebx
mov qword [rbp + rax*8 + 0xf], rcx
lea r15d, [rbx + 1]
mov rdi, r14
mov qword [rbp - 9], r14
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x1400aa34d
lea rdx, [rbp - 0x29]
mov rcx, rsi
call fcn.1400aa740
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov rdi, rax
mov qword [rbp - 9], rax
test rax, rax
je 0x1400aa34d
mov ebx, 0x20
mov eax, 0xcccccccd
mul dword [rbp - 0x25]
shr edx, 4
cmp edx, ebx
cmova ebx, edx
mov rcx, rsi
call fcn.1400a9f30
mov qword [rbp - 0x29], rax
mov rax, qword [0x1402d0520]
test rax, rax
jne 0x1400aa31e
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.SetWaitableTimerEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400aa317
lea rax, [0x1400a9570]
mov qword [0x1402d0520], rax
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x29]
mov rcx, rdi
call rax
test eax, eax
je 0x1400aa34d
mov r13d, r15d
mov eax, r15d
mov qword [rbp + rax*8 + 0xf], rdi
inc r15d
xor r12b, r12b
mov byte [rbp - 0x19], r12b
mov dword [rbp - 0x15], r14d
mov rbx, qword [rbp - 0x19]
mov eax, 0xfffffffe
mov ecx, 0xffffffff
cmp r13d, ecx
jne 0x1400aa46c
mov rbx, qword [rsi + 8]
cmp rbx, 0xffffffffffffffff
jne 0x1400aa385
mov byte [rbp - 0x39], 1
mov dword [rbp - 0x35], eax
jmp 0x1400aa45b
cmp byte [rsi + 0x10], 0
je 0x1400aa3ee
mov rax, qword [0x1402d38f0]
test rax, rax
jne 0x1400aa3c7
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetTickCount64
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400aa3c0
lea rax, [0x140051d00]
mov qword [0x1402d38f0], rax
call rax
sub rax, qword [rsi]
mov rcx, rbx
sub rcx, rax
cmp rax, rbx
mov eax, 0
cmovae rcx, rax
mov eax, 0xfffffffe
cmp rcx, rax
cmova ecx, eax
mov dword [rbp - 0x35], ecx
jmp 0x1400aa452
lea rdx, [0x14001bf30]
lea rcx, [rbp - 0x29]
call fcn.14002b380
lea rcx, [rsi + 0x18]
mov rax, qword [rcx]
cmp qword [rbp - 0x29], rax
jl 0x1400aa416
mov byte [rbp - 0x39], 0
xor eax, eax
mov dword [rbp - 0x35], eax
jmp 0x1400aa456
lea r8, [rbp - 0x29]
lea rdx, [rbp + 7]
call fcn.140027ee0
mov rcx, qword [rax]
movabs rax, 0x20c49ba5e353f7cf
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
inc rax
add rdx, rax
mov eax, 0xfffffffe
cmp rdx, rax
cmova edx, eax
mov dword [rbp - 0x35], edx
seta byte [rbp - 0x39]
mov ecx, 0xffffffff
mov rbx, qword [rbp - 0x39]
mov qword [rbp - 0x19], rbx
mov r14d, dword [rbp - 0x15]
movzx r12d, byte [rbp - 0x19]
test r15d, r15d
je 0x1400aa4f7
mov r9, rbx
shr r9, 0x20
cmp r13d, ecx
cmovne r9d, ecx
xor ecx, ecx
mov dword [rsp + 0x20], ecx
xor r8d, r8d
lea rdx, [rbp + 0xf]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, r15d
jae 0x1400aa509
cmp eax, dword [rbp - 0x11]
je 0x1400aa527
cmp eax, dword [rbp - 0x21]
je 0x1400aa53e
cmp eax, r13d
jne 0x1400aa509
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400aa4c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401e4940
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
test r14d, r14d
jne 0x1400aa500
xor ecx, ecx
jmp 0x1400aa503
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rsi + 0x10], 0
je 0x1400aa51d
movabs rax, 0xffffffff00000002
add qword [rsi + 8], rax
test r12b, r12b
je 0x1400aa4b5
jmp 0x1400aa35c
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400aa53a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400aa4ca
call fcn.1400a9f10
lea rcx, [rax + 0x68]
call fcn.1400288e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rdx, [0x1402bd2c0]
lea rcx, [rbp - 0x31]
call sub.VCRUNTIME140.dll__CxxThrowException
int3