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

Disassembly:
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
mov dword [esp + 0x20], 0
call edi
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fstp dword [esp + 0x28]
fild dword [esp + 0xf0]
fstp dword [esp + 0x24]
call edi
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fsub dword [esp + 0x28]
fdiv dword [esp + 0x24]
fstp dword [esp + 0x1c]
fld1
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x498204
lea ebx, [ebx]
push 0x6c
lea eax, [esp + 0x80]
push 0
push eax
call fcn.0059fdd0
mov edi, dword [esp + 0xf8]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x64]
add esp, 0xc
push 0
push 0x811
lea edx, [esp + 0x84]
push edx
push 0
push edi
mov dword [esp + 0x90], 0x6c
call eax
test eax, eax
jl 0x498233
cmp dword [esp + 0x20], 0
jne 0x497f5b
mov ecx, dword [esi + 0xc]
imul ecx, dword [esp + 0x8c]
push ecx
call fcn.005a3878
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x498240
mov edx, dword [esi + 0xc]
imul edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0xa0]
push edx
push ecx
push eax
call fcn.005a02a0
add esp, 0xc
mov edx, dword [esp + 0xf4]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0xa0]
shr edx, 0x10
and edx, 0xff
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fld dword [esp + 0x1c]
fld st(0)
fmulp st(2)
fxch st(1)
call fcn.005a0a00
mov ebx, eax
mov eax, dword [esp + 0xf4]
shr eax, 8
and eax, 0xff
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov dword [esp + 0x30], ebx
fmul st(1)
call fcn.005a0a00
movzx ecx, byte [esp + 0xf4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
fild dword [esp + 0x18]
fmul st(1)
call fcn.005a0a00
cmp dword [esi + 0xc], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], 0
jle 0x49811f
mov ecx, dword [esi + 8]
fld1
xor edx, edx
test ecx, ecx
jle 0x4980f0
fild dword [esp + 0x30]
fstp dword [esp + 0x14]
fild dword [esp + 0x2c]
fstp dword [esp + 0x38]
fld st(1)
fsubr st(1)
fild dword [esp + 0x18]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fld dword [esp + 0x38]
fld dword [esp + 0x10]
mov ecx, dword [edi]
fnstcw word [esp + 0x14]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x10], eax
fmul st(4)
inc edx
add edi, 4
add ebp, 4
fadd st(3)
fldcw word [esp + 0x10]
fistp dword [esp + 0x10]
movzx eax, byte [esp + 0x10]
movzx ebx, al
fldcw word [esp + 0x14]
mov eax, ecx
shr eax, 8
and eax, 0xff
mov dword [esp + 0x10], eax
movzx ecx, cl
fild dword [esp + 0x10]
fnstcw word [esp + 0x14]
shl ebx, 8
movzx eax, word [esp + 0x14]
fmul st(4)
or eax, 0xc00
mov dword [esp + 0x10], eax
fadd st(2)
fldcw word [esp + 0x10]
fistp dword [esp + 0x10]
movzx eax, byte [esp + 0x10]
or ebx, eax
mov dword [esp + 0x10], ecx
fldcw word [esp + 0x14]
shl ebx, 8
fild dword [esp + 0x10]
fnstcw word [esp + 0x14]
fmul st(4)
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x10], eax
fadd st(1)
fldcw word [esp + 0x10]
fistp dword [esp + 0x10]
movzx eax, byte [esp + 0x10]
movzx ecx, al
fldcw word [esp + 0x14]
or ebx, ecx
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 8]
cmp edx, ecx
jl 0x498019
mov ebx, dword [esp + 0x30]
fstp st(3)
fstp st(1)
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x8c]
cdq
and edx, 3
add eax, edx
sar eax, 2
sub eax, dword [esi + 8]
add eax, eax
add eax, eax
add edi, eax
add ebp, eax
mov eax, dword [esp + 0x34]
inc eax
cmp eax, dword [esi + 0xc]
mov dword [esp + 0x34], eax
jl 0x497fe7
fstp st(1)
mov edi, dword [esp + 0xec]
fstp st(0)
mov eax, dword [esp + 0xa0]
mov edx, dword [edi]
mov ecx, dword [edx + 0x80]
push eax
push edi
call ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004977b0
mov eax, dword [esi + 0x20]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push 0
push 0x1000000
push 0
push edi
lea ecx, [esp + 0x4c]
push ecx
push eax
call edx
test eax, eax
jge 0x49817a
lea eax, [esp + 0x3c]
push eax
push edi
mov ecx, esi
call fcn.004976e0
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00497850
shl ebx, 8
or ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x6c]
shl ebx, 8
or ebx, dword [esp + 0x18]
push ebx
push ecx
mov ecx, esi
call fcn.00497e00
push ebx
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.00497e00
cmp dword [esi + 0x24], 0
je 0x4981d9
fld dword [esp + 0x1c]
mov edi, dword [esi + 0x24]
fmul qword [0x60d488]
mov ebx, dword [edi]
call fcn.005a0a00
push eax
mov eax, dword [ebx + 0x1c]
push edi
call eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fsub dword [esp + 0x28]
fdiv dword [esp + 0x24]
fstp dword [esp + 0x1c]
fld1
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x497ed0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005a379b
add esp, 4
lea edx, [esp + 0x5c]
push edx
mov ecx, esi
call fcn.00497760
mov eax, dword [esp + 0xf4]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.00497e00
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret 0xc
mov edx, dword [esp + 0xa0]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x80]
push edx
push edi
call eax
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
add esp, 0xd8
ret 0xc