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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x510
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov ebx, dword [rdx]
mov r14, r9
mov rbp, r8
mov r15, rdx
mov rsi, rcx
call fcn.10006bc70
mov edi, eax
call fcn.10006bcd0
mov r12d, eax
cmp ebx, 0x400078
je 0x1000d741a
cmp ebx, 0x400071
je 0x1000d741a
test r14, r14
jne 0x1000d741a
call fcn.10011b7d0
test eax, eax
je 0x1000d73e1
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [rsp + 0x28]
jmp 0x1000d73e9
mov rbx, qword [0x7ffe0008]
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xc8]
cmp rbx, rcx
jb 0x1000d7404
mov rax, rbx
sub rax, rcx
jmp 0x1000d7406
xor eax, eax
lea rcx, [rax + rdx]
mov qword [rbp + 0xc8], rcx
test edi, edi
jne 0x1000d7445
jmp 0x1000d7697
test edi, edi
je 0x1000d7697
call fcn.10011b7d0
test eax, eax
je 0x1000d743d
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [rsp + 0x30]
jmp 0x1000d7445
mov rbx, qword [0x7ffe0008]
movzx edx, word [r15]
add rsi, 0x1ed0
lea rcx, [rdx + rdx*2]
shl rcx, 4
add rsi, rcx
test r14, r14
je 0x1000d7465
mov rax, r14
jmp 0x1000d7476
mov rax, qword [rbp + 0xb0]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x20]
mov rax, qword [rax]
cmp rbx, rax
jb 0x1000d7486
mov rdi, rbx
sub rdi, rax
jmp 0x1000d7488
xor edi, edi
mov rax, qword [rsi + 0x10]
inc qword [rsi + 0x28]
add qword [rsi], rdi
cmp rdi, rax
mov qword [rsi + 0x18], rbx
cmova rax, rdi
mov qword [rsi + 0x10], rax
test r12d, r12d
je 0x1000d74fd
mov r8d, 1
mov rcx, rbp
call fcn.100065690
mov r11, rax
test rax, rax
je 0x1000d74fd
inc qword [rax + 0x20]
add qword [rax + 8], rdi
mov rcx, qword [rax + 0x18]
cmp rdi, rcx
cmova rcx, rdi
mov qword [rax + 0x18], rcx
test r14, r14
jne 0x1000d75f9
mov rcx, qword [rbp + 0xb8]
cmp rbx, rcx
jb 0x1000d74f5
mov rax, rbx
sub rax, rcx
add qword [r11 + 0x10], rax
jmp 0x1000d7506
xor eax, eax
add qword [r11 + 0x10], rax
jmp 0x1000d7506
test r14, r14
jne 0x1000d75f9
mov rax, qword [rbp + 0xb8]
cmp rbx, rax
jb 0x1000d7517
sub rbx, rax
jmp 0x1000d7519
xor ebx, ebx
add qword [rsi + 8], rbx
call fcn.100072610
test eax, eax
je 0x1000d7697
lea rcx, [rsp + 0x40]
call fcn.1000725c0
movzx edx, word [r15]
lea rcx, [rsp + 0x40]
call fcn.100072630
lea rcx, [rsp + 0x40]
mov edx, 1
call fcn.100072640
or rsi, 0xffffffffffffffff
movabs rbp, 0x346dc5d63886594b
cmp rdi, rsi
jne 0x1000d7569
mov rax, rsi
jmp 0x1000d7598
call fcn.10011b7d0
test eax, eax
je 0x1000d758b
call fcn.10011b7f0
imul rdi, rdi, 0x3e8
xor edx, edx
mov r11, rax
mov rax, rdi
div r11
jmp 0x1000d7598
mov rax, rbp
mul rdi
mov rax, rdx
shr rax, 0xb
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.100072650
cmp rbx, 0xffffffffffffffff
je 0x1000d75dd
call fcn.10011b7d0
test eax, eax
je 0x1000d75d0
call fcn.10011b7f0
imul rbx, rbx, 0x3e8
xor edx, edx
mov r11, rax
mov rax, rbx
div r11
mov rsi, rax
jmp 0x1000d75dd
mov rax, rbp
mul rbx
mov rsi, rdx
shr rsi, 0xb
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.100072660
lea rcx, [rsp + 0x40]
call fcn.100072670
jmp 0x1000d7697
call fcn.1000727e0
test eax, eax
je 0x1000d7697
lea rcx, [rsp + 0x2a0]
call fcn.100072790
movzx edx, word [r15]
lea rcx, [rsp + 0x2a0]
call fcn.100072800
lea rcx, [rsp + 0x2a0]
mov edx, 1
call fcn.100072810
cmp rdi, 0xffffffffffffffff
jne 0x1000d7641
or rsi, rdi
jmp 0x1000d767a
call fcn.10011b7d0
test eax, eax
je 0x1000d7666
call fcn.10011b7f0
imul rdi, rdi, 0x3e8
xor edx, edx
mov r11, rax
mov rax, rdi
div r11
mov rsi, rax
jmp 0x1000d767a
movabs rax, 0x346dc5d63886594b
mul rdi
mov rsi, rdx
shr rsi, 0xb
lea rcx, [rsp + 0x2a0]
mov rdx, rsi
call fcn.100072820
lea rcx, [rsp + 0x2a0]
call fcn.100072830
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x510
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret