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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x90
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 + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
nop
mov rcx, qword [rbp + 0xb0]
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax]
call qword [rax + 0x2a0]
mov ebx, eax
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0xb8]
call fcn.005ff600
mov rcx, qword [rbp + 0xb0]
mov rax, qword [rbp + 0xb0]
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 0x638b92
mov rax, qword [rbp + 0xb8]
movzx rax, word [rax]
sub ax, 0x1b
test ax, ax
je 0x638b64
sub ax, 5
cmp ax, 0xffe0
jae 0x638b92
mov rcx, qword [rbp + 0xb0]
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax]
call qword [rax + 0x48]
lea rcx, [rbp + 0x58]
mov rdx, rax
call fcn.00526e20
mov rcx, qword [rbp + 0x58]
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
call qword [rax + 0x48]
test al, al
jne 0x638b34
mov rax, qword [rbp + 0xb8]
mov word [rax], 0
jmp 0x638b92
mov rcx, qword [rbp + 0xb0]
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax]
call qword [rax + 0x48]
lea rcx, [rbp + 0x50]
mov rdx, rax
call fcn.00526e20
mov rcx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x50]
mov rsi, qword [rax]
call qword [rsi + 0x58]
jmp 0x638b92
mov rcx, qword [rbp + 0xb0]
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax]
call qword [rax + 0x48]
lea rcx, [rbp + 0x48]
mov rdx, rax
call fcn.00526e20
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp + 0x48]
mov rsi, qword [rax]
call qword [rsi + 0x50]
mov rax, qword [rbp + 0xb0]
cmp byte [rax + 0x4b0], 0
je 0x638e1f
call sub.kernel32.dll_GetTickCount
mov rcx, qword [rbp + 0xb0]
sub eax, dword [rcx + 0x4c8]
mov rcx, qword [rbp + 0xb0]
cmp eax, dword [rcx + 0x560]
jb 0x638bda
mov rax, qword [rbp + 0xb0]
lea rcx, [rax + 0x4c0]
call fcn.00412080
call sub.kernel32.dll_GetTickCount
mov rcx, qword [rbp + 0xb0]
mov dword [rcx + 0x4c8], eax
mov rax, qword [rbp + 0xb8]
cmp word [rax], 8
je 0x638d21
mov rax, qword [rbp + 0xb8]
cmp word [rax], 0xd800
jb 0x638cbb
mov rax, qword [rbp + 0xb8]
cmp word [rax], 0xdfff
ja 0x638cbb
mov rcx, qword [rbp + 0xb0]
call fcn.00601680
lea rcx, [rbp + 0x60]
mov rdx, rax
mov r8d, 0x102
mov r9d, 0x102
mov dword [rsp + 0x20], 1
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x638d8c
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0xb8]
movzx rdx, word [rax]
call fcn.004135d0
lea rcx, [rbp + 0x38]
movzx rdx, word [rbp + 0x70]
call fcn.004135d0
mov rax, qword [rbp + 0xb0]
lea rcx, [rax + 0x4c0]
mov edx, 3
mov rax, qword [rbp + 0xb0]
mov r8, qword [rax + 0x4c0]
mov r9, qword [rbp + 0x40]
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.00413af0
mov rax, qword [rbp + 0xb8]
mov word [rax], 0
jmp 0x638d8c
lea rcx, [rbp + 0x30]
mov rax, qword [rbp + 0xb8]
movzx rdx, word [rax]
call fcn.004135d0
mov rax, qword [rbp + 0xb0]
lea rcx, [rax + 0x4c0]
mov rdx, qword [rbp + 0x30]
call fcn.004138f0
jmp 0x638d8c
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x4c0]
xor ecx, ecx
test rax, rax
je 0x638d03
mov ecx, dword [rax - 4]
mov rax, qword [rbp + 0xb0]
lea rax, [rax + 0x4c0]
mov edx, ecx
mov r8d, 1
mov rcx, rax
call fcn.00413be0
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x4c0]
xor ecx, ecx
test rax, rax
je 0x638d39
mov ecx, dword [rax - 4]
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x4c0]
mov edx, ecx
mov rcx, rax
call fcn.00447b10
cmp al, 2
je 0x638ceb
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x4c0]
xor ecx, ecx
test rax, rax
je 0x638d6e
mov ecx, dword [rax - 4]
mov rax, qword [rbp + 0xb0]
lea rax, [rax + 0x4c0]
mov edx, ecx
mov r8d, 1
mov rcx, rax
call fcn.00413be0
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax + 0x4c0]
xor ecx, ecx
test rax, rax
je 0x638da4
mov ecx, dword [rax - 4]
test ecx, ecx
jle 0x638db2
mov rcx, rbp
call fcn.006388c0
jmp 0x638de7
mov rcx, qword [rbp + 0xb0]
xor edx, edx
mov rax, qword [rbp + 0xb0]
mov rsi, qword [rax]
call qword [rsi + 0x2a8]
mov rcx, qword [rbp + 0xb0]
mov dx, 0xffeb
call fcn.0040f510
mov rsi, rax
mov rcx, qword [rbp + 0xb0]
call rsi
mov rcx, qword [rbp + 0xb0]
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax]
call qword [rax + 0x2a0]
cmp ebx, eax
je 0x638e1e
mov rcx, qword [rbp + 0xb0]
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax]
call qword [rax + 0x48]
mov rcx, rax
call fcn.005272d0
nop
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.00412160
lea rcx, [rbp + 0x48]
mov rdx, qword [0x004d6cc0]
mov r8d, 3
call fcn.00414b90
lea rsp, [rbp + 0x90]
pop rbx
pop rsi
pop rbp
ret