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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040406c
mov edi, 0x4bae0c
xor eax, eax
push ebp
push 0x4917d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x28]
call fcn.00405248
test eax, eax
jl 0x4917bc
inc eax
mov dword [ebp - 0x18], eax
xor ebx, ebx
imul esi, ebx, 0x17
mov eax, dword [edi + 0x28]
cmp byte [eax + esi*4 + 0x24], 0
je 0x4917b2
mov eax, dword [edi + 0x28]
mov eax, dword [eax + esi*4 + 0x14]
call fcn.00405248
inc eax
jne 0x491215
mov eax, dword [edi + 0x28]
mov byte [eax + esi*4 + 0x24], 0
mov eax, dword [edi + 0x28]
mov eax, dword [eax + esi*4 + 0x20]
mov edx, dword [edi + 0x28]
mov edx, dword [edx + esi*4 + 0x14]
mov edx, dword [edx + eax*4]
mov eax, dword [0x4bad9c]
call fcn.004b1524
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x491240
mov dword [ebp - 8], 0xffffffff
mov eax, dword [edi + 0x28]
cmp byte [eax + esi*4 + 4], 1
jne 0x49146e
mov eax, dword [edi + 0x28]
cmp dword [eax + esi*4 + 0x10], 0
je 0x4917b2
mov eax, dword [edi + 0x28]
lea eax, [eax + esi*4]
mov dword [ebp - 0x1c], eax
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0x1c]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x38]
imul dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
add dword [edx + 0x48], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x2c]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x1c]
cmp eax, dword [edx + 0x48]
jge 0x4912cc
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x34]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x2c]
mov edx, dword [ebp - 0x1c]
sub dword [edx + 0x48], eax
mov eax, dword [ebp - 0x1c]
inc dword [eax + 0x34]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x2c]
call fcn.00405248
mov edx, dword [ebp - 0x1c]
cmp eax, dword [edx + 0x34]
jge 0x4912cc
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x48], 0
jge 0x49130a
mov eax, dword [ebp - 0x1c]
dec dword [eax + 0x34]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x34], 0
jge 0x4912f5
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x2c]
call fcn.00405248
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x2c]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x1c]
add dword [edx + 0x48], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
imul edx, ebx, 0x17
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + edx*4 + 0x30]
fmul qword [edx + eax*8 + 0x30]
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
imul edx, ebx, 0x17
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + edx*4 + 0x30]
fadd qword [edx + eax*8 + 0x38]
call fcn.00402a4c
mov eax, dword [edi + 0x28]
mov eax, dword [eax + esi*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [edi + 0x28]
mov edx, dword [edx + esi*4 + 0x30]
fmul qword [edx + eax*8 + 0x28]
fild dword [ebp - 0x14]
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
imul edx, ebx, 0x17
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + edx*4 + 0x30]
fmul qword [edx + eax*8 + 0x40]
faddp st(1)
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
imul edx, ebx, 0x17
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + edx*4 + 0x30]
fadd qword [edx + eax*8 + 0x48]
call fcn.00402a5c
mov dword [ebp - 0xc], eax
fild dword [ebp - 0x14]
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
imul edx, ebx, 0x17
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + edx*4 + 0x30]
fmul qword [edx + eax*8 + 8]
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
imul edx, ebx, 0x17
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + edx*4 + 0x30]
fadd qword [edx + eax*8 + 0x10]
call fcn.00402a4c
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
imul edx, ebx, 0x17
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + edx*4 + 0x30]
fmul qword [edx + eax*8]
fild dword [ebp - 0x14]
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
imul edx, ebx, 0x17
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + edx*4 + 0x30]
fmul qword [edx + eax*8 + 0x18]
faddp st(1)
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x34]
add eax, eax
lea eax, [eax + eax*4]
imul edx, ebx, 0x17
mov ecx, dword [edi + 0x28]
mov edx, dword [ecx + edx*4 + 0x30]
fadd qword [edx + eax*8 + 0x20]
call fcn.00402a5c
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x28]
mov edx, dword [ebp - 0x10]
mov dword [eax + esi*4 + 0x40], edx
mov eax, dword [edi + 0x28]
mov edx, dword [ebp - 0xc]
mov dword [eax + esi*4 + 0x44], edx
jmp 0x491482
mov eax, dword [edi + 0x28]
mov eax, dword [eax + esi*4 + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x28]
mov eax, dword [eax + esi*4 + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x28]
cmp dword [eax + esi*4 + 0x10], 0
jne 0x4914a0
mov eax, dword [ebp - 0xc]
sub eax, dword [0x4badc8]
add eax, dword [0x4badc0]
mov dword [ebp - 0xc], eax
jmp 0x4914d5
mov eax, dword [ebp - 0xc]
sub eax, dword [0x4badc8]
add eax, dword [0x4badc0]
imul eax, eax, 0x64
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x20]
imul eax, ebx, 0x17
mov edx, dword [edi + 0x28]
mov eax, dword [edx + eax*4 + 0x10]
add eax, 0x64
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fdivp st(1)
call fcn.00402a5c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*8 + 0x10]
dec eax
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov ecx, dword [edx + eax*8 + 0xc]
dec ecx
xor edx, edx
xor eax, eax
call fcn.004103b8
push esi
push edi
lea esi, [ebp - 0x34]
mov edi, 0x4badb0
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*8 + 0xc]
add eax, dword [ebp - 0x10]
dec eax
cmp eax, 0x25c
jle 0x49155d
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*8 + 0xc]
add eax, dword [ebp - 0x10]
sub eax, 0x25b
sub dword [0x4badb8], eax
cmp dword [ebp - 0xc], 0
jge 0x4916b5
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*8 + 0x10]
add eax, dword [ebp - 0xc]
dec eax
test eax, eax
jle 0x4917a6
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*8 + 0x10]
add eax, dword [ebp - 0xc]
dec eax
cmp eax, 0x1e5
jle 0x49163e
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*8 + 0x10]
dec eax
mov edx, dword [ebp - 8]
shl edx, 2
mov ecx, dword [0x4bad9c]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + edx*8 + 0x10]
add edx, dword [ebp - 0xc]
dec edx
sub edx, 0x1e5
sub eax, edx
push eax
lea eax, [ebp - 0x34]
push eax
mov edx, dword [ebp - 0xc]
neg edx
mov ecx, dword [0x4badb8]
xor eax, eax
call fcn.004103b8
push esi
push edi
lea esi, [ebp - 0x34]
mov edi, 0x4badb0
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x10]
push eax
push 5
push 0xff
push 0x4badb0
push 0
push 0
push 0
mov eax, dword [edi + 0x28]
mov eax, dword [eax + esi*4 + 0x20]
mov edx, dword [edi + 0x28]
mov edx, dword [edx + esi*4 + 0x14]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebp - 4]
mov eax, dword [0x4bad9c]
call fcn.004b293c
jmp 0x4917a6
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*8 + 0x10]
dec eax
push eax
lea eax, [ebp - 0x34]
push eax
mov edx, dword [ebp - 0xc]
neg edx
mov ecx, dword [0x4badb8]
xor eax, eax
call fcn.004103b8
push esi
push edi
lea esi, [ebp - 0x34]
mov edi, 0x4badb0
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x10]
push eax
push 5
push 0xff
push 0x4badb0
push 0
push 0
push 0
mov eax, dword [edi + 0x28]
mov eax, dword [eax + esi*4 + 0x20]
mov edx, dword [edi + 0x28]
mov edx, dword [edx + esi*4 + 0x14]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebp - 4]
mov eax, dword [0x4bad9c]
call fcn.004b293c
jmp 0x4917a6
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*8 + 0x10]
add eax, dword [ebp - 0xc]
dec eax
cmp eax, 0x1e5
jge 0x491711
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
add eax, 5
push eax
push 0xff
push 0x4badb0
push 0
push 0
push 0
mov eax, dword [edi + 0x28]
mov eax, dword [eax + esi*4 + 0x20]
mov edx, dword [edi + 0x28]
mov edx, dword [edx + esi*4 + 0x14]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebp - 4]
mov eax, dword [0x4bad9c]
call fcn.004b293c
jmp 0x4917a6
mov eax, dword [ebp - 8]
shl eax, 2
mov edx, dword [0x4bad9c]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*8 + 0x10]
sub eax, 2
mov edx, dword [ebp - 8]
shl edx, 2
mov ecx, dword [0x4bad9c]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + edx*8 + 0x10]
add edx, dword [ebp - 0xc]
dec edx
sub edx, 0x1e5
sub eax, edx
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [0x4badb8]
xor edx, edx
xor eax, eax
call fcn.004103b8
push esi
push edi
lea esi, [ebp - 0x34]
mov edi, 0x4badb0
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
add eax, 5
push eax
push 0xff
push 0x4badb0
push 0
push 0
push 0
mov eax, dword [edi + 0x28]
mov eax, dword [eax + esi*4 + 0x20]
mov edx, dword [edi + 0x28]
mov edx, dword [edx + esi*4 + 0x14]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebp - 4]
mov eax, dword [0x4bad9c]
call fcn.004b293c
call sub.kernel32.dll_GetTickCount
mov edx, dword [edi + 0x28]
mov dword [edx + esi*4 + 0x4c], eax
inc ebx
dec dword [ebp - 0x18]
jne 0x4911ed
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4917d9
lea eax, [ebp - 4]
call fcn.00403c38
ret