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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x763480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xb8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0xd8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
movd xmm1, dword [ebp + 0xc]
cvtdq2ps xmm1, xmm1
divss xmm0, xmm1
movss xmm1, dword [0x69d1f0]
comiss xmm1, xmm0
movss dword [ebp - 0xc0], xmm0
jbe 0x507e61
push 0x68
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.006279a0
mov eax, dword [ebx]
lea ecx, [ebp - 0xb0]
add esp, 0xc
mov dword [ebp - 0xb0], 0x6c
push 0
push 0x811
push ecx
push 0
push ebx
call dword [eax + 0x64]
test eax, eax
js 0x507e8a
mov eax, dword [ebp - 0xb8]
test eax, eax
jne 0x507aec
mov eax, dword [edi + 0xc]
imul eax, dword [ebp - 0xa0]
push eax
call fcn.00633555
add esp, 4
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x507e3a
mov ecx, dword [edi + 0xc]
imul ecx, dword [ebp - 0xa0]
push ecx
push dword [ebp - 0x8c]
push eax
call fcn.00627190
mov eax, dword [ebp - 0xb8]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xbc], eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
movss xmm2, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0x8c]
mov dword [ebp - 0xb4], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x69d270]
mov eax, ecx
shr eax, 8
movzx eax, al
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm2
cvttss2si edx, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [ebp - 0xcc], edx
addsd xmm0, qword [eax*8 + 0x69d270]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm2
cvttss2si eax, xmm0
mov dword [ebp - 0xd0], eax
movzx eax, cl
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
cmp dword [edi + 0xc], 0
addsd xmm0, qword [eax*8 + 0x69d270]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm2
cvttss2si eax, xmm0
mov dword [ebp - 0xd4], eax
jle 0x507ce1
mov ecx, dword [edi + 8]
mov esi, dword [ebp - 0xbc]
nop word [eax + eax]
mov dword [ebp - 0xbc], 0
test ecx, ecx
jle 0x507c9b
movss xmm1, dword [0x69d1f0]
movd xmm4, dword [ebp - 0xd0]
subss xmm1, xmm2
movd xmm3, edx
movd xmm5, eax
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
mov edx, dword [esi]
mov eax, edx
shr eax, 0x10
add esi, 4
movzx eax, al
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x69d270]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm0, xmm3
cvttss2si eax, xmm0
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x69d270]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm0, xmm4
cvttss2si eax, xmm0
movzx eax, al
or ecx, eax
movzx eax, dl
shl ecx, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x69d270]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm0, xmm5
cvttss2si eax, xmm0
movzx eax, al
or ecx, eax
mov eax, dword [ebp - 0xbc]
mov dword [ebx], ecx
inc eax
mov ecx, dword [edi + 8]
add ebx, 4
mov dword [ebp - 0xbc], eax
cmp eax, ecx
jl 0x507be7
mov eax, dword [ebp - 0xa0]
cdq
and edx, 3
add eax, edx
mov edx, dword [ebp - 0xcc]
sar eax, 2
sub eax, ecx
shl eax, 2
add esi, eax
add ebx, eax
mov eax, dword [ebp - 0xb4]
inc eax
cmp eax, dword [edi + 0xc]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xd4]
jl 0x507bb0
mov esi, dword [ebp - 0xd8]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xc4]
push ebx
mov ebx, dword [ebp - 0xc4]
push ebx
mov eax, dword [eax]
call dword [eax + 0x80]
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.005070f0
mov eax, dword [edi + 0x20]
lea edx, [ebp - 0x14]
push 0
push 0x1000000
push 0
mov ecx, dword [eax]
push ebx
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jns 0x507d91
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebx]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xc8]
push eax
push ebx
call dword [ecx + 0x44]
test eax, eax
js 0x507d83
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0xcc0020
push dword [edi + 0xc]
push dword [edi + 8]
push 0
push 0
push dword [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0xb4]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp - 0xc8]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x68]
push dword [ebp - 0xb4]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00507060
mov ebx, dword [ebp - 0xcc]
lea eax, [ebp - 0x24]
shl ebx, 8
mov ecx, edi
or ebx, dword [ebp - 0xd0]
shl ebx, 8
or ebx, dword [ebp - 0xd4]
push ebx
push eax
call fcn.005071a0
push ebx
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.005071a0
mov edx, dword [edi + 0x24]
test edx, edx
je 0x507df6
movss xmm0, dword [ebp - 0xc0]
mulss xmm0, dword [0x6b5640]
mov ecx, dword [edx]
cvttss2si eax, xmm0
push eax
push edx
call dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movd xmm1, esi
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm0, xmm1
movd xmm1, dword [ebp + 0xc]
cvtdq2ps xmm1, xmm1
divss xmm0, xmm1
movss xmm1, dword [0x69d1f0]
comiss xmm1, xmm0
movss dword [ebp - 0xc0], xmm0
jbe 0x507e61
mov ebx, dword [ebp - 0xc4]
jmp 0x507a66
push dword [ebp - 0x8c]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x80]
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005df41a
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp - 0xb8]
call fcn.0063353a
add esp, 4
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00507240
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.005071a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005df41a
mov esp, ebp
pop ebp
ret 0xc