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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [esi + 4], 0
push ebx
push edi
je 0x10001b9f
mov ebx, 0x2131
cmp eax, ebx
jne 0x10001a0a
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x190]
cmp eax, 0x44c
jb 0x10001b9f
lea eax, [esi + 0x1a0]
cmp dword [eax], 0
jne 0x1000190b
mov dword [eax], 1
fld1
fcomp qword [esi + 0x198]
fnstsw ax
test ah, 0x41
jp 0x1000193d
fldz
push ebx
mov eax, esi
fstp qword [esi + 0x198]
call fcn.10014b22
push 0x28
push 0x2132
mov eax, esi
call fcn.10014b01
jmp 0x10001b97
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
fld qword [esi + 0x198]
fmul qword [0x1007d6c0]
fadd qword [0x1007d6b8]
call fcn.10067ac0
fld qword [esi + 0x198]
fmul qword [0x1007d6b0]
mov edi, 0xba
sub edi, eax
fadd qword [0x1007d6a8]
call fcn.10067ac0
fld qword [esi + 0x198]
fmul qword [0x1007d6a0]
mov ebx, eax
fadd qword [0x1007d698]
call fcn.10067ac0
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov eax, 0x135
sub eax, edx
mov dword [ebp - 0x10], eax
add eax, ebx
mov dword [ebp - 8], eax
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub edi, eax
mov dword [ebp - 0xc], edi
add edi, ecx
lea eax, [esi + 0x128]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.1000da11
mov edi, dword [esi + 4]
fld qword [esi + 0x198]
push ecx
push ecx
fstp qword [esp]
push 1
call fcn.10018269
mov eax, dword [esi + 4]
push 0
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
fld qword [esi + 0x198]
fadd qword [0x1007d610]
fstp qword [esi + 0x198]
jmp 0x10001b9f
mov ebx, 0x2132
cmp eax, ebx
jne 0x10001a48
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x190]
cmp eax, 0x1f4
jb 0x10001b9f
fldz
push ebx
mov eax, esi
fstp qword [esi + 0x198]
call fcn.10014b22
push 0x28
push 0x2133
jmp 0x10001b89
mov ebx, 0x2133
cmp eax, ebx
jne 0x10001b56
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x190]
cmp eax, 0x960
jae 0x10001b1c
fld1
fcomp qword [esi + 0x198]
fnstsw ax
test ah, 5
jnp 0x10001b1c
mov edi, dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [ebp - 0x10]
push eax
call edi
lea ebx, [esi + 0x128]
lea eax, [ebp - 0x10]
call fcn.1000da29
fld qword [esi + 0x198]
fmul qword [0x1007d690]
fsub qword [0x1007d688]
call fcn.10067ac0
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
call edi
mov eax, dword [ebp - 0x10]
add eax, ebx
cmp eax, dword [ebp - 8]
lea ecx, [eax + 0xdc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
jle 0x10001ae7
fld qword [0x1007d680]
jmp 0x100019ff
lea eax, [esi + 0x15c]
lea ecx, [ebp - 0x20]
call fcn.1000da11
fld qword [esi + 0x198]
fadd qword [0x1007d678]
mov eax, dword [esi + 4]
push 0
push 0
fstp qword [esi + 0x198]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x10001b9f
lea eax, [esi + 0x188]
cmp byte [eax], 0
je 0x10001b3a
push 0
mov byte [eax], 0
mov eax, dword [esi + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
fldz
push ebx
mov eax, esi
fstp qword [esi + 0x198]
call fcn.10014b22
push 0x28
push 0x2134
jmp 0x10001931
cmp eax, 0x2134
jne 0x10001b9f
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [esi + 0x190]
cmp eax, 0x15e0
jb 0x10001b9f
fldz
push 0x2134
mov eax, esi
fstp qword [esi + 0x198]
call fcn.10014b22
push 0x28
push ebx
mov eax, esi
call fcn.10014b01
mov byte [esi + 0x188], 0xff
call edi
mov dword [esi + 0x190], eax
pop edi
pop ebx
leave
ret