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

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x4526b0
mov eax, dword [esi + 0x80]
lea edi, [esi + 0x80]
push eax
call fcn.00422786
add esp, 8
test eax, eax
je 0x41a455
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.00434737
lea edi, [esi + 0xe8]
mov ecx, edi
call fcn.0040b5d0
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.0040bc00
mov ebp, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x30]
sub edi, ebp
sub ebx, ecx
mov dword [esp + 0x10], edi
test ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x3f800000
jle 0x41a2c9
fild dword [esp + 0x14]
fidiv dword [esp + 0x10]
fstp dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub ebp, ecx
cmp edi, ebp
mov dword [esp + 0x10], ebp
jle 0x41a2dd
mov edi, ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub ecx, edx
cmp ebx, ecx
mov dword [esp + 0x14], ecx
jle 0x41a2f1
mov ebx, ecx
mov edx, dword [esi + 0xd4]
mov eax, dword [edx + 0x138]
dec eax
cmp eax, 4
ja case.default.0x41a303
jmp dword [eax*4 + 0x41a460]
add edi, edi
add ebx, ebx
jmp case.default.0x41a303
mov eax, ebp
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
jmp 0x41a33f
mov eax, ebp
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x41a33f
fild dword [esp + 0x10]
fmul qword [0x442bd8]
call fcn.00422888
mov edi, eax
jmp 0x41a33f
mov edi, ebp
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.00422888
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esi + 0xd8]
mov dl, byte [eax + 0x20]
test dl, dl
je 0x41a3a3
cmp ebp, edi
jne 0x41a36b
xor ebp, ebp
jmp 0x41a379
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub ebp, edi
xor edx, edx
div ebp
mov ebp, edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
sub eax, edx
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x41a38f
xor eax, eax
jmp 0x41a3bf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x14]
xor edx, edx
sub ecx, ebx
div ecx
mov eax, edx
jmp 0x41a3bf
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
sub eax, edi
sub eax, edx
cdq
sub eax, edx
mov ebp, eax
mov eax, ecx
sub eax, ebx
cdq
sub eax, edx
sar ebp, 1
sar eax, 1
mov ecx, dword [esi + 0xcc]
mov dword [esp + 0x30], eax
mov dword [esi + 0xc0], ecx
mov edx, dword [esi + 0xd8]
add eax, ebx
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0xd0]
lea ecx, [esi + 0x84]
mov dword [esp + 0x38], eax
push 0x7d4
lea eax, [esp + 0x30]
push esi
mov dword [ecx + 0x40], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], ebp
push eax
add ebp, edi
push 0x50000100
push 0x4526b0
mov dword [ecx + 0x44], edx
mov dword [esp + 0x48], ebp
call fcn.00438f94
mov ecx, dword [esi + 0xa0]
lea ebp, [esi + 0xe8]
push ecx
mov ecx, ebp
call fcn.0040b730
push ebx
push edi
push 0
push 0
mov ecx, ebp
call fcn.0040bb50
mov ecx, ebp
call fcn.0040b990
push ebx
push edi
push 0
push 0
mov ecx, ebp
call fcn.0040bb50
mov ecx, esi
call fcn.0041a680
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret