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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdi, [r12 + 0x60]
mov qword [rbp - 0x40], rdi
test rdi, rdi
je 0x180054a6b
mov rcx, qword [rdi]
test rcx, rcx
je 0x180054a6b
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor esi, esi
cmp qword [r12 + 0x38], 0x32
jb 0x180054c74
mov rbx, qword [r12 + 0x50]
test rbx, rbx
je 0x180054c74
mov rcx, qword [r12 + 0x70]
test rcx, rcx
je 0x180054c74
mov dword [rbp - 0x50], esi
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
call qword [rax + 0xc0]
nop
mov r9, qword [rbx]
lea r8, [rbp - 0x50]
mov rdx, rax
mov rcx, rbx
call qword [r9 + 0x58]
test eax, eax
setne bl
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180054aff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180054afa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180054afa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], si
test bl, bl
jne 0x180054c74
mov ebx, dword [rbp - 0x50]
mov dword [rbp - 0x48], esi
mov rcx, qword [r12 + 0x50]
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
call qword [rax + 0x40]
mov eax, dword [r12 + 0x9c]
mov r8d, eax
cmp eax, ebx
cmovae r8d, ebx
cmovae ebx, eax
mov edx, r8d
sub edx, ebx
add edx, dword [rbp - 0x48]
sub ebx, r8d
cmp edx, ebx
cmovbe ebx, edx
cmp ebx, 0x19
jb 0x180054c74
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x48], 0x19
mov dword [rbp - 0x4c], 0x19
lea r9, [rbp - 0x28]
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x4c]
mov rcx, r12
call fcn.180054610
mov r13, qword [rbp - 0x28]
test eax, eax
jne 0x180054c20
mov rax, qword [r12 + 0x30]
mov rbx, qword [rax]
cmp rbx, rax
je 0x180054c0e
mov rsi, qword [rbp - 0x20]
lea rcx, [rbx + 0x20]
call fcn.18015b0b0
test al, al
je 0x180054bf1
mov rcx, qword [r12 + 0x50]
mov rax, qword [rcx]
lea r8, [rbp - 0x4c]
lea rdx, [rbx + 0x20]
call qword [rax + 0x58]
test eax, eax
jne 0x180054bf1
mov rax, r13
cmp r13, rsi
je 0x180054be1
mov ecx, dword [rbp - 0x4c]
cmp dword [rax], ecx
je 0x180054be7
add rax, 4
cmp rax, rsi
jne 0x180054bd4
lea rdx, [rbp - 0x48]
jmp 0x180054bf5
cmp rax, rsi
je 0x180054be1
mov rbx, qword [rbx]
jmp 0x180054c05
lea rdx, [rbp - 0x30]
mov r8, rbx
lea rcx, [r12 + 0x30]
call fcn.180055ba0
mov rbx, qword [rax]
cmp rbx, qword [r12 + 0x30]
jne 0x180054ba5
xor esi, esi
mov eax, dword [rbp - 0x50]
mov dword [r12 + 0x9c], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop
test r13, r13
je 0x180054c74
mov rax, qword [rbp - 0x18]
sub rax, r13
sar rax, 2
lea rdx, [rax*4]
mov rax, r13
cmp rdx, 0x1000
jb 0x180054c60
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180054c60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180393fb0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rsi
test rdi, rdi
je 0x180054c8b
mov rcx, qword [rdi]
test rcx, rcx
je 0x180054c87
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x40], rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180393f50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret