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

Disassembly:
push rbx
push rdi
push r12
push r13
sub rsp, 0x48
mov rdx, qword [0x14046a618]
lea r12, [0x140469734]
mov rbx, qword [0x14045b410]
lea r13, [0x140469134]
mov edi, ecx
lea rax, [rdx + 0x4dc]
cmp dword [rax], 0
mov rbx, qword [rbx + 0x1798]
cmovge r12, rax
lea rax, [rdx + 0x4d8]
cmp dword [rax], 0
cmovge r13, rax
movzx eax, byte [rbx]
test al, al
je 0x1402559ac
cmp dword [0x14045b514], 0
je 0x1402556bb
mov rcx, rbx
call qword [case.0x14018a5b3.0]
jmp 0x1402556be
movzx eax, byte [rbx]
cmp eax, edi
jne 0x1402556d7
mov rax, qword [0x14046a618]
mov ecx, dword [rax + 0x45c]
xor ecx, dword [0x14046a08c]
jne 0x140255748
mov rcx, rbx
call qword [0x140420bf8]
inc rbx
movsxd rcx, eax
add rbx, rcx
cmp dword [0x14045b514], 0
je 0x1402556fd
mov rcx, rbx
call qword [case.0x14018a5b3.0]
jmp 0x140255700
movzx eax, byte [rbx]
cmp eax, edi
jne 0x140255719
mov rax, qword [0x14046a618]
mov ecx, dword [rax + 0x45c]
xor ecx, dword [0x14046a08c]
je 0x140255748
mov rcx, rbx
call qword [0x140420bf8]
movsxd rcx, eax
add rbx, rcx
cmp byte [rbx], 0
je 0x1402559ac
inc rbx
cmp byte [rbx], 0
jne 0x1402556a7
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rbx
ret
movzx eax, byte [rbx]
test al, al
je 0x1402559ac
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140254240
mov rbx, rax
test rax, rax
jne 0x14025577e
mov ecx, 0x2000
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rbx
jmp fcn.14018aca0
mov r10, qword [0x14046a618]
mov eax, dword [rax]
cmp eax, dword [r10 + 0xd8]
jl 0x1402559ac
cmp eax, dword [r10 + 0xe0]
jge 0x1402559ac
cmp dword [r10 + 0x4ac], 0
jne 0x1402557fa
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rbx
mov rcx, r10
call fcn.14005a360
mov r10, qword [0x14046a618]
cmp dword [r10 + 0x4ac], 0
jne 0x1402557fa
mov ecx, dword [r10 + 0xf4]
mov edx, dword [rsp + 0x78]
cmp edx, ecx
jl 0x1402559ac
add ecx, dword [r10 + 0x134]
cmp edx, ecx
jge 0x1402559ac
movsd xmm0, qword [rbx]
mov eax, dword [0x140421fcc]
mov edi, dword [rbx + 8]
mov qword [rsp + 0x70], rbp
mov ebp, dword [r10 + 0x40]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r14
mov r14d, dword [r12]
movsd qword [rsp + 0x78], xmm0
movsd xmm0, qword [r10 + 0x38]
mov qword [rsp + 0x30], r15
mov r15d, dword [r13]
movsd qword [rsp + 0x80], xmm0
test eax, eax
js 0x140255853
cmp eax, dword [r10 + 0x2f0]
jne 0x140255853
mov dword [0x140421fcc], 0xffffffff
inc dword [r10 + 0x2f0]
mov ecx, 0xa
call fcn.14008ec70
mov esi, dword [0x140420a38]
xor ecx, ecx
mov ebx, dword [0x140421fcc]
mov dword [0x140420a38], 0x6010
call fcn.1402c54d0
mov rax, qword [0x14046a618]
xor ecx, ecx
movsd xmm0, qword [rsp + 0x78]
movsd qword [rax + 0x38], xmm0
mov dword [rax + 0x40], edi
xor edi, edi
mov dword [r12], edi
mov dword [r13], edi
call fcn.14008e440
xor ecx, ecx
call fcn.1402457b0
cmp dword [0x140464664], edi
je 0x1402558d6
cmp dword [0x140465078], edi
jne 0x1402558d6
mov rcx, qword [0x1404687e8]
call fcn.1402ab4a0
mov dword [0x140464664], edi
mov dword [0x140465078], edi
call fcn.1402ac330
cmp dword [0x14045b514], edi
mov dword [0x140421fcc], ebx
mov rbx, qword [0x14046a248]
movzx eax, byte [rbx]
je 0x1402559b7
test eax, eax
je 0x14025591f
nop dword [rax + rax]
cmp eax, 0x6d
je 0x1402559d5
mov rcx, rbx
call qword [0x140420bf8]
movsxd rcx, eax
add rbx, rcx
movzx eax, byte [rbx]
test eax, eax
jne 0x140255900
cmp dword [0x14045b868], edi
jne 0x14025593c
inc dword [0x14045b658]
call fcn.1401246f0
dec dword [0x14045b658]
test eax, eax
jne 0x14025596b
imul ebx, dword [0x140468f58], 0x64
lea rdx, str.ui_delay__ld_
mov eax, dword [0x14045b9c4]
add ebx, 9
test eax, eax
cmovg ebx, eax
xor ecx, ecx
mov r8d, ebx
call fcn.1401522a0
xor edx, edx
mov ecx, ebx
call fcn.1401db8b0
mov rax, qword [0x14046a618]
xor ecx, ecx
movsd xmm0, qword [rsp + 0x80]
mov dword [0x140420a38], esi
movsd qword [rax + 0x38], xmm0
mov dword [rax + 0x40], ebp
mov dword [r12], r14d
mov dword [r13], r15d
call fcn.1402c54d0
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x70]
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rbx
ret
test eax, eax
je 0x14025591f
nop
cmp eax, 0x6d
je 0x1402559d5
movzx eax, byte [rbx + 1]
inc rbx
test eax, eax
jne 0x1402559c0
jmp 0x14025591f
test rbx, rbx
je 0x14025591f
imul ecx, dword [0x140468f58], 0x64
mov edx, 1
add ecx, 8
call fcn.1402c60f0
jmp 0x14025596b