Function at 0x14009a3e0
Capabilities:
Check for time delay via queryperformancecounter
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14024d070]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov edx, 0xffffffff
mov r12d, edx
mov r15d, edx
movq rax, xmm0
cmp rcx, 0xffffffffffffffff
cmovne rax, rcx
mov qword [rsp + 0x60], rax
xor esi, esi
mov r13d, esi
cmp rcx, 0xffffffffffffffff
cmove r13d, edx
mov ebx, esi
setne bl
mov ecx, dword [0x14024d050]
cmp ecx, edx
jne 0x14009a462
mov ebp, ebx
jmp 0x14009a4b7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, ebx
test rax, rax
je 0x14009a4b7
mov ecx, dword [0x14024d050]
mov rdx, r12
cmp ecx, r12d
jne 0x14009a482
mov rax, rsi
jmp 0x14009a491
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14024d050]
mov rdx, r12
cmp byte [rax + 0x70], sil
je 0x14009a4b7
mov r12d, ebx
cmp ecx, edx
jne 0x14009a4a3
mov rax, rsi
jmp 0x14009a4a9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rax, qword [rax + 0x68]
mov qword [rsp + rcx*8 + 0x60], rax
lea ebp, [rbx + 1]
mov rbx, rsi
mov qword [rsp + 0x58], rbx
movabs rcx, 0x7fffffffffffffff
movabs rdi, 0x431bde82d7b634db
cmp qword [r14], rcx
je 0x14009a60b
lea rcx, [rsp + 0x50]
call fcn.14009ae60
mov rcx, qword [r14]
sub rcx, qword [rax]
mov rax, rdi
js 0x14009a4fa
add rcx, 0xf423f
jmp 0x14009a501
add rcx, 0xfffffffffff0bdc1
imul rcx
mov rdi, rdx
sar rdi, 0x12
mov rax, rdi
shr rax, 0x3f
add rdi, rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14009a601
mov esi, 0x20
cmp rdi, 0x294
jl 0x14009a56e
movabs rax, 0x6666666666666667
imul rdi
mov rsi, rdx
sar rsi, 3
mov rax, rsi
shr rax, 0x3f
add rsi, rax
cmp esi, 0x3e8
jbe 0x14009a56e
mov esi, 0x3e8
jmp 0x14009a57a
xor eax, eax
mov qword [rsp + 0x48], rax
test rdi, rdi
jle 0x14009a586
imul rax, rdi, 0xffffffffffffd8f0
mov qword [rsp + 0x48], rax
mov r10, qword [0x140250f30]
test r10, r10
jne 0x14009a5c4
lea rcx, [0x1401be518]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.SetWaitableTimerEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r10, [0x140099ae0]
test rax, rax
cmovne r10, rax
mov qword [0x140250f30], r10
mov dword [rsp + 0x30], esi
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rbx
call r10
movabs rcx, 0x7fffffffffffffff
test eax, eax
je 0x14009a60b
mov r15d, ebp
mov eax, ebp
mov qword [rsp + rax*8 + 0x60], rbx
inc ebp
jmp 0x14009a60b
movabs rcx, 0x7fffffffffffffff
mov edi, 0xffffffff
cmp r15d, edi
jne 0x14009a661
cmp qword [r14], rcx
je 0x14009a661
lea rcx, [rsp + 0x50]
call fcn.14009ae60
mov rcx, qword [r14]
sub rcx, qword [rax]
movabs rax, 0x431bde82d7b634db
js 0x14009a63f
add rcx, 0xf423f
jmp 0x14009a646
add rcx, 0xfffffffffff0bdc1
imul rcx
mov rdi, rdx
sar rdi, 0x12
mov rax, rdi
shr rax, 0x3f
add rdi, rax
test rdi, rdi
cmovs rdi, rsi
movsd xmm6, qword [0x1401be800]
nop dword [rax]
test ebp, ebp
je 0x14009a6ab
mov dword [rsp + 0x20], esi
mov r9d, edi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, ebp
jae 0x14009a6bb
cmp eax, r13d
je 0x14009a837
cmp eax, r12d
je 0x14009a873
cmp eax, r15d
jne 0x14009a6bb
jmp 0x14009a7c7
test edi, edi
jne 0x14009a6b3
xor ecx, ecx
jmp 0x14009a6b5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xffffffff
cmp r15d, eax
jne 0x14009a7b5
movabs rcx, 0x7fffffffffffffff
cmp qword [r14], rcx
je 0x14009a7b5
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x14009a710
mov r9d, 0x197
lea rcx, str.0___Boost::Thread___QueryPerformanceFrequency_Internal_Error_
lea rdx, str.struct_boost::detail::mono_platform_timepoint___cdecl_boost::detail::mono_platform_clock::now_void_
lea r8, str.._boost_thread_detail_platform_time.hpp
call fcn.1401a2ff0
mov rax, rsi
jmp 0x14009a768
cmp qword [rsp + 0x50], 0
jg 0x14009a720
mov r9d, 0x19c
jmp 0x14009a6f1
mov edi, esi
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14009a747
inc edi
cmp edi, 3
ja 0x14009a783
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14009a731
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x48]
mulsd xmm1, xmm6
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x50]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov rcx, qword [r14]
sub rcx, rax
movabs rax, 0x431bde82d7b634db
js 0x14009a795
add rcx, 0xf423f
jmp 0x14009a79c
mov r9d, 0x1a6
lea rcx, str.0___Boost::Thread___QueryPerformanceCounter_Internal_Error_
jmp 0x14009a6f8
add rcx, 0xfffffffffff0bdc1
imul rcx
mov rdi, rdx
sar rdi, 0x12
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov eax, 0xffffffff
cmp rdi, rax
je 0x14009a670
test rdi, rdi
jg 0x14009a670
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14009a7ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14009a7ff
mov r9d, 0xe7
lea r8, str.._boost_thread_win32_thread_primitives.hpp
lea rdx, str.void___cdecl_boost::detail::win32::handle_manager::cleanup_void_
lea rcx, str.::boost::winapi::CloseHandle_handle_to_manage_
call fcn.1401a2ff0
nop
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14009b490
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14009a86f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14009a86f
mov r9d, 0xe7
lea r8, str.._boost_thread_win32_thread_primitives.hpp
lea rdx, str.void___cdecl_boost::detail::win32::handle_manager::cleanup_void_
lea rcx, str.::boost::winapi::CloseHandle_handle_to_manage_
call fcn.1401a2ff0
nop
mov al, 1
jmp 0x14009a801
call fcn.14009a310
lea rcx, [rax + 0x68]
call fcn.140099ad0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rdx, [0x14024a148]
lea rcx, [rsp + 0x40]
call fcn.14009d944
int3