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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
movzx ecx, word [edi]
test cx, cx
je 0x6708aaf8
lea eax, [ecx - 1]
cmp ax, 0x11
ja 0x6708a9d8
mov eax, 1
shl eax, cl
test eax, 0x30180
jne 0x6708a9e8
test al, 0x5a
jne 0x6708aac0
test eax, 0x40200
je 0x6708a9d8
movzx eax, word [ebx + 4]
test ax, ax
jne 0x6708abb0
lea esi, [esi]
mov byte [ebx + 6], 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [edi + 8], 1
je 0x6708ab70
mov ecx, dword [ebx]
pxor xmm3, xmm3
pxor xmm2, xmm2
pxor xmm4, xmm4
movzx eax, word [edi + 0x1c]
movss xmm1, dword [edi + 0x14]
movss xmm0, dword [edi + 0x10]
lea edx, [eax + ecx]
cvtsi2ss xmm3, eax
cmp edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
mulss xmm1, xmm3
setae dl
divss xmm1, dword [0x670ac478]
mulss xmm1, dword [0x670ac47c]
sub eax, ecx
movzx ecx, ax
shr eax, 0x10
cvtsi2ss xmm2, eax
mulss xmm2, dword [0x670ac440]
cvtsi2ss xmm4, ecx
addss xmm1, xmm0
addss xmm2, xmm4
subss xmm1, xmm0
divss xmm2, xmm3
comiss xmm2, dword [0x670ac45c]
ja 0x6708aa67
mulss xmm1, xmm2
addss xmm0, xmm1
movss dword [ebx + 8], xmm0
movzx eax, word [edi]
cmp ax, 7
je 0x6708ac40
cmp ax, 0x10
je 0x6708ac40
movss dword [esi + 0x1c], xmm0
test dl, dl
jne 0x6708a9dc
movzx eax, word [ebx + 4]
test ax, ax
je 0x6708a9d8
cmp ax, 0xff
je 0x6708aab4
cmp ax, 0xffff
je 0x6708aab4
sub eax, 1
mov word [ebx + 4], ax
movzx eax, word [edi + 0xc]
add dword [ebx], eax
jmp 0x6708a9dc
mov edi, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x34], 0
mov edx, dword [esi + 0x44]
mov dword [esi + 0x24], edi
mov edi, dword [esi + 0x3c]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x30], edx
mov dword [esi + 0x28], edi
mov edi, dword [esi + 0x40]
mov dword [esi + 0x2c], edi
mov dword [esp], ecx
call fcn.670877b0
jmp 0x6708a9d8
movzx eax, byte [edi + 8]
mov edx, eax
and edx, 1
test al, 2
je 0x6708abd0
test dl, dl
jne 0x6708ac50
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x24]
mov ecx, dword [edx]
movzx eax, word [edx + 0xa]
mov esi, dword [ecx + 0x28]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
movzx esi, word [eax + 0x10]
test si, si
jne 0x6708ace5
mov esi, dword [edx + 0x34]
test esi, esi
je 0x6708ac50
mov eax, dword [ebp + 8]
test si, si
je 0x6708ad50
mov byte [eax + 0x22], 3
call sub.kernel32.dll_GetTickCount
mov edi, dword [ebp + 8]
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x24]
mov word [edi + 0x20], si
or dword [eax + 0x24], 0x10
jmp 0x6708a9d8
movzx edx, byte [edi + 0x10]
test dl, 4
je 0x6708acfd
movss xmm0, dword [edi + 0x14]
and edx, 1
je 0x6708aa6b
movzx eax, word [edi]
cmp ax, 7
je 0x6708acf1
cmp ax, 0x10
je 0x6708acf1
addss xmm0, dword [esi + 0x1c]
xor edx, edx
jmp 0x6708aa6b
cmp ax, 0xff
je 0x6708abbd
sub eax, 1
mov word [ebx + 4], ax
movzx eax, word [edi + 0xe]
add dword [ebx], eax
jmp 0x6708a9dc
mov eax, dword [esi + 0x20]
test eax, eax
je 0x6708abe6
movzx edx, dl
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.67087810
mov eax, dword [esi + 0x34]
test eax, eax
je 0x6708abfc
mov dword [esp], eax
call fcn.67087790
mov dword [esi + 0x34], 0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x14], 0
je 0x6708a9d8
xor eax, eax
lea esi, [esi]
nop
mov ecx, dword [esi]
lea edx, [eax + eax*2]
xor edi, edi
add eax, 1
shl edx, 2
mov word [ecx + edx + 4], di
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi]
mov byte [ecx + edx + 6], 1
cmp al, byte [edi + 0x14]
jb 0x6708ac10
jmp 0x6708a9d8
movss dword [esi + 0x18], xmm0
jmp 0x6708aa8c
mov eax, dword [ebp + 8]
xor edi, edi
mov eax, dword [eax]
cmp byte [eax + 0xb], 0
je 0x6708a9d8
mov dword [ebp + 0x18], ebx
lea esi, [esi]
mov esi, dword [ebp + 8]
lea ebx, [edi + edi*4]
shl ebx, 4
add ebx, dword [esi + 4]
imul esi, edi, 0x1c
add esi, dword [eax + 0x10]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x6708ac91
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.67087810
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x6708aca7
mov dword [esp], eax
call fcn.67087790
mov dword [ebx + 0x34], 0
xor eax, eax
cmp byte [esi + 0x14], 0
je 0x6708acce
nop
mov ecx, dword [ebx]
lea edx, [eax + eax*2]
add eax, 1
shl edx, 2
mov word [ecx + edx + 4], 0
mov ecx, dword [ebx]
mov byte [ecx + edx + 6], 1
cmp al, byte [esi + 0x14]
jb 0x6708acb0
mov eax, dword [ebp + 8]
add edi, 1
mov ebx, edi
mov eax, dword [eax]
cmp bl, byte [eax + 0xb]
jb 0x6708ac68
mov ebx, dword [ebp + 0x18]
jmp 0x6708a9d8
mov eax, dword [ebp + 8]
mov byte [eax + 0x22], 2
jmp 0x6708ab4e
addss xmm0, dword [esi + 0x18]
xor edx, edx
jmp 0x6708aa6b
pxor xmm0, xmm0
test dl, 8
je 0x6708ab82
movss xmm7, dword [edi + 0x14]
call fcn.67088b10
pxor xmm1, xmm1
movss xmm0, dword [edi + 0x18]
add eax, 0x80000000
subss xmm0, dword [edi + 0x14]
cvtsi2sd xmm1, eax
movzx edx, byte [edi + 0x10]
addsd xmm1, qword [0x670ac430]
mulsd xmm1, qword [0x670ac438]
cvtsd2ss xmm1, xmm1
mulss xmm0, xmm1
addss xmm0, xmm7
jmp 0x6708ab82
mov dword [esp], eax
call fcn.67089500
jmp 0x6708a9d8