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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbp, 0x7fffffffffffffff
mov dword [rsp + 0x9c], 4
mov rbx, qword [rdx]
movabs rcx, 0xaaaaaaaaaaaaaaaa
movabs r15, 0x20c49ba5e353f7cf
cmp rbx, rbp
je 0x1400fcceb
mov rax, qword [rsi + 8]
mov qword [rsp + 0xa0], rcx
test rax, rax
je 0x1400fccfb
xor ecx, ecx
cmp rbx, rax
setns cl
add rcx, rbp
sub rbx, rax
cmovo rbx, rcx
lea rax, [rbx + rbp]
add rax, 2
cmp rax, 2
jb 0x1400fcb76
mov rax, rbx
imul r15
mov rax, rdx
shr rax, 0x3f
sar rdx, 7
add rdx, rax
imul rax, rdx, 0x3e8
xor ecx, ecx
cmp rbx, rax
setg cl
add rcx, rdx
mov rbx, rcx
mov rax, rbx
sar rax, 0x3f
not eax
mov rcx, rbx
shr rcx, 0x20
cmovne ebx, eax
mov dword [rsp + 0x98], ebx
test ebx, ebx
je 0x1400fccbf
lea rbx, [fcn.140101b20]
lea r12, [rsp + 0x98]
lea r14, [rsp + 0x9c]
movaps xmm6, xmmword [0x140270690]
lea r15, [rsp + 0x60]
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
cmp rax, rbx
jne 0x1400fcd67
call fcn.140101b20
mov r13, r12
mov rcx, r12
call fcn.140110840
mov rcx, r14
call fcn.140110840
mov eax, dword [rsp + 0x9c]
mov r8d, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
xor ecx, ecx
xor edx, edx
mov r9d, 0x1cff
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjectsEx]
test eax, eax
jne 0x1400fcede
mov rax, qword [rdi + 0x10]
mov r12, qword [rax]
mov rax, qword [r12]
mov rax, qword [rax + 0x20]
lea rcx, [fcn.140101210]
cmp rax, rcx
jne 0x1400fcd72
mov rcx, r12
call fcn.140101210
test byte [0x14029c980], 0x19
jne 0x1400fcd80
mov ecx, 0x40
call qword [sym.imp.USER32.dll_GetQueueStatus]
bt eax, 0x16
jb 0x1400fcc9a
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
test byte [0x14029c980], 0x19
jne 0x1400fce1c
mov dword [rsp + 0x20], 0
mov rcx, r15
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x1400fcebd
test r12, r12
je 0x1400fccbf
mov rax, qword [r12]
mov rax, qword [rax + 0x28]
lea rcx, [fcn.1400ff400]
cmp rax, rcx
jne 0x1400fce0e
mov rcx, r12
call fcn.1400ff400
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14017e7b0
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x98], 0xffffffff
jmp 0x1400fcb98
mov rax, qword [fcn.1401193e0]
lea rcx, [0x140179e10]
cmp rax, rcx
jne 0x1400fcd4e
lea r14, [rsp + 0x60]
mov qword [r14], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [r14]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1400fd018
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402a2810]
jmp 0x1400fcb2d
lea r14, [rsp + 0xa0]
mov rcx, r14
call qword [case.0x1401e7f70.0]
mov rax, qword [r14]
jmp 0x1400fcb2d
call qword [case.0x1401e7f70.0]
jmp 0x1400fcbd7
mov rcx, r12
call qword [case.0x1401e7f70.0]
jmp 0x1400fcc3c
mov rcx, r15
call fcn.1401193e0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x14029c980]
lea r8, str.MessagePumpForUI::WaitForWork_GetQueueStatus
mov cl, 0x58
xor r9d, r9d
call fcn.140104700
mov qword [rsp + 0x58], rax
mov ecx, 0x40
call qword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [rsp + 0x54], eax
cmp byte [0x14029c980], 0
je 0x1400fcdfd
lea rcx, [0x14029c980]
lea rdx, str.MessagePumpForUI::WaitForWork_GetQueueStatus
mov r8, qword [rsp + 0x58]
call fcn.140103f20
bt dword [rsp + 0x54], 0x16
jae 0x1400fcc5a
jmp 0x1400fcc9a
mov rcx, r12
call qword [case.0x1401e7f70.0]
jmp 0x1400fccbf
lea rcx, [rsp + 0xa0]
call fcn.1401193e0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x40], 0
lea rdx, [0x14029c980]
lea r8, str.MessagePumpForUI::WaitForWork_PeekMessage
mov cl, 0x58
xor r9d, r9d
call fcn.140104700
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x60]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.USER32.dll_PeekMessageW]
mov dword [rsp + 0x54], eax
cmp byte [0x14029c980], 0
je 0x1400fceb2
lea rcx, [0x14029c980]
lea rdx, str.MessagePumpForUI::WaitForWork_PeekMessage
mov r8, qword [rsp + 0x58]
call fcn.140103f20
cmp dword [rsp + 0x54], 0
jne 0x1400fcc9a
mov dword [rsp + 0x9c], 0
test r12, r12
je 0x1400fcede
mov rax, qword [r12]
mov rax, qword [rax + 0x28]
mov rcx, r12
call qword [case.0x1401e7f70.0]
mov r12, qword [rsi]
mov eax, 0xffffffff
cmp r12, rbp
je 0x1400fcfbc
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rax
mov rax, qword [fcn.1401193e0]
lea rcx, [0x140179e10]
cmp rax, rcx
jne 0x1400fcfd3
mov qword [rsp + 0x60], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x60]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x1400fcff1
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402a2810]
xor ecx, ecx
cmp r12, rax
setns cl
add rcx, rbp
sub r12, rax
cmovo r12, rcx
lea rax, [r12 + rbp]
add rax, 2
cmp rax, 2
jb 0x1400fcfa5
mov rax, r12
movabs rcx, 0x20c49ba5e353f7cf
imul rcx
mov rax, rdx
shr rax, 0x3f
sar rdx, 7
add rdx, rax
imul rax, rdx, 0x3e8
xor ecx, ecx
cmp r12, rax
setg cl
add rcx, rdx
mov r12, rcx
mov rax, r12
sar rax, 0x3f
not eax
mov rcx, r12
shr rcx, 0x20
cmovne r12d, eax
mov eax, r12d
mov dword [rsp + 0x98], eax
test eax, eax
mov r12, r13
jne 0x1400fcbbb
jmp 0x1400fccbf
lea rcx, [rsp + 0xa0]
call qword [case.0x1401e7f70.0]
lea rax, [rsp + 0xa0]
mov rax, qword [rax]
jmp 0x1400fcf52
mov rcx, qword [0x1402a2810]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400fcf52
mov rcx, qword [0x1402a2810]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x1400fcb2d