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

Disassembly:
jmp 0x1400a2620
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
movaps xmmword [r11 - 0x38], xmm6
mov rax, qword [0x140118988]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r14, rdx
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov edx, 0xffffffff
mov r12d, edx
mov r15d, edx
cmp rcx, 0xffffffffffffffff
cmovne rax, rcx
mov qword [r11 - 0x60], rax
xor esi, esi
mov r13d, esi
cmp rcx, 0xffffffffffffffff
cmove r13d, edx
mov ebx, esi
setne bl
mov ecx, dword [0x140118ac0]
cmp ecx, edx
jne 0x1400a26a6
mov ebp, ebx
jmp 0x1400a26fb
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, ebx
test rax, rax
je 0x1400a26fb
mov ecx, dword [0x140118ac0]
mov rdx, r12
cmp ecx, r12d
jne 0x1400a26c6
mov rax, rsi
jmp 0x1400a26d5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x140118ac0]
mov rdx, r12
cmp byte [rax + 0x70], sil
je 0x1400a26fb
mov r12d, ebx
cmp ecx, edx
jne 0x1400a26e7
mov rax, rsi
jmp 0x1400a26ed
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x68]
mov eax, ebx
mov qword [rsp + rax*8 + 0x68], rcx
lea ebp, [rbx + 1]
mov rbx, rsi
mov qword [rsp + 0x58], rbx
movabs rcx, 0x7fffffffffffffff
movabs rdi, 0x431bde82d7b634db
cmp qword [r14], rcx
je 0x1400a283d
lea rcx, [rsp + 0x58]
call fcn.140004368
mov rcx, qword [r14]
sub rcx, qword [rax]
mov rax, rdi
js 0x1400a273e
add rcx, 0xf423f
jmp 0x1400a2745
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_CreateWaitableTimerW]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400a2833
mov esi, 0x20
cmp rdi, 0x294
jl 0x1400a27a3
movabs rax, 0x6666666666666667
imul rdi
mov rsi, rdx
sar rsi, 3
mov rax, rsi
shr rax, 0x3f
add rsi, rax
xor eax, eax
mov qword [rsp + 0x48], rax
test rdi, rdi
jle 0x1400a27bb
imul rax, rdi, 0xffffffffffffd8f0
mov qword [rsp + 0x48], rax
mov rax, qword [0x14011d2e8]
test rax, rax
jne 0x1400a27f7
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 0x1400a27f0
lea rax, [0x1400a14b0]
mov qword [0x14011d2e8], rax
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 rax
movabs rcx, 0x7fffffffffffffff
test eax, eax
je 0x1400a283d
mov r15d, ebp
mov eax, ebp
mov qword [rsp + rax*8 + 0x68], rbx
inc ebp
jmp 0x1400a283d
movabs rcx, 0x7fffffffffffffff
mov edi, 0xffffffff
cmp r15d, edi
jne 0x1400a2893
cmp qword [r14], rcx
je 0x1400a2893
lea rcx, [rsp + 0x50]
call fcn.140004368
mov rcx, qword [r14]
sub rcx, qword [rax]
movabs rax, 0x431bde82d7b634db
js 0x1400a2871
add rcx, 0xf423f
jmp 0x1400a2878
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 [0x1400d7178]
nop dword [rax + rax]
test ebp, ebp
je 0x1400a2921
mov dword [rsp + 0x20], esi
mov r9d, edi
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, ebp
jae 0x1400a2931
cmp eax, r13d
je 0x1400a2a0d
cmp eax, r12d
je 0x1400a2a27
cmp eax, r15d
jne 0x1400a2931
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400a28e9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140001c58
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
test edi, edi
jne 0x1400a2929
xor ecx, ecx
jmp 0x1400a292b
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xffffffff
cmp r15d, eax
jne 0x1400a29f6
movabs rcx, 0x7fffffffffffffff
cmp qword [r14], rcx
je 0x1400a29f6
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x1400a2966
mov rax, rsi
jmp 0x1400a29bb
cmp qword [rsp + 0x50], 0
jg 0x1400a2973
mov rax, rsi
jmp 0x1400a29bb
mov edi, esi
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1400a299a
inc edi
cmp edi, 3
ja 0x1400a2961
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400a2984
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 0x1400a29d6
add rcx, 0xf423f
jmp 0x1400a29dd
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 0x1400a28a0
test rdi, rdi
jle 0x1400a28d6
jmp 0x1400a28a0
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400a2a20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400a28eb
call fcn.140002306
lea rcx, [rax + 0x68]
call fcn.140001a28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rdx, [0x140116c60]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3