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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword gs:[0x58]
mov edx, 4
mov qword [rsp + 0x70], rbp
movaps xmmword [rsp + 0x50], xmm6
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14005a470], eax
jle 0x140038719
lea rcx, [0x14005a470]
call fcn.140038fe0
cmp dword [0x14005a470], 0xffffffff
jne 0x140038719
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
xorps xmm0, xmm0
lea rcx, [0x14005a470]
cvtsi2sd xmm0, rax
movsd qword [0x14005a468], xmm0
call fcn.140038f80
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
xorps xmm6, xmm6
lea rbp, [0x140036f20]
cvtsi2sd xmm6, rax
movzx eax, byte [0x14005a06e]
subsd xmm6, qword [0x14005a468]
test al, al
je 0x14003877e
mov edi, dword [reloc.XINPUT1_3.dll_Ordinal_2]
xor ecx, ecx
mov ebx, dword [0x14005a058]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
imul eax, ebp
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
sub edi, ebx
idiv edi
movzx eax, byte [0x14005a06e]
lea esi, [rbx + rdx]
jmp 0x140038784
mov esi, dword [0x14005a2f0]
xor ebx, ebx
test esi, esi
je 0x140038824
test al, al
je 0x140038824
xor ecx, ecx
mov dword [0x14005a2e0], 1
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
imul eax, ebp
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov edi, eax
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
sub edi, ecx
lea ecx, [rdi + 1]
mov dword [0x14005a2e4], ecx
test cl, 1
je 0x14003882a
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
imul eax, ebp
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov edi, eax
mov eax, 0x38e38e39
imul edi
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
sub edi, ecx
lea eax, [rdi + 1]
mov dword [0x14005a2cc], eax
test al, 1
je 0x140038820
add esi, 2
jmp 0x14003882a
dec esi
jmp 0x14003882a
mov dword [0x14005a2e0], ebx
mov rbp, qword [rsp + 0x70]
mov eax, 0x3e8
cdq
idiv esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
comisd xmm6, xmm0
movaps xmm6, xmmword [rsp + 0x50]
jb 0x1400388df
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp byte [0x14005a363], bl
xorps xmm0, xmm0
mov eax, eax
mov dword [0x14005a2e0], esi
cvtsi2sd xmm0, rax
movsd qword [0x14005a468], xmm0
je 0x1400388d3
xor eax, eax
lea rdi, [rsp + 0x20]
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
xorps xmm1, xmm1
mov ecx, 0x28
movdqu xmmword [rsp + 0x24], xmm0
lea r8d, [rax + 0x28]
movdqu xmmword [rsp + 0x38], xmm1
rep stosb byte [rdi], al
lea ecx, [rax + 1]
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x34], 2
call qword [sym.imp.USER32.dll_SendInput]
mov r8d, 0x28
mov dword [rsp + 0x20], ebx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x34], 4
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
inc dword [0x14005a05c]
mov byte [0x14005a054], bl
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret
sub rsp, 0x28
cmp byte [0x14005a363], 0
je 0x1400389a1
cmp byte [0x14005a054], 0
je 0x140038925
mov ecx, 0x78
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx ecx, byte [0x14005a055]
mov eax, 0x3e8
cdq
idiv dword [0x14005a05c]
test cl, cl
je 0x140038967
cmp eax, 0x14
jne 0x14003897a
dec dword [reloc.XINPUT1_3.dll_Ordinal_2]
dec dword [0x14005a058]
mov eax, dword [0x14005a2c8]
inc eax
mov dword [0x14005a05c], 1
mov dword [0x14005a2c8], eax
jmp 0x140038980
cmp eax, 0x14
jne 0x14003897a
inc dword [reloc.XINPUT1_3.dll_Ordinal_2]
inc dword [0x14005a058]
jmp 0x14003894d
mov eax, dword [0x14005a2c8]
cmp eax, 2
jle 0x140038998
test cl, cl
mov dword [0x14005a2c8], 0
sete byte [0x14005a055]
add rsp, 0x28
jmp 0x1400386b0
mov eax, dword [0x14005a2e8]
mov dword [reloc.XINPUT1_3.dll_Ordinal_2], eax
mov eax, dword [0x14005a2ec]
mov dword [0x14005a058], eax
mov byte [0x14005a054], 1
add rsp, 0x28
ret