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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rbx, r8
mov r15, rdx
lea rdx, [0x14014dd40]
mov eax, 5
mov r13d, dword [rbp + 0xf0]
mov rcx, qword [0x14014dd40]
cmp rcx, rdx
je 0x1400616d5
test byte [rcx + 0x1c], 1
je 0x1400616d5
cmp byte [rcx + 0x19], al
jb 0x1400616d5
mov rax, qword [rbp + 0x108]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov r8, qword [rbp + 0xe0]
mov qword [rsp + 0x40], r8
mov eax, dword [rbp + 0xe8]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0xf8]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r9
mov r9d, dword [rbx + 0x10]
mov rcx, qword [rcx + 0x10]
call fcn.140053bdc
xor r14d, r14d
xor eax, eax
mov dword [rsp + 0x70], eax
xor esi, esi
mov dword [rsp + 0x58], esi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [rbp + 0xc0], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
and qword [rbp - 0x60], r14
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov dword [rbp - 0x48], 0xa
mov rdi, qword [rbx]
lea r12d, [r14 + 2]
test rdi, rdi
je 0x140061e8d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x3a98
ja 0x140061e36
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov rcx, qword [rdi + 0x10]
mov rdi, qword [rdi]
mov qword [rbp - 0x80], rdi
sub rcx, 0x18
call fcn.140004dd4
lea rsi, [rax + 0x18]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x50], rbx
mov edi, ebx
cmp qword [r15 + 0x60], rbx
jbe 0x140061806
cmp rbx, qword [r15 + 0x60]
jae 0x140061e2b
mov rax, qword [r15 + 0x58]
mov rdx, rsi
mov rcx, qword [rax + rdi*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14006178f
inc rdi
cmp rdi, qword [r15 + 0x60]
jb 0x14006176f
jmp 0x140061806
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400617c8
test byte [rcx + 0x1c], r12b
je 0x1400617c8
mov eax, 5
cmp byte [rcx + 0x19], al
jb 0x1400617c8
lea edx, [rax + 0x6a]
mov r9, rsi
lea r8, [0x14011e900]
mov rcx, qword [rcx + 0x10]
call fcn.140003638
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [r15 + 0x50], rax
cmp rdi, qword [r15 + 0x80]
jae 0x140061e20
mov rbx, qword [r15 + 0x78]
mov rbx, qword [rbx + rdi*8]
mov qword [rsp + 0x50], rbx
mov rax, qword [rbx]
mov rdi, qword [rax + 8]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
jmp 0x140061c10
mov qword [rsp + 0x50], rbx
lea r8, [rsp + 0x68]
mov rdx, rsi
mov rcx, qword [rbp + 0xb0]
call fcn.140072f64
mov r14d, eax
test eax, eax
js 0x140061c10
xor edx, edx
lea r8d, [rdx + 0x28]
lea rcx, [rbp - 0x20]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x20], 1
mov rax, qword [rbp + 0x108]
mov r8, qword [rax]
mov rax, qword [rbp + 0x100]
mov rdx, qword [rax]
lea rcx, [rbp - 0x20]
call fcn.14005abbc
mov r14d, eax
test eax, eax
js 0x140061c06
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rsp + 0x60], rax
mov rax, qword [0x14014e920]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140009050]
lea rcx, [0x14014e920]
call rbx
add rax, 0x18
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0xe8]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0xd8]
mov dword [rsp + 0x20], eax
mov r9, qword [rbp + 0xd0]
mov r8, qword [rbp + 0xc8]
mov rdi, qword [rsp + 0x68]
mov rdx, rdi
lea rcx, [rbp + 0x28]
call fcn.14007a164
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x28]
call fcn.14007a1f4
test eax, eax
jns 0x140061a28
xor r14d, r14d
mov rdi, qword [rbp + 0x28]
test rdi, rdi
je 0x140061938
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, rdi
call rbx
nop
mov rsi, qword [rbp - 0x78]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140061967
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rsi, qword [rsp + 0x60]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140061997
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x1400619c2
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
nop
mov rsi, qword [rsp + 0x78]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x1400619f2
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rbx, qword [rsp + 0x68]
test rbx, rbx
mov rdi, qword [rbp - 0x80]
mov esi, dword [rbp + 0xc0]
je 0x140061714
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
mov rdi, qword [rbp - 0x80]
jmp 0x140061714
mov rax, qword [rdi]
mov r14, qword [rax + 0x80]
mov rcx, r14
call qword [fcn.140009050]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
xor r9d, r9d
mov rbx, qword [rbp - 0x78]
mov r8, rbx
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call r14
test eax, eax
js 0x140061aff
mov r8, qword [rsp + 0x50]
mov rdx, rsi
mov rcx, r15
call fcn.14005b418
mov r14d, eax
mov rsi, qword [rbp + 0x28]
test rsi, rsi
je 0x140061a99
mov rax, qword [rsi]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rsi
call rdi
nop
lea rsi, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x140061ac6
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rsi, qword [rsp + 0x60]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140061af5
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov rsi, qword [rsp + 0x78]
jmp 0x140061c06
mov dword [rsp + 0x70], eax
xor r14d, r14d
mov rsi, qword [rbp + 0x28]
test rsi, rsi
je 0x140061b25
mov rax, qword [rsi]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rsi
call rdi
nop
lea rsi, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x140061b52
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rsi, qword [rsp + 0x60]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140061b82
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140061bad
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
nop
mov rsi, qword [rsp + 0x78]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140061bdd
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
mov rdi, qword [rbp - 0x80]
mov esi, dword [rbp + 0xc0]
jmp 0x140061714
mov rcx, qword [rbp]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r14d, r14d
js 0x140061d9d
lea rax, [0x140116278]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x10], rax
and dword [rbp + 0x18], 0
lea rdx, [rbp + 8]
mov rcx, qword [rsp + 0x50]
call fcn.14007233c
mov r14d, eax
test eax, eax
js 0x140061d9d
mov rbx, qword [rsp + 0x50]
mov r15, qword [rbx + 0x48]
add r15, qword [rbx + 0x28]
add dword [rsp + 0x58], r15d
cmp dword [rbp + 0xe8], 0
jne 0x140061d20
mov eax, r13d
cmp rax, r15
jbe 0x140061c7b
sub r13d, r15d
jmp 0x140061daa
xor r12d, r12d
test r15, r15
je 0x140061da4
cmp dword [rbp + 0xf8], 0
jbe 0x140061da4
test r13d, r13d
je 0x140061c9e
dec r13d
jmp 0x140061d0c
xor edi, edi
mov qword [rbp - 0x40], rdi
mov dword [rbp - 0x38], r12d
test rbx, rbx
je 0x140061cbd
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14001bcb0
mov rdi, qword [rbp - 0x40]
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x70]
call fcn.140068b98
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140061cdf
mov qword [rcx], rax
jmp 0x140061ce3
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
dec dword [rbp + 0xf8]
test rdi, rdi
je 0x140061d07
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, rdi
call rbx
mov rbx, qword [rsp + 0x50]
inc r12d
mov eax, r12d
cmp rax, r15
jb 0x140061c87
jmp 0x140061da4
xor r12d, r12d
test r15, r15
je 0x140061da4
xor edi, edi
mov qword [rbp - 0x30], rdi
mov dword [rbp - 0x28], r12d
test rbx, rbx
je 0x140061d47
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.14001bcb0
mov rdi, qword [rbp - 0x30]
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.140068b98
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140061d69
mov qword [rcx], rax
jmp 0x140061d6d
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
test rdi, rdi
je 0x140061d8b
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, rdi
call rbx
inc r12d
mov eax, r12d
mov rbx, qword [rsp + 0x50]
cmp rax, r15
jb 0x140061d28
jmp 0x140061da4
mov rbx, qword [rsp + 0x50]
jmp 0x140061db1
mov r12d, 2
mov r15, qword [rbp + 0xb8]
test rbx, rbx
je 0x140061dcc
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
nop
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140061df7
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140009050]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140061e16
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.140009050]
mov rcx, rbx
call rdi
test r14d, r14d
js 0x140061e8d
jmp 0x140061bf7
mov ecx, 0x80070057
call fcn.140005300
int3
mov ecx, 0x80070057
call fcn.140005300
nop
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x140061e89
test byte [rcx + 0x1c], r12b
je 0x140061e89
mov eax, 5
cmp byte [rcx + 0x19], al
jb 0x140061e89
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, VarDecRound
mov dword [rsp + 0x20], eax
mov r9d, esi
lea r8, [0x14011e900]
mov rcx, qword [0x14014dd40]
mov rcx, qword [rcx + 0x10]
call fcn.14000574c
mov rcx, qword [0x14014dd40]
xor esi, esi
jmp 0x140061e9c
mov esi, dword [rsp + 0x58]
mov rcx, qword [0x14014dd40]
test esi, esi
jne 0x140061ea6
mov eax, dword [rsp + 0x70]
test eax, eax
cmovs r14d, eax
mov rbx, qword [rbp + 0x118]
mov rdi, qword [rbp + 0x110]
test r14d, r14d
js 0x140061f14
mov eax, dword [rbp + 0xe8]
test eax, eax
je 0x140061ef5
lea r9, [rbp - 0x70]
mov r8, qword [rbp + 0xe0]
mov edx, eax
mov rcx, qword [rbp + 0x108]
call fcn.140061f88
mov r14d, eax
test eax, eax
js 0x140061f0d
lea r8, [rbp - 0x70]
mov edx, dword [rbp + 0xf8]
mov ecx, r13d
call fcn.140062464
mov r8, rbx
mov rdx, qword [rbp + 0x108]
lea rcx, [rbp - 0x70]
call fcn.1400592e8
mov r14d, eax
mov dword [rdi], esi
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x140061f62
test byte [rcx + 0x1c], 1
je 0x140061f62
movzx eax, byte [rcx + 0x19]
test r14d, r14d
mov edx, 5
cmovns r12d, edx
cmp eax, r12d
jl 0x140061f62
mov edx, VarDecRound
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
mov r9d, r14d
lea r8, [0x14011e900]
mov rcx, qword [rcx + 0x10]
call fcn.14000b28c
nop
lea rcx, [rbp - 0x70]
call fcn.14001ae40
mov eax, r14d
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret