Function at 0x1401ce390
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rdi
sub rsp, reloc.MFC80U.DLL_Ordinal_320
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rcx
mov rbp, rdx
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0x30], 0
call sub.ntdll.dll_memset
cvtsi2sd xmm0, qword [rdi + 0xf8]
cvtsi2sd xmm1, rbp
divsd xmm1, xmm0
mulsd xmm1, qword [0x1403b85a8]
cvttsd2si ebx, xmm1
cmp ebx, dword [rdi + reloc.MFC80U.DLL_Ordinal_568]
je 0x1401ce436
lea rdx, [0x14036d198]
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov dword [rdi + reloc.MFC80U.DLL_Ordinal_568], ebx
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rdi + reloc.MFC80U.DLL_Ordinal_2792]
lea rdx, [rsp + 0x30]
call sub.MFC80U.DLL_Ordinal_6104
mov rcx, qword [rdi + 0xa80]
movsxd r8, ebx
xor r9d, r9d
mov edx, 0x402
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8, qword [rdi + 0x108]
cmp r8, qword [rdi + 0x220]
je 0x1401ce475
test r8, r8
mov qword [rdi + 0x220], r8
jle 0x1401ce475
lea rdx, [0x14036d1a8]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rdi + 0xe48]
lea rdx, [rsp + 0x30]
call sub.MFC80U.DLL_Ordinal_6104
cmp dword [rdi + 0x114], 0
jne 0x1401ce647
mov eax, dword [0x140c48578]
mov qword [rsp + 0x170], rsi
test al, 1
jne 0x1401ce4a9
or eax, 1
mov dword [0x140c48578], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140c48574], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x3e8
sub eax, dword [0x140c48574]
cmp eax, esi
jb 0x1401ce51e
mov eax, dword [rdi + 0x110]
test eax, eax
je 0x1401ce512
mov rcx, rax
mov rax, rbp
cqo
idiv rcx
mov ecx, dword [rdi + 0xec]
mov rbx, rax
call fcn.1401ce040
mov ecx, eax
imul rcx, rbx
call fcn.140228cc0
lea rdx, [0x14036d1b8]
lea rcx, [rsp + 0x30]
mov r8, rax
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rdi + 0xef0]
lea rdx, [rsp + 0x30]
call sub.MFC80U.DLL_Ordinal_6104
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140c48574], eax
mov eax, dword [rdi + 0x110]
test eax, eax
je 0x1401ce63f
mov rcx, rax
mov rax, rbp
cqo
idiv rcx
mov rcx, rax
mov eax, 1
test rcx, rcx
cmove rcx, rax
mov rax, qword [rdi + 0xf8]
sub rax, rbp
cqo
idiv rcx
cmp eax, 0x3c
mov rbx, rax
jb 0x1401ce58c
cmp eax, reloc.MFC80U.DLL_Ordinal_600
jae 0x1401ce56b
mov esi, Ordinal_5002
jmp 0x1401ce58c
cmp eax, 0x4b0
jae 0x1401ce579
mov esi, 0x2710
jmp 0x1401ce58c
mov esi, 0x7530
mov eax, 0x3a98
cmp ebx, 0x708
cmovb esi, eax
mov eax, dword [0x140c48578]
test al, 2
jne 0x1401ce5ab
or eax, 2
mov dword [0x140c48578], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140c48570], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x140c48570]
cmp eax, esi
jb 0x1401ce63f
cmp ebx, 0xe10
jge 0x1401ce5cc
xor r8d, r8d
jmp 0x1401ce5ef
mov eax, 0x91a2b3c5
imul ebx
lea r8d, [rbx + rdx]
sar r8d, 0xb
mov eax, r8d
shr eax, 0x1f
add r8d, eax
mov eax, r8d
imul eax, eax, 0xe10
sub ebx, eax
mov eax, 0x88888889
lea rcx, [rsp + 0x30]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
mov r9d, edx
lea rdx, [0x14036d1c8]
imul eax, eax, 0x3c
sub ebx, eax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rdi + 0x1040]
lea rdx, [rsp + 0x30]
call sub.MFC80U.DLL_Ordinal_6104
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140c48570], eax
mov rsi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140161080
add rsp, reloc.MFC80U.DLL_Ordinal_320
pop rdi
pop rbp
pop rbx
ret