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

Disassembly:
sub rsp, 0x28
cmp dword [0x140f56df0], 0
je 0x14001d01b
xor edx, edx
lea rcx, [0x14003c920]
call fcn.140011970
mov eax, dword [0x140f56dd8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
mov byte [0x140f53f97], 0
cmp eax, 1
je 0x14001d281
cmp qword [0x140f56db0], 0
je 0x14001d08c
mov rcx, qword [0x140f541c0]
mov r8, qword [0x140f56df8]
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x14001d261
add rdx, r8
xor r8d, r8d
call fcn.14002fd80
test eax, eax
je 0x14001d261
cmp byte [0x140f53f97], 0
jne 0x14001d261
mov eax, dword [0x140f56dd8]
test eax, eax
jne 0x14001d258
cmp dword [0x140f56df0], eax
jne 0x14001d258
cmp qword [0x140f56db8], 0
je 0x14001d258
xor edi, edi
mov dword [0x140f544d0], 1
mov qword [0x140f56e08], rdi
call fcn.14002bf80
test eax, eax
jne 0x14001d128
mov rbx, qword [0x140f4ac28]
test rbx, rbx
je 0x14001d11e
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [0x140f56e00]
sub rax, rdx
cmp rax, rcx
jb 0x14001d111
add rdx, rcx
xor r8d, r8d
mov rcx, rbx
mov edi, 1
call fcn.14002fd80
test eax, eax
je 0x14001d261
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x14001d0e0
test edi, edi
jne 0x14001d128
mov dword [0x140f544d0], 2
cmp byte [0x140f53f97], 0
jne 0x14001d261
mov eax, dword [0x140f56dd8]
test eax, eax
jne 0x14001d258
cmp dword [0x140f544d0], 2
jne 0x14001d22d
mov rcx, qword [0x140f54600]
xor edx, edx
mov r8, qword [0x140f56e00]
add r8, 0x1030
add r8, rcx
mov rax, r8
div rcx
sub r8, rdx
mov edx, 1
cmp rcx, r8
cmovbe rcx, r8
add rcx, 0xfff
and rcx, 0xfffffffffffff000
call fcn.14002edd0
mov rbx, rax
test rax, rax
je 0x14001d219
mov rdi, qword [rax + 0x10]
or qword [rax + 0x28], 8
mov qword [rsp + 0x38], rsi
mov rsi, qword [rax + 0x20]
mov eax, dword [0x140f52b58]
sub rdi, rsi
cmp eax, 4
jl 0x14001d1df
mov eax, dword [0x140f52b50]
test al, 1
je 0x14001d1df
call fcn.14000a530
mov r9d, 1
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov r10, qword [rax]
call qword [r10 + 0x28]
mov rdx, rbx
mov ecx, 3
call fcn.14003f8b0
mov r9, qword [rbx + 0x10]
mov ecx, 3
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x20]
call fcn.1400076f0
mov eax, dword [0x140f56dd8]
mov rsi, qword [rsp + 0x38]
mov qword [0x140f56e08], rbx
test eax, eax
je 0x14001d234
jmp 0x14001d258
mov eax, 1
mov qword [0x140f56e08], rbx
mov dword [0x140f56dd8], eax
jmp 0x14001d258
mov rbx, qword [0x140f56e08]
test rbx, rbx
je 0x14001d258
mov rdx, qword [rbx]
xor r8d, r8d
add rdx, qword [0x140f56e00]
mov rcx, rbx
call fcn.14002fd80
test eax, eax
je 0x14001d261
mov eax, dword [0x140f56dd8]
cmp byte [0x140f53f97], 0
je 0x14001d281
mov dword [0x140f56dd8], 1
mov byte [0x140f53f97], 0
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
test eax, eax
jne 0x14001d2ce
cmp qword [0x140f56db8], 0
je 0x14001d2a4
mov rcx, qword [0x140f56e00]
mov qword [0x140f57070], rcx
mov qword [0x140f57078], rcx
cmp qword [0x140f56db0], 0
je 0x14001d2c3
mov rax, qword [0x140f56df8]
mov qword [0x140f56e60], rax
mov qword [0x140f56e68], rax
mov qword [0x140f56dc0], 1
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rax, rsp
sub rsp, 0x58
mov qword [rax + 0x18], rbp
lea rdx, [rax - 0x38]
mov qword [rax - 0x18], r12
mov ebp, ecx
mov qword [rax - 0x20], r14
lea rcx, [0x14002c780]
mov r14d, dword [0x140f58680]
xor r12d, r12d
mov qword [rax - 0x28], r15
mov r15d, 1
mov dword [rax - 0x38], r15d
mov qword [0x140f56da8], r12
mov qword [rax - 0x30], r12
call fcn.140011970
mov rdx, qword [0x140f541c0]
mov rax, qword [0x140f541b8]
mov qword [rdx], rax
cmp dword [0x140f58680], 4
jne 0x14002cca6
cmp dword [0x140f56df0], r12d
je 0x14002cca6
call fcn.14002b7a0
test eax, eax
jne 0x14002cc8b
mov dword [0x140f56dd8], r15d
mov dword [0x140f58648], 2
call fcn.140040870
inc qword [0x140f573e8]
jmp 0x14002d3ce
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
call fcn.140030d90
mov rdi, qword [0x140f54470]
mov eax, dword [0x140f4ae08]
mov dword [0x140f5867c], eax
mov qword [0x140f54698], r12
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x14002ccf3
nop dword [rax]
mov rcx, rbx
mov rdx, r15
mov rbx, qword [rbx]
call fcn.14006a09c
test rbx, rbx
jne 0x14002cce0
mov qword [rdi + 0x18], r12
mov rax, qword [0x140f54450]
cmp qword [0x140f52e80], rax
je 0x14002cd0c
call fcn.140027d40
call fcn.14003abe0
mov rbx, qword [0x140f4ac18]
test rbx, rbx
je 0x14002cd32
test byte [rbx + 0x28], r15b
je 0x14002cd32
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x14002cd32
test byte [rbx + 0x28], r15b
jne 0x14002cd23
mov rsi, r12
test rbx, rbx
je 0x14002cd6f
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x14002cd64
call fcn.140015070
movzx edx, al
mov rcx, rbx
call fcn.140029330
mov qword [rsi + 0x30], rdi
jmp 0x14002cd67
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x14002cd40
mov rbx, qword [0x140f4ad28]
test rbx, rbx
je 0x14002cd90
test byte [rbx + 0x28], r15b
je 0x14002cd90
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x14002cd90
test byte [rbx + 0x28], r15b
jne 0x14002cd81
mov rsi, r12
test rbx, rbx
je 0x14002cdcf
nop dword [rax + rax]
mov eax, dword [rbx + 0x28]
mov rdi, qword [rbx + 0x30]
bt rax, 8
jae 0x14002cdc4
call fcn.140015070
movzx edx, al
mov rcx, rbx
call fcn.140029330
mov qword [rsi + 0x30], rdi
jmp 0x14002cdc7
mov rsi, rbx
mov rbx, rdi
test rdi, rdi
jne 0x14002cda0
mov eax, dword [0x140f57e28]
test eax, eax
jne 0x14002cdde
call fcn.14003aa00
xor r9d, r9d
lea r8, [0x140f57400]
lea rdx, [0x140f577f0]
mov ecx, ebp
call fcn.14002e180
mov ecx, dword [0x140f577f0]
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], ecx
mov r8d, eax
mov ecx, dword [0x140f57400]
mov edx, ebp
mov dword [0x140f58648], eax
call fcn.140032330
cmp dword [0x140f52194], 4
mov dword [0x140f58648], eax
jb 0x14002ce47
movsxd r9, eax
lea r8, [0x140eed318]
mov edx, r15d
mov ecx, 0xd
call fcn.14000ec90
mov eax, dword [0x140f58648]
cmp qword [0x140f56dc0], r12
mov ecx, dword [0x140f5867c]
je 0x14002ce73
inc qword [0x140f56dc8]
cmp ecx, 0x11
ja 0x14002ce73
mov edx, 0x22e86
bt edx, ecx
jae 0x14002ce73
inc qword [0x140f56dd0]
cmp eax, r15d
jle 0x14002ce7f
mov dword [0x140f5864c], r15d
cmp ecx, r15d
mov ecx, eax
sete dl
call fcn.1400076f0
mov ecx, dword [0x140f58648]
cmp ecx, 2
jne 0x14002ceff
cmp dword [rsp + 0x68], r12d
jne 0x14002ceff
cmp byte [0x140f53f94], r12b
je 0x14002ceff
cmp byte [0x140f53f95], r12b
jne 0x14002ceff
mov eax, dword [0x140f58680]
dec eax
test eax, 0xfffffffd
jne 0x14002ceff
mov eax, r15d
mov dword [0x140f54c1c], r15d
xchg dword [0x140f5865c], eax
movups xmm0, xmmword [0x140f544e8]
mov ecx, dword [0x140f58648]
movups xmm1, xmmword [0x140f544f8]
movups xmmword [0x140f54a00], xmm0
movups xmm0, xmmword [0x140f54508]
movups xmmword [0x140f54a10], xmm1
movups xmmword [0x140f54a20], xmm0
mov edx, dword [0x140f56eb8]
inc edx
mov qword [0x140f58640], rdx
mov edx, 2
call fcn.14000a840
call fcn.14002a970
lea rcx, [0x140eed338]
call fcn.140029590
call fcn.140015030
test r15b, al
je 0x14002cf44
call fcn.140015030
test al, 0x40
jne 0x14002cf44
mov ecx, r15d
call fcn.140040ba0
call fcn.140015030
cmp dword [0x140f5865c], r12d
je 0x14002d397
movaps xmm0, xmmword [0x140f58640]
lea rcx, [0x140f54c28]
movaps xmmword [0x140f58110], xmm0
movaps xmm0, xmmword [0x140f58660]
movaps xmmword [0x140f58130], xmm0
movaps xmm0, xmmword [0x140f58680]
mov dword [0x140f58650], r12d
movaps xmm1, xmmword [0x140f58650]
movaps xmmword [0x140f58120], xmm1
movaps xmm1, xmmword [0x140f58670]
movaps xmmword [0x140f58150], xmm0
movsd xmm0, qword [0x140f586a0]
movaps xmmword [0x140f58140], xmm1
movaps xmm1, xmmword [0x140f58690]
movsd qword [0x140f58170], xmm0
movaps xmmword [0x140f58160], xmm1
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [0x140f54c18], r12d
jne 0x14002d037
cmp qword [0x140f54c20], r12
jne 0x14002d037
lea r9, [0x140eed3c8]
movzx r8d, r15b
xor edx, edx
lea rcx, [0x140023af0]
call fcn.14000a1f0
movzx eax, al
mov dword [0x140f54c18], eax
test eax, eax
je 0x14002d037
lea rcx, [0x140f54c28]
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [0x140f52b58]
cmp eax, 4
jl 0x14002d043
mov eax, dword [0x140f52b50]
test r15b, al
je 0x14002d043
call fcn.14000a530
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x38]
jmp 0x14002d043
lea rcx, [0x140f54c28]
call sub.KERNEL32.dll_LeaveCriticalSection
cmp qword [0x140f54c20], r12
mov dword [0x140f54c54], r15d
mov dword [0x140f54c50], r12d
je 0x14002d236
lea rdi, [0x140f4ab08]
lea rsi, [0x140f4ae38]
nop dword [rax]
mov rbx, qword [rdi]
test rbx, rbx
je 0x14002d16b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
jne 0x14002d0a8
nop word [rax + rax]
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x14002d16b
movzx eax, byte [rbx + 0x28]
and al, 3
cmp al, r15b
je 0x14002d090
test rbx, rbx
je 0x14002d16b
mov rax, qword [rbx + 0x28]
test al, 0x40
jne 0x14002d15e
test r15b, al
je 0x14002d12e
mov rcx, qword [rbx + 0x20]
mov rax, qword [0x140f54620]
mov r8, qword [0x140f54628]
cmp rcx, rax
jb 0x14002d102
mov rdx, qword [rbx + 0x10]
cmp rdx, r8
ja 0x14002d0fd
mov r8, qword [0x140f54460]
call fcn.140026580
test eax, eax
je 0x14002d236
or qword [rbx + 0x28], 0x40
jmp 0x14002d15e
cmp rax, rcx
jbe 0x14002d105
mov rcx, rax
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
cmovb rdx, r8
mov r8, qword [0x140f54460]
call fcn.140026580
test eax, eax
je 0x14002d236
or qword [rbx + 0x28], 0x80
jmp 0x14002d15e
mov r8, qword [0x140f54460]
mov rcx, rbx
mov rdx, qword [rbx + 0x10]
call fcn.140026580
test eax, eax
je 0x14002d236
mov rax, qword [rbx + 0x28]
test al, al
jns 0x14002d156
btr rax, 7
or rax, 0x40
mov qword [rbx + 0x28], rax
mov rbx, qword [rbx + 0x30]
test rbx, rbx
jne 0x14002d0b1
add rdi, 0x110
cmp rdi, rsi
jl 0x14002d070
mov rax, qword [0x140f54620]
mov ebx, 0xffffffff
cmp dword [0x140f5867c], 5
mov qword [0x140f56d38], rax
mov rax, qword [0x140f54628]
cmove ebx, r15d
mov qword [0x140f56d40], rax
mov dword [0x140f54c54], r15d
mov dword [0x140f58008], r15d
je 0x14002d1dd
mov ecx, r12d
lea rdx, [0x140f56e60]
cmp qword [rdx], r12
jg 0x14002d1dd
cmp ebx, ecx
mov eax, ecx
cmovg eax, ebx
inc ecx
add rdx, 0xb0
mov ebx, eax
cmp ecx, 2
jl 0x14002d1c1
mov dword [0x140f541b4], r15d
cmp ebx, 0xffffffff
jne 0x14002d1f6
xorps xmm0, xmm0
movdqa xmmword [0x140f4a8b0], xmm0
jmp 0x14002d226
lea rcx, [0x140f58640]
mov dword [0x140f54c50], r15d
call fcn.140030d30
mov rax, qword [0x140f56eb8]
add rax, 2
mov dword [0x140f58648], ebx
mov qword [0x140f58640], rax
call fcn.14002a970
cmp dword [0x140f54c50], r12d
jne 0x14002d24d
call fcn.140029ed0
jmp 0x14002d24d
mov eax, r12d
mov dword [0x140f54c54], r12d
mov dword [0x140f58650], r15d
xchg dword [0x140f5865c], eax
cmp dword [0x140f54c54], r12d
je 0x14002d397
lea rcx, [0x140f54a30]
mov edx, 3
lea rax, [0x140f571d0]
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, r15
jne 0x14002d270
cmp dword [0x140f54c50], r12d
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
mov rax, qword [rax + 0x60]
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm1
mov qword [rcx + 0x60], rax
je 0x14002d39c
mov dword [0x140f544a0], r12d
mov dword [0x140f544a4], 0x8000
mov dword [0x140f57398], r12d
mov dword [0x140f5739c], 0x8000
call fcn.14002d400
movaps xmm0, xmmword [0x140f58110]
movaps xmm1, xmmword [0x140f58120]
movaps xmmword [0x140f58640], xmm0
movaps xmm0, xmmword [0x140f58130]
movaps xmmword [0x140f58660], xmm0
movaps xmm0, xmmword [0x140f58150]
movaps xmmword [0x140f58650], xmm1
movaps xmm1, xmmword [0x140f58140]
movaps xmmword [0x140f58680], xmm0
movsd xmm0, qword [0x140f58170]
movaps xmmword [0x140f58670], xmm1
movaps xmm1, xmmword [0x140f58160]
movsd qword [0x140f586a0], xmm0
movaps xmmword [0x140f58690], xmm1
call fcn.140029ed0
jmp 0x14002d39c
call fcn.14002d400
call sub.KERNEL32.dll_GetTickCount
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov eax, eax
mov qword [0x140f544d8], rax
mov rax, qword [0x140f56e60]
mov qword [0x140f544e0], rax
mov qword [0x140f54480], rax
mov r15, qword [rsp + 0x30]
cmp r14d, 4
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x70]
jne 0x14002d3f1
add rsp, 0x58
jmp 0x14001d000
add rsp, 0x58
ret