Function at 0x18001c800
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 0x18001c8dc
cmp byte [rcx + 0x69], 0
je 0x18001c8dc
xor edx, edx
lea ecx, [rdx + 2]
lea r8d, [rdx + 1]
call fcn.18001b250
mov edx, 0x13
lea ecx, [rdx - 0x11]
lea r8d, [rdx - 0x12]
call fcn.18001b250
mov ecx, 2
mov edx, 0x8c
lea r8d, [rcx - 1]
call fcn.18001b250
mov edx, 0x14
lea ecx, [rdx - 0x12]
lea r8d, [rdx - 0x13]
call fcn.18001b250
mov edx, 0x1b
lea ecx, [rdx - 0x19]
lea r8d, [rdx - 0x1a]
call fcn.18001b250
mov edx, 0x50
lea ecx, [rdx - 0x4e]
lea r8d, [rdx - 0x4f]
call fcn.18001b250
mov ecx, 2
mov edx, 0x151
lea r8d, [rcx - 1]
call fcn.18001b250
mov edx, 0x1b
lea ecx, [rdx - 0x19]
lea r8d, [rdx - 0x1a]
call fcn.18001b250
mov edx, 0x55
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0x54]
call fcn.18001b250
mov edx, 0x4a
lea ecx, [rdx - 0x48]
lea r8d, [rdx - 0x49]
call fcn.18001b250
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 0x18001d211
xor r12d, r12d
lea rbx, str.SELECT
movabs r13, 0xe2587f8cbbd87b1d
cmp byte [rdi + 0x12c], r12b
je 0x18001c934
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x18007ed98]
cmp eax, dword [rdi + 0x6c]
jae 0x18001c9ab
mov rcx, r13
call fcn.18001db80
mov rcx, r12
call fcn.18001dba0
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xe3
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
call fcn.18001db10
cmp dword [rax], r12d
je 0x18001c9e6
mov rcx, r13
call fcn.18001db80
mov rcx, r12
call fcn.18001dba0
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xaf
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
call fcn.18001db10
cmp dword [rax], r12d
je 0x18001c9e6
cmp byte [rdi + 0x69], r12b
je 0x18001c9e6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x18007ed98]
cmp eax, dword [rdi + 0x6c]
jb 0x18001c9e6
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 0x18001c9e6
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.18001da80
mov eax, dword [r15]
cmp dword [0x18007edb0], eax
jg 0x18001d247
movsxd rax, dword [rdi + 0x70]
movabs r14, 0x67c540aa08e4a6f5
imul rcx, rax, 0xf4240
mov qword [0x18007eda8], rcx
cmp byte [rdi + 0x50], r12b
je 0x18001d1bc
cmp byte [rdi + 0x12d], r12b
je 0x18001ca4d
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007eda0]
cmp rax, qword [0x18007eda8]
jl 0x18001ca4d
mov qword [0x18007eda0], rcx
jmp 0x18001caba
cmp byte [rdi + 0x50], r12b
je 0x18001d1bc
mov rcx, r13
call fcn.18001db80
mov rcx, r12
call fcn.18001dba0
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xca
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
call fcn.18001db10
cmp dword [rax], r12d
je 0x18001cb2d
cmp byte [rdi + 0x69], r12b
je 0x18001cb2d
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x18007eda0]
cmp rax, qword [0x18007eda8]
jl 0x18001cb2d
mov qword [0x18007eda0], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001cb01
mov rcx, r14
call fcn.18001db80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
lea rcx, str.BACK
call fcn.18001dba0
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dba0
mov rcx, r12
call fcn.18001dba0
call fcn.18001db10
mov rcx, qword [rdi + 0x158]
mov rax, rcx
sub rax, qword [rdi + 0x150]
sar rax, 3
cmp rax, 1
ja 0x18001cb22
mov byte [rdi + 0x50], r12b
jmp 0x18001cb2d
lea rax, [rcx - 8]
mov qword [rdi + 0x158], rax
cmp byte [rdi + 0x50], r12b
je 0x18001d1bc
mov qword [rsp + 0x58], rsi
mov rsi, qword [rdi + 0x158]
cmp qword [rdi + 0x150], rsi
je 0x18001d1b7
mov eax, dword [r15]
cmp dword [0x18007edc8], eax
mov rsi, qword [rsi - 8]
jg 0x18001d284
movsxd rax, dword [rdi + 0x74]
imul rcx, rax, 0xf4240
mov qword [0x18007edc0], rcx
cmp byte [rdi + 0x12e], r12b
je 0x18001cbb5
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cbb5
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007edb8]
cmp rax, qword [0x18007edc0]
jl 0x18001cbb5
mov qword [0x18007edb8], rcx
jmp 0x18001cc2a
mov rcx, r13
call fcn.18001db80
mov rcx, r12
call fcn.18001dba0
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xc9
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
call fcn.18001db10
cmp dword [rax], r12d
je 0x18001cc99
cmp byte [rdi + 0x69], r12b
je 0x18001cc99
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cc99
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x18007edb8]
cmp rax, qword [0x18007edc0]
jl 0x18001cc99
mov qword [0x18007edb8], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001cc6d
mov rcx, r14
call fcn.18001db80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
mov rcx, rbx
call fcn.18001dba0
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dba0
mov rcx, r12
call fcn.18001dba0
call fcn.18001db10
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 0x18001cc99
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 0x18001d2c1
movsxd rax, dword [rdi + 0x78]
imul rcx, rax, 0xf4240
mov qword [0x18007edd8], rcx
cmp byte [rdi + 0x12f], r12b
je 0x18001ccf1
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001ccf1
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007edd0]
cmp rax, qword [0x18007edd8]
jge 0x18001cd5f
mov rcx, r13
call fcn.18001db80
mov rcx, r12
call fcn.18001dba0
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xbc
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
call fcn.18001db10
cmp dword [rax], r12d
je 0x18001cdd6
cmp byte [rdi + 0x69], r12b
je 0x18001cdd6
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cdd6
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007edd0]
cmp rax, qword [0x18007edd8]
jl 0x18001cdd6
mov qword [0x18007edd0], rcx
cmp byte [rdi + 0x68], r12b
je 0x18001cdad
mov rcx, r14
call fcn.18001db80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
lea rcx, str.NAV_UP_DOWN
call fcn.18001dba0
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dba0
mov rcx, r12
call fcn.18001dba0
call fcn.18001db10
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 0x18001cdca
call qword [rdx + 0x38]
jmp 0x18001cdcd
call qword [rdx + 0x30]
lea rdx, [rax - 1]
mov rcx, rsi
call rbx
mov eax, dword [r15]
cmp dword [0x18007edf8], eax
jg 0x18001d2fe
movsxd rax, dword [rdi + 0x78]
imul rcx, rax, 0xf4240
mov qword [0x18007edf0], rcx
cmp byte [rdi + 0x130], r12b
je 0x18001ce37
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001ce37
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007ede8]
cmp rax, qword [0x18007edf0]
jl 0x18001ce37
mov qword [0x18007ede8], rcx
jmp 0x18001ceb0
mov rcx, r13
call fcn.18001db80
mov rcx, r12
call fcn.18001dba0
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xbb
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
call fcn.18001db10
cmp dword [rax], r12d
je 0x18001cf37
cmp byte [rdi + 0x69], r12b
je 0x18001cf37
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cf37
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x18007ede8]
cmp rax, qword [0x18007edf0]
jl 0x18001cf37
mov qword [0x18007ede8], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001cef7
mov rcx, r14
call fcn.18001db80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
lea rcx, str.NAV_UP_DOWN
call fcn.18001dba0
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dba0
mov rcx, r12
call fcn.18001dba0
call fcn.18001db10
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 0x18001cf28
call qword [rdx + 0x38]
mov rcx, rsi
lea rdx, [rax + 1]
jmp 0x18001cf2a
xor edx, edx
call r14
movabs r14, 0x67c540aa08e4a6f5
mov eax, dword [r15]
cmp dword [0x18007ee10], eax
jg 0x18001d33b
movsxd rax, dword [rdi + 0x7c]
imul rcx, rax, 0xf4240
mov qword [0x18007ee08], rcx
cmp byte [rdi + 0x131], r12b
je 0x18001cf8f
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001cf8f
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007ee00]
cmp rax, qword [0x18007ee08]
jge 0x18001cffd
mov rcx, r13
call fcn.18001db80
mov rcx, r12
call fcn.18001dba0
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xae
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
call fcn.18001db10
cmp dword [rax], r12d
je 0x18001d074
cmp byte [rdi + 0x69], r12b
je 0x18001d074
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d074
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007ee00]
cmp rax, qword [0x18007ee08]
jl 0x18001d074
mov qword [0x18007ee00], rcx
cmp byte [rdi + 0x68], r12b
je 0x18001d04b
mov rcx, r14
call fcn.18001db80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
lea rcx, str.NAV_LEFT_RIGHT
call fcn.18001dba0
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dba0
mov rcx, r12
call fcn.18001dba0
call fcn.18001db10
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 0x18001d074
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 0x18001d1d4
movsxd rax, dword [rdi + 0x7c]
imul rcx, rax, 0xf4240
mov qword [0x18007ee20], rcx
cmp byte [rdi + 0x132], r12b
je 0x18001d0d5
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d0d5
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rcx, qword [rbp + 0x30]
mov rax, rcx
sub rax, qword [0x18007ee18]
cmp rax, qword [0x18007ee20]
jl 0x18001d0d5
mov qword [0x18007ee18], rcx
jmp 0x18001d14a
mov rcx, r13
call fcn.18001db80
mov rcx, r12
call fcn.18001dba0
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xaf
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
call fcn.18001db10
cmp dword [rax], r12d
je 0x18001d1b7
cmp byte [rdi + 0x69], r12b
je 0x18001d1b7
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test rax, rax
je 0x18001d1b7
lea rcx, [rbp + 0x30]
call fcn.180004710
mov rdx, qword [rbp + 0x30]
mov rax, rdx
sub rax, qword [0x18007ee18]
cmp rax, qword [0x18007ee20]
jl 0x18001d1b7
mov qword [0x18007ee18], rdx
cmp byte [rdi + 0x68], r12b
je 0x18001d191
mov rcx, r14
call fcn.18001db80
mov qword [rbp + 0x30], r12
mov dword [rbp + 0x30], 0xffffffff
mov rcx, qword [rbp + 0x30]
call fcn.18001dba0
lea rcx, str.NAV_LEFT_RIGHT
call fcn.18001dba0
lea rcx, str.HUD_FRONTEND_DEFAULT_SOUNDSET
call fcn.18001dba0
mov rcx, r12
call fcn.18001dba0
call fcn.18001db10
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 0x18001d1b7
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.18003b7ec
cmp dword [0x18007ee28], 0xffffffff
jne 0x18001d083
lea rcx, [0x18007ee18]
call fcn.180004710
lea rcx, [0x18007ee28]
mov qword [0x18007ee20], r12
call fcn.18003b780
jmp 0x18001d083
lea rcx, [0x18007ed9c]
call fcn.18003b7ec
cmp dword [0x18007ed9c], 0xffffffff
jne 0x18001c906
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x18007ed9c]
mov dword [0x18007ed98], eax
call fcn.18003b780
jmp 0x18001c906
lea rcx, [0x18007edb0]
call fcn.18003b7ec
cmp dword [0x18007edb0], 0xffffffff
jne 0x18001c9f5
lea rcx, [0x18007eda0]
call fcn.180004710
lea rcx, [0x18007edb0]
mov qword [0x18007eda8], r12
call fcn.18003b780
jmp 0x18001c9f5
lea rcx, [0x18007edc8]
call fcn.18003b7ec
cmp dword [0x18007edc8], 0xffffffff
jne 0x18001cb63
lea rcx, [0x18007edb8]
call fcn.180004710
lea rcx, [0x18007edc8]
mov qword [0x18007edc0], r12
call fcn.18003b780
jmp 0x18001cb63
lea rcx, [0x18007ede0]
call fcn.18003b7ec
cmp dword [0x18007ede0], 0xffffffff
jne 0x18001cca8
lea rcx, [0x18007edd0]
call fcn.180004710
lea rcx, [0x18007ede0]
mov qword [0x18007edd8], r12
call fcn.18003b780
jmp 0x18001cca8
lea rcx, [0x18007edf8]
call fcn.18003b7ec
cmp dword [0x18007edf8], 0xffffffff
jne 0x18001cde5
lea rcx, [0x18007ede8]
call fcn.180004710
lea rcx, [0x18007edf8]
mov qword [0x18007edf0], r12
call fcn.18003b780
jmp 0x18001cde5
lea rcx, [0x18007ee10]
call fcn.18003b7ec
cmp dword [0x18007ee10], 0xffffffff
jne 0x18001cf46
lea rcx, [0x18007ee00]
call fcn.180004710
lea rcx, [0x18007ee10]
mov qword [0x18007ee08], r12
call fcn.18003b780
jmp 0x18001cf46