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

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rdi, r8
mov rbp, rdx
mov r15, rcx
xor esi, esi
call fcn.10006bba0
test eax, eax
je 0x1000d3c5c
test byte [rbp + 0x1008], 8
jne 0x1000d3c5c
call qword [0x10023f478]
test rax, rax
jne 0x1000d3c5c
cmp qword [rdi + 0x210], rsi
jne 0x1000d3c55
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rdi + 0x210], rsi
je 0x1000d3c41
xor eax, eax
jmp 0x1000d40a7
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [r15 + 0x30], edx
mov ecx, esi
sete cl
test ecx, ecx
jne 0x1000d3c7d
lea rcx, [r15 + 0x30]
call fcn.10005ad30
lea rdx, [r15 + 0x18]
mov r14, qword [rdx + 8]
cmp r14, rdx
je 0x1000d3fd8
test r14, r14
je 0x1000d3fd8
mov rcx, qword [r14 + 8]
mov rax, qword [r14]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [r14 + 8], rsi
mov qword [r14], rsi
dec qword [rdx + 0x10]
mov dword [r15 + 0x30], esi
lock inc dword [r14 + 0x20]
mov qword [rdi + 0x210], r14
inc dword [rdi + 0x80]
call fcn.10011b7d0
test eax, eax
je 0x1000d3ce8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x20]
mov qword [rdi + 0xa8], r11
jmp 0x1000d3cf7
mov rax, qword [0x7ffe0008]
mov qword [rdi + 0xa8], rax
mov rax, qword [r14 + 0x58]
cmp rax, qword [rdi + 0x1f0]
je 0x1000d3d11
mov qword [rdi + 0x1f0], rax
mov dword [rdi + 0x200], esi
mov rax, qword [r14 + 0x60]
test rax, rax
je 0x1000d3d27
add rax, 0x3a8
mov qword [rdi + 0x3a8], rax
lea rbx, [r14 + 0x90]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rbx], edx
mov ecx, esi
sete cl
mov rbx, qword [rsp + 0x38]
test ecx, ecx
jne 0x1000d3d5a
mov rcx, rbx
call fcn.100057ac0
mov dword [rsp + 0x40], 1
mov qword [r14 + 0x98], rdi
mov eax, dword [rdi + 0x88]
mov dword [r14 + 0x154], eax
mov eax, dword [rdi + 0x8c]
mov dword [r14 + 0x158], eax
mov rax, qword [rdi + 0x90]
mov qword [r14 + 0x160], rax
mov rax, qword [rdi + 0x3a0]
mov qword [r14 + 0x168], rax
test rbx, rbx
je 0x1000d3da6
mov dword [rbx], esi
call fcn.10006bc70
test eax, eax
je 0x1000d3dfa
mov rax, qword [r14 + 0x38]
mov qword [rdi + 0xb0], rax
call fcn.10011b7d0
test eax, eax
je 0x1000d3dd5
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x28]
jmp 0x1000d3ddd
mov r11, qword [0x7ffe0008]
mov qword [rdi + 0xb8], r11
call fcn.1000d23a0
mov rdx, rax
xor r9d, r9d
mov r8, rdi
mov rcx, rbp
call fcn.1000d7370
lea rbx, [r14 + 0x10]
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x1000d3f19
cmp qword [rbx + 8], 0
je 0x1000d3e22
mov rcx, rbx
call fcn.1000585a0
jmp 0x1000d3f19
add rbx, 0xfffffffffffffff0
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x1000d3e79
mov rdi, qword [rbx + 0xa0]
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rdi + 0xf80], edx
mov ecx, esi
sete cl
test ecx, ecx
jne 0x1000d3e5e
lea rcx, [rdi + 0xf80]
call fcn.100057ac0
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rbx + 8], rsi
mov qword [rbx], rsi
mov dword [rdi + 0xf80], esi
call fcn.100058010
test rax, rax
je 0x1000d3ea1
cmp qword [rax + 0x1e8], rbx
jne 0x1000d3ea1
test rbx, rbx
lea rcx, [rbx - 8]
jne 0x1000d3e98
mov rcx, rsi
xor edx, edx
call fcn.100058e50
jmp 0x1000d3f19
test rbx, rbx
je 0x1000d3eac
add rbx, 0xfffffffffffffff8
jmp 0x1000d3eaf
mov rbx, rsi
mov qword [rsp + 0x98], rbx
test rbx, rbx
je 0x1000d3f19
lea rax, [0x100002a88]
mov qword [rbx], rax
lea rcx, [rbx + 8]
call fcn.100058db0
mov rax, rbx
mov edx, 0x200
and rax, 0xffffffffffffe000
je 0x1000d3ee9
cmp word [rax + 4], dx
jne 0x1000d3ee9
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rbx
je 0x1000d3f06
cmp word [rcx + 4], dx
jne 0x1000d3f06
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x1000d3f19
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x28]
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000d3f44
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1000d3f55
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x1000d3f8c
call fcn.100063d30
call fcn.100068a00
mov rdi, rax
mov rbx, qword gs:[0x30]
add rbx, rax
mov rcx, rax
call fcn.10006c530
test eax, eax
jne 0x1000d3f85
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0xd8]
rdtsc
shl rdx, 0x20
or rax, rdx
mov r8, qword [rcx + 0x2f8]
cmp rax, r8
ja 0x1000d3fce
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x1000d40a1
movabs rax, 0x7fffffffffffffff
cmp r8, rax
je 0x1000d40a1
call fcn.1000655c0
jmp 0x1000d40a1
mov ecx, dword [rbp + 0xaa4]
mov eax, dword [rbp + 0x1078]
cmp dword [rbp + 0x1014], esi
jne 0x1000d3ff2
add eax, dword [rbp + 0xaa8]
cmp ecx, eax
jle 0x1000d4025
mov eax, dword [0x100278934]
test eax, eax
jle 0x1000d4025
mov rdx, qword [rbp + 0xaa8]
movsxd rcx, dword [rbp + 0xaa4]
sub rcx, rdx
cmp rcx, 1
jle 0x1000d4025
mov dword [r15 + 0x30], esi
mov esi, 5
jmp 0x1000d40a5
mov qword [rdi + 0x210], rsi
mov rax, qword [r15 + 8]
mov qword [rdi + 8], rax
mov rax, qword [r15 + 8]
mov qword [rax], rdi
mov qword [r15 + 8], rdi
mov qword [rdi], r15
inc qword [r15 + 0x10]
mov dword [r15 + 0x30], esi
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.100057f20
nop
mov eax, dword [rdi + 0x2d8]
test al, 4
je 0x1000d4077
bt eax, 0xc
jb 0x1000d4077
or edx, 0xffffffff
mov rcx, rdi
call fcn.1000da490
jmp 0x1000d408a
or r8d, 0xffffffff
mov rdx, rdi
mov rcx, qword [rdi + 0x218]
call fcn.1000da690
mov esi, eax
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x48]
not ecx
and dword [rdx + 0x220], ecx
test eax, eax
jne 0x1000d40a5
inc qword [r15 + 0x48]
mov eax, esi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret