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

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov ebp, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor r11b, r11b
cmp qword [0x140117860], 0
mov esi, 1
movzx edi, r11b
cmovne edi, esi
cmp qword [0x140117868], 0
je 0x14000d3ca
or dil, 2
xor r12d, r12d
mov qword [rsp + 0x50], rbx
test dil, dil
je 0x14000d526
mov qword [rsp + 0x60], r13
mov ebx, r12d
mov ecx, dword [0x1401163cc]
mov r9, rsi
xor r8d, r8d
mov edx, 0x417
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x14000d40e
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x14000d3e3
xor r13b, r13b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
nop dword [rax]
mov rcx, qword [0x1401182c8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x58], 0x103
jne 0x14000d455
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x1f4
ja 0x14000d46e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000d420
mov rcx, qword [0x1401182c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182c8], r12
call fcn.14000c1c0
cmp qword [0x140117860], r12
je 0x14000d496
test sil, dil
jne 0x14000d4af
lea r8, str.AHK_Keybd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401182b8], rax
jmp 0x14000d4af
test sil, dil
je 0x14000d4af
mov rcx, qword [0x1401182b8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182b8], r12
cmp qword [0x140117868], r12
je 0x14000d4d8
test dil, 2
jne 0x14000d4f2
lea r8, str.AHK_Mouse
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401182c0], rax
jmp 0x14000d4f2
test dil, 2
je 0x14000d4f2
mov rcx, qword [0x1401182c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182c0], r12
test r13b, r13b
mov r13, qword [rsp + 0x60]
je 0x14000d526
xorpd xmm3, xmm3
lea rcx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
xor r8d, r8d
mov edx, 0x10000
mov dword [0x140112454], r12d
mov qword [rsp + 0x20], r12
call fcn.1400b2f60
mov dword [0x140112454], esi
mov rcx, qword [0x140117870]
test rcx, rcx
je 0x14000d538
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r8, qword [0x140113e40]
mov edi, r12d
cmp r12w, word [r8]
jae 0x14000d5db
mov rdx, qword [0x1401190a8]
mov r9, qword [0x1401190a0]
mov rsi, r12
nop dword [rax]
mov rax, qword [0x140118300]
mov rbx, qword [rsi + rax]
test rbx, rbx
je 0x14000d5cd
cmp byte [rbx + 0x18], r12b
je 0x14000d5a4
movzx edx, word [rbx + 4]
mov rcx, qword [0x140117710]
call qword [sym.imp.USER32.dll_UnregisterHotKey]
mov r8, qword [0x140113e40]
mov rdx, qword [0x1401190a8]
mov r9, qword [0x1401190a0]
test eax, eax
sete al
mov byte [rbx + 0x18], al
cmp rbx, rdx
jne 0x14000d5cd
test rdx, rdx
je 0x14000d5cd
mov rax, qword [r9 + 8]
mov rcx, rax
sub rcx, rdx
mov rdx, r12
sub rax, rcx
add qword [r9 + 0x10], rcx
mov qword [0x1401190a8], rdx
mov qword [r9 + 8], rax
movzx eax, word [r8]
inc edi
add rsi, 8
cmp edi, eax
jl 0x14000d560
mov ecx, ebp
call fcn.1400c9f0c
mov rbx, qword [rsp + 0x50]
int3