Function at 0x18001ca70
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 0x18001cb4c
cmp byte [rcx + 0x69], 0
je 0x18001cb4c
xor edx, edx
lea ecx, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.18001b4c0
mov edx, 0x13
lea ecx, [rdx - 0x11]
lea r8d, [rdx - 0x12]
call fcn.18001b4c0
mov ecx, 2
mov edx, 0x8c
lea r8d, [rcx - 1]
call fcn.18001b4c0
mov edx, 0x14
lea ecx, [rdx - 0x12]
lea r8d, [rdx - 0x13]
call fcn.18001b4c0
mov edx, 0x1b
lea ecx, [rdx - 0x19]
lea r8d, [rdx - 0x1a]
call fcn.18001b4c0
mov edx, 0x50
lea ecx, [rdx - 0x4e]
lea r8d, [rdx - 0x4f]
call fcn.18001b4c0
mov ecx, 2
mov edx, 0x151
lea r8d, [rcx - 1]
call fcn.18001b4c0
mov edx, 0x1b
lea ecx, [rdx - 0x19]
lea r8d, [rdx - 0x1a]
call fcn.18001b4c0
mov edx, 0x55
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0x54]
call fcn.18001b4c0
mov edx, 0x4a
lea ecx, [rdx - 0x48]
lea r8d, [rdx - 0x49]
call fcn.18001b4c0
mov rax, qword gs:[0x58]
mov ecx, dword [0x18007efb0]
mov edx, 4
mov r15, qword [rax + rcx*8]
add r15, rdx
mov eax, dword [r15]
cmp dword [0x18007ed9c], eax
jg 0x18001d481
xor r12d, r12d
lea rbx, str.SELECT
movabs r13, 0xe2587f8cbbd87b1d
cmp byte [rdi + 0x12c], r12b
je 0x18001cba4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x18007ed98]
cmp eax, dword [rdi + 0x6c]
jae 0x18001cc1b
mov rcx, r13
call fcn.18001dd60
mov rcx, r12
call fcn.18001dd80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xe3
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
call fcn.18001dcf0
cmp dword [rax], r12d
je 0x18001cc56
mov rcx, r13
call fcn.18001dd60
mov rcx, r12
call fcn.18001dd80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xaf
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
call fcn.18001dcf0
cmp dword [rax], r12d
je 0x18001cc56
cmp byte [rdi + 0x69], r12b
je 0x18001cc56
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x18007ed98]
cmp eax, dword [rdi + 0x6c]
jb 0x18001cc56
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x18007ed98], eax
movzx eax, byte [rdi + 0x50]
xor al, 1
mov byte [rdi + 0x50], al
cmp byte [rdi + 0x68], r12b
je 0x18001cc56
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.18001dc60
mov eax, dword [r15]
cmp dword [0x18007edb0], eax
jg 0x18001d4b7
movsxd rax, dword [rdi + 0x70]
movabs r14, 0x67c540aa08e4a6f5
imul rcx, rax, 0xf4240
mov qword [0x18007eda8], rcx
cmp byte [rdi + 0x50], r12b
je 0x18001d42c
cmp byte [rdi + 0x12d], r12b
je 0x18001ccbd
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007eda0]
cmp rax, qword [0x18007eda8]
jl 0x18001ccbd
mov qword [0x18007eda0], rcx
jmp 0x18001cd2a
cmp byte [rdi + 0x50], r12b
je 0x18001d42c
mov rcx, r13
call fcn.18001dd60
mov rcx, r12
call fcn.18001dd80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xca
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
call fcn.18001dcf0
cmp dword [rax], r12d
je 0x18001cd9d
cmp byte [rdi + 0x69], r12b
je 0x18001cd9d
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x18007eda0]
cmp rax, qword [0x18007eda8]
jl 0x18001cd9d
mov qword [0x18007eda0], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001cd71
mov rcx, r14
call fcn.18001dd60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
lea rcx, str.BACK
call fcn.18001dd80
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dd80
mov rcx, r12
call fcn.18001dd80
call fcn.18001dcf0
mov rcx, qword [rdi + 0x158]
mov rax, rcx
sub rax, qword [rdi + 0x150]
sar rax, 3
cmp rax, 1
ja 0x18001cd92
mov byte [rdi + 0x50], r12b
jmp 0x18001cd9d
lea rax, [rcx - 8]
mov qword [rdi + 0x158], rax
cmp byte [rdi + 0x50], r12b
je 0x18001d42c
mov qword [rsp + 0x58], rsi
mov rsi, qword [rdi + 0x158]
cmp qword [rdi + 0x150], rsi
je 0x18001d427
mov eax, dword [r15]
cmp dword [0x18007edc8], eax
mov rsi, qword [rsi - 8]
jg 0x18001d4f4
movsxd rax, dword [rdi + 0x74]
imul rcx, rax, 0xf4240
mov qword [0x18007edc0], rcx
cmp byte [rdi + 0x12e], r12b
je 0x18001ce25
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001ce25
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007edb8]
cmp rax, qword [0x18007edc0]
jl 0x18001ce25
mov qword [0x18007edb8], rcx
jmp 0x18001ce9a
mov rcx, r13
call fcn.18001dd60
mov rcx, r12
call fcn.18001dd80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xc9
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
call fcn.18001dcf0
cmp dword [rax], r12d
je 0x18001cf09
cmp byte [rdi + 0x69], r12b
je 0x18001cf09
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cf09
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x18007edb8]
cmp rax, qword [0x18007edc0]
jl 0x18001cf09
mov qword [0x18007edb8], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001cedd
mov rcx, r14
call fcn.18001dd60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
mov rcx, rbx
call fcn.18001dd80
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dd80
mov rcx, r12
call fcn.18001dd80
call fcn.18001dcf0
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 0x18001cf09
mov rcx, qword [rax]
mov edx, 2
mov r8, qword [rcx + 0x20]
mov rcx, rax
call r8
mov eax, dword [r15]
cmp dword [0x18007ede0], eax
jg 0x18001d531
movsxd rax, dword [rdi + 0x78]
imul rcx, rax, 0xf4240
mov qword [0x18007edd8], rcx
cmp byte [rdi + 0x12f], r12b
je 0x18001cf61
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cf61
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007edd0]
cmp rax, qword [0x18007edd8]
jge 0x18001cfcf
mov rcx, r13
call fcn.18001dd60
mov rcx, r12
call fcn.18001dd80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xbc
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
call fcn.18001dcf0
cmp dword [rax], r12d
je 0x18001d046
cmp byte [rdi + 0x69], r12b
je 0x18001d046
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d046
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007edd0]
cmp rax, qword [0x18007edd8]
jl 0x18001d046
mov qword [0x18007edd0], rcx
cmp byte [rdi + 0x68], r12b
je 0x18001d01d
mov rcx, r14
call fcn.18001dd60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
lea rcx, str.NAV_UP_DOWN
call fcn.18001dd80
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dd80
mov rcx, r12
call fcn.18001dd80
call fcn.18001dcf0
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 0x18001d03a
call qword [rdx + 0x38]
jmp 0x18001d03d
call qword [rdx + 0x30]
lea rdx, [rax - 1]
mov rcx, rsi
call rbx
mov eax, dword [r15]
cmp dword [0x18007edf8], eax
jg 0x18001d56e
movsxd rax, dword [rdi + 0x78]
imul rcx, rax, 0xf4240
mov qword [0x18007edf0], rcx
cmp byte [rdi + 0x130], r12b
je 0x18001d0a7
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d0a7
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007ede8]
cmp rax, qword [0x18007edf0]
jl 0x18001d0a7
mov qword [0x18007ede8], rcx
jmp 0x18001d120
mov rcx, r13
call fcn.18001dd60
mov rcx, r12
call fcn.18001dd80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xbb
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
call fcn.18001dcf0
cmp dword [rax], r12d
je 0x18001d1a7
cmp byte [rdi + 0x69], r12b
je 0x18001d1a7
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d1a7
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x18007ede8]
cmp rax, qword [0x18007edf0]
jl 0x18001d1a7
mov qword [0x18007ede8], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001d167
mov rcx, r14
call fcn.18001dd60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
lea rcx, str.NAV_UP_DOWN
call fcn.18001dd80
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dd80
mov rcx, r12
call fcn.18001dd80
call fcn.18001dcf0
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 0x18001d198
call qword [rdx + 0x38]
mov rcx, rsi
lea rdx, [rax + 1]
jmp 0x18001d19a
xor edx, edx
call r14
movabs r14, 0x67c540aa08e4a6f5
mov eax, dword [r15]
cmp dword [0x18007ee10], eax
jg 0x18001d5ab
movsxd rax, dword [rdi + 0x7c]
imul rcx, rax, 0xf4240
mov qword [0x18007ee08], rcx
cmp byte [rdi + 0x131], r12b
je 0x18001d1ff
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d1ff
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007ee00]
cmp rax, qword [0x18007ee08]
jge 0x18001d26d
mov rcx, r13
call fcn.18001dd60
mov rcx, r12
call fcn.18001dd80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xae
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
call fcn.18001dcf0
cmp dword [rax], r12d
je 0x18001d2e4
cmp byte [rdi + 0x69], r12b
je 0x18001d2e4
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d2e4
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007ee00]
cmp rax, qword [0x18007ee08]
jl 0x18001d2e4
mov qword [0x18007ee00], rcx
cmp byte [rdi + 0x68], r12b
je 0x18001d2bb
mov rcx, r14
call fcn.18001dd60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
lea rcx, str.NAV_LEFT_RIGHT
call fcn.18001dd80
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dd80
mov rcx, r12
call fcn.18001dd80
call fcn.18001dcf0
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 0x18001d2e4
mov rcx, qword [rax]
xor edx, edx
mov r8, qword [rcx + 0x20]
mov rcx, rax
call r8
mov eax, dword [r15]
cmp dword [0x18007ee28], eax
jg 0x18001d444
movsxd rax, dword [rdi + 0x7c]
imul rcx, rax, 0xf4240
mov qword [0x18007ee20], rcx
cmp byte [rdi + 0x132], r12b
je 0x18001d345
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d345
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007ee18]
cmp rax, qword [0x18007ee20]
jl 0x18001d345
mov qword [0x18007ee18], rcx
jmp 0x18001d3ba
mov rcx, r13
call fcn.18001dd60
mov rcx, r12
call fcn.18001dd80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xaf
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
call fcn.18001dcf0
cmp dword [rax], r12d
je 0x18001d427
cmp byte [rdi + 0x69], r12b
je 0x18001d427
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d427
lea rcx, [rbp + 0x30]
call fcn.180004700
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x18007ee18]
cmp rax, qword [0x18007ee20]
jl 0x18001d427
mov qword [0x18007ee18], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001d401
mov rcx, r14
call fcn.18001dd60
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dd80
lea rcx, str.NAV_LEFT_RIGHT
call fcn.18001dd80
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dd80
mov rcx, r12
call fcn.18001dd80
call fcn.18001dcf0
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 0x18001d427
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, [0x18007ee28]
call fcn.18003ba4c
cmp dword [0x18007ee28], 0xffffffff
jne 0x18001d2f3
lea rcx, [0x18007ee18]
call fcn.180004700
lea rcx, [0x18007ee28]
mov qword [0x18007ee20], r12
call fcn.18003b9e0
jmp 0x18001d2f3
lea rcx, [0x18007ed9c]
call fcn.18003ba4c
cmp dword [0x18007ed9c], 0xffffffff
jne 0x18001cb76
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x18007ed9c]
mov dword [0x18007ed98], eax
call fcn.18003b9e0
jmp 0x18001cb76
lea rcx, [0x18007edb0]
call fcn.18003ba4c
cmp dword [0x18007edb0], 0xffffffff
jne 0x18001cc65
lea rcx, [0x18007eda0]
call fcn.180004700
lea rcx, [0x18007edb0]
mov qword [0x18007eda8], r12
call fcn.18003b9e0
jmp 0x18001cc65
lea rcx, [0x18007edc8]
call fcn.18003ba4c
cmp dword [0x18007edc8], 0xffffffff
jne 0x18001cdd3
lea rcx, [0x18007edb8]
call fcn.180004700
lea rcx, [0x18007edc8]
mov qword [0x18007edc0], r12
call fcn.18003b9e0
jmp 0x18001cdd3
lea rcx, [0x18007ede0]
call fcn.18003ba4c
cmp dword [0x18007ede0], 0xffffffff
jne 0x18001cf18
lea rcx, [0x18007edd0]
call fcn.180004700
lea rcx, [0x18007ede0]
mov qword [0x18007edd8], r12
call fcn.18003b9e0
jmp 0x18001cf18
lea rcx, [0x18007edf8]
call fcn.18003ba4c
cmp dword [0x18007edf8], 0xffffffff
jne 0x18001d055
lea rcx, [0x18007ede8]
call fcn.180004700
lea rcx, [0x18007edf8]
mov qword [0x18007edf0], r12
call fcn.18003b9e0
jmp 0x18001d055
lea rcx, [0x18007ee10]
call fcn.18003ba4c
cmp dword [0x18007ee10], 0xffffffff
jne 0x18001d1b6
lea rcx, [0x18007ee00]
call fcn.180004700
lea rcx, [0x18007ee10]
mov qword [0x18007ee08], r12
call fcn.18003b9e0
jmp 0x18001d1b6