Function at 0x180052b70
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 [0x1804cd010]
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 0x180052bcb
mov rcx, qword [rdi]
test rcx, rcx
je 0x180052bcb
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor esi, esi
cmp qword [r12 + 0x38], 0x32
jb 0x180052dd4
mov rbx, qword [r12 + 0x50]
test rbx, rbx
je 0x180052dd4
mov rcx, qword [r12 + 0x70]
test rcx, rcx
je 0x180052dd4
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 0x180052c5f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180052c5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052c5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], si
test bl, bl
jne 0x180052dd4
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 0x180052dd4
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.180052770
mov r13, qword [rbp - 0x28]
test eax, eax
jne 0x180052d80
mov rax, qword [r12 + 0x30]
mov rbx, qword [rax]
cmp rbx, rax
je 0x180052d6e
mov rsi, qword [rbp - 0x20]
lea rcx, [rbx + 0x20]
call fcn.180156070
test al, al
je 0x180052d51
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 0x180052d51
mov rax, r13
cmp r13, rsi
je 0x180052d41
mov ecx, dword [rbp - 0x4c]
cmp dword [rax], ecx
je 0x180052d47
add rax, 4
cmp rax, rsi
jne 0x180052d34
lea rdx, [rbp - 0x48]
jmp 0x180052d55
cmp rax, rsi
je 0x180052d41
mov rbx, qword [rbx]
jmp 0x180052d65
lea rdx, [rbp - 0x30]
mov r8, rbx
lea rcx, [r12 + 0x30]
call fcn.180053bb0
mov rbx, qword [rax]
cmp rbx, qword [r12 + 0x30]
jne 0x180052d05
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 0x180052dd4
mov rax, qword [rbp - 0x18]
sub rax, r13
sar rax, 2
lea rdx, [rax*4]
mov rax, r13
cmp rdx, 0x1000
jb 0x180052dc0
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180052dc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180388460
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rsi
test rdi, rdi
je 0x180052deb
mov rcx, qword [rdi]
test rcx, rcx
je 0x180052de7
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x40], rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.180388400
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