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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
cmp byte [rcx + 0x50], 0
mov rdi, rcx
je 0x18002039c
cmp byte [rcx + 0x69], 0
je 0x18002039c
xor edx, edx
lea ecx, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.18001ebf0
mov edx, 0x13
lea ecx, [rdx - 0x11]
lea r8d, [rdx - 0x12]
call fcn.18001ebf0
mov ecx, 2
mov edx, 0x8c
lea r8d, [rcx - 1]
call fcn.18001ebf0
mov edx, 0x14
lea ecx, [rdx - 0x12]
lea r8d, [rdx - 0x13]
call fcn.18001ebf0
mov edx, 0x1b
lea ecx, [rdx - 0x19]
lea r8d, [rdx - 0x1a]
call fcn.18001ebf0
mov edx, 0x50
lea ecx, [rdx - 0x4e]
lea r8d, [rdx - 0x4f]
call fcn.18001ebf0
mov ecx, 2
mov edx, 0x151
lea r8d, [rcx - 1]
call fcn.18001ebf0
mov edx, 0x1b
lea ecx, [rdx - 0x19]
lea r8d, [rdx - 0x1a]
call fcn.18001ebf0
mov edx, 0x55
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0x54]
call fcn.18001ebf0
mov edx, 0x4a
lea ecx, [rdx - 0x48]
lea r8d, [rdx - 0x49]
call fcn.18001ebf0
mov rax, qword gs:[0x58]
mov ecx, dword [0x1800a94a0]
mov edx, 4
mov r15, qword [rax + rcx*8]
add r15, rdx
mov eax, dword [r15]
cmp dword [0x1800a8d9c], eax
jg 0x180020ce9
xor r12d, r12d
lea rbx, str.SELECT
movabs r13, 0xe2587f8cbbd87b1d
cmp byte [rdi + 0x248], r12b
je 0x1800203f7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1800a8d98]
cmp eax, dword [rdi + 0x188]
jae 0x180020471
mov rcx, r13
call fcn.180021610
mov rcx, r12
call fcn.180021630
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xe3
mov rcx, qword [rbp + 0x30]
call fcn.180021630
call fcn.1800215a0
cmp dword [rax], r12d
je 0x1800204ac
mov rcx, r13
call fcn.180021610
mov rcx, r12
call fcn.180021630
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xaf
mov rcx, qword [rbp + 0x30]
call fcn.180021630
call fcn.1800215a0
cmp dword [rax], r12d
je 0x1800204ac
cmp byte [rdi + 0x69], r12b
je 0x1800204ac
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1800a8d98]
cmp eax, dword [rdi + 0x188]
jb 0x1800204ac
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1800a8d98], eax
movzx eax, byte [rdi + 0x50]
xor al, 1
mov byte [rdi + 0x50], al
cmp byte [rdi + 0x68], r12b
je 0x1800204ac
test al, al
lea rdx, str.BACK
lea r8, str.HUD_FRONTEND_DEFAULT_SOUNDSET
cmovne rdx, rbx
xor r9d, r9d
lea ecx, [r9 - 1]
call fcn.180021510
mov eax, dword [r15]
cmp dword [0x1800a8db0], eax
jg 0x180020d1f
movsxd rax, dword [rdi + 0x18c]
movabs r14, 0x67c540aa08e4a6f5
imul rcx, rax, 0xf4240
mov qword [0x1800a8da8], rcx
cmp byte [rdi + 0x50], r12b
je 0x180020c94
cmp byte [rdi + 0x249], r12b
je 0x180020516
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x1800a8da0]
cmp rax, qword [0x1800a8da8]
jl 0x180020516
mov qword [0x1800a8da0], rcx
jmp 0x180020583
cmp byte [rdi + 0x50], r12b
je 0x180020c94
mov rcx, r13
call fcn.180021610
mov rcx, r12
call fcn.180021630
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xca
mov rcx, qword [rbp + 0x30]
call fcn.180021630
call fcn.1800215a0
cmp dword [rax], r12d
je 0x1800205f6
cmp byte [rdi + 0x69], r12b
je 0x1800205f6
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x1800a8da0]
cmp rax, qword [0x1800a8da8]
jl 0x1800205f6
mov qword [0x1800a8da0], rdx
cmp byte [rdi + 0x68], r12b
je 0x1800205ca
mov rcx, r14
call fcn.180021610
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.180021630
lea rcx, str.BACK
call fcn.180021630
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.180021630
mov rcx, r12
call fcn.180021630
call fcn.1800215a0
mov rcx, qword [rdi + 0x278]
mov rax, rcx
sub rax, qword [rdi + 0x270]
sar rax, 3
cmp rax, 1
ja 0x1800205eb
mov byte [rdi + 0x50], r12b
jmp 0x1800205f6
lea rax, [rcx - 8]
mov qword [rdi + 0x278], rax
cmp byte [rdi + 0x50], r12b
je 0x180020c94
mov qword [rsp + 0x58], rsi
mov rsi, qword [rdi + 0x278]
cmp qword [rdi + 0x270], rsi
je 0x180020c8f
mov eax, dword [r15]
cmp dword [0x1800a8dc8], eax
mov rsi, qword [rsi - 8]
jg 0x180020d5c
movsxd rax, dword [rdi + 0x190]
imul rcx, rax, 0xf4240
mov qword [0x1800a8dc0], rcx
cmp byte [rdi + 0x24a], r12b
je 0x180020681
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x180020681
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x1800a8db8]
cmp rax, qword [0x1800a8dc0]
jl 0x180020681
mov qword [0x1800a8db8], rcx
jmp 0x1800206f6
mov rcx, r13
call fcn.180021610
mov rcx, r12
call fcn.180021630
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xc9
mov rcx, qword [rbp + 0x30]
call fcn.180021630
call fcn.1800215a0
cmp dword [rax], r12d
je 0x180020765
cmp byte [rdi + 0x69], r12b
je 0x180020765
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x180020765
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x1800a8db8]
cmp rax, qword [0x1800a8dc0]
jl 0x180020765
mov qword [0x1800a8db8], rdx
cmp byte [rdi + 0x68], r12b
je 0x180020739
mov rcx, r14
call fcn.180021610
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.180021630
mov rcx, rbx
call fcn.180021630
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.180021630
mov rcx, r12
call fcn.180021630
call fcn.1800215a0
mov rax, qword [rsi]
mov rcx, rsi
mov rbx, qword [rax + 0x28]
call qword [rax + 0x38]
mov rdx, rax
mov rcx, rsi
call rbx
test rax, rax
je 0x180020765
mov rcx, qword [rax]
mov edx, 2
mov r8, qword [rcx + 0x20]
mov rcx, rax
call r8
mov eax, dword [r15]
cmp dword [0x1800a8de0], eax
jg 0x180020d99
movsxd rax, dword [rdi + 0x194]
imul rcx, rax, 0xf4240
mov qword [0x1800a8dd8], rcx
cmp byte [rdi + 0x24b], r12b
je 0x1800207c0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x1800207c0
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x1800a8dd0]
cmp rax, qword [0x1800a8dd8]
jge 0x18002082e
mov rcx, r13
call fcn.180021610
mov rcx, r12
call fcn.180021630
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xbc
mov rcx, qword [rbp + 0x30]
call fcn.180021630
call fcn.1800215a0
cmp dword [rax], r12d
je 0x1800208a5
cmp byte [rdi + 0x69], r12b
je 0x1800208a5
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x1800208a5
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x1800a8dd0]
cmp rax, qword [0x1800a8dd8]
jl 0x1800208a5
mov qword [0x1800a8dd0], rcx
cmp byte [rdi + 0x68], r12b
je 0x18002087c
mov rcx, r14
call fcn.180021610
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.180021630
lea rcx, str.NAV_UP_DOWN
call fcn.180021630
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.180021630
mov rcx, r12
call fcn.180021630
call fcn.1800215a0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
mov rdx, qword [rsi]
mov rcx, rsi
mov rbx, qword [rdx + 0x40]
test rax, rax
je 0x180020899
call qword [rdx + 0x38]
jmp 0x18002089c
call qword [rdx + 0x30]
lea rdx, [rax - 1]
mov rcx, rsi
call rbx
mov eax, dword [r15]
cmp dword [0x1800a8df8], eax
jg 0x180020dd6
movsxd rax, dword [rdi + 0x194]
imul rcx, rax, 0xf4240
mov qword [0x1800a8df0], rcx
cmp byte [rdi + 0x24c], r12b
je 0x180020909
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x180020909
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x1800a8de8]
cmp rax, qword [0x1800a8df0]
jl 0x180020909
mov qword [0x1800a8de8], rcx
jmp 0x180020982
mov rcx, r13
call fcn.180021610
mov rcx, r12
call fcn.180021630
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xbb
mov rcx, qword [rbp + 0x30]
call fcn.180021630
call fcn.1800215a0
cmp dword [rax], r12d
je 0x180020a09
cmp byte [rdi + 0x69], r12b
je 0x180020a09
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x180020a09
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x1800a8de8]
cmp rax, qword [0x1800a8df0]
jl 0x180020a09
mov qword [0x1800a8de8], rdx
cmp byte [rdi + 0x68], r12b
je 0x1800209c9
mov rcx, r14
call fcn.180021610
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.180021630
lea rcx, str.NAV_UP_DOWN
call fcn.180021630
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.180021630
mov rcx, r12
call fcn.180021630
call fcn.1800215a0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
mov rdx, qword [rsi]
mov rcx, rsi
lea rbx, [rax - 1]
call qword [rdx + 0x38]
mov rdx, qword [rsi]
mov rcx, rsi
mov r14, qword [rdx + 0x40]
cmp rax, rbx
jae 0x1800209fa
call qword [rdx + 0x38]
mov rcx, rsi
lea rdx, [rax + 1]
jmp 0x1800209fc
xor edx, edx
call r14
movabs r14, 0x67c540aa08e4a6f5
mov eax, dword [r15]
cmp dword [0x1800a8e10], eax
jg 0x180020e13
movsxd rax, dword [rdi + 0x198]
imul rcx, rax, 0xf4240
mov qword [0x1800a8e08], rcx
cmp byte [rdi + 0x24d], r12b
je 0x180020a64
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x180020a64
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x1800a8e00]
cmp rax, qword [0x1800a8e08]
jge 0x180020ad2
mov rcx, r13
call fcn.180021610
mov rcx, r12
call fcn.180021630
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xae
mov rcx, qword [rbp + 0x30]
call fcn.180021630
call fcn.1800215a0
cmp dword [rax], r12d
je 0x180020b49
cmp byte [rdi + 0x69], r12b
je 0x180020b49
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x180020b49
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x1800a8e00]
cmp rax, qword [0x1800a8e08]
jl 0x180020b49
mov qword [0x1800a8e00], rcx
cmp byte [rdi + 0x68], r12b
je 0x180020b20
mov rcx, r14
call fcn.180021610
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.180021630
lea rcx, str.NAV_LEFT_RIGHT
call fcn.180021630
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.180021630
mov rcx, r12
call fcn.180021630
call fcn.1800215a0
mov rax, qword [rsi]
mov rcx, rsi
mov rbx, qword [rax + 0x28]
call qword [rax + 0x38]
mov rdx, rax
mov rcx, rsi
call rbx
test rax, rax
je 0x180020b49
mov rcx, qword [rax]
xor edx, edx
mov r8, qword [rcx + 0x20]
mov rcx, rax
call r8
mov eax, dword [r15]
cmp dword [0x1800a8e28], eax
jg 0x180020cac
movsxd rax, dword [rdi + 0x198]
imul rcx, rax, 0xf4240
mov qword [0x1800a8e20], rcx
cmp byte [rdi + 0x24e], r12b
je 0x180020bad
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x180020bad
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x1800a8e18]
cmp rax, qword [0x1800a8e20]
jl 0x180020bad
mov qword [0x1800a8e18], rcx
jmp 0x180020c22
mov rcx, r13
call fcn.180021610
mov rcx, r12
call fcn.180021630
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xaf
mov rcx, qword [rbp + 0x30]
call fcn.180021630
call fcn.1800215a0
cmp dword [rax], r12d
je 0x180020c8f
cmp byte [rdi + 0x69], r12b
je 0x180020c8f
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x180020c8f
lea rcx, [rbp + 0x30]
call fcn.180004a50
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x1800a8e18]
cmp rax, qword [0x1800a8e20]
jl 0x180020c8f
mov qword [0x1800a8e18], rdx
cmp byte [rdi + 0x68], r12b
je 0x180020c69
mov rcx, r14
call fcn.180021610
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.180021630
lea rcx, str.NAV_LEFT_RIGHT
call fcn.180021630
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.180021630
mov rcx, r12
call fcn.180021630
call fcn.1800215a0
mov rbx, qword [rsi]
mov rcx, rsi
call qword [rbx + 0x38]
mov rdx, rax
mov rcx, rsi
call qword [rbx + 0x28]
test rax, rax
je 0x180020c8f
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8 + 0x20]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [0x1800a8e28]
call fcn.18004de1c
cmp dword [0x1800a8e28], 0xffffffff
jne 0x180020b58
lea rcx, [0x1800a8e18]
call fcn.180004a50
lea rcx, [0x1800a8e28]
mov qword [0x1800a8e20], r12
call fcn.18004ddb0
jmp 0x180020b58
lea rcx, [0x1800a8d9c]
call fcn.18004de1c
cmp dword [0x1800a8d9c], 0xffffffff
jne 0x1800203c6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x1800a8d9c]
mov dword [0x1800a8d98], eax
call fcn.18004ddb0
jmp 0x1800203c6
lea rcx, [0x1800a8db0]
call fcn.18004de1c
cmp dword [0x1800a8db0], 0xffffffff
jne 0x1800204bb
lea rcx, [0x1800a8da0]
call fcn.180004a50
lea rcx, [0x1800a8db0]
mov qword [0x1800a8da8], r12
call fcn.18004ddb0
jmp 0x1800204bb
lea rcx, [0x1800a8dc8]
call fcn.18004de1c
cmp dword [0x1800a8dc8], 0xffffffff
jne 0x18002062c
lea rcx, [0x1800a8db8]
call fcn.180004a50
lea rcx, [0x1800a8dc8]
mov qword [0x1800a8dc0], r12
call fcn.18004ddb0
jmp 0x18002062c
lea rcx, [0x1800a8de0]
call fcn.18004de1c
cmp dword [0x1800a8de0], 0xffffffff
jne 0x180020774
lea rcx, [0x1800a8dd0]
call fcn.180004a50
lea rcx, [0x1800a8de0]
mov qword [0x1800a8dd8], r12
call fcn.18004ddb0
jmp 0x180020774
lea rcx, [0x1800a8df8]
call fcn.18004de1c
cmp dword [0x1800a8df8], 0xffffffff
jne 0x1800208b4
lea rcx, [0x1800a8de8]
call fcn.180004a50
lea rcx, [0x1800a8df8]
mov qword [0x1800a8df0], r12
call fcn.18004ddb0
jmp 0x1800208b4
lea rcx, [0x1800a8e10]
call fcn.18004de1c
cmp dword [0x1800a8e10], 0xffffffff
jne 0x180020a18
lea rcx, [0x1800a8e00]
call fcn.180004a50
lea rcx, [0x1800a8e10]
mov qword [0x1800a8e08], r12
call fcn.18004ddb0
jmp 0x180020a18