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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0xe0
mov rbp, rsp
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xd0], 0
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0x100], rcx
nop
mov rax, qword [rbp + 0x100]
movzx rcx, byte [rax + 0x562]
cmp cl, 7
ja 0x617eb4
mov al, 1
shl eax, cl
movzx rcx, byte [0x006184bc]
test al, cl
setne al
jmp 0x617eb6
xor eax, eax
test al, al
je 0x617ee9
mov rcx, qword [rbp + 0x100]
lea rdx, [rbp + 0x88]
call fcn.005f49d0
mov rax, qword [rbp + 0x100]
lea rcx, [rax + 0x558]
mov rdx, qword [rbp + 0x88]
call fcn.00463030
jmp 0x617f2f
call fcn.007662a8
mov rcx, qword [rbp + 0x100]
sub eax, dword [rcx + 0x554]
mov rcx, qword [rbp + 0x100]
cmp eax, dword [rcx + 0x594]
jb 0x617f1d
mov rax, qword [rbp + 0x100]
lea rcx, [rax + 0x558]
call fcn.004629a0
call fcn.007662a8
mov rcx, qword [rbp + 0x100]
mov dword [rcx + 0x554], eax
mov rax, qword [rbp + 0x30]
movzx rax, word [rax]
sub ax, 8
test ax, ax
je 0x617f96
sub ax, 1
test ax, ax
je 0x617f5b
sub ax, 0x12
test ax, ax
jne 0x6181e8
jmp 0x618403
mov rax, qword [rbp + 0x100]
cmp byte [rax + 0x551], 0
je 0x618402
mov rcx, qword [rbp + 0x100]
call fcn.00615430
test al, al
je 0x618402
mov rcx, qword [rbp + 0x100]
xor edx, edx
call fcn.00615460
jmp 0x618402
mov rcx, rbp
lea rdx, [rbp + 0xdc]
lea r8, [rbp + 0xd8]
call fcn.00617c90
test al, al
je 0x617fca
mov rcx, rbp
mov edx, dword [rbp + 0xdc]
mov r8d, dword [rbp + 0xd8]
call fcn.00617d10
jmp 0x6181be
mov rax, qword [rbp + 0x100]
movzx rcx, byte [rax + 0x562]
cmp cl, 7
ja 0x617ff1
mov al, 1
shl eax, cl
movzx rcx, byte [0x006184bc]
test al, cl
setne al
jmp 0x617ff3
xor eax, eax
test al, al
je 0x618163
mov rcx, qword [rbp + 0x100]
lea rdx, [rbp + 0x80]
call fcn.005f49d0
mov rcx, qword [rbp + 0x80]
call fcn.00463210
test eax, eax
jle 0x618163
mov rcx, qword [rbp + 0x100]
lea rdx, [rbp + 0xc8]
call fcn.005f49d0
mov ebx, dword [rbp + 0xdc]
jmp 0x618040
sub ebx, 1
mov rcx, qword [rbp + 0xc8]
mov edx, ebx
call fcn.00484fa0
cmp al, 2
je 0x61803d
lea rcx, [rbp + 0xd0]
mov rdx, qword [rbp + 0xc8]
mov r8d, 1
mov r9d, ebx
sub r9d, 1
call fcn.00464ae0
mov rcx, qword [rbp + 0x100]
call fcn.00602ce0
mov rcx, rax
mov edx, 0x14e
or r8, 0xffffffffffffffff
xor r9, r9
call fcn.00766ff0
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0xc8]
mov r8d, dword [rbp + 0xd8]
add r8d, 1
mov r9d, 0x7fffffff
call fcn.00464ae0
lea rcx, [rbp + 0x78]
mov rdx, qword [rbp + 0xd0]
mov r8, qword [rbp + 0x70]
call fcn.00464890
mov rcx, qword [rbp + 0x100]
mov rdx, qword [rbp + 0x78]
call fcn.005f4a40
mov rcx, qword [rbp + 0x100]
call fcn.00602ce0
mov rsi, rax
mov eax, ebx
sub ax, 1
mov ecx, eax
mov edx, eax
call fcn.0046ef00
mov rcx, rsi
mov edx, 0x142
xor r8, r8
mov r9, rax
call fcn.00766ff0
mov rcx, qword [rbp + 0x100]
lea rdx, [rbp + 0x68]
call fcn.005f49d0
mov rax, qword [rbp + 0x100]
lea rcx, [rax + 0x558]
mov rdx, qword [rbp + 0x68]
call fcn.00463030
jmp 0x6181be
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x558]
call fcn.00463210
mov rcx, qword [rbp + 0x100]
lea rcx, [rcx + 0x558]
mov edx, eax
mov r8d, 1
call fcn.00464b40
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x558]
call fcn.00463210
mov rcx, qword [rbp + 0x100]
mov rcx, qword [rcx + 0x558]
mov edx, eax
call fcn.00484fa0
cmp al, 2
je 0x618135
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x558]
call fcn.00463210
mov rcx, qword [rbp + 0x100]
lea rcx, [rcx + 0x558]
mov edx, eax
mov r8d, 1
call fcn.00464b40
mov rax, qword [rbp + 0x30]
mov word [rax], 0
mov rcx, qword [rbp + 0x100]
mov dx, 0xffad
call fcn.0045ff60
mov rbx, rax
mov rcx, qword [rbp + 0x100]
call rbx
jmp 0x618402
mov rcx, rbp
lea rdx, [rbp + 0xdc]
lea r8, [rbp + 0xd8]
call fcn.00617c90
mov rax, qword [rbp + 0x100]
cmp byte [rax + 0x562], 2
jae 0x6182c2
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x558]
call fcn.00463210
cmp dword [rbp + 0xdc], eax
jge 0x6182c2
lea rcx, [rbp + 0x60]
mov rax, qword [rbp + 0x100]
mov rdx, qword [rax + 0x558]
mov r8d, 1
mov r9d, dword [rbp + 0xdc]
call fcn.00464ae0
lea rcx, [rbp + 0x58]
mov rax, qword [rbp + 0x30]
movzx rdx, word [rax]
call fcn.004644a0
mov rax, qword [rbp + 0x100]
mov rcx, qword [rax + 0x558]
call fcn.00463210
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x100]
mov rdx, qword [rdx + 0x558]
mov r8d, dword [rbp + 0xd8]
add r8d, 1
mov r9d, eax
call fcn.00464ae0
lea rcx, [rbp + 0xc8]
mov edx, 3
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x58]
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.004649c0
jmp 0x6182f1
lea rcx, [rbp + 0x48]
mov rax, qword [rbp + 0x30]
movzx rdx, word [rax]
call fcn.004644a0
lea rcx, [rbp + 0xc8]
mov rax, qword [rbp + 0x100]
mov rdx, qword [rax + 0x558]
mov r8, qword [rbp + 0x48]
call fcn.00464890
mov rax, qword [rbp + 0x100]
cmp byte [rax + 0x551], 0
je 0x61831f
mov rcx, qword [rbp + 0x100]
call fcn.00615430
test al, al
jne 0x61831f
mov rcx, qword [rbp + 0x100]
mov dl, 1
call fcn.00615460
mov rax, qword [rbp + 0x30]
movzx rcx, word [rax]
call fcn.00475be0
test al, al
je 0x6183e2
mov rcx, qword [rbp + 0x100]
call fcn.00602ce0
lea rcx, [rbp + 0x98]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
call fcn.00766f68
test eax, eax
je 0x618402
cmp dword [rbp + 0xa0], 0x102
jne 0x618402
lea rcx, [rbp + 0x38]
movzx rdx, word [rbp + 0xa8]
call fcn.004644a0
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0xc8]
mov r8, qword [rbp + 0x38]
call fcn.00464890
mov rcx, qword [rbp + 0x100]
mov rdx, qword [rbp + 0x40]
call fcn.006184c0
test al, al
je 0x618402
mov rcx, qword [rbp + 0x100]
call fcn.00602ce0
lea rcx, [rbp + 0x98]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 1
call fcn.00766f68
mov rax, qword [rbp + 0x30]
mov word [rax], 0
jmp 0x618402
mov rcx, qword [rbp + 0x100]
mov rdx, qword [rbp + 0xc8]
call fcn.006184c0
test al, al
je 0x618402
mov rax, qword [rbp + 0x30]
mov word [rax], 0
nop
lea rcx, [rbp + 0x38]
mov edx, 6
call fcn.00462a80
lea rcx, [rbp + 0x68]
call fcn.004629a0
lea rcx, [rbp + 0x70]
mov edx, 2
call fcn.00462a80
lea rcx, [rbp + 0x80]
mov edx, 2
call fcn.00462a80
lea rcx, [rbp + 0xc8]
mov edx, 2
call fcn.00462a80
lea rsp, [rbp + 0xe0]
pop rbx
pop rsi
pop rbp
ret