Function at 0x14000d340
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 0x14000d37a
or dil, 2
xor r12d, r12d
mov qword [rsp + 0x50], rbx
test dil, dil
je 0x14000d4d6
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 0x14000d3be
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x14000d393
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 0x14000d405
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x1f4
ja 0x14000d41e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000d3d0
mov rcx, qword [0x1401182e8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182e8], r12
call fcn.14000c190
cmp qword [0x140117880], r12
je 0x14000d446
test sil, dil
jne 0x14000d45f
lea r8, str.AHK_Keybd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401182d8], rax
jmp 0x14000d45f
test sil, dil
je 0x14000d45f
mov rcx, qword [0x1401182d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182d8], r12
cmp qword [0x140117888], r12
je 0x14000d488
test dil, 2
jne 0x14000d4a2
lea r8, str.AHK_Mouse
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1401182e0], rax
jmp 0x14000d4a2
test dil, 2
je 0x14000d4a2
mov rcx, qword [0x1401182e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401182e0], r12
test r13b, r13b
mov r13, qword [rsp + 0x60]
je 0x14000d4d6
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.1400b3250
mov dword [0x140112474], esi
mov rcx, qword [0x140117890]
test rcx, rcx
je 0x14000d4e8
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov r8, qword [0x140113e60]
mov edi, r12d
cmp r12w, word [r8]
jae 0x14000d58b
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 0x14000d57d
cmp byte [rbx + 0x18], r12b
je 0x14000d554
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 0x14000d57d
test rdx, rdx
je 0x14000d57d
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 0x14000d510
mov ecx, ebp
call fcn.1400ca2cc
mov rbx, qword [rsp + 0x50]
int3