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

Disassembly:
mov rax, rsp
sub rsp, 0x48
cmp byte [0x1402cc0f1], 0
jne 0x1400d4389
mov rcx, qword [0x1402cc0f8]
test rcx, rcx
je 0x1400d4389
cmp qword [0x1402cc120], 0
je 0x1400d4389
mov qword [rax + 0x10], rbp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax - 8], rdi
mov qword [rax - 0x10], r12
mov qword [rax - 0x18], r13
mov qword [rax - 0x20], r14
mov qword [rax - 0x28], r15
call fcn.14006ae40
mov rcx, qword [0x1402cc120]
call fcn.140069a60
mov ebp, eax
cmp eax, 2
jle 0x1400d4355
mov ebx, 2
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x1402cc120]
mov edx, ebx
call fcn.1400698a0
mov rdi, rax
test rax, rax
je 0x1400d4143
cmp dword [rax + 0xa4], 0
je 0x1400d4266
inc ebx
cmp ebx, ebp
jl 0x1400d4120
xor r12d, r12d
xor r14d, r14d
xor edi, edi
mov r13d, 1
mov ebx, r13d
lea esi, [rdi + 0xa]
nop dword [rax]
mov rcx, qword [0x1402cc120]
mov edx, ebx
call fcn.1400698a0
mov r9, rax
test rax, rax
je 0x1400d41c2
movsxd r8, dword [rax + 0xa4]
cmp r8d, 0xa
jge 0x1400d418e
cmp r8d, esi
jge 0x1400d418e
mov esi, r8d
mov r14d, ebx
xor ecx, ecx
xor edx, edx
test r8d, r8d
jle 0x1400d41b9
nop word [rax + rax]
cmp byte [r9 + rdx + 0xa8], 0
lea eax, [rcx + 1]
cmove eax, ecx
inc rdx
mov ecx, eax
cmp rdx, r8
jl 0x1400d41a0
cmp ecx, edi
jle 0x1400d41c2
mov edi, ecx
mov r12d, ebx
inc ebx
cmp ebx, ebp
jl 0x1400d4160
test r14d, r14d
mov edi, 0x50
mov eax, 0x5a
cmovle edi, eax
cmp dword [0x1402cc128], 0
jne 0x1400d41ec
call sub.KERNEL32.dll_GetTickCount
mov dword [0x1402cc128], eax
call fcn.140052cd0
mov ebx, eax
imul ebx, dword [0x1402cc128]
call fcn.140052ce0
mov ecx, eax
xor edx, edx
mov eax, ebx
div ecx
mov dword [0x1402cc128], edx
mov eax, edx
test edx, edx
jne 0x1400d421e
call sub.KERNEL32.dll_GetTickCount
mov dword [0x1402cc128], eax
mov r8d, 0x64
mov edx, r13d
mov ecx, eax
call fcn.140053040
mov r15d, eax
cmp eax, edi
jg 0x1400d427e
mov rcx, qword [0x1402cc120]
mov edx, r12d
call fcn.1400698a0
mov rbx, rax
test rax, rax
je 0x1400d427e
mov edx, r12d
mov rcx, qword [0x1402cc120]
call fcn.14006a5b0
mov r8, rbx
mov edx, r13d
jmp 0x1400d4349
mov rcx, qword [0x1402cc120]
mov edx, ebx
call fcn.14006a5b0
mov edx, 1
jmp 0x1400d4346
test r14d, r14d
jle 0x1400d42a5
cmp r15d, 0x5a
jg 0x1400d42a5
mov rcx, qword [0x1402cc120]
mov edx, r14d
call fcn.1400698a0
mov rbx, rax
test rax, rax
je 0x1400d42a5
mov edx, r14d
jmp 0x1400d424f
lea r14d, [rbp - 1]
mov ecx, r13d
mov edx, r14d
call fcn.1400d3bb0
cmp eax, r13d
cmovl eax, r13d
cmp eax, ebp
cmovl r14d, eax
xor esi, esi
mov ebx, r14d
nop word [rax + rax]
mov rcx, qword [0x1402cc120]
mov edx, ebx
call fcn.1400698a0
mov rdi, rax
test rax, rax
je 0x1400d431c
cmp r15d, 0x5f
jg 0x1400d4335
movsxd r8, dword [rax + 0xa4]
xor edx, edx
xor ecx, ecx
test r8, r8
jle 0x1400d431c
nop dword [rax]
cmp byte [rdi + rcx + 0xa8], 0
lea eax, [rdx + 1]
cmove eax, edx
inc rcx
mov edx, eax
cmp rcx, r8
jl 0x1400d4300
test eax, eax
jg 0x1400d4335
lea eax, [rbx + 1]
mov ebx, r13d
cmp eax, ebp
cmovne ebx, eax
cmp ebx, r14d
je 0x1400d4355
inc esi
cmp esi, 0x64
jl 0x1400d42d0
jmp 0x1400d4355
mov rcx, qword [0x1402cc120]
mov edx, ebx
call fcn.14006a5b0
mov edx, r13d
mov r8, rdi
mov rcx, qword [0x1402cc120]
call fcn.140069d30
mov rcx, qword [0x1402cc0f8]
call fcn.14006ae80
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
add rsp, 0x48
ret