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

Disassembly:
sub esp, 0x68
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x79]
push edi
cmp eax, 1
je 0x45809a
mov ecx, dword [0x4d688c]
test ecx, ecx
je 0x45809a
mov eax, dword [ebx + 0xee]
cdq
idiv ecx
mov eax, dword [0x4d6874]
mov ebp, edx
lea esi, [ebp + ebp*4]
shl esi, 3
mov ecx, dword [esi + eax + 8]
mov edx, dword [esi + eax + 0x24]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + eax + 0x20]
mov eax, dword [esi + eax]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0x21]
mov edi, dword [eax + 0x2d]
mov ecx, dword [edx + 0x1e]
mov edx, dword [ecx]
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 0x18]
cmp eax, edx
setg al
test al, al
mov byte [esp + 0x13], al
je 0x457e9e
mov eax, dword [0x4d6874]
lea ecx, [esi + eax]
lea eax, [edi - 1]
cmp dword [ecx + 0x20], eax
jl 0x457e9e
mov eax, dword [0x4d688c]
lea ebp, [ebp + ebp*4 + 5]
shl ebp, 3
lea edx, [eax + eax*4]
mov eax, dword [0x4d6874]
shl edx, 3
sub edx, ebp
add ebp, eax
push edx
push ebp
push ecx
call fcn.00497220
mov edx, dword [0x4d688c]
mov eax, dword [esp + 0x2c]
add esp, 0xc
dec edx
test eax, eax
mov dword [0x4d688c], edx
je 0x457d91
mov byte [eax], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test ecx, ecx
mov dword [ebx + 0x81c], eax
jne 0x45809a
mov esi, dword [eax + 0x39]
mov edi, dword [eax + 0x31]
mov edx, dword [eax + 0x35]
sub esi, edi
mov edi, dword [eax + 0x3d]
sub edi, edx
test esi, esi
jne 0x457dc3
test edi, edi
je 0x45809a
lea ecx, [esp + 0x38]
push 1
push ecx
lea ecx, [esp + 0x1c]
mov dword [ebx + 0x81c], eax
call fcn.0045dcd0
mov edx, dword [eax + 0x21]
push ecx
mov ecx, esp
push edx
call fcn.00417280
lea eax, [esp + 0x74]
push eax
call fcn.00460650
mov ecx, edi
add esp, 0x10
mov edx, esi
neg ecx
neg edx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0045dcd0
mov eax, dword [eax + 0x21]
push ecx
mov ecx, esp
push eax
call fcn.00417280
call fcn.00460da0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x44]
push edi
lea edx, [esp + 0x2c]
push esi
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_UnionRect]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov edx, dword [ebx + 0x1c]
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x54]
push 1
push ecx
push edx
mov dword [esp + 0x70], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov eax, dword [esp + 0x14]
push edx
push edi
mov ebp, dword [eax + 0x39]
mov ecx, dword [eax + 0x31]
sub ebp, ecx
mov ecx, dword [eax + 0x3d]
sub ecx, dword [eax + 0x35]
mov eax, dword [ebx + 0xee]
inc eax
mov dword [esp + 0x28], ecx
mov dword [ebx + 0xee], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x13]
test al, al
je 0x457ee4
mov dword [esp + 0x18], edi
test edi, edi
je 0x45809a
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
inc ecx
lea eax, [edx + 1]
mov dword [esp + 0x1c], eax
imul eax, ebp
cdq
idiv edi
mov edx, eax
mov eax, ecx
imul eax, ebp
mov dword [esp + 0x24], edx
cdq
idiv edi
mov ebp, eax
mov eax, dword [esp + 0x24]
sub ebp, eax
mov eax, dword [esp + 0x1c]
imul eax, dword [esp + 0x20]
cdq
idiv edi
mov edx, eax
mov eax, ecx
imul eax, dword [esp + 0x20]
mov ecx, edx
cdq
idiv edi
mov edi, eax
sub edi, ecx
test ebp, ebp
jne 0x457f42
test edi, edi
je 0x45808c
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push 1
push eax
lea ecx, [esp + 0x1c]
mov dword [ebx + 0x81c], edx
call fcn.0045dcd0
mov edx, dword [eax + 0x21]
push ecx
mov ecx, esp
push edx
call fcn.00417280
lea eax, [esp + 0x74]
push eax
call fcn.00460650
mov ecx, edi
add esp, 0x10
mov edx, ebp
neg ecx
neg edx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0045dcd0
mov eax, dword [eax + 0x21]
push ecx
mov ecx, esp
push eax
call fcn.00417280
call fcn.00460da0
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x44]
push edi
lea edx, [esp + 0x2c]
push ebp
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov al, byte [esp + 0x13]
test al, al
je 0x45803b
mov eax, dword [ebx + 0x13f]
mov ecx, dword [ebx + 0x143]
mov dword [esp + 0x60], eax
lea edx, [esp + 0x58]
mov dword [esp + 0x64], ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x4c]
xor edi, edi
push eax
push ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
call dword [sym.imp.USER32.dll_IntersectRect]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x68]
mov dword [esp + 0x70], ecx
push eax
mov dword [esp + 0x78], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x45803d
mov dword [ebx + 0x81c], edi
jmp 0x45803d
xor edi, edi
lea ecx, [esp + 0x28]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x6c]
push edx
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x58]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x74]
push edi
push edx
push eax
mov dword [esp + 0x70], ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x4d6874]
mov eax, dword [esp + 0x18]
mov dword [esi + edx + 0x20], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret