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

Disassembly:
push rbx
push rbp
push rsi
push r13
sub rsp, 0x68
xor al, al
movzx ebp, dl
cmp qword [0x14014a410], 0
mov r13d, 1
movzx esi, al
cmovne esi, r13d
movzx ebx, cl
cmp qword [0x14014a408], 0
je 0x14000d595
or sil, 2
cmp bl, sil
je 0x14000d8fd
mov qword [rsp + 0xa0], r12
xor r12d, r12d
test sil, sil
jne 0x14000d5f8
test dl, dl
jne 0x14000d5f8
lea rax, [0x14014b380]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000d980]
mov edx, 0x2000
mov dword [rsp + 0x20], r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14014e750], rax
test rax, rax
je 0x14000d6f5
lea edx, [r12 + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x98], rdi
mov edi, r12d
mov qword [rsp + 0xa8], r14
mov r14, rbp
xor r14, r13
mov qword [rsp + 0x60], r15
nop word [rax + rax]
mov ecx, dword [0x14014b380]
mov r9, r14
mov r8, rbx
mov edx, 0x417
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x14000d64b
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x32
jl 0x14000d620
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15, qword [rsp + 0x60]
mov r14d, eax
nop dword [rax]
test bl, bl
je 0x14000d776
mov r9d, 0x417
mov dword [rsp + 0x20], r13d
mov r8d, r9d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14000d6d4
cmp qword [rsp + 0x40], r12
je 0x14000d791
movzx edi, r13b
call fcn.14000dd10
test al, al
jne 0x14000d791
test bpl, bpl
jne 0x14000d8bb
xor bl, bl
mov rcx, qword [0x14014e750]
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x90], 0x103
jne 0x14000d79f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x1f4
ja 0x14000d791
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000d660
mov rcx, qword [0x14014e770]
test rcx, rcx
je 0x14000d70d
call fcn.1400df83c
mov qword [0x14014e770], r12
mov rcx, qword [0x14014e778]
test rcx, rcx
je 0x14000d725
call fcn.1400df83c
mov qword [0x14014e778], r12
mov rcx, qword [0x14014e758]
test rcx, rcx
je 0x14000d73d
call fcn.1400df83c
mov qword [0x14014e758], r12
mov rcx, qword [0x14014e760]
test rcx, rcx
je 0x14000d755
call fcn.1400df83c
mov qword [0x14014e760], r12
mov rcx, qword [0x14014e768]
test rcx, rcx
je 0x14000d8f5
call fcn.1400e89fc
mov qword [0x14014e768], r12
jmp 0x14000d8f5
test bpl, bpl
je 0x14000d6ae
call fcn.14000dd10
test al, al
je 0x14000d8b6
jmp 0x14000d6d4
test bpl, bpl
jne 0x14000d8b6
jmp 0x14000d82b
mov rcx, qword [0x14014e750]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14014e770]
mov qword [0x14014e750], r12
test rcx, rcx
je 0x14000d7cb
call fcn.1400df83c
mov qword [0x14014e770], r12
mov rcx, qword [0x14014e778]
test rcx, rcx
je 0x14000d7e3
call fcn.1400df83c
mov qword [0x14014e778], r12
mov rcx, qword [0x14014e758]
test rcx, rcx
je 0x14000d7fb
call fcn.1400df83c
mov qword [0x14014e758], r12
mov rcx, qword [0x14014e760]
test rcx, rcx
je 0x14000d813
call fcn.1400df83c
mov qword [0x14014e760], r12
mov rcx, qword [0x14014e768]
test rcx, rcx
je 0x14000d82b
call fcn.1400e89fc
mov qword [0x14014e768], r12
movzx eax, sil
and al, r13b
cmp qword [0x14014a410], r12
je 0x14000d859
test al, al
jne 0x14000d871
lea r8, str.AHK_Keybd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14014e740], rax
jmp 0x14000d871
test al, al
je 0x14000d871
mov rcx, qword [0x14014e740]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14014e740], r12
and sil, 2
cmp qword [0x14014a408], r12
je 0x14000d89d
test sil, sil
jne 0x14000d8b6
lea r8, str.AHK_Mouse
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x14014e748], rax
jmp 0x14000d8b6
test sil, sil
je 0x14000d8b6
mov rcx, qword [0x14014e748]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14014e748], r12
test dil, dil
je 0x14000d8e5
xorps xmm3, xmm3
mov dword [0x140145a74], r12d
xor r8d, r8d
mov qword [rsp + 0x20], r12
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.1400c8ff0
mov dword [0x140145a74], r13d
mov rdi, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xa0]
add rsp, 0x68
pop r13
pop rsi
pop rbp
pop rbx
ret