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

Disassembly:
mov eax, 0x2009c8d7
call fcn.2007d394
sub esp, 0x30
push ebx
mov ebx, ecx
push esi
lea eax, [ebx + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.200011c0
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x24], 0xffffffff
and dword [ebp - 0x18], 0
cmp eax, dword [ebx + 0x3c]
jne 0x2001e3eb
mov ecx, dword [ebx + 0x48]
mov dword [ebp - 0x18], ecx
push eax
mov ecx, ebx
call fcn.2001bb16
mov esi, eax
test esi, esi
je 0x2001e681
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
xor edx, edx
div ecx
push edi
push dword [esi + 8]
lea ecx, [ebp - 0x30]
mov edi, eax
xor eax, eax
test edx, edx
setne al
add eax, edi
mov dword [ebp - 0x14], eax
call fcn.200011c0
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
call fcn.2007e612
pop ecx
call fcn.2007e61f
mov ecx, dword [ebx + 0x3c]
add ecx, 0x3c
cmp dword [ebp + 0xc], ecx
movzx eax, ax
jae 0x2001e449
xor eax, eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
xor edx, edx
div ecx
mov eax, edx
add eax, dword [ebp - 0x18]
xor edx, edx
div dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
call edi
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0xc]
lea edi, [eax + 0xfa0]
mov ecx, 0x1770
cmp edi, ecx
jge 0x2001e487
mov edi, ecx
mov ecx, 0x3e80
cmp edi, ecx
jle 0x2001e492
mov edi, ecx
mov ebx, dword [ebx + 0x3c]
lea ecx, [ebx + 0x1e]
cmp dword [ebp + 0xc], ecx
jae 0x2001e4a5
add edi, 0x7d0
jmp 0x2001e4b3
add ebx, 0x3c
cmp dword [ebp + 0xc], ebx
jae 0x2001e4b3
add edi, 0x3e8
cmp eax, 0x400
ja 0x2001e4c3
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
lea ecx, [esi + 0x40]
call fcn.2003acb4
fsubr dword [0x200a6ba8]
call fcn.2007f3d0
mov ecx, dword [ebp - 0x14]
imul eax, ecx
cdq
push 0x64
pop ebx
idiv ebx
imul eax, edi
cdq
inc ecx
idiv ecx
mov dword [ebp + 0xc], eax
mov ebx, dword [ebp - 0x28]
cmp ebx, dword [ebp - 0x18]
jge 0x2001e500
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jge 0x2001e5d3
mov eax, dword [ebp - 0x10]
xor edi, edi
cmp eax, dword [ebp - 0x14]
jge 0x2001e530
mov ecx, dword [ebp + 8]
push eax
call fcn.2003ab56
test eax, eax
je 0x2001e52d
push dword [ebp - 0x10]
lea ecx, [esi + 0x40]
call fcn.2003ab56
test eax, eax
jne 0x2001e52d
mov eax, dword [ebp - 0x10]
inc edi
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x10]
cmp ebx, dword [ebp - 0x18]
jl 0x2001e55b
test edi, edi
jne 0x2001e55f
mov ecx, dword [ebp + 8]
push ebx
call fcn.2003ab56
test eax, eax
je 0x2001e557
push ebx
lea ecx, [esi + 0x40]
call fcn.2003ab56
test eax, eax
jne 0x2001e557
inc edi
mov dword [ebp - 0x1c], ebx
dec ebx
mov dword [ebp - 0x28], ebx
test edi, edi
je 0x2001e4ec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x34]
xor edi, edi
call fcn.2001b5db
mov eax, dword [eax]
cmp eax, dword [esi + 0x38]
jne 0x2001e4ec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [esi + 0x28]
call fcn.2001b667
mov eax, dword [eax]
cmp eax, dword [esi + 0x2c]
je 0x2001e5a2
mov edi, dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
sub eax, edi
cmp eax, dword [ebp + 0xc]
jle 0x2001e4ec
cmp edi, 0xffffffff
je 0x2001e4ec
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x28]
call fcn.2001e158
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
jmp 0x2001e651
mov edi, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
push edi
lea ebx, [eax + 0x10]
call fcn.2003ab56
test eax, eax
je 0x2001e643
push edi
lea ecx, [esi + 0x40]
call fcn.2003ab56
test eax, eax
jne 0x2001e643
and dword [ebp - 0x1c], eax
push 0x1770
mov ecx, ebx
call fcn.2001c356
test eax, eax
je 0x2001e643
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [esi + 0x28]
mov dword [ebp - 0x2c], edi
call fcn.2001b667
mov eax, dword [eax]
cmp eax, dword [esi + 0x2c]
je 0x2001e62f
mov eax, dword [eax + 0x10]
jmp 0x2001e632
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
sub ecx, eax
cmp ecx, dword [ebp + 0xc]
jle 0x2001e643
cmp eax, 0xffffffff
jne 0x2001e657
lea ecx, [ebp - 0x28]
call fcn.2006f271
mov ecx, dword [esi + 0x38]
mov eax, dword [ebp - 0x28]
cmp eax, ecx
jne 0x2001e5dd
jmp 0x2001e66b
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x28]
mov dword [ebp - 0x24], edi
mov dword [ebp + 0xc], edi
call fcn.2001e158
mov dword [eax], ebx
mov byte [ebp - 4], 0
mov esi, dword [ebp - 0x30]
test esi, esi
pop edi
je 0x2001e681
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x2001e696
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec dword [esi + 0x18]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8