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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeb8
mov ebx, eax
mov ebp, 1
lea eax, [ebx + 0xd4]
lea edx, [ebx + 0x174]
mov dword [eax], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 8], 0xffffffff
mov dword [eax + 0xc], 0xffffffff
mov dword [edx], 0xffffffff
inc ebp
add edx, 4
add eax, 0x10
cmp ebp, 0xb
jne 0x41f011
mov al, byte [ebx + 0x90]
cmp al, 1
jl 0x41f6f3
movsx edx, al
mov eax, dword [0x4be4fc]
cmp byte [eax + edx - 1], 0xff
je 0x41f06b
mov eax, dword [0x4be5f4]
cmp dword [eax + edx*4 - 4], 0
je 0x41f6f3
mov eax, dword [0x4be784]
cmp byte [eax + 0x185b], 0
jne 0x41f08b
mov eax, dword [0x4be784]
cmp byte [eax + 0x185a], 0
je 0x41f6f3
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
mov edx, dword [eax + 0x3c]
mov dword [esp], edx
mov edx, dword [eax + 0x40]
mov dword [esp + 4], edx
movsx eax, byte [ebx + 0x90]
mov edx, dword [0x4becf0]
movzx eax, word [edx + eax*2 + 0x54]
mov dword [esp + 0x134], eax
fild dword [esp + 0x134]
fild qword [esp]
fdivrp st(1)
call fcn.004028f4
mov edx, dword [0x4be7b0]
mov dword [edx], eax
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
lea edx, [eax + 0x15c]
mov eax, dword [0x4be7b0]
mov eax, dword [eax]
call fcn.004a2578
mov dword [esp + 8], eax
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
movzx eax, word [eax + 0x3fe]
mov dword [esp + 0x134], eax
fild dword [esp + 0x134]
fild qword [esp]
faddp st(1)
fsub dword [0x41f700]
movsx eax, byte [ebx + 0x90]
mov edx, dword [0x4becf0]
movzx eax, word [edx + eax*2 + 0x54]
mov dword [esp + 0x138], eax
fild dword [esp + 0x138]
fdivp st(1)
call fcn.004028f4
mov edx, dword [0x4be7b0]
mov dword [edx], eax
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
lea edx, [eax + 0x15c]
mov eax, dword [0x4be7b0]
mov eax, dword [eax]
call fcn.004a2578
mov dword [esp + 0xc], eax
mov byte [esp + 0x14], 0
mov ebp, dword [esp + 8]
mov eax, dword [esp + 0xc]
sub eax, ebp
jb 0x41f6f3
inc eax
mov dword [esp + 0x30], eax
movsx eax, byte [ebx + 0x90]
mov edx, dword [0x4be4fc]
cmp byte [edx + eax - 1], 0xff
jne 0x41f1b4
cmp ebp, 2
jb 0x41f6e8
cmp ebp, 0xffffffff
je 0x41f6e8
inc byte [esp + 0x14]
cmp byte [esp + 0x14], 0xa
ja 0x41f6f3
xor eax, eax
mov dword [esp + 0x10], eax
mov edi, 0x4c0bfc
mov esi, edi
xor eax, eax
mov al, byte [esi]
movsx edx, byte [ebx + 0x90]
cmp ax, dx
jne 0x41f27a
mov eax, dword [esi + 8]
cdq
push edx
push eax
mov eax, ebp
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x41f200
cmp eax, dword [esp]
pop edx
pop eax
jne 0x41f27a
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, dword [esi + 4]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x41f228
cmp eax, 0x3a98
jae 0x41f27a
jmp 0x41f22a
jge 0x41f27a
cmp byte [esi + 1], 0
je 0x41f23d
xor eax, eax
mov al, byte [esp + 0x14]
mov dword [ebx + eax*4 + 0x170], ebp
xor eax, eax
mov al, byte [esp + 0x14]
add eax, eax
mov edx, dword [esi + 0xc]
mov dword [ebx + eax*8 + 0xc4], edx
mov edx, dword [esi + 0x10]
mov dword [ebx + eax*8 + 0xc8], edx
mov edx, dword [esi + 0x14]
mov dword [ebx + eax*8 + 0xcc], edx
mov edx, dword [esi + 0x18]
mov dword [ebx + eax*8 + 0xd0], edx
call sub.kernel32.dll_GetTickCount
mov dword [esi + 4], eax
jmp 0x41f6e8
inc dword [esp + 0x10]
add edi, 0x1c
cmp dword [esp + 0x10], 5
jne 0x41f1d7
movsx eax, byte [ebx + 0x90]
mov edx, dword [0x4be4fc]
cmp byte [edx + eax - 1], 0xff
jne 0x41f45a
mov edx, dword [0x4be48c]
cmp dword [edx + eax*4 - 4], 0
je 0x41f6f3
movsx eax, byte [ebx + 0x90]
mov edx, dword [0x4be48c]
mov eax, dword [edx + eax*4 - 4]
add eax, 0x10
mov edx, ebp
shl edx, 2
add eax, edx
mov eax, dword [eax]
and eax, 0xffffff
test eax, eax
jne 0x41f2ff
mov eax, dword [0x4be784]
cmp byte [eax + 0x185b], 0
je 0x41f664
xor eax, eax
mov al, byte [esp + 0x14]
mov dword [ebx + eax*4 + 0x170], ebp
jmp 0x41f664
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x1f]
push edx
lea edx, [esp + 0x24]
push edx
mov ecx, eax
dec ecx
lea edx, [esp + 0x44]
mov eax, ebx
call fcn.0041ecc0
mov edx, eax
cmp byte [esp + 0x17], 0
jne 0x41f34e
mov eax, dword [0x4be784]
cmp byte [eax + 0x185b], 0
je 0x41f664
xor eax, eax
mov al, byte [esp + 0x14]
mov dword [ebx + eax*4 + 0x170], ebp
jmp 0x41f664
cmp ebp, edx
jne 0x41f664
fild qword [esp + 0x20]
fcomp dword [0x41f704]
fnstsw ax
sahf
jb 0x41f664
cmp byte [esp + 0x18], 0
jne 0x41f664
fild qword [esp + 0x28]
fild qword [esp + 0x20]
fcompp
fnstsw ax
sahf
ja 0x41f664
push dword [esp + 0x24]
push dword [esp + 0x24]
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
fild dword [eax + 0x174]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.004af060
test eax, eax
jle 0x41f664
push dword [esp + 0x24]
push dword [esp + 0x24]
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
fild dword [eax + 0x174]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.004af060
mov dword [esp + 0x134], eax
fild dword [esp + 0x134]
fstp xword [esp + 0x13c]
wait
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
lea edx, [eax + 0x15c]
mov eax, ebp
call fcn.004a465c
fld xword [esp + 0x13c]
faddp st(1)
xor eax, eax
mov al, byte [esp + 0x14]
mov esi, eax
add esi, esi
fistp qword [ebx + esi*8 + 0xc4]
wait
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
lea edx, [eax + 0x15c]
lea eax, [ebp + 1]
call fcn.004a465c
fsub dword [0x41f700]
fistp qword [ebx + esi*8 + 0xcc]
wait
jmp 0x41f664
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
cmp dword [eax + 0x17c], 0
je 0x41f6f3
cmp ebp, 2
jb 0x41f6f3
movsx edx, word [ebx + 0x92]
mov edx, dword [eax + 0x160]
inc edx
cmp ebp, edx
ja 0x41f6f3
lea edx, [esp + 0x19]
push edx
movsx edx, byte [ebx + 0x90]
mov ecx, dword [0x4be4fc]
mov cl, byte [ecx + edx - 1]
movsx edx, word [ebx + 0x92]
add eax, 0x15c
mov edx, ebp
call fcn.004a3580
mov eax, dword [0x4be784]
cmp byte [eax + 0x185b], 0
je 0x41f4e4
cmp byte [esp + 0x19], 0
jne 0x41f4e4
xor eax, eax
mov al, byte [esp + 0x14]
mov dword [ebx + eax*4 + 0x170], ebp
jmp 0x41f664
mov eax, dword [0x4be784]
cmp byte [eax + 0x185a], 0
je 0x41f664
cmp byte [esp + 0x19], 0xff
jne 0x41f664
movsx eax, word [ebx + 0x92]
mov esi, dword [eax*4 + 0x4bfc18]
lea edx, [esi + 0x15c]
movsx eax, word [ebx + 0x92]
mov eax, dword [esi + 0x24]
call fcn.004a2578
cmp ebp, eax
jne 0x41f56c
mov eax, dword [0x4bed04]
cmp byte [eax], 0
je 0x41f56c
mov edx, dword [0x4be3a4]
lea eax, [esp + 0x34]
call fcn.004b81b0
cmp byte [ebx + 0x90], 0x1a
jle 0x41f551
cmp byte [esp + 0x34], 0
je 0x41f55a
lea eax, [esp + 0x34]
call fcn.004aedb4
mov eax, dword [0x4bed04]
push eax
lea eax, [esp + 0x38]
push eax
call sub.kernel32.dll_lstrcatA
jmp 0x41f5b0
push 0
lea eax, [esp + 0x38]
push eax
movsx eax, word [ebx + 0x92]
mov esi, dword [eax*4 + 0x4bfc18]
lea edx, [esi + 0x15c]
mov eax, ebp
call fcn.004a25d8
mov ecx, eax
movsx eax, word [ebx + 0x92]
lea edx, [esi + 0x15c]
mov al, byte [ebx + 0x90]
call fcn.004a2448
cmp al, 1
jne 0x41f664
push 0
lea eax, [esp + 0x19]
push eax
lea eax, [esp + 0x1e]
push eax
lea eax, [esp + 0x28]
push eax
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
lea ecx, [eax + 0x15c]
mov dl, byte [ebx + 0x90]
lea eax, [esp + 0x44]
call fcn.004a5098
cmp eax, 0xfffffffd
jae 0x41f664
cmp byte [esp + 0x16], 0
jne 0x41f664
cmp word [esp + 0x1c], 0
jbe 0x41f664
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
lea edx, [eax + 0x15c]
mov eax, ebp
call fcn.004a465c
movzx eax, word [esp + 0x1c]
mov dword [esp + 0x134], eax
fild dword [esp + 0x134]
faddp st(1)
xor eax, eax
mov al, byte [esp + 0x14]
mov esi, eax
add esi, esi
fistp qword [ebx + esi*8 + 0xc4]
wait
movsx eax, word [ebx + 0x92]
mov eax, dword [eax*4 + 0x4bfc18]
lea edx, [eax + 0x15c]
lea eax, [ebp + 1]
call fcn.004a465c
fsub dword [0x41f700]
fistp qword [ebx + esi*8 + 0xcc]
wait
xor eax, eax
mov al, byte [0x4c0c88]
mov edx, eax
shl eax, 3
sub eax, edx
lea esi, [eax*4 + 0x4c0bfc]
mov al, byte [ebx + 0x90]
mov byte [esi], al
mov dword [esi + 8], ebp
xor eax, eax
mov al, byte [esp + 0x14]
cmp dword [ebx + eax*4 + 0x170], 0xffffffff
setne dl
mov byte [esi + 1], dl
add eax, eax
mov edx, dword [ebx + eax*8 + 0xc4]
mov dword [esi + 0xc], edx
mov edx, dword [ebx + eax*8 + 0xc8]
mov dword [esi + 0x10], edx
xor eax, eax
mov al, byte [esp + 0x14]
add eax, eax
mov edx, dword [ebx + eax*8 + 0xcc]
mov dword [esi + 0x14], edx
mov edx, dword [ebx + eax*8 + 0xd0]
mov dword [esi + 0x18], edx
call sub.kernel32.dll_GetTickCount
mov dword [esi + 4], eax
inc byte [0x4c0c88]
cmp byte [0x4c0c88], 5
jne 0x41f6e8
mov byte [0x4c0c88], 0
inc ebp
dec dword [esp + 0x30]
jne 0x41f197
add esp, 0x148
pop ebp
pop edi
pop esi
pop ebx
ret