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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0xc0], rcx
mov qword [rbp + 0xc8], rdx
nop
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
call qword [rax + 0x248]
mov ebx, eax
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xc8]
call fcn.005d9430
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
call qword [rax + 0x48]
mov rcx, rax
mov edx, 1
mov rax, qword [rax]
call qword [rax + 0x28]
test al, al
je 0x605651
mov rax, qword [rbp + 0xc8]
movzx rax, word [rax]
sub ax, 0x1b
test ax, ax
je 0x60561e
sub ax, 5
cmp ax, 0xffe0
jae 0x605651
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
call qword [rax + 0x48]
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x68]
call fcn.005292d0
mov rcx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
call qword [rax + 0x48]
test al, al
jne 0x6055ee
mov rax, qword [rbp + 0xc8]
mov word [rax], 0
jmp 0x605651
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
call qword [rax + 0x48]
lea rcx, [rbp + 0x50]
mov rdx, rax
call fcn.005292d0
mov rcx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x50]
mov rsi, qword [rax]
call qword [rsi + 0x58]
jmp 0x605651
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
call qword [rax + 0x48]
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x60]
call fcn.005292d0
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x48]
mov rsi, qword [rax]
call qword [rsi + 0x50]
mov rax, qword [rbp + 0xc0]
cmp byte [rax + 0x490], 0
je 0x6058e4
call sub.kernel32.dll_GetTickCount_1
mov rcx, qword [rbp + 0xc0]
sub eax, dword [rcx + 0x4a8]
mov rcx, qword [rbp + 0xc0]
cmp eax, dword [rcx + 0x540]
jb 0x605699
mov rax, qword [rbp + 0xc0]
lea rcx, [rax + 0x4a0]
call fcn.00411360
call sub.kernel32.dll_GetTickCount_1
mov rcx, qword [rbp + 0xc0]
mov dword [rcx + 0x4a8], eax
mov rax, qword [rbp + 0xc8]
cmp word [rax], 8
je 0x6057ed
mov rax, qword [rbp + 0xc8]
cmp word [rax], 0xd800
jb 0x6056d8
mov rax, qword [rbp + 0xc8]
cmp word [rax], 0xdfff
jbe 0x6056dc
xor eax, eax
jmp 0x6056de
mov al, 1
test al, al
je 0x605786
mov rcx, qword [rbp + 0xc0]
call fcn.005db1d0
lea rcx, [rbp + 0x70]
mov rdx, rax
mov r8d, 0x102
mov r9d, 0x102
mov dword [rsp + 0x20], 1
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x605851
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0xc8]
movzx rdx, word [rax]
call fcn.00412810
lea rcx, [rbp + 0x38]
movzx rdx, word [rbp + 0x80]
call fcn.00412810
mov rax, qword [rbp + 0xc0]
lea rcx, [rax + 0x4a0]
mov edx, 3
mov rax, qword [rbp + 0xc0]
mov r8, qword [rax + 0x4a0]
mov r9, qword [rbp + 0x40]
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.00412d30
mov rax, qword [rbp + 0xc8]
mov word [rax], 0
jmp 0x605851
lea rcx, [rbp + 0x30]
mov rax, qword [rbp + 0xc8]
movzx rdx, word [rax]
call fcn.00412810
mov rax, qword [rbp + 0xc0]
lea rcx, [rax + 0x4a0]
mov rdx, qword [rbp + 0x30]
call fcn.00412b30
jmp 0x605851
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 0x4a0]
xor ecx, ecx
test rax, rax
je 0x6057ce
mov ecx, dword [rax - 4]
mov rax, qword [rbp + 0xc0]
lea rax, [rax + 0x4a0]
mov edx, ecx
mov r8d, 1
mov rcx, rax
call fcn.00412e80
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rax + 0x4a0]
call fcn.00411b60
mov rcx, qword [rbp + 0xc0]
mov rcx, qword [rcx + 0x4a0]
mov edx, eax
call fcn.00442bb0
cmp al, 2
je 0x6057b6
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 0x4a0]
xor ecx, ecx
test rax, rax
je 0x605832
mov ecx, dword [rax - 4]
mov rax, qword [rbp + 0xc0]
lea rax, [rax + 0x4a0]
mov edx, ecx
mov r8d, 1
mov rcx, rax
call fcn.00412e80
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax + 0x4a0]
xor ecx, ecx
test rax, rax
je 0x605869
mov ecx, dword [rax - 4]
test ecx, ecx
jle 0x605877
mov rcx, rbp
call fcn.00605370
jmp 0x6058ac
mov rcx, qword [rbp + 0xc0]
xor edx, edx
mov rax, qword [rbp + 0xc0]
mov rsi, qword [rax]
call qword [rsi + 0x250]
mov rcx, qword [rbp + 0xc0]
mov dx, 0xffea
call fcn.0040e5b0
mov rsi, rax
mov rcx, qword [rbp + 0xc0]
call rsi
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
call qword [rax + 0x248]
cmp ebx, eax
je 0x6058e3
mov rcx, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc0]
mov rax, qword [rax]
call qword [rax + 0x48]
mov rcx, rax
call fcn.005297b0
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.00411440
lea rcx, [rbp + 0x48]
mov rdx, qword [0x004e3f08]
mov r8d, 3
call fcn.00413650
lea rsp, [rbp + 0xa0]
pop rbx
pop rsi
pop rbp
ret