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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rbp, rdx
mov rsi, rcx
xor r15d, r15d
test byte [rcx + 0x1008], 8
je 0x1000d89bd
call fcn.10011b7d0
test eax, eax
je 0x1000d8858
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rdi, qword [rsp + 0x90]
jmp 0x1000d8860
mov rdi, qword [0x7ffe0008]
mov rax, qword [rbp + 0x2e8]
cmp rdi, rax
jb 0x1000d88b9
mov rbx, rdi
sub rbx, rax
je 0x1000d88bc
add qword [rbp + 0x3a0], rbx
mov rax, qword [rbp + 0x218]
test byte [rax + 0x1008], 8
jne 0x1000d88bc
call fcn.100068930
test eax, eax
je 0x1000d88a3
mov rdx, rbx
mov rcx, qword [rbp + 0x1f0]
call fcn.100108820
mov rcx, qword [rbp + 0x3a8]
test rcx, rcx
je 0x1000d88bc
mov rax, rbx
lock xadd qword [rcx], rax
jmp 0x1000d88bc
mov rbx, r15
movabs rax, 0x7fffffffffffffff
cmp qword [rbp + 0x2f8], rax
je 0x1000d8918
mov rax, qword [rbp + 0x3b0]
mov rcx, rbx
cmp rax, rbx
cmova rcx, rax
mov qword [rbp + 0x3b0], rcx
cmp qword [rbp + 0x3d8], r15
je 0x1000d8918
mov rax, qword [0x1002784f0]
cmp rbx, rax
jbe 0x1000d8918
mov rcx, qword [rbp + 0x2f0]
cmp rdi, rcx
jb 0x1000d8918
sub rdi, rcx
cmp rdi, rax
jbe 0x1000d8918
mov rcx, rbp
call fcn.100066420
mov eax, dword [rbp + 0x2d8]
mov ecx, eax
xor ecx, 4
and ecx, eax
mov dword [rbp + 0x2d8], ecx
cmp qword [rbp + 0x3d8], r15
je 0x1000d8953
call fcn.100068bb0
test byte [rax + 0xbb], 0x10
je 0x1000d8953
mov edx, 6
mov rcx, qword [rbp + 0x3d8]
call fcn.1000680b0
call fcn.10011b7d0
test eax, eax
je 0x1000d8974
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x98]
jmp 0x1000d897c
mov r11, qword [0x7ffe0008]
mov qword [rbp + 0x2e8], r11
mov qword [rbp + 0x2f0], r11
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, qword [rbp + 0x218]
add rax, qword [rcx + 0xab0]
mov qword [rbp + 0x2f8], rax
or dword [rsi + 0x1010], 4
mov qword [rsi + 0x1028], rbp
mov qword [rsi + 0x1020], rbp
mov r12d, 0x200
lea r13, [0x100002a88]
nop word [rax + rax]
lea rcx, [rsi + 0xf00]
mov r8, rbp
mov rdx, rsi
call fcn.1000d3bf0
mov ebx, eax
cmp eax, 0x102
je 0x1000d8dce
cmp eax, 5
je 0x1000d8dce
mov rdi, qword [rbp + 0x210]
mov ebx, dword [rdi + 0x40]
shr ebx, 1
and ebx, 1
je 0x1000d8a15
inc qword [rsi + 0xaa8]
call fcn.10006b8f0
cmp dword [rsi + 0xf10], 0
jne 0x1000d8a89
movsxd rdx, dword [rsi + 0x1088]
movsxd rax, dword [0x10023cc00]
cmp rdx, rax
jge 0x1000d8a89
mov rcx, rsi
call fcn.1000d9bc0
test eax, eax
jne 0x1000d8a89
lock inc dword [rsi + 0x1088]
xor r9d, r9d
lea r8d, [rax + 1]
mov rdx, rsi
mov rcx, qword [rsi + 0x1070]
call fcn.1000fef70
test eax, eax
je 0x1000d8a82
mov dword [rsi + 0xf50], 1
lock dec dword [rsi + 0x1088]
cmp dword [rsi + 0xabc], 0x100000
jae 0x1000d8a89
call fcn.10006b8f0
jmp 0x1000d8a89
mov dword [rsi + 0xf50], r15d
mov rdx, rbp
mov rcx, rsi
call fcn.1000d8e80
mov r14d, eax
test eax, eax
jne 0x1000d8aab
test dword [rbp + 0x2d8], 0x40000
je 0x1000d8b45
test byte [rsi + 0x1008], 8
jne 0x1000d8b42
lock dec dword [rsi + 0xaa4]
cmp dword [rsi + 0xf10], 0
jne 0x1000d8b33
movsxd rdx, dword [rsi + 0x1088]
movsxd rax, dword [0x10023cc00]
cmp rdx, rax
jge 0x1000d8b33
mov rcx, rsi
call fcn.1000d9bc0
test eax, eax
jne 0x1000d8b33
lock inc dword [rsi + 0x1088]
xor r9d, r9d
lea r8d, [rax + 1]
mov rdx, rsi
mov rcx, qword [rsi + 0x1070]
call fcn.1000fef70
test eax, eax
je 0x1000d8b2c
mov dword [rsi + 0xf50], 1
lock dec dword [rsi + 0x1088]
cmp dword [rsi + 0xabc], 0x100000
jae 0x1000d8b33
call fcn.10006b8f0
jmp 0x1000d8b33
mov dword [rsi + 0xf50], r15d
lock inc dword [rsi + 0xaa4]
mov r14d, 0x80000000
jmp 0x1000d8b45
mov r14d, r15d
test ebx, ebx
je 0x1000d8b55
dec qword [rsi + 0xaa8]
call fcn.10006b910
mov rdx, qword [rbp + 0x1d0]
test rdx, rdx
je 0x1000d8bac
mov rax, rdx
and rax, 0xffffffffffffe000
je 0x1000d8b77
cmp word [rax + 4], r12w
jne 0x1000d8b77
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rdx
je 0x1000d8b95
cmp word [rcx + 4], r12w
jne 0x1000d8b95
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x1000d8ba5
mov rax, qword [rcx]
call qword [rax + 0x28]
mov qword [rbp + 0x1d0], r15
lea rbx, [rdi + 0x90]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], r15d
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rbx], edx
mov ecx, r15d
sete cl
mov rbx, qword [rsp + 0x28]
test ecx, ecx
jne 0x1000d8be1
mov rcx, rbx
call fcn.100057ac0
mov dword [rsp + 0x30], 1
mov rdx, qword [rdi + 0x98]
mov eax, dword [rdx + 0x208]
mov dword [rdi + 0x108], eax
mov rax, qword [rdx + 0x3c0]
mov qword [rdi + 0x10c], rax
mov rax, qword [rdx + 0x3c8]
mov qword [rdi + 0x114], rax
mov rax, qword [rdx + 0x3d0]
mov qword [rdi + 0x11c], rax
mov qword [rdi + 0x98], r15
cmp qword [rdi + 0x140], 0
je 0x1000d8c47
mov rdx, rdi
mov rcx, qword [rdi + 0xa0]
call fcn.100066a70
nop
test rbx, rbx
je 0x1000d8c4f
mov dword [rbx], r15d
mov rcx, qword [rbp + 0x210]
mov qword [rbp + 0x210], r15
mov rax, qword [rbp + 0x1e8]
cmp rax, 0
cmove rax, rcx
mov qword [rbp + 0x1e8], rax
lea rbx, [rcx + 0x10]
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
dec eax
jne 0x1000d8d8f
cmp qword [rbx + 8], 0
je 0x1000d8c9b
mov rcx, rbx
call fcn.1000585a0
jmp 0x1000d8da4
add rbx, 0xfffffffffffffff0
mov eax, dword [rbx + 0xb0]
cmp eax, 2
jne 0x1000d8cf4
mov rdi, qword [rbx + 0xa0]
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rdi + 0xf80], edx
mov ecx, r15d
sete cl
test ecx, ecx
jne 0x1000d8cd8
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], r15
mov qword [rbx], r15
mov dword [rdi + 0xf80], r15d
call fcn.100058010
test rax, rax
je 0x1000d8d1f
cmp qword [rax + 0x1e8], rbx
jne 0x1000d8d1f
test rbx, rbx
lea rcx, [rbx - 8]
jne 0x1000d8d13
mov rcx, r15
xor edx, edx
call fcn.100058e50
jmp 0x1000d8da4
test rbx, rbx
je 0x1000d8d2a
add rbx, 0xfffffffffffffff8
jmp 0x1000d8d2d
mov rbx, r15
mov qword [rsp + 0x80], rbx
test rbx, rbx
je 0x1000d8da4
mov qword [rbx], r13
lea rcx, [rbx + 8]
call fcn.100058db0
mov rax, rbx
and rax, 0xffffffffffffe000
je 0x1000d8d5c
cmp word [rax + 4], r12w
jne 0x1000d8d5c
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x10]
dec rcx
not rcx
and rcx, rbx
je 0x1000d8d7a
cmp word [rcx + 4], r12w
jne 0x1000d8d7a
mov rcx, qword [rcx + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 0x28], 8
jne 0x1000d8da4
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x28]
jmp 0x1000d8da4
mov rax, qword [rbp + 0x1e8]
cmp rcx, rax
cmove rax, r15
mov qword [rbp + 0x1e8], rax
mov rcx, rbp
call fcn.1000661d0
mov rsi, qword [rbp + 0x218]
test r14d, r14d
je 0x1000d89d0
call fcn.10006bba0
test eax, eax
je 0x1000d8e4e
jmp 0x1000d89d0
mov rdi, qword [rsi + 0xf10]
cmp dword [rsi + 0x1014], 0
je 0x1000d8de5
mov eax, 1
jmp 0x1000d8dea
call fcn.10006b1a0
mov ecx, eax
movsxd rax, edi
cmp rax, rcx
jg 0x1000d8e40
mov ecx, dword [rsi + 0xaa4]
mov eax, dword [rsi + 0x1078]
cmp dword [rsi + 0x1014], 0
jne 0x1000d8e0f
add eax, dword [rsi + 0xaa8]
cmp ecx, eax
jle 0x1000d89d0
mov eax, dword [0x100278934]
test eax, eax
jle 0x1000d89d0
mov rdx, qword [rsi + 0xaa8]
movsxd rcx, dword [rsi + 0xaa4]
sub rcx, rdx
cmp rcx, 1
jle 0x1000d89d0
call fcn.10006bba0
test eax, eax
je 0x1000d8e53
jmp 0x1000d89d0
mov eax, r14d
jmp 0x1000d8e55
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret