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

Disassembly:
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 [0x1401af968]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r15, rdx
xor esi, esi
mov qword [r11 - 0x60], rsi
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov ebp, esi
mov ebx, 0xffffffff
mov r13d, ebx
mov dword [rsp + 0x50], ebx
mov r12d, ebx
cmp rcx, 0xffffffffffffffff
je 0x14010e5c6
mov r13d, esi
mov qword [r11 - 0x60], rcx
lea ebp, [rsi + 1]
mov ecx, dword [0x1401af950]
cmp ecx, ebx
je 0x14010e61c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14010e61c
mov ecx, dword [0x1401af950]
cmp ecx, ebx
jne 0x14010e5ea
mov rax, rsi
jmp 0x14010e5f6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1401af950]
cmp byte [rax + 0x70], sil
je 0x14010e61c
mov dword [rsp + 0x50], ebp
cmp ecx, ebx
jne 0x14010e609
mov rax, rsi
jmp 0x14010e60f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x68]
mov eax, ebp
mov qword [rsp + rax*8 + 0x68], rcx
inc ebp
mov rbx, rsi
mov qword [rsp + 0x58], rbx
movabs rax, 0x7fffffffffffffff
movabs rdi, 0x431bde82d7b634db
cmp qword [r15], rax
je 0x14010e764
lea rcx, [rsp + 0x40]
call fcn.14010f940
mov rcx, qword [r15]
sub rcx, qword [rax]
mov rax, rdi
js 0x14010e65f
add rcx, 0xf423f
jmp 0x14010e666
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 0x14010e75a
mov r14d, 0x20
cmp rdi, 0x294
jl 0x14010e6d1
movabs rax, 0x6666666666666667
imul rdi
mov r14, rdx
sar r14, 3
mov rax, r14
shr rax, 0x3f
add r14, rax
mov eax, 0x3e8
cmp r14d, eax
cmova r14d, eax
mov qword [rsp + 0x40], rsi
test rdi, rdi
jle 0x14010e6e7
imul rax, rdi, 0xffffffffffffd8f0
mov qword [rsp + 0x40], rax
mov r10, qword [0x1401faa50]
test r10, r10
jne 0x14010e725
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]
lea r10, [0x14010c480]
test rax, rax
cmovne r10, rax
mov qword [0x1401faa50], r10
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call r10
test eax, eax
setne al
test al, al
je 0x14010e75a
mov r12d, ebp
mov eax, ebp
mov qword [rsp + rax*8 + 0x68], rbx
inc ebp
movabs rax, 0x7fffffffffffffff
mov r14d, 0xffffffff
mov edi, r14d
cmp r12d, r14d
jne 0x14010e7be
cmp qword [r15], rax
je 0x14010e7be
lea rcx, [rsp + 0x40]
call fcn.14010f940
mov rcx, qword [r15]
sub rcx, qword [rax]
movabs rax, 0x431bde82d7b634db
js 0x14010e79c
add rcx, 0xf423f
jmp 0x14010e7a3
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 [0x140186fb8]
mov r14d, dword [rsp + 0x50]
nop dword [rax + rax]
test ebp, ebp
je 0x14010e80c
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 0x14010e81c
cmp eax, r13d
je 0x14010e93f
cmp eax, r14d
je 0x14010e90b
cmp eax, r12d
je 0x14010e8f5
jmp 0x14010e81c
test edi, edi
jne 0x14010e814
xor ecx, ecx
jmp 0x14010e816
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0xffffffff
cmp r12d, eax
jne 0x14010e8e2
movabs rcx, 0x7fffffffffffffff
cmp qword [r15], rcx
je 0x14010e8e2
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x14010e851
mov rax, rsi
jmp 0x14010e8a7
cmp qword [rsp + 0x50], 0
jg 0x14010e85e
mov rax, rsi
jmp 0x14010e8a7
mov edi, esi
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14010e886
nop
inc edi
cmp edi, 3
ja 0x14010e84c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14010e870
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x40]
mulsd xmm1, xmm6
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x50]
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov rcx, qword [r15]
sub rcx, rax
movabs rax, 0x431bde82d7b634db
js 0x14010e8c2
add rcx, 0xf423f
jmp 0x14010e8c9
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 0x14010e7d0
test rdi, rdi
jle 0x14010e957
jmp 0x14010e7d0
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14010e909
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14010e96b
mov ecx, dword [0x1401af950]
mov eax, 0xffffffff
cmp ecx, eax
je 0x14010e923
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rdx, [0x1401a98f0]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14010e953
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov al, 1
jmp 0x14010e96d
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14010e96b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401185a0
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