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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x1a0
mov rax, qword [0x180043040]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x180048018]
lea r14, [0x180045e70]
movabs rbp, 0xaaaaaaaaaaaaaaab
cmp eax, 0x1f4
jb 0x180001f8a
lea rcx, [rsp + 0x40]
mov r8d, 2
lea rax, [0x180046490]
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub r8, 1
jne 0x180001e40
movups xmm0, xmmword [rax]
lea rdx, [0x180046490]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
mov rax, qword [rax + 0x30]
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx + 0x20], xmm0
mov qword [rcx + 0x30], rax
call fcn.18001dc30
test eax, eax
jne 0x180002268
mov eax, dword [0x18004649c]
cmp dword [rsp + 0x4c], eax
je 0x180001f7e
lea rcx, [0x180045e48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, r14
lea rsi, [0x180045ff0]
nop dword [rax]
mov rbx, qword [rax]
test rbx, rbx
jne 0x180001f10
add rax, 8
cmp rax, rsi
jl 0x180001ef0
jmp 0x180001f71
mov rcx, qword [rbx + 0x10]
xor edx, edx
lea r8d, [rdx + 1]
call qword [0x180047ed8]
mov rax, qword [rbx]
test rax, rax
je 0x180001f2d
mov rbx, rax
jmp 0x180001f10
mov rcx, qword [rbx + 8]
mov rax, rbp
shr rcx, 3
mul rcx
shr rdx, 5
lea rax, [rdx + rdx*2]
shl rax, 4
sub rcx, rax
lea eax, [rcx + 1]
cdqe
cmp rax, 0x30
jge 0x180001f71
lea rax, [r14 + rax*8]
nop dword [rax]
mov rbx, qword [rax]
test rbx, rbx
jne 0x180001f10
add rax, 8
cmp rax, rsi
jl 0x180001f60
lea rcx, [0x180045e48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x180048018], eax
test byte [0x180046498], 1
je 0x180002268
mov ecx, dword [rsp + 0x1d8]
cmp ecx, 2
jne 0x180002036
lea rcx, [0x180045e48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rdi
mov rax, rbp
shr rcx, 3
xor ebx, ebx
mul rcx
shr rdx, 5
lea rax, [rdx + rdx*2]
shl rax, 4
sub rcx, rax
mov eax, ecx
lea rdx, [r14 + rax*8]
mov rax, qword [r14 + rax*8]
test rax, rax
je 0x180002024
mov rcx, qword [rax]
cmp qword [rax + 8], rdi
je 0x180002007
mov rbx, rax
mov rax, rcx
test rcx, rcx
jne 0x180001fe1
lea rcx, [0x180045e48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180002268
test rbx, rbx
je 0x180002021
mov qword [rbx], rcx
lea rcx, [0x180045e48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180002268
mov qword [rdx], rcx
lea rcx, [0x180045e48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180002268
cmp ecx, 0x47
jne 0x180002166
mov rcx, rdi
call fcn.180002290
mov rsi, rax
test rax, rax
je 0x180002268
call fcn.1800010c0
mov ecx, dword [0x180046498]
and ecx, 3
cmp cl, 3
je 0x18000206a
xor ebx, ebx
jmp 0x180002086
cmp dword [0x1800464b4], 0
lea rcx, [0x180045de0]
lea rax, [0x180045d80]
cmovne rax, rcx
mov ebx, dword [rax + 0x10]
lea rdx, [rsp + 0x180]
mov rcx, rdi
call fcn.180001300
mov rcx, rdi
call qword [0x180047e38]
mov edx, 0x494
mov ebp, 0x454
test eax, eax
mov rcx, rdi
mov rax, qword [0x180047ef8]
cmove ebp, edx
call rax
test eax, eax
je 0x180002121
mov rax, qword [0x180047ee0]
mov ecx, 0x20
call rax
mov edx, dword [rsp + 0x188]
mov r9d, dword [rsp + 0x184]
mov r10d, dword [rsp + 0x18c]
lea ecx, [rax + rax]
mov dword [rsp + 0x30], ebp
sub r10d, ecx
sub edx, ecx
mov ecx, dword [rsp + 0x180]
sub r10d, r9d
sub edx, ecx
add r10d, ebx
mov dword [rsp + 0x28], r10d
sub r9d, ebx
mov dword [rsp + 0x20], edx
add r9d, eax
lea r8d, [rcx + rax]
xor edx, edx
mov rcx, rsi
call qword [0x180047e18]
jmp 0x180002268
mov ecx, dword [rsp + 0x18c]
xor edx, edx
mov r9d, dword [rsp + 0x184]
sub ecx, r9d
mov eax, dword [rsp + 0x188]
add ecx, ebx
mov r8d, dword [rsp + 0x180]
sub r9d, ebx
mov dword [rsp + 0x30], ebp
sub eax, r8d
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [0x180047e18]
jmp 0x180002268
cmp ecx, 0x7d
jne 0x180002214
cmp qword [rsp + 0x1e0], 0xfffffffffffffff0
jne 0x180002268
mov rcx, rdi
call fcn.180002290
mov rsi, rax
test rax, rax
je 0x180002268
mov rdi, qword [rsp + 0x1e8]
test dword [rdi], 0x10000000
jne 0x1800021e0
test dword [rdi + 4], 0x10000000
je 0x1800021d4
mov rax, qword [0x180047ec8]
mov edx, 0xfffffff0
mov rbx, qword [0x180047e10]
mov rcx, rsi
call rax
bts eax, 0x1c
mov edx, 0xfffffff0
mov r8d, eax
mov rcx, rsi
call rbx
test dword [rdi], 0x10000000
je 0x180002268
test dword [rdi + 4], 0x10000000
jne 0x180002268
mov rax, qword [0x180047ec8]
mov edx, 0xfffffff0
mov rbx, qword [0x180047e10]
mov rcx, rsi
call rax
btr eax, 0x1c
mov edx, 0xfffffff0
mov r8d, eax
mov rcx, rsi
call rbx
jmp 0x180002268
cmp ecx, 0x81
je 0x180002242
lea eax, [rcx - 0x85]
cmp eax, 1
jbe 0x180002242
cmp ecx, 0xc
je 0x180002242
cmp ecx, 0x112
jne 0x180002268
cmp qword [rsp + 0x1e0], 0xf060
je 0x180002268
mov r8, qword [0x180047ec8]
mov edx, 0xfffffff0
mov rcx, rdi
call r8
and eax, 0x40400000
cmp eax, 0x400000
jne 0x180002268
mov rcx, rdi
call fcn.1800019a0
mov eax, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.18001e5f0
add rsp, 0x1a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret