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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x2400], 3
jge 0x7ff6c091177d
mov al, 1
jmp 0x7ff6c09120ae
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x58], 0
xor eax, eax
cmp eax, 1
je 0x7ff6c09120ac
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
cmp eax, 0xc1
je 0x7ff6c09117e7
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
cmp eax, 0xc3
jne 0x7ff6c0911829
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x40], al
mov eax, dword [rsp + 0x44]
inc eax
cdqe
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x44]
add eax, 2
cdqe
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x41], al
jmp 0x7ff6c0911955
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
cmp eax, 0xc2
je 0x7ff6c0911853
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
cmp eax, 0xc4
jne 0x7ff6c09118c3
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x40], al
mov eax, dword [rsp + 0x44]
add eax, 2
cdqe
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
and rax, 0xff
movzx eax, al
mov ecx, dword [rsp + 0x44]
inc ecx
movsxd rcx, ecx
mov rdx, qword [rsp + 0x50]
movzx ecx, byte [rdx + rcx]
and rcx, 0xff
movzx ecx, cl
shl ecx, 8
or eax, ecx
movzx eax, ax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x44]
add eax, 3
cdqe
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x41], al
jmp 0x7ff6c0911955
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
cmp dword [rax + 4], 2
jge 0x7ff6c091191f
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 0x18
mov rdx, rax
lea rcx, [0x7ff6c09231d0]
call fcn.7ff6c0902ef0
xor al, al
jmp 0x7ff6c09120ae
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xd8]
lea r8, [0x7ff6c091b650]
xor edx, edx
lea rcx, [0x7ff6c0c82d30]
call fcn.7ff6c0909fb0
xor al, al
jmp 0x7ff6c09120ae
cmp dword [rsp + 0x48], 3
jge 0x7ff6c091199a
movzx eax, byte [rsp + 0x41]
movzx ecx, byte [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0xd8]
lea r8, [0x7ff6c091b690]
xor edx, edx
lea rcx, [0x7ff6c0c82d30]
call fcn.7ff6c0909fb0
mov al, 1
jmp 0x7ff6c09120ae
cmp dword [rsp + 0x48], 0x2400
jle 0x7ff6c09119e2
movzx eax, byte [rsp + 0x41]
movzx ecx, byte [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rsp + 0xd8]
lea r8, [0x7ff6c091b6f0]
xor edx, edx
lea rcx, [0x7ff6c0c82d30]
call fcn.7ff6c0909fb0
xor al, al
jmp 0x7ff6c09120ae
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x2400]
cmp dword [rsp + 0x48], eax
jg 0x7ff6c0912045
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rcx, qword [rsp + 0x80]
sub eax, dword [rcx + 0x148]
cmp eax, 0x3e8
jbe 0x7ff6c0911a8f
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov dword [rax + 0x14c], 0
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x148], eax
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
add rax, 0x14c
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov ecx, dword [0x7ff6c0c82bec]
cmp dword [rax + 0x14c], ecx
jb 0x7ff6c0911bad
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0xa8], rax
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0xb0], rax
lea rax, [0x7ff6c0dae230]
movsxd rcx, dword [rsp + 0xd8]
mov rax, qword [rax + rcx*8 + 8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xa8]
add rax, 0x28
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x34]
mov dword [rsp + 0x28], eax
mov eax, dword [0x7ff6c0c82bec]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb8]
mov r9d, dword [rax + 0x14c]
lea r8, [0x7ff6c091b750]
xor edx, edx
lea rcx, [0x7ff6c0c82d30]
call fcn.7ff6c0909fb0
xor al, al
jmp 0x7ff6c09120ae
movzx eax, byte [rsp + 0x40]
cmp eax, 0xc3
je 0x7ff6c0911bc9
movzx eax, byte [rsp + 0x40]
cmp eax, 0xc4
jne 0x7ff6c0911f20
movzx eax, byte [rsp + 0x40]
cmp eax, 0xc3
jne 0x7ff6c0911d71
mov eax, dword [rsp + 0x48]
sub eax, 2
mov ecx, dword [rsp + 0x44]
add ecx, 2
movsxd rcx, ecx
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
lea r8, [0x7ff6c0da59f0]
add r8, rdx
mov rdx, r8
mov r9d, eax
mov r8, rcx
lea rcx, [0x7ff6c0cbdb48]
call fcn.7ff6c090c9a0
inc eax
mov dword [rsp + 0x4c], eax
mov eax, 1
imul rax, rax, 1
lea rcx, [0x7ff6c0da59f0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x58], eax
mov byte [rsp + 0x40], 0xc1
mov eax, 1
imul rax, rax, 2
lea rcx, [0x7ff6c0da59f0]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x41], al
mov eax, 1
imul rax, rax, 0
lea rcx, [0x7ff6c0da59f0]
movzx edx, byte [rsp + 0x40]
mov byte [rcx + rax], dl
mov eax, 1
imul rax, rax, 1
lea rcx, [0x7ff6c0da59f0]
movzx edx, byte [rsp + 0x4c]
mov byte [rcx + rax], dl
mov eax, 1
imul rax, rax, 0
lea rcx, [0x7ff6c0da59f0]
add rcx, rax
mov rax, rcx
mov r8d, dword [rsp + 0x4c]
mov rdx, rax
lea rcx, [0x7ff6c0cbdb48]
call fcn.7ff6c090c590
movzx eax, al
test eax, eax
je 0x7ff6c0911cd3
lea rdx, [0x7ff6c0da59f0]
lea rcx, [0x7ff6c0cbdb48]
call fcn.7ff6c090cb60
movzx eax, al
test eax, eax
jne 0x7ff6c0911cda
xor al, al
jmp 0x7ff6c09120ae
movzx eax, word [rsp + 0xd8]
mov word [0x7ff6c0da7df0], ax
movzx eax, byte [rsp + 0x41]
mov byte [0x7ff6c0da7df2], al
movsxd rax, dword [rsp + 0x4c]
mov r8, rax
lea rdx, [0x7ff6c0da59f0]
lea rcx, [0x7ff6c0da7df3]
call sub.VCRUNTIME140.dll_memcpy_1
mov eax, dword [rsp + 0x4c]
mov dword [0x7ff6c0da9df4], eax
mov dword [0x7ff6c0da9df8], 1
mov eax, dword [rsp + 0x58]
mov dword [0x7ff6c0da9dfc], eax
mov rax, qword [rsp + 0xd0]
add rax, 0x70
lea rdx, [0x7ff6c0da7df0]
mov rcx, rax
call fcn.7ff6c090e580
movzx eax, al
test eax, eax
je 0x7ff6c0911d6c
xor r8d, r8d
mov edx, 1
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
jmp 0x7ff6c0911f1b
mov eax, dword [rsp + 0x48]
sub eax, 3
mov ecx, dword [rsp + 0x44]
add ecx, 3
movsxd rcx, ecx
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 2
lea r8, [0x7ff6c0da59f0]
add r8, rdx
mov rdx, r8
mov r9d, eax
mov r8, rcx
lea rcx, [0x7ff6c0cbdb48]
call fcn.7ff6c090c9a0
add eax, 2
mov dword [rsp + 0x4c], eax
mov eax, 1
imul rax, rax, 2
lea rcx, [0x7ff6c0da59f0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x58], eax
mov byte [rsp + 0x40], 0xc2
mov eax, 1
imul rax, rax, 3
lea rcx, [0x7ff6c0da59f0]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x41], al
mov eax, 1
imul rax, rax, 0
lea rcx, [0x7ff6c0da59f0]
movzx edx, byte [rsp + 0x40]
mov byte [rcx + rax], dl
movsxd rax, dword [rsp + 0x4c]
shr rax, 8
and rax, 0xff
mov ecx, 1
imul rcx, rcx, 1
lea rdx, [0x7ff6c0da59f0]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0x4c]
and rax, 0xff
mov ecx, 1
imul rcx, rcx, 2
lea rdx, [0x7ff6c0da59f0]
mov byte [rdx + rcx], al
mov r8d, dword [rsp + 0x4c]
lea rdx, [0x7ff6c0da59f0]
lea rcx, [0x7ff6c0cbdb48]
call fcn.7ff6c090c590
movzx eax, al
test eax, eax
je 0x7ff6c0911e82
lea rdx, [0x7ff6c0da59f0]
lea rcx, [0x7ff6c0cbdb48]
call fcn.7ff6c090cb60
movzx eax, al
test eax, eax
jne 0x7ff6c0911e89
xor al, al
jmp 0x7ff6c09120ae
movzx eax, word [rsp + 0xd8]
mov word [0x7ff6c0da7df0], ax
movzx eax, byte [rsp + 0x41]
mov byte [0x7ff6c0da7df2], al
movsxd rax, dword [rsp + 0x4c]
mov r8, rax
lea rdx, [0x7ff6c0da59f0]
lea rcx, [0x7ff6c0da7df3]
call sub.VCRUNTIME140.dll_memcpy_1
mov eax, dword [rsp + 0x4c]
mov dword [0x7ff6c0da9df4], eax
mov dword [0x7ff6c0da9df8], 1
mov eax, dword [rsp + 0x58]
mov dword [0x7ff6c0da9dfc], eax
mov rax, qword [rsp + 0xd0]
add rax, 0x70
lea rdx, [0x7ff6c0da7df0]
mov rcx, rax
call fcn.7ff6c090e580
movzx eax, al
test eax, eax
je 0x7ff6c0911f1b
xor r8d, r8d
mov edx, 1
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
jmp 0x7ff6c0911ffe
movsxd rax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov r8d, dword [rsp + 0x48]
mov rdx, rax
lea rcx, [0x7ff6c0cbdb48]
call fcn.7ff6c090c590
movzx eax, al
test eax, eax
je 0x7ff6c0911f65
lea rdx, [0x7ff6c0da59f0]
lea rcx, [0x7ff6c0cbdb48]
call fcn.7ff6c090cb60
movzx eax, al
test eax, eax
jne 0x7ff6c0911f6c
xor al, al
jmp 0x7ff6c09120ae
movzx eax, word [rsp + 0xd8]
mov word [0x7ff6c0da7df0], ax
movzx eax, byte [rsp + 0x41]
mov byte [0x7ff6c0da7df2], al
movsxd rax, dword [rsp + 0x48]
mov r8, rax
lea rdx, [0x7ff6c0da59f0]
lea rcx, [0x7ff6c0da7df3]
call sub.VCRUNTIME140.dll_memcpy_1
mov eax, dword [rsp + 0x48]
mov dword [0x7ff6c0da9df4], eax
mov dword [0x7ff6c0da9df8], 0
mov dword [0x7ff6c0da9dfc], 0xffffffff
mov rax, qword [rsp + 0xd0]
add rax, 0x70
lea rdx, [0x7ff6c0da7df0]
mov rcx, rax
call fcn.7ff6c090e580
movzx eax, al
test eax, eax
je 0x7ff6c0911ffe
xor r8d, r8d
mov edx, 1
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.KERNEL32.DLL_ReleaseSemaphore]
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x48]
mov eax, dword [rax + 0x2400]
sub eax, ecx
mov rcx, qword [rsp + 0xe0]
mov dword [rcx + 0x2400], eax
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x2400], 0
jg 0x7ff6c0912043
jmp 0x7ff6c09120ac
jmp 0x7ff6c09120a7
cmp dword [rsp + 0x44], 0
jle 0x7ff6c09120a5
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x2400], 0
jle 0x7ff6c09120a5
mov eax, 0x2400
sub eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0xe0]
cmp dword [rcx + 0x2400], eax
jg 0x7ff6c09120a5
mov rax, qword [rsp + 0xe0]
movsxd rax, dword [rax + 0x2400]
movsxd rcx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x7ff6c09120ac
jmp 0x7ff6c09117b2
mov al, 1
add rsp, 0xc8
ret