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

Disassembly:
push rbp
push rsi
push rdi
push r13
sub rsp, 0x68
xor al, al
mov r13d, 1
cmp qword [0x1400eff20], 0
movzx esi, dl
movzx edi, al
movzx ebp, cl
cmovne edi, r13d
cmp qword [0x1400eff18], 0
je 0x140009b55
or dil, 2
cmp bpl, dil
je 0x140009e21
mov qword [rsp + 0xa0], r12
xor r12d, r12d
test dil, dil
jne 0x140009bb9
test sil, sil
jne 0x140009bb9
lea rax, [0x1400f0de0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140009ea0]
mov edx, 0x2000
mov dword [rsp + 0x20], r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400f5bf8], rax
test rax, rax
je 0x140009c66
lea edx, [r12 + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x98], rbx
test sil, sil
mov qword [rsp + 0xa8], r14
mov ebx, r12d
mov r14, r12
mov qword [rsp + 0x60], r15
sete r14b
movzx r15d, bpl
nop
mov ecx, dword [0x1400f0de0]
mov r9, r14
mov r8, r15
mov edx, 0x417
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x140009c0b
lea ecx, [rax + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x140009be0
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15, qword [rsp + 0x60]
mov r14d, eax
nop dword [rax + rax]
test bpl, bpl
je 0x140009c70
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 0x140009cae
cmp qword [rsp + 0x40], r12
je 0x140009c7e
movzx ebx, r13b
call fcn.14000a2a0
test al, al
jne 0x140009c7e
test sil, sil
jne 0x140009ddf
xor bpl, bpl
jmp 0x140009c20
call fcn.14000a2d0
jmp 0x140009e19
test sil, sil
je 0x140009c8c
call fcn.14000a2a0
test al, al
jne 0x140009cae
test sil, sil
jne 0x140009ddb
jmp 0x140009d57
mov rcx, qword [0x1400f5bf8]
lea rdx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x90], 0x103
jne 0x140009ccb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, 0x1f4
ja 0x140009c7e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009c20
mov rcx, qword [0x1400f5bf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1400f0df0]
mov qword [0x1400f5bf8], r12
test rcx, rcx
je 0x140009cf7
call fcn.140094100
mov qword [0x1400f0df0], r12
mov rcx, qword [0x1400f0de8]
test rcx, rcx
je 0x140009d0f
call fcn.140094100
mov qword [0x1400f0de8], r12
mov rcx, qword [0x1400f0e08]
test rcx, rcx
je 0x140009d27
call fcn.140094100
mov qword [0x1400f0e08], r12
mov rcx, qword [0x1400f0e00]
test rcx, rcx
je 0x140009d3f
call fcn.140094100
mov qword [0x1400f0e00], r12
mov rcx, qword [0x1400f0df8]
test rcx, rcx
je 0x140009d57
call fcn.140094100
mov qword [0x1400f0df8], r12
cmp qword [0x1400eff20], r12
je 0x140009d7f
test r13b, dil
jne 0x140009d98
lea r8, str.AHK_Keybd
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1400f0e18], rax
jmp 0x140009d98
test r13b, dil
je 0x140009d98
mov rcx, qword [0x1400f0e18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f0e18], r12
cmp qword [0x1400eff18], r12
je 0x140009dc1
test dil, 2
jne 0x140009ddb
lea r8, str.AHK_Mouse
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1400f0e10], rax
jmp 0x140009ddb
test dil, 2
je 0x140009ddb
mov rcx, qword [0x1400f0e10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f0e10], r12
test bl, bl
je 0x140009e09
xorps xmm3, xmm3
mov dword [0x1400ebaa0], 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.14007e190
mov dword [0x1400ebaa0], r13d
mov rbx, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xa0]
add rsp, 0x68
pop r13
pop rdi
pop rsi
pop rbp
ret