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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x54c39c]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x18], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
call esi
mov edx, dword [ebx + 0x58]
mov ecx, eax
mov dword [ebx + 0x5c], ecx
cmp ecx, edx
jl 0x4800f5
mov edi, dword [ebx + 0x50]
lea eax, [edi + edx]
cmp ecx, eax
jl 0x480067
lea eax, [edi + edx]
add eax, dword [ebx + 0x54]
cmp ecx, eax
lea ecx, [ebx + 4]
jge 0x48004e
mov edi, dword [ebx + 0x60]
call fcn.0042bd40
mov ecx, eax
lea eax, [edi + 1]
cdq
idiv ecx
push edi
mov ecx, ebx
mov esi, edx
call fcn.00480180
mov edi, eax
mov ecx, ebx
push esi
mov dword [esp + 0x1c], edi
call fcn.00480180
mov dword [esp + 0x10], eax
test edi, edi
je 0x4800f5
test eax, eax
je 0x4800f5
mov ecx, dword [ebx + 0x5c]
sub ecx, dword [ebx + 0x50]
sub ecx, dword [ebx + 0x58]
movd xmm0, dword [ebx + 0x54]
cvtdq2pd xmm0, xmm0
mov edi, dword [ebx + 0x48]
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
divsd xmm1, xmm0
movsd xmm0, qword [0x512c40]
subsd xmm1, xmm0
mulsd xmm1, xmm1
subsd xmm0, xmm1
call fcn.004f0ef0
mov ecx, dword [esp + 0x14]
movd xmm1, edi
cvtdq2pd xmm1, xmm1
mov eax, dword [ecx + 0x38]
mov esi, dword [ecx + 0x3c]
mov ecx, dword [ecx + 0x44]
mov dword [esp + 0x5c], eax
lea edx, [eax + edi]
mov dword [esp + 0x60], esi
mulsd xmm0, xmm1
mov eax, edx
mov dword [esp + 0x40], esi
mov esi, dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x44], edx
cvttsd2si ebx, xmm0
mov dword [esp + 0x48], ecx
xorps xmm0, xmm0
sub eax, ebx
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x64], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
push eax
push 0x18
push dword [esp + 0x20]
movups xmmword [esp + 0x88], xmm0
movups xmmword [esp + 0x30], xmm0
call esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x50], 0
mov eax, dword [edi + 0x38]
add eax, ebx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x24]
push eax
push 0x18
push dword [esp + 0x18]
call esi
mov eax, dword [edi + 0x38]
mov edi, dword [esp + 0x1c]
push 0
mov esi, dword [esp + 0x24]
push 0
push 0
push 0
push 0xff
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
push 1
mov dword [esp + 0x90], eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x68]
mov dword [esp + 0x8c], 0
push eax
push edi
lea eax, [esp + 0x80]
mov dword [esp + 0x98], ebx
push eax
push dword [esp + 0x40]
push esi
call fcn.00438580
push 0
push 0
push 0
push 0
push 0xff
push 1
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xb8]
push eax
push edi
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x68]
push esi
call fcn.00438580
add esp, 0x60
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret 0xc
inc dword [ebx + 0x60]
call fcn.0042bd40
cmp dword [ebx + 0x60], eax
jl 0x480062
mov dword [ebx + 0x60], 0
call esi
mov dword [ebx + 0x58], eax
push dword [ebx + 0x60]
xorps xmm0, xmm0
mov ecx, ebx
movups xmmword [esp + 0x28], xmm0
movq qword [esp + 0x38], xmm0
call fcn.00480180
mov esi, eax
test esi, esi
je 0x4800f5
lea eax, [esp + 0x24]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4800f5
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
mov edi, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push 0xff
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x40]
push 1
mov dword [esp + 0x60], eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x58], 0
push eax
push edi
push dword [esp + 0x34]
mov dword [esp + 0x68], 0
push esi
mov esi, dword [esp + 0x4c]
push esi
movups xmmword [esp + 0xac], xmm0
call fcn.00438580
add esp, 0x30
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret 0xc