Function at 0x180052450
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 [0x1804cc010]
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 0x1800524ab
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800524ab
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor esi, esi
cmp qword [r12 + 0x38], 0x32
jb 0x1800526b4
mov rbx, qword [r12 + 0x50]
test rbx, rbx
je 0x1800526b4
mov rcx, qword [r12 + 0x70]
test rcx, rcx
je 0x1800526b4
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 0x18005253f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005253a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005253a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], si
test bl, bl
jne 0x1800526b4
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 0x1800526b4
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.180052050
mov r13, qword [rbp - 0x28]
test eax, eax
jne 0x180052660
mov rax, qword [r12 + 0x30]
mov rbx, qword [rax]
cmp rbx, rax
je 0x18005264e
mov rsi, qword [rbp - 0x20]
lea rcx, [rbx + 0x20]
call fcn.1801559c0
test al, al
je 0x180052631
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 0x180052631
mov rax, r13
cmp r13, rsi
je 0x180052621
mov ecx, dword [rbp - 0x4c]
cmp dword [rax], ecx
je 0x180052627
add rax, 4
cmp rax, rsi
jne 0x180052614
lea rdx, [rbp - 0x48]
jmp 0x180052635
cmp rax, rsi
je 0x180052621
mov rbx, qword [rbx]
jmp 0x180052645
lea rdx, [rbp - 0x30]
mov r8, rbx
lea rcx, [r12 + 0x30]
call fcn.180053490
mov rbx, qword [rax]
cmp rbx, qword [r12 + 0x30]
jne 0x1800525e5
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 0x1800526b4
mov rax, qword [rbp - 0x18]
sub rax, r13
sar rax, 2
lea rdx, [rax*4]
mov rax, r13
cmp rdx, 0x1000
jb 0x1800526a0
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800526a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180386950
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rsi
test rdi, rdi
je 0x1800526cb
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800526c7
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x40], rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1803868f0
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