Function at 0x10000c1d8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
lea rcx, [rsp + 0x70]
xor r12d, r12d
xor ebx, ebx
and qword [rsp + 0x60], r12
and qword [rsp + 0x70], rbx
xor r14d, r14d
xor r13b, r13b
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
dec qword [rsp + 0x68]
mov rdx, qword [0x10001e2b8]
lea rdi, [0x10001e2b8]
lea rax, [0x10001e2a8]
mov rbp, qword [0x10001e2a8]
cmp rbp, rax
jne 0x10000c24a
cmp rdx, rdi
je 0x10000c630
cmp rbp, rax
je 0x10000c558
lea rsi, [rbp - 0x18]
cmp rsi, r12
je 0x10000c2f5
cmp dword [0x10008033c], 0
jne 0x10000c2a3
mov rcx, qword [rsi + 0x40]
cmp dword [rcx + 0x9c], 0
jne 0x10000c2a3
mov eax, dword [rcx + 0x1c]
mov edi, dword [rcx + 0x18]
mov r9d, 1
mov dword [rcx + 0x18], eax
mov rcx, qword [rsi + 0x40]
xor r8d, r8d
mov edx, 0x10cd
call fcn.10000fa7c
mov r11, qword [rsi + 0x40]
mov dword [r11 + 0x18], edi
mov rax, qword [rsi + 0x40]
mov dword [rax + 0x9c], 1
mov al, byte [rsi + 0x29]
mov rcx, rsi
cmp al, 7
jne 0x10000c2e1
mov rbp, qword [rbp]
lea r8, [rsi + 0x18]
mov rdx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rdx + 8], rax
mov rdx, qword [r8 + 8]
mov rax, qword [r8]
mov qword [rdx], rax
mov qword [r8], r8
mov qword [r8 + 8], r8
mov rax, qword [rsi]
mov edx, 1
call qword [rax + 8]
jmp 0x10000c53a
xor r8d, r8d
mov edx, 0x1005
mov dword [rsi + 0x54], 0x1005
call fcn.10000fbb4
movzx ecx, byte [rsi + 0x29]
sub ecx, 1
je 0x10000c4f0
sub ecx, 1
je 0x10000c480
sub ecx, 1
je 0x10000c31f
sub ecx, 1
je 0x10000c372
cmp ecx, 2
je 0x10000c33b
jmp 0x10000c509
mov rdx, qword [rsi + 0x38]
mov r8d, 1
mov rcx, rsi
call fcn.10000b25c
cmp dword [rsi + 0x2c], 0
jne 0x10000c372
mov byte [rsi + 0x29], 6
mov rbp, qword [rbp]
lea rdx, [rsi + 0x18]
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov qword [rcx], rax
mov ecx, 0x64
mov qword [rdx], rdx
mov qword [rdx + 8], rdx
call fcn.100010000
lea rdx, [0x10001e1d0]
jmp 0x10000c3e2
mov eax, dword [rsi + 0x2c]
cmp eax, 8
je 0x10000c394
cmp eax, 0xe
je 0x10000c394
cmp eax, 0x46a
je 0x10000c394
cmp eax, 0x540
je 0x10000c394
cmp eax, 0x8007000e
jne 0x10000c397
mov r13b, 1
mov rbp, qword [rbp]
lea rdi, [rsi + 0x18]
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
mov ecx, dword [rsi + 0x2c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [rsi + 0x30]
mov rdx, rsi
call fcn.10000e8e8
mov r11d, dword [0x10001e15c]
test r11d, r11d
jns 0x10000c3f5
lea rdx, [0x10001e200]
mov r8d, 1
mov rcx, rsi
call fcn.10000adac
jmp 0x10000c537
mov ecx, dword [rsi + 0x34]
cmp ecx, r11d
lea eax, [rcx + 1]
mov dword [rsi + 0x34], eax
jl 0x10000c414
mov edx, 1
mov ecx, 0xe3
call fcn.10000e4cc
jmp 0x10000c3db
lea rax, [0x10001e2b8]
cmp qword [0x10001e2b8], rax
jne 0x10000c45f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movabs rax, 0x20c49ba5e353f7cf
imul qword [rsp + 0x70]
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
movsxd rax, dword [0x10001e158]
imul rbx, rax
add rbx, qword [rsp + 0x60]
mov rcx, qword [0x10001e2c0]
mov rax, qword [rcx]
mov qword [rdi], rax
mov qword [rax + 8], rdi
mov qword [rcx], rdi
mov qword [rdi + 8], rcx
mov byte [rsi + 0x29], 5
jmp 0x10000c537
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp rsi, r12
jne 0x10000c499
movzx eax, byte [rsi + 0x28]
cmp eax, r14d
je 0x10000c509
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jl 0x10000c509
movzx r14d, byte [rsi + 0x28]
mov al, byte [rsi + 0x28]
test al, al
jne 0x10000c4b7
cmp dword [rsi + 0x34], 0
jg 0x10000c4fd
movzx ecx, byte [rsi + 0x28]
call fcn.100010000
movabs rax, 0x20c49ba5e353f7cf
imul qword [rsp + 0x70]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0xc8
add rdx, qword [rsp + 0x60]
mov qword [rsp + 0x68], rdx
jmp 0x10000c509
mov al, byte [rsi + 0x28]
test al, al
jne 0x10000c509
cmp dword [rsi + 0x34], 0
jle 0x10000c509
xor edx, edx
mov ecx, 0xe1
call fcn.10000e4cc
mov rcx, qword [0x10006f468]
xor r8d, r8d
mov edx, 0xc8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x10000c537
sub eax, 0x80
je 0x10000c537
sub eax, 0x40
je 0x10000c537
cmp eax, 0x42
jne 0x10000c653
mov r12, rsi
lea rax, [0x10001e2a8]
cmp rbp, rax
jne 0x10000c24a
mov rdx, qword [0x10001e2b8]
lea rdi, [0x10001e2b8]
cmp rdx, rdi
je 0x10000c587
mov eax, 0x10624dd3
imul dword [0x10001e158]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
call fcn.10000f6d8
jmp 0x10000c587
mov edx, 1
lea ecx, [rdx + 0x63]
call qword [sym.imp.KERNEL32.dll_SleepEx]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [rsp + 0x60], rbx
jl 0x10000c579
test r13b, r13b
je 0x10000c5b0
mov rcx, qword [0x100080450]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadpoolThreadMaximum]
mov rdx, qword [0x10001e2b8]
lea rax, [0x10001e2a8]
cmp rdx, rdi
je 0x10000c22c
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov qword [rcx], rax
mov qword [rdx], rdx
mov qword [rdx + 8], rdx
lea rcx, [rdx - 0x18]
and dword [rcx + 0x2c], 0
mov byte [rcx + 0x29], 1
mov byte [rcx + 0x28], 0
mov r8, qword [0x10001e2b0]
lea rdx, [rcx + 0x18]
mov rax, qword [r8]
mov qword [rdx], rax
mov qword [rax + 8], rdx
mov qword [r8], rdx
mov qword [rdx + 8], r8
mov rax, qword [rcx + 0x40]
and dword [rax + 0x9c], 0
call fcn.10000bf00
mov rdx, qword [0x10001e2b8]
cmp rdx, rdi
jne 0x10000c5c7
jmp 0x10000c225
mov rcx, qword [0x100080458]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroupMembers]
mov rcx, qword [0x10006f468]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10000c659
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret