Function at 0x14000d380
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 [0x140117880], 0
mov esi, 1
movzx edi, r11b
cmovne edi, esi
cmp qword [0x140117888], 0
je 0x14000d3ba
or dil, 2
xor r12d, r12d
mov qword [rsp + 0x50], rbx
test dil, dil
je 0x14000d516
mov qword [rsp + 0x60], r13
mov ebx, r12d
mov ecx, dword [0x1401163ec]
mov r9, rsi
xor r8d, r8d
mov edx, 0x417
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x14000d3fe
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x14000d3d3
xor r13b, r13b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
nop dword [rax]
mov rcx, qword [0x1401182e8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x58], 0x103
jne 0x14000d445
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x1f4
ja 0x14000d45e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000d410
mov rcx, qword [0x1401182e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182e8], r12
call fcn.14000c1d0
cmp qword [0x140117880], r12
je 0x14000d486
test sil, dil
jne 0x14000d49f
lea r8, str.AHK_Keybd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401182d8], rax
jmp 0x14000d49f
test sil, dil
je 0x14000d49f
mov rcx, qword [0x1401182d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182d8], r12
cmp qword [0x140117888], r12
je 0x14000d4c8
test dil, 2
jne 0x14000d4e2
lea r8, str.AHK_Mouse
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401182e0], rax
jmp 0x14000d4e2
test dil, 2
je 0x14000d4e2
mov rcx, qword [0x1401182e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182e0], r12
test r13b, r13b
mov r13, qword [rsp + 0x60]
je 0x14000d516
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 [0x140112474], r12d
mov qword [rsp + 0x20], r12
call fcn.1400b3420
mov dword [0x140112474], esi
mov rcx, qword [0x140117890]
test rcx, rcx
je 0x14000d528
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r8, qword [0x140113e60]
mov edi, r12d
cmp r12w, word [r8]
jae 0x14000d5cb
mov rdx, qword [0x1401190c8]
mov r9, qword [0x1401190c0]
mov rsi, r12
nop dword [rax]
mov rax, qword [0x140118320]
mov rbx, qword [rsi + rax]
test rbx, rbx
je 0x14000d5bd
cmp byte [rbx + 0x18], r12b
je 0x14000d594
movzx edx, word [rbx + 4]
mov rcx, qword [0x140117730]
call qword [sym.imp.USER32.dll_UnregisterHotKey]
mov r8, qword [0x140113e60]
mov rdx, qword [0x1401190c8]
mov r9, qword [0x1401190c0]
test eax, eax
sete al
mov byte [rbx + 0x18], al
cmp rbx, rdx
jne 0x14000d5bd
test rdx, rdx
je 0x14000d5bd
mov rax, qword [r9 + 8]
mov rcx, rax
sub rcx, rdx
mov rdx, r12
sub rax, rcx
add qword [r9 + 0x10], rcx
mov qword [0x1401190c8], rdx
mov qword [r9 + 8], rax
movzx eax, word [r8]
inc edi
add rsi, 8
cmp edi, eax
jl 0x14000d550
mov ecx, ebp
call fcn.1400ca49c
mov rbx, qword [rsp + 0x50]
int3