Function at 0x14008ae20
Capabilities:
Check for time delay via queryperformancecounter
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov ebx, r8d
mov rsi, rdx
mov dword [0x1400f2090], 0
cmp r8b, 4
jne 0x14008ae46
xor r15d, r15d
jmp 0x14008ae88
mov edx, dword [0x140178928]
cmp edx, dword [0x140178c34]
jae 0x14008b13e
mov r15, qword [0x140178c28]
movsxd rax, dword [0x140178c30]
imul rax, rdx
mov rdx, qword [r15 + rax + 0x38]
test rdx, rdx
je 0x14008b13e
cmp rdx, qword [0x140178920]
jne 0x14008b13e
add r15, rax
mov byte [0x1400c5c40], 2
mov byte [0x1400e4448], 1
mov rdx, qword [rcx]
mov rdi, qword [rcx + 8]
lea r14, [0x1400edb74]
mov rcx, r14
mov r8, rdi
call fcn.140091e40
mov qword [0x1400e4b80], r14
mov qword [0x1400e4b88], rdi
mov rdx, qword [rsi]
mov rsi, qword [rsi + 8]
lea rdi, [0x1400edbb4]
mov rcx, rdi
mov r8, rsi
call fcn.140091e40
mov qword [0x1400e4b90], rdi
mov qword [0x1400e4b98], rsi
mov byte [0x1400edb71], bl
lea rcx, [0x1400e9138]
call fcn.140001a40
mov dword [0x1400e904c], 0
mov rax, qword [0x1400e9110]
mov qword [0x1400e9130], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
imul rax, qword [rsp + 0x30], 0xf4240
mov rcx, qword [rsp + 0x48]
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x14008af45
xor edx, edx
div rcx
jmp 0x14008af49
xor edx, edx
div ecx
mov qword [0x1400f2008], rax
lock or word [0x1400e4ba2], 4
mov qword [0x1400e9110], 0
movzx eax, word [0x1400e4ba2]
test al, 2
jne 0x14008af7f
mov rax, qword [0x1400e9110]
mov qword [0x1400e9118], rax
jmp 0x14008af9f
mov rax, qword [0x1400e9118]
cmp rax, qword [0x1400e9110]
jge 0x14008af9f
lea rcx, [0x1400e9118]
lea rax, [0x1400e9110]
jmp 0x14008afad
lea rax, [0x1400e9118]
lea rcx, [0x1400e9110]
mov qword [0x1400e9120], rcx
mov qword [0x1400e9128], rax
lea rcx, [0x1400ed918]
call fcn.140001a40
mov dword [0x1400ed82c], 0
mov rax, qword [0x1400ed8f0]
mov qword [0x1400ed910], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
imul rax, qword [rsp + 0x30], 0xf4240
mov rcx, qword [rsp + 0x48]
mov rdx, rax
or rdx, rcx
shr rdx, 0x20
je 0x14008b016
xor edx, edx
div rcx
jmp 0x14008b01a
xor edx, edx
div ecx
mov qword [0x1400f2008], rax
lock or word [0x1400e9382], 4
mov qword [0x1400ed8f0], 0
movzx eax, word [0x1400e9382]
test al, 2
jne 0x14008b050
mov rax, qword [0x1400ed8f0]
mov qword [0x1400ed8f8], rax
jmp 0x14008b070
mov rax, qword [0x1400ed8f8]
cmp rax, qword [0x1400ed8f0]
jge 0x14008b070
lea rcx, [0x1400ed8f8]
lea rax, [0x1400ed8f0]
jmp 0x14008b07e
lea rax, [0x1400ed8f8]
lea rcx, [0x1400ed8f0]
mov qword [0x1400ed900], rcx
mov qword [0x1400ed908], rax
lea rax, [0x1400e4ba0]
mov qword [0x140178920], rax
mov byte [0x1400edb72], 0
mov byte [0x1400edb73], 1
cmp bl, 4
jne 0x14008b0e5
vmovups xmm0, xmmword [0x1400a89f0]
vmovaps xmmword [rsp + 0x30], xmm0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140074270]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
jmp 0x14008b11f
mov rsi, qword [r15 + 0x38]
vmovups xmm0, xmmword [0x1400a89f0]
vmovaps xmmword [rsp + 0x30], xmm0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x1400745c0]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14008b135
call qword [sym.imp.KERNEL32.dll_GetLastError]
lock or qword [0x1400c5c48], 0x10
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret