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

Disassembly:
push rbx
push rsi
push r12
push r14
sub rsp, 0x68
xor al, al
movzx r14d, dl
cmp qword [0x140132ae0], 0
mov r12d, 1
movzx esi, al
cmovne esi, r12d
movzx ebx, cl
cmp qword [0x140132ad8], 0
je 0x140017527
or sil, 2
cmp bl, sil
je 0x1400177b8
mov qword [rsp + 0xa8], r13
xor r13d, r13d
test sil, sil
jne 0x14001758a
test dl, dl
jne 0x14001758a
lea rax, [0x140133a78]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140017840]
mov edx, 0x2000
mov dword [rsp + 0x20], r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140136ee0], rax
test rax, rax
je 0x14001768e
mov edx, reloc.WSOCK32.dll_ntohs
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x98], rbp
mov rbp, r14
mov qword [rsp + 0xa0], rdi
xor rbp, r12
mov qword [rsp + 0x60], r15
mov edi, r13d
nop dword [rax + rax]
mov ecx, dword [0x140133a78]
mov r9, rbp
mov r8, rbx
mov edx, 0x417
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x1400175dd
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x32
jl 0x1400175b0
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15, qword [rsp + 0x60]
mov ebp, eax
nop dword [rax]
test bl, bl
je 0x140017698
mov r9d, 0x417
mov dword [rsp + 0x20], r12d
mov r8d, r9d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140017672
cmp qword [rsp + 0x40], r13
je 0x1400176c2
xor al, al
movzx edi, r12b
cmp qword [0x140132ae0], r13
movzx eax, al
cmovne eax, r12d
cmp qword [0x140132ad8], r13
je 0x140017641
or al, 2
test al, al
jne 0x1400176c2
test r14b, r14b
jne 0x140017776
xor bl, bl
mov rcx, qword [0x140136ee0]
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x90], 0x103
jne 0x1400176cd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebp
cmp eax, 0x1f4
ja 0x1400176c2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400175f0
call fcn.140017bc0
jmp 0x1400177b0
test r14b, r14b
je 0x140017650
xor al, al
cmp qword [0x140132ae0], r13
movzx eax, al
cmovne eax, r12d
cmp qword [0x140132ad8], r13
je 0x1400176b8
or al, 2
test al, al
je 0x140017771
jmp 0x140017672
test r14b, r14b
jne 0x140017771
jmp 0x1400176e6
mov rcx, qword [0x140136ee0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140136ee0], r13
call fcn.140017bc0
movzx eax, sil
and al, r12b
cmp qword [0x140132ae0], r13
je 0x140017714
test al, al
jne 0x14001772c
lea r8, str.AHK_Keybd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x140136ed0], rax
jmp 0x14001772c
test al, al
je 0x14001772c
mov rcx, qword [0x140136ed0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140136ed0], r13
and sil, 2
cmp qword [0x140132ad8], r13
je 0x140017758
test sil, sil
jne 0x140017771
lea r8, str.AHK_Mouse
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x140136ed8], rax
jmp 0x140017771
test sil, sil
je 0x140017771
mov rcx, qword [0x140136ed8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140136ed8], r13
test dil, dil
je 0x1400177a0
xorps xmm3, xmm3
mov dword [0x14012f234], r13d
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov edx, 0x10000
lea rcx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.1400def40
mov dword [0x14012f234], r12d
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov r13, qword [rsp + 0xa8]
add rsp, 0x68
pop r14
pop r12
pop rsi
pop rbx
ret