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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
mov edx, dword [ebp - 8]
call fcn.00410768
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
mov edx, dword [ebp - 0xc]
call fcn.00410768
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
je 0x4ec5e5
mov eax, dword [ebp - 4]
call fcn.004ec6dc
test eax, eax
je 0x4ec5e5
cmp dword [ebp - 0x18], 0xffffffff
je 0x4ec369
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4ec376
mov eax, dword [ebp - 4]
call fcn.004382ac
jmp 0x4ec5e5
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.004ec128
mov eax, dword [ebp - 4]
call fcn.004ec6dc
mov edx, dword [ebp - 4]
imul dword [edx + 0x230]
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x3c]
sub esi, ebx
sub esi, eax
test esi, esi
jle 0x4ec5e5
mov eax, dword [ebp - 4]
test byte [eax + 0x23c], 1
je 0x4ec3bf
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x225]
mov dword [ebp - 0x14], eax
jmp 0x4ec3c6
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x226]
cdq
idiv dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x28], eax
mov eax, esi
cdq
idiv dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
imul dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0x24], esi
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.00435094
mov eax, dword [ebp - 0x50]
sub dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
sub dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jge 0x4ec439
push 0
lea eax, [ebp - 0x60]
push eax
mov edx, dword [ebp - 0x1c]
inc edx
mov eax, dword [ebp - 4]
imul edx, dword [eax + 0x230]
add edx, ebx
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x40]
sub ecx, esi
mov eax, esi
call fcn.0040fa54
jmp 0x4ec468
push 0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 4]
call fcn.004ec6dc
sub eax, dword [ebp - 0x1c]
dec eax
mov edx, dword [ebp - 4]
imul dword [edx + 0x230]
mov edx, dword [ebp - 0x34]
sub edx, eax
mov ecx, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x40]
sub ecx, ebx
mov eax, ebx
call fcn.0040fa54
mov eax, dword [ebp - 4]
call fcn.00438284
xor edx, edx
push ebp
push 0x4ec5de
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x4ec5be
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x4ec4a7
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jge 0x4ec520
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x7c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
inc ebx
sub ebx, esi
jg 0x4ec502
dec ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
mov edx, esi
call fcn.0041070c
cmp byte [eax + 0x47], 0
je 0x4ec4fe
mov edx, dword [eax + 0x34]
add edx, dword [ebp - 0x20]
call fcn.00434ea0
dec esi
inc ebx
jne 0x4ec4dd
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x7c]
jmp 0x4ec584
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x3c]
sub edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00434ee4
mov esi, dword [ebp - 0x18]
inc esi
mov ebx, dword [ebp - 0x1c]
sub ebx, esi
jl 0x4ec562
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
mov edx, esi
call fcn.0041070c
cmp byte [eax + 0x47], 0
je 0x4ec55e
mov edx, dword [eax + 0x34]
sub edx, dword [ebp - 0x20]
call fcn.00434ea0
inc esi
dec ebx
jne 0x4ec53d
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x7c]
mov eax, dword [ebp - 4]
test byte [eax + 0x23c], 1
je 0x4ec5b2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x236], 0
jne 0x4ec5b2
mov eax, dword [0x5c1998]
mov eax, dword [eax]
call fcn.00453f10
call sub.kernel32.dll_GetTickCount
cmp eax, dword [ebp - 0x28]
jb 0x4ec59c
inc dword [ebp - 0x10]
dec dword [ebp - 0x30]
jne 0x4ec493
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004355a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec5e5
mov eax, dword [ebp - 4]
call fcn.0043828c
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret