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

Disassembly:
jmp 0x1400140e0
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17], rax
movsxd rbx, r9d
mov rdi, r8
mov r12, rdx
mov qword [rbp - 0x41], rdx
mov r14, rcx
xor eax, eax
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x51], eax
lea r8, [rbp - 0x59]
mov edx, ebx
mov rcx, rdi
call fcn.140013630
mov esi, eax
test eax, eax
je 0x140014142
mov ebx, dword [rbp - 0x55]
jmp 0x140014207
lea r8, [rbp - 0x59]
mov edx, ebx
mov rcx, rdi
call fcn.140013920
mov esi, eax
test eax, eax
je 0x14001415e
mov ebx, dword [rbp - 0x55]
jmp 0x140014207
lea rcx, [rdi + rbx]
cmp byte [rdi], 0x1b
jne 0x1400145f8
lea rsi, [rdi + 1]
cmp rsi, rcx
jne 0x14001417f
or esi, 0xffffffff
mov ebx, dword [rbp - 0x55]
jmp 0x140014207
cmp byte [rsi], 0x5b
jne 0x1400145f8
inc rsi
cmp rsi, rcx
jne 0x140014198
or esi, 0xffffffff
mov ebx, dword [rbp - 0x55]
jmp 0x140014207
cmp byte [rsi], 0x4d
jne 0x1400145f8
inc rsi
cmp rsi, rcx
jne 0x1400141b1
or esi, 0xffffffff
mov ebx, dword [rbp - 0x55]
jmp 0x140014207
movsx eax, byte [rsi]
sub eax, 0x20
movzx ebx, al
mov dword [rbp - 0x55], ebx
inc rsi
cmp rsi, rcx
jne 0x1400141ca
or esi, 0xffffffff
jmp 0x140014207
movsx eax, byte [rsi]
sub ax, 0x21
mov edx, 0xff
and ax, dx
mov word [rbp - 0x51], ax
inc rsi
cmp rsi, rcx
jne 0x1400141ea
or esi, 0xffffffff
jmp 0x140014207
movsx eax, byte [rsi]
sub ax, 0x21
and ax, dx
mov word [rbp - 0x4f], ax
mov byte [rbp - 0x59], 0
sub esi, edi
add esi, 1
je 0x1400145f8
mov r15d, esi
test esi, esi
jle 0x1400145fb
call fcn.14000335f
mov ecx, 0x104
test al, al
je 0x1400142b2
mov edx, dword [0x1400aa988]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdx*8]
mov ecx, dword [rcx + rax]
cmp dword [0x1400aa8fc], ecx
jle 0x140014275
lea rcx, [0x1400aa8fc]
call fcn.1400011db
cmp dword [0x1400aa8fc], 0xffffffff
jne 0x140014275
lea rcx, str.input
call fcn.140003e2c
mov byte [0x1400aa8f8], al
lea rcx, [0x1400aa8fc]
call fcn.1400015dc
cmp byte [0x1400aa8f8], 0
je 0x1400142b2
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x59]
call fcn.1400147f0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140014296
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.mouse_input:__s
call fcn.140001e10
nop
lea rcx, [rbp - 9]
call fcn.140001a05
mov ebx, dword [rbp - 0x55]
mov r8d, ebx
and r8d, 3
xor eax, eax
mov qword [rbp - 0x1d], rax
mov qword [rbp - 0x15], rax
mov r10d, 2
mov word [rbp - 0x21], r10w
movzx eax, word [r14 + 0xf0]
sub ax, word [r14 + 0xec]
inc ax
movsx edx, ax
dec edx
mov dword [rbp - 0x39], edx
movsx eax, word [rbp - 0x51]
mov dword [rbp - 0x31], eax
xor r15d, r15d
mov dword [rbp - 0x49], r15d
lea rcx, [rbp - 0x39]
lea r9, [rbp - 0x31]
cmp edx, eax
cmovge rcx, r9
lea rax, [rbp - 0x49]
cmp dword [rcx], r15d
cmovg rax, rcx
movzx eax, word [rax]
add ax, word [r14 + 0xec]
mov word [rbp - 0x1d], ax
movzx eax, word [r14 + 0xf2]
sub ax, word [r14 + 0xee]
inc ax
movsx ecx, ax
dec ecx
mov dword [rbp - 0x31], ecx
movsx eax, word [rbp - 0x4f]
mov dword [rbp - 0x39], eax
mov dword [rbp - 0x49], r15d
lea rdx, [rbp - 0x31]
lea r9, [rbp - 0x39]
cmp ecx, eax
cmovge rdx, r9
lea rcx, [rbp - 0x49]
cmp dword [rdx], r15d
cmovg rcx, rdx
movzx eax, word [r14 + 0xee]
add ax, word [rcx]
mov word [rbp - 0x1b], ax
mov eax, dword [rbp - 0x15]
test bl, 4
je 0x14001437b
or eax, 0x10
mov dword [rbp - 0x15], eax
test bl, 8
je 0x140014386
or eax, r10d
mov dword [rbp - 0x15], eax
test bl, 0x10
je 0x140014391
or eax, 8
mov dword [rbp - 0x15], eax
test bl, 0x40
je 0x1400143c1
or dword [rbp - 0x11], 4
test r8d, r8d
jne 0x1400143ab
or dword [rbp - 0x19], 0x780000
jmp 0x140014526
cmp r8d, 1
jne 0x1400145f4
or dword [rbp - 0x19], 0xff880000
jmp 0x140014526
test bl, 0x20
je 0x1400143ca
or dword [rbp - 0x11], 1
cmp r8d, 3
jne 0x1400143e4
mov dword [r14 + 0xd4], r15d
mov byte [r14 + 0xe4], 1
jmp 0x140014526
test r8d, r8d
jne 0x1400143ef
lea r12d, [r8 + 1]
jmp 0x140014422
cmp r8d, 1
jne 0x1400143fb
lea r12d, [r8 + 3]
jmp 0x140014422
mov r12d, r15d
cmp r8d, r10d
cmove r12d, r10d
test r12d, r12d
jne 0x140014422
lea r8, str.relevantFlag___0
mov edx, 0x22a
lea rcx, str.agentConsoleInput.cc
call fcn.1400045f7
cmp byte [rbp - 0x59], r15b
je 0x14001447c
mov eax, r12d
not eax
and dword [r14 + 0xd4], eax
cmp r12d, dword [r14 + 0xd8]
mov r12, qword [rbp - 0x41]
jne 0x14001444e
mov byte [r14 + 0xe4], 1
jmp 0x140014526
xor eax, eax
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x55], r15d
mov dword [r14 + 0xd8], r15d
mov eax, r15d
mov dword [r14 + 0xdc], eax
mov dword [r14 + 0xe0], r15d
mov byte [r14 + 0xe4], r15b
jmp 0x140014526
mov eax, dword [r14 + 0xd4]
test r12d, eax
jne 0x140014522
or eax, r12d
mov dword [r14 + 0xd4], eax
mov ebx, dword [rbp - 0x51]
cmp dword [r14 + 0xd8], r12d
jne 0x140014507
movzx eax, word [rbp - 0x51]
cmp word [r14 + 0xdc], ax
jne 0x140014507
mov eax, ebx
shr eax, 0x10
cmp word [r14 + 0xde], ax
jne 0x140014507
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, dword [r14 + 0xe0]
call qword [sym.imp.USER32.dll_GetDoubleClickTime]
cmp edi, eax
jae 0x140014507
or dword [rbp - 0x11], 2
xor eax, eax
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x55], r15d
mov dword [r14 + 0xd8], r15d
mov eax, r15d
mov dword [r14 + 0xdc], eax
mov dword [r14 + 0xe0], r15d
mov byte [r14 + 0xe4], r15b
jmp 0x140014522
mov dword [r14 + 0xd8], r12d
mov dword [r14 + 0xdc], ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [r14 + 0xe0], eax
mov r12, qword [rbp - 0x41]
mov eax, dword [r14 + 0xd4]
or dword [rbp - 0x19], eax
cmp byte [r14 + 0xe9], r15b
je 0x1400145f4
cmp byte [r14 + 0xea], r15b
jne 0x1400145f4
call fcn.14000335f
test al, al
je 0x1400145e8
mov r8d, dword [0x1400aa988]
mov rax, qword gs:[0x58]
mov ecx, 0x104
mov rax, qword [rax + r8*8]
mov edx, dword [rcx + rax]
cmp dword [0x1400aa904], edx
jle 0x1400145ae
lea rcx, [0x1400aa904]
call fcn.1400011db
cmp dword [0x1400aa904], 0xffffffff
jne 0x1400145ae
lea rcx, str.input
call fcn.140003e2c
mov byte [0x1400aa900], al
lea rcx, [0x1400aa904]
call fcn.1400015dc
cmp byte [0x1400aa900], 0
je 0x1400145e8
lea rdx, [rbp - 0x1d]
lea rcx, [rbp - 9]
call fcn.14000186b
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400145cf
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.mouse_event:__s
call fcn.140001e10
nop
lea rcx, [rbp - 9]
call fcn.140001a05
lea rdx, [rbp - 0x21]
mov rcx, r12
call fcn.14000276b
mov eax, esi
jmp 0x1400145fe
xor r15d, r15d
mov eax, r15d
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140003cb0
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret