Function at 0x18001c8b0
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 0x18001c98c
cmp byte [rcx + 0x69], 0
je 0x18001c98c
xor edx, edx
lea ecx, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.18001b300
mov edx, 0x13
lea ecx, [rdx - 0x11]
lea r8d, [rdx - 0x12]
call fcn.18001b300
mov ecx, 2
mov edx, 0x8c
lea r8d, [rcx - 1]
call fcn.18001b300
mov edx, 0x14
lea ecx, [rdx - 0x12]
lea r8d, [rdx - 0x13]
call fcn.18001b300
mov edx, 0x1b
lea ecx, [rdx - 0x19]
lea r8d, [rdx - 0x1a]
call fcn.18001b300
mov edx, 0x50
lea ecx, [rdx - 0x4e]
lea r8d, [rdx - 0x4f]
call fcn.18001b300
mov ecx, 2
mov edx, 0x151
lea r8d, [rcx - 1]
call fcn.18001b300
mov edx, 0x1b
lea ecx, [rdx - 0x19]
lea r8d, [rdx - 0x1a]
call fcn.18001b300
mov edx, 0x55
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0x54]
call fcn.18001b300
mov edx, 0x4a
lea ecx, [rdx - 0x48]
lea r8d, [rdx - 0x49]
call fcn.18001b300
mov rax, qword gs:[0x58]
mov ecx, dword [0x180081ce0]
mov edx, 4
mov r15, qword [rax + rcx*8]
add r15, rdx
mov eax, dword [r15]
cmp dword [0x180081acc], eax
jg 0x18001d2c1
xor r12d, r12d
lea rbx, str.SELECT
movabs r13, 0xe2587f8cbbd87b1d
cmp byte [rdi + 0x12c], r12b
je 0x18001c9e4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x180081ac8]
cmp eax, dword [rdi + 0x6c]
jae 0x18001ca5b
mov rcx, r13
call fcn.18001dc40
mov rcx, r12
call fcn.18001dc60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xe3
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
call fcn.18001dbd0
cmp dword [rax], r12d
je 0x18001ca96
mov rcx, r13
call fcn.18001dc40
mov rcx, r12
call fcn.18001dc60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xaf
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
call fcn.18001dbd0
cmp dword [rax], r12d
je 0x18001ca96
cmp byte [rdi + 0x69], r12b
je 0x18001ca96
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x180081ac8]
cmp eax, dword [rdi + 0x6c]
jb 0x18001ca96
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x180081ac8], eax
movzx eax, byte [rdi + 0x50]
xor al, 1
mov byte [rdi + 0x50], al
cmp byte [rdi + 0x68], r12b
je 0x18001ca96
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.18001db40
mov eax, dword [r15]
cmp dword [0x180081ae0], eax
jg 0x18001d2f7
movsxd rax, dword [rdi + 0x70]
movabs r14, 0x67c540aa08e4a6f5
imul rcx, rax, 0xf4240
mov qword [0x180081ad8], rcx
cmp byte [rdi + 0x50], r12b
je 0x18001d26c
cmp byte [rdi + 0x12d], r12b
je 0x18001cafd
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x180081ad0]
cmp rax, qword [0x180081ad8]
jl 0x18001cafd
mov qword [0x180081ad0], rcx
jmp 0x18001cb6a
cmp byte [rdi + 0x50], r12b
je 0x18001d26c
mov rcx, r13
call fcn.18001dc40
mov rcx, r12
call fcn.18001dc60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xca
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
call fcn.18001dbd0
cmp dword [rax], r12d
je 0x18001cbdd
cmp byte [rdi + 0x69], r12b
je 0x18001cbdd
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x180081ad0]
cmp rax, qword [0x180081ad8]
jl 0x18001cbdd
mov qword [0x180081ad0], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001cbb1
mov rcx, r14
call fcn.18001dc40
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
lea rcx, str.BACK
call fcn.18001dc60
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dc60
mov rcx, r12
call fcn.18001dc60
call fcn.18001dbd0
mov rcx, qword [rdi + 0x158]
mov rax, rcx
sub rax, qword [rdi + 0x150]
sar rax, 3
cmp rax, 1
ja 0x18001cbd2
mov byte [rdi + 0x50], r12b
jmp 0x18001cbdd
lea rax, [rcx - 8]
mov qword [rdi + 0x158], rax
cmp byte [rdi + 0x50], r12b
je 0x18001d26c
mov qword [rsp + 0x58], rsi
mov rsi, qword [rdi + 0x158]
cmp qword [rdi + 0x150], rsi
je 0x18001d267
mov eax, dword [r15]
cmp dword [0x180081af8], eax
mov rsi, qword [rsi - 8]
jg 0x18001d334
movsxd rax, dword [rdi + 0x74]
imul rcx, rax, 0xf4240
mov qword [0x180081af0], rcx
cmp byte [rdi + 0x12e], r12b
je 0x18001cc65
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cc65
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x180081ae8]
cmp rax, qword [0x180081af0]
jl 0x18001cc65
mov qword [0x180081ae8], rcx
jmp 0x18001ccda
mov rcx, r13
call fcn.18001dc40
mov rcx, r12
call fcn.18001dc60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xc9
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
call fcn.18001dbd0
cmp dword [rax], r12d
je 0x18001cd49
cmp byte [rdi + 0x69], r12b
je 0x18001cd49
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cd49
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x180081ae8]
cmp rax, qword [0x180081af0]
jl 0x18001cd49
mov qword [0x180081ae8], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001cd1d
mov rcx, r14
call fcn.18001dc40
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
mov rcx, rbx
call fcn.18001dc60
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dc60
mov rcx, r12
call fcn.18001dc60
call fcn.18001dbd0
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 0x18001cd49
mov rcx, qword [rax]
mov edx, 2
mov r8, qword [rcx + 0x20]
mov rcx, rax
call r8
mov eax, dword [r15]
cmp dword [0x180081b10], eax
jg 0x18001d371
movsxd rax, dword [rdi + 0x78]
imul rcx, rax, 0xf4240
mov qword [0x180081b08], rcx
cmp byte [rdi + 0x12f], r12b
je 0x18001cda1
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cda1
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x180081b00]
cmp rax, qword [0x180081b08]
jge 0x18001ce0f
mov rcx, r13
call fcn.18001dc40
mov rcx, r12
call fcn.18001dc60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xbc
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
call fcn.18001dbd0
cmp dword [rax], r12d
je 0x18001ce86
cmp byte [rdi + 0x69], r12b
je 0x18001ce86
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001ce86
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x180081b00]
cmp rax, qword [0x180081b08]
jl 0x18001ce86
mov qword [0x180081b00], rcx
cmp byte [rdi + 0x68], r12b
je 0x18001ce5d
mov rcx, r14
call fcn.18001dc40
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
lea rcx, str.NAV_UP_DOWN
call fcn.18001dc60
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dc60
mov rcx, r12
call fcn.18001dc60
call fcn.18001dbd0
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 0x18001ce7a
call qword [rdx + 0x38]
jmp 0x18001ce7d
call qword [rdx + 0x30]
lea rdx, [rax - 1]
mov rcx, rsi
call rbx
mov eax, dword [r15]
cmp dword [0x180081b28], eax
jg 0x18001d3ae
movsxd rax, dword [rdi + 0x78]
imul rcx, rax, 0xf4240
mov qword [0x180081b20], rcx
cmp byte [rdi + 0x130], r12b
je 0x18001cee7
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cee7
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x180081b18]
cmp rax, qword [0x180081b20]
jl 0x18001cee7
mov qword [0x180081b18], rcx
jmp 0x18001cf60
mov rcx, r13
call fcn.18001dc40
mov rcx, r12
call fcn.18001dc60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xbb
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
call fcn.18001dbd0
cmp dword [rax], r12d
je 0x18001cfe7
cmp byte [rdi + 0x69], r12b
je 0x18001cfe7
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cfe7
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x180081b18]
cmp rax, qword [0x180081b20]
jl 0x18001cfe7
mov qword [0x180081b18], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001cfa7
mov rcx, r14
call fcn.18001dc40
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
lea rcx, str.NAV_UP_DOWN
call fcn.18001dc60
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dc60
mov rcx, r12
call fcn.18001dc60
call fcn.18001dbd0
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 0x18001cfd8
call qword [rdx + 0x38]
mov rcx, rsi
lea rdx, [rax + 1]
jmp 0x18001cfda
xor edx, edx
call r14
movabs r14, 0x67c540aa08e4a6f5
mov eax, dword [r15]
cmp dword [0x180081b40], eax
jg 0x18001d3eb
movsxd rax, dword [rdi + 0x7c]
imul rcx, rax, 0xf4240
mov qword [0x180081b38], rcx
cmp byte [rdi + 0x131], r12b
je 0x18001d03f
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d03f
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x180081b30]
cmp rax, qword [0x180081b38]
jge 0x18001d0ad
mov rcx, r13
call fcn.18001dc40
mov rcx, r12
call fcn.18001dc60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xae
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
call fcn.18001dbd0
cmp dword [rax], r12d
je 0x18001d124
cmp byte [rdi + 0x69], r12b
je 0x18001d124
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d124
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x180081b30]
cmp rax, qword [0x180081b38]
jl 0x18001d124
mov qword [0x180081b30], rcx
cmp byte [rdi + 0x68], r12b
je 0x18001d0fb
mov rcx, r14
call fcn.18001dc40
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
lea rcx, str.NAV_LEFT_RIGHT
call fcn.18001dc60
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dc60
mov rcx, r12
call fcn.18001dc60
call fcn.18001dbd0
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 0x18001d124
mov rcx, qword [rax]
xor edx, edx
mov r8, qword [rcx + 0x20]
mov rcx, rax
call r8
mov eax, dword [r15]
cmp dword [0x180081b58], eax
jg 0x18001d284
movsxd rax, dword [rdi + 0x7c]
imul rcx, rax, 0xf4240
mov qword [0x180081b50], rcx
cmp byte [rdi + 0x132], r12b
je 0x18001d185
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d185
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x180081b48]
cmp rax, qword [0x180081b50]
jl 0x18001d185
mov qword [0x180081b48], rcx
jmp 0x18001d1fa
mov rcx, r13
call fcn.18001dc40
mov rcx, r12
call fcn.18001dc60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xaf
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
call fcn.18001dbd0
cmp dword [rax], r12d
je 0x18001d267
cmp byte [rdi + 0x69], r12b
je 0x18001d267
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d267
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x180081b48]
cmp rax, qword [0x180081b50]
jl 0x18001d267
mov qword [0x180081b48], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001d241
mov rcx, r14
call fcn.18001dc40
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dc60
lea rcx, str.NAV_LEFT_RIGHT
call fcn.18001dc60
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dc60
mov rcx, r12
call fcn.18001dc60
call fcn.18001dbd0
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 0x18001d267
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, [0x180081b58]
call fcn.18003c82c
cmp dword [0x180081b58], 0xffffffff
jne 0x18001d133
lea rcx, [0x180081b48]
call fcn.180004710
lea rcx, [0x180081b58]
mov qword [0x180081b50], r12
call fcn.18003c7c0
jmp 0x18001d133
lea rcx, [0x180081acc]
call fcn.18003c82c
cmp dword [0x180081acc], 0xffffffff
jne 0x18001c9b6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x180081acc]
mov dword [0x180081ac8], eax
call fcn.18003c7c0
jmp 0x18001c9b6
lea rcx, [0x180081ae0]
call fcn.18003c82c
cmp dword [0x180081ae0], 0xffffffff
jne 0x18001caa5
lea rcx, [0x180081ad0]
call fcn.180004710
lea rcx, [0x180081ae0]
mov qword [0x180081ad8], r12
call fcn.18003c7c0
jmp 0x18001caa5
lea rcx, [0x180081af8]
call fcn.18003c82c
cmp dword [0x180081af8], 0xffffffff
jne 0x18001cc13
lea rcx, [0x180081ae8]
call fcn.180004710
lea rcx, [0x180081af8]
mov qword [0x180081af0], r12
call fcn.18003c7c0
jmp 0x18001cc13
lea rcx, [0x180081b10]
call fcn.18003c82c
cmp dword [0x180081b10], 0xffffffff
jne 0x18001cd58
lea rcx, [0x180081b00]
call fcn.180004710
lea rcx, [0x180081b10]
mov qword [0x180081b08], r12
call fcn.18003c7c0
jmp 0x18001cd58
lea rcx, [0x180081b28]
call fcn.18003c82c
cmp dword [0x180081b28], 0xffffffff
jne 0x18001ce95
lea rcx, [0x180081b18]
call fcn.180004710
lea rcx, [0x180081b28]
mov qword [0x180081b20], r12
call fcn.18003c7c0
jmp 0x18001ce95
lea rcx, [0x180081b40]
call fcn.18003c82c
cmp dword [0x180081b40], 0xffffffff
jne 0x18001cff6
lea rcx, [0x180081b30]
call fcn.180004710
lea rcx, [0x180081b40]
mov qword [0x180081b38], r12
call fcn.18003c7c0
jmp 0x18001cff6