Function at 0x4580d8
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.0040f770
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
mov edx, dword [ebp - 0xc]
call fcn.0040f770
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
je 0x4583b5
mov eax, dword [ebp - 4]
call fcn.004586cc
test eax, eax
je 0x4583b5
cmp dword [ebp - 0x18], 0xffffffff
je 0x458139
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x458146
mov eax, dword [ebp - 4]
call fcn.0042c4a8
jmp 0x4583b5
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.00457ef8
mov eax, dword [ebp - 4]
call fcn.004586cc
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 0x4583b5
mov eax, dword [ebp - 4]
test byte [eax + 0x23c], 1
je 0x45818f
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x224]
mov dword [ebp - 0x14], eax
jmp 0x458196
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.004292a8
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 0x458209
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.0040ec9c
jmp 0x458238
push 0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 4]
call fcn.004586cc
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.0040ec9c
mov eax, dword [ebp - 4]
call fcn.0042c480
xor edx, edx
push ebp
push 0x4583ae
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x45838e
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 0x458277
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jge 0x4582f0
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 0x4582d2
dec ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
mov edx, esi
call fcn.0040f714
cmp byte [eax + 0x47], 0
je 0x4582ce
mov edx, dword [eax + 0x34]
add edx, dword [ebp - 0x20]
call fcn.004290e0
dec esi
inc ebx
jne 0x4582ad
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 0x458354
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x3c]
sub edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00429124
mov esi, dword [ebp - 0x18]
inc esi
mov ebx, dword [ebp - 0x1c]
sub ebx, esi
jl 0x458332
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
mov edx, esi
call fcn.0040f714
cmp byte [eax + 0x47], 0
je 0x45832e
mov edx, dword [eax + 0x34]
sub edx, dword [ebp - 0x20]
call fcn.004290e0
inc esi
dec ebx
jne 0x45830d
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 0x458382
mov eax, dword [ebp - 4]
cmp byte [eax + 0x236], 0
jne 0x458382
mov eax, dword [0x473f68]
mov eax, dword [eax]
call fcn.00447e20
call sub.kernel32.dll_GetTickCount
cmp eax, dword [ebp - 0x28]
jb 0x45836c
inc dword [ebp - 0x10]
dec dword [ebp - 0x30]
jne 0x458263
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004297b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4583b5
mov eax, dword [ebp - 4]
call fcn.0042c488
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret