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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x2d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov r15, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rbp, qword [rdx + 0xa0]
call fcn.10011b7d0
test eax, eax
je 0x1000d38cb
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x30]
jmp 0x1000d38d3
mov r11, qword [0x7ffe0008]
mov qword [rsi + 0x38], r11
mov rdx, qword [rsi + 0x58]
cmp dword [rdx + 0x54], 3
jb 0x1000d3907
mov eax, dword [rdx + 0x40]
test eax, eax
js 0x1000d3907
nop dword [rax + rax]
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 0x40], ecx
je 0x1000d3903
mov eax, dword [rdx + 0x40]
test eax, eax
jns 0x1000d38f0
jmp 0x1000d3907
lock inc dword [rdx + 0x20]
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x1000d3914
lock inc dword [rax + 0x20]
xor r12d, r12d
mov dword [rsi + 0xb0], r12d
test rdi, rdi
jne 0x1000d3a01
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rbx + 0x30], edx
mov ecx, r12d
sete cl
test ecx, ecx
jne 0x1000d3948
lea rcx, [rbx + 0x30]
call fcn.10005ad30
mov rdi, qword [rbx + 8]
cmp rdi, rbx
jne 0x1000d3956
mov rdi, r12
jmp 0x1000d3974
test rdi, rdi
je 0x1000d3979
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rdi + 8], r12
mov qword [rdi], r12
dec qword [rbx + 0x10]
test rdi, rdi
jne 0x1000d39bf
call fcn.10006bc70
test eax, eax
je 0x1000d399c
call fcn.1000d23a0
movzx eax, word [rax]
add rax, 0xa5
lea rax, [rax + rax*2]
add rax, rax
inc qword [rbp + rax*8]
lock inc dword [rsi + 0x20]
lea rcx, [rbx + 0x18]
mov rax, qword [rcx]
mov qword [rsi], rax
mov rax, qword [rcx]
mov qword [rax + 8], rsi
mov qword [rcx], rsi
mov qword [rsi + 8], rcx
inc qword [rcx + 0x10]
mov qword [r15], rsi
mov dword [rbx + 0x30], r12d
test rdi, rdi
je 0x1000d3a01
mov rax, qword [rbx + 0x10]
cmp rax, qword [rbx + 0x38]
jge 0x1000d3a01
mov qword [rbx + 0x38], rax
call fcn.10011b7d0
test eax, eax
je 0x1000d39f5
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x48]
mov qword [rbx + 0x40], r11
jmp 0x1000d3a01
mov rax, qword [0x7ffe0008]
mov qword [rbx + 0x40], rax
call fcn.10006ca10
test eax, eax
je 0x1000d3a48
lea rcx, [rsp + 0x60]
call fcn.10006c9c0
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.10006ca30
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.10006ca40
mov edx, dword [rbp + 0xabc]
lea rcx, [rsp + 0x60]
call fcn.10006ca50
lea rcx, [rsp + 0x60]
call fcn.10006ca60
test rdi, rdi
je 0x1000d3b56
lock inc dword [rsi + 0x20]
mov qword [rdi + 0x210], rsi
inc dword [rdi + 0x80]
call fcn.10011b7d0
test eax, eax
je 0x1000d3a84
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11, qword [rsp + 0x28]
mov qword [rdi + 0xa8], r11
jmp 0x1000d3a93
mov rax, qword [0x7ffe0008]
mov qword [rdi + 0xa8], rax
mov rax, qword [rsi + 0x58]
cmp rax, qword [rdi + 0x1f0]
je 0x1000d3aae
mov qword [rdi + 0x1f0], rax
mov dword [rdi + 0x200], r12d
mov rax, qword [rsi + 0x60]
test rax, rax
je 0x1000d3ac4
add rax, 0x3a8
mov qword [rdi + 0x3a8], rax
lea rbx, [rsi + 0x90]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], r12d
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rbx], edx
mov ecx, r12d
sete cl
mov rbx, qword [rsp + 0x38]
test ecx, ecx
jne 0x1000d3af9
mov rcx, rbx
call fcn.100057ac0
mov dword [rsp + 0x40], 1
mov qword [rsi + 0x98], rdi
mov eax, dword [rdi + 0x88]
mov dword [rsi + 0x154], eax
mov eax, dword [rdi + 0x8c]
mov dword [rsi + 0x158], eax
mov rax, qword [rdi + 0x90]
mov qword [rsi + 0x160], rax
mov rax, qword [rdi + 0x3a0]
mov qword [rsi + 0x168], rax
test rbx, rbx
je 0x1000d3b44
mov dword [rbx], r12d
mov qword [r15], rsi
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rdi
call fcn.1000d5520
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x2d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret