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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x100db040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
movaps xmm1, xmm3
push edi
mov edi, dword [ebp + 8]
movss dword [ebp - 0x34], xmm1
mov dword [ebp - 0x20], ecx
jne 0x1006df75
mov eax, dword [ebp + 0x14]
push esi
test eax, eax
jne 0x1006d828
mov eax, dword [edi + 0x1ec]
movss xmm4, dword [edi + 0x110]
movss xmm5, dword [edi + 0x114]
movss xmm2, dword [eax + 0x110]
movss xmm3, dword [eax + 0x114]
movaps xmm1, xmm2
movaps xmm0, xmm3
subss xmm1, xmm4
subss xmm0, xmm5
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm0
comiss xmm1, dword [0x100d1ee8]
movss dword [ebp - 0x2c], xmm1
jb 0x1006d6da
sub esp, 0x10
mov eax, 0x545ee4
movss dword [esp + 0xc], xmm3
movss dword [esp + 8], xmm2
movss dword [esp + 4], xmm5
movss dword [esp], xmm4
call eax
add esp, 4
mov eax, 0x546133
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
mov dword [esp + 8], 0x41a00000
movss dword [esp + 4], xmm0
movss xmm0, dword [edi + 0x124]
movss dword [esp], xmm0
call eax
fstp dword [edi + 0x124]
add esp, 0xc
lea esi, [edi + 0x188]
lea eax, [edi + 0x11c]
push esi
push eax
mov eax, 0x8f8471
call eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0xbc]
push esi
push eax
mov eax, 0x8f8a0f
call eax
movss xmm0, dword [ebp - 0x1c]
add esp, 0x14
addss xmm0, dword [edi + 0x110]
movss dword [edi + 0x110], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [edi + 0x114]
movss dword [edi + 0x114], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm0, dword [edi + 0x118]
movss dword [edi + 0x118], xmm0
call fcn.100a9631
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
test edx, edx
jne 0x1006d769
call eax
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x1006d76c
mov esi, dword [ebp - 0x20]
movss xmm0, dword [0x100d1ee8]
comiss xmm0, dword [ebp - 0x2c]
jbe 0x1006d7a1
call eax
mov ecx, dword [esi + 0x14]
add ecx, 0xfa0
cmp eax, ecx
ja 0x1006d7a1
mov eax, 1
mov dword [edi + 0xc0], 0
mov word [edi + 0x22], ax
jmp 0x1006def0
mov eax, 2
mov word [edi + 0x22], ax
call fcn.100a9631
and eax, 0x8000001f
jns 0x1006d7bd
dec eax
or eax, 0xffffffe0
add eax, 1
jne 0x1006def0
movss xmm0, dword [0x100d1ee8]
comiss xmm0, dword [ebp - 0x2c]
jbe 0x1006d7e7
call fcn.100a9631
and eax, reloc.WS2_32.dll_ntohs
jns 0x1006d7e2
dec eax
or eax, 0xfffffff0
inc eax
add eax, 0x30
jmp 0x1006d7fb
call fcn.100a9631
and eax, 0x8000001f
jns 0x1006d7f8
dec eax
or eax, 0xffffffe0
inc eax
sub eax, 0xffffff80
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov dword [edi + 0xbc], 0
xorps xmm0, xmmword [0x100d23f0]
mulss xmm0, dword [0x100d17c0]
movss dword [edi + 0xc0], xmm0
jmp 0x1006def0
cmp eax, 2
jl 0x1006daab
cmp dword [0x118d320], 4
jne 0x1006d858
mov eax, dword [edi + 0x1ec]
movss xmm0, dword [eax + 0x114]
addss xmm0, dword [0x100d1cac]
movss dword [edi + 0x114], xmm0
mov ecx, dword [edi + 0x1ec]
movss xmm7, dword [edi + 0x110]
movss xmm6, dword [edi + 0x114]
mulss xmm3, xmm1
mov byte [ebp - 0x21], 0
movss xmm0, dword [ecx + 0x74]
mulss xmm0, dword [0x100d1748]
movss dword [ebp - 0x30], xmm3
addss xmm0, dword [ecx + 0x118]
movss dword [edi + 0x118], xmm0
movss xmm4, dword [ecx + 0x110]
movss xmm5, dword [ecx + 0x114]
movaps xmm0, xmm4
subss xmm0, xmm7
movaps xmm2, xmm5
subss xmm2, xmm6
mulss xmm0, xmm0
mulss xmm2, xmm2
addss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
mulss xmm0, xmm1
movss dword [ebp - 0x20], xmm2
comiss xmm0, xmm2
jbe 0x1006d946
comiss xmm2, xmm3
jb 0x1006d996
sub esp, 0x10
mov eax, 0x545ee4
movss dword [esp + 0xc], xmm5
movss dword [esp + 8], xmm4
movss dword [esp + 4], xmm6
movss dword [esp], xmm7
call eax
add esp, 4
mov eax, 0x546133
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
mov dword [esp + 8], 0x41200000
movss dword [esp + 4], xmm0
movss xmm0, dword [edi + 0x124]
movss dword [esp], xmm0
call eax
mov eax, 2
mov byte [ebp - 0x21], 1
fstp dword [edi + 0x124]
add esp, 0xc
mov word [edi + 0x22], ax
jmp 0x1006d996
movss dword [edi + 0x110], xmm4
mov eax, dword [ecx + 0x114]
mov dword [edi + 0x114], eax
movss xmm0, dword [ecx + 0x118]
addss xmm0, dword [0x100d1dcc]
movss dword [edi + 0x118], xmm0
mov eax, dword [ecx + 0x11c]
mov dword [edi + 0x11c], eax
mov eax, dword [ecx + 0x120]
mov dword [edi + 0x120], eax
mov eax, dword [ecx + 0x124]
mov dword [edi + 0x124], eax
lea esi, [edi + 0x188]
lea eax, [edi + 0x11c]
push esi
push eax
mov eax, 0x8f8471
call eax
lea ecx, [ebp - 0x10]
push ecx
lea eax, [edi + 0xbc]
push esi
push eax
mov eax, 0x8f8a0f
call eax
movss xmm0, dword [ebp - 0x10]
add esp, 0x14
addss xmm0, dword [edi + 0x110]
movss xmm2, dword [ebp - 0x20]
comiss xmm2, dword [ebp - 0x30]
movss dword [edi + 0x110], xmm0
movss xmm0, dword [ebp - 0xc]
addss xmm0, dword [edi + 0x114]
movss dword [edi + 0x114], xmm0
movss xmm0, dword [ebp - 8]
addss xmm0, dword [edi + 0x118]
movss dword [edi + 0x118], xmm0
jbe 0x1006da70
movss xmm0, dword [ebp - 0x34]
addss xmm0, xmm0
movss dword [ebp - 0x30], xmm0
movaps xmm0, xmm2
call fcn.10042180
movss xmm3, dword [ebp - 0x20]
movaps xmm1, xmm0
movss xmm0, dword [ebp - 0x30]
mulss xmm0, xmm0
comiss xmm3, xmm0
jb 0x1006da41
mulss xmm1, dword [0x100d1848]
jmp 0x1006da73
movss xmm0, dword [ebp - 0x34]
mulss xmm0, dword [0x100d17ec]
addss xmm0, dword [ebp - 0x34]
mulss xmm0, xmm0
comiss xmm3, xmm0
jb 0x1006da66
mulss xmm1, dword [0x100d1838]
jmp 0x1006da73
mulss xmm1, dword [0x100d1830]
jmp 0x1006da73
xorps xmm1, xmm1
cmp byte [ebp - 0x21], 0
xorps xmm1, xmmword [0x100d23f0]
mov dword [edi + 0xbc], 0
movss dword [edi + 0xc0], xmm1
mov dword [edi + 0xc4], 0
jne 0x1006def0
xor eax, eax
mov word [edi + 0x22], ax
jmp 0x1006def0
mov esi, dword [edi + 0x1ec]
movss xmm7, dword [edi + 0x110]
movss xmm6, dword [edi + 0x114]
movss dword [ebp - 0x38], xmm6
movss xmm3, dword [esi + 0x110]
comiss xmm3, xmm7
movss xmm5, dword [esi + 0x114]
movaps xmm2, xmm3
movaps xmm1, xmm5
movss dword [ebp - 0x20], xmm3
subss xmm2, xmm7
movss dword [ebp - 0x40], xmm5
subss xmm1, xmm6
movaps xmm0, xmm2
movss dword [ebp - 0x2c], xmm2
movaps xmm4, xmm1
mulss xmm0, xmm2
mulss xmm4, xmm1
movss dword [ebp - 0x28], xmm1
addss xmm4, xmm0
movss dword [ebp - 0x3c], xmm4
ja 0x1006db1b
movaps xmm2, xmm7
subss xmm2, xmm3
comiss xmm5, xmm6
jbe 0x1006db25
movaps xmm6, xmm1
jmp 0x1006db29
subss xmm6, xmm5
movaps xmm1, xmm6
movaps xmm0, xmm2
call fcn.10042140
movss xmm2, dword [ebp - 0x34]
movaps xmm1, xmm0
movss xmm4, dword [0x100d1dac]
movaps xmm3, xmm2
mulss xmm3, xmm2
mulss xmm1, xmm4
movaps xmm0, xmm3
movss dword [ebp - 0x30], xmm3
mulss xmm0, xmm2
divss xmm1, dword [0x100d19a8]
mulss xmm0, xmm2
movss xmm2, dword [ebp - 0x3c]
comiss xmm0, xmm2
xorps xmm0, xmm0
jbe 0x1006dc69
comiss xmm2, xmm3
jb 0x1006dc5a
movss xmm5, dword [0x100d1824]
movss xmm2, dword [ebp - 0x20]
subss xmm2, xmm5
comiss xmm2, dword [edi + 0x110]
jbe 0x1006dbe0
movss xmm3, dword [esi + 0x114]
movss xmm6, dword [edi + 0x114]
movaps xmm7, xmm3
subss xmm7, xmm5
comiss xmm7, xmm6
jbe 0x1006dbd5
subss xmm4, xmm1
mov edx, 0x22
mov ecx, edi
xor eax, eax
movss dword [edi + 0x124], xmm4
mov word [edx + ecx], ax
jmp 0x1006dcb7
comiss xmm6, xmm7
jbe 0x1006dbea
addss xmm1, xmm0
jmp 0x1006dc52
movss xmm3, dword [ebp - 0x40]
movss xmm6, dword [ebp - 0x38]
movss xmm0, dword [edi + 0x110]
comiss xmm0, xmm2
jbe 0x1006dc26
subss xmm3, xmm5
comiss xmm6, xmm3
jbe 0x1006dc26
movss xmm0, dword [0x100d1e98]
mov edx, 0x22
subss xmm0, xmm1
mov ecx, edi
xor eax, eax
movss dword [edi + 0x124], xmm0
mov word [edx + ecx], ax
jmp 0x1006dcb7
movss xmm0, dword [edi + 0x110]
comiss xmm0, xmm2
mov eax, dword [edi + 0x1ec]
jbe 0x1006dc5a
movss xmm0, dword [eax + 0x114]
subss xmm0, xmm5
comiss xmm0, dword [edi + 0x114]
jbe 0x1006dc5a
addss xmm1, xmm4
movss dword [edi + 0x124], xmm1
mov edx, 0x22
mov ecx, edi
xor eax, eax
mov word [edx + ecx], ax
jmp 0x1006dcb7
movss xmm0, dword [ebp - 0x20]
movss dword [edi + 0x110], xmm0
mov eax, dword [esi + 0x114]
mov dword [edi + 0x114], eax
mov eax, dword [esi + 0x118]
mov dword [edi + 0x118], eax
mov eax, dword [esi + 0x11c]
mov dword [edi + 0x11c], eax
mov eax, dword [esi + 0x120]
mov dword [edi + 0x120], eax
mov eax, dword [esi + 0x124]
mov dword [edi + 0x124], eax
movss dword [ebp - 0x30], xmm3
lea esi, [edi + 0x188]
lea eax, [edi + 0x11c]
push esi
push eax
mov eax, 0x8f8471
call eax
lea ecx, [ebp - 0x10]
push ecx
lea eax, [edi + 0xbc]
push esi
push eax
mov eax, 0x8f8a0f
call eax
movss xmm0, dword [ebp - 0xc]
add esp, 0x14
addss xmm0, dword [edi + 0x114]
movss xmm2, dword [ebp - 0x10]
addss xmm2, dword [edi + 0x110]
movss xmm3, dword [ebp - 0x3c]
comiss xmm3, dword [ebp - 0x30]
movss dword [edi + 0x114], xmm0
movss xmm0, dword [ebp - 8]
addss xmm0, dword [edi + 0x118]
movss dword [ebp - 0x20], xmm2
movss dword [edi + 0x110], xmm2
movss dword [edi + 0x118], xmm0
jbe 0x1006dd9b
movss xmm0, dword [ebp - 0x34]
addss xmm0, xmm0
movss dword [ebp - 0x38], xmm0
movaps xmm0, xmm3
call fcn.10042180
movss xmm3, dword [ebp - 0x3c]
movaps xmm1, xmm0
movss xmm0, dword [ebp - 0x38]
movss xmm2, dword [ebp - 0x20]
mulss xmm0, xmm0
comiss xmm3, xmm0
jb 0x1006dd6c
mulss xmm1, dword [0x100d1848]
jmp 0x1006dd9e
movss xmm0, dword [ebp - 0x34]
mulss xmm0, dword [0x100d17ec]
addss xmm0, dword [ebp - 0x34]
mulss xmm0, xmm0
comiss xmm3, xmm0
jb 0x1006dd91
mulss xmm1, dword [0x100d1838]
jmp 0x1006dd9e
mulss xmm1, dword [0x100d1830]
jmp 0x1006dd9e
xorps xmm1, xmm1
comiss xmm3, dword [0x100d1eec]
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc4], 0
xorps xmm1, xmmword [0x100d23f0]
movss dword [edi + 0xc0], xmm1
jb 0x1006ded5
mov eax, dword [edi + 0x1ec]
mov esi, 0x168
movss xmm0, dword [eax + 0x110]
comiss xmm0, xmm2
jbe 0x1006de13
call fcn.100a9631
cdq
idiv esi
movss xmm1, dword [ebp - 0x2c]
movaps xmm2, xmm1
addss xmm2, dword [edi + 0x110]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm2, xmm0
movss dword [edi + 0x110], xmm2
jmp 0x1006de18
movss xmm1, dword [ebp - 0x2c]
mov eax, dword [edi + 0x1ec]
comiss xmm2, dword [eax + 0x110]
jbe 0x1006de50
addss xmm1, xmm2
movss dword [ebp - 0x2c], xmm1
call fcn.100a9631
cdq
idiv esi
movss xmm1, dword [ebp - 0x2c]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [edi + 0x110], xmm1
mov eax, dword [edi + 0x1ec]
movss xmm1, dword [edi + 0x114]
movss xmm0, dword [eax + 0x114]
comiss xmm0, xmm1
jbe 0x1006de98
call fcn.100a9631
cdq
idiv esi
movss xmm2, dword [ebp - 0x28]
movaps xmm1, xmm2
addss xmm1, dword [edi + 0x114]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movss dword [edi + 0x114], xmm1
jmp 0x1006de9d
movss xmm2, dword [ebp - 0x28]
mov eax, dword [edi + 0x1ec]
comiss xmm1, dword [eax + 0x114]
jbe 0x1006ded5
addss xmm2, xmm1
movss dword [ebp - 0x28], xmm2
call fcn.100a9631
cdq
idiv esi
movss xmm1, dword [ebp - 0x28]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [edi + 0x114], xmm1
cmp dword [0x118d320], 4
jne 0x1006def0
mov eax, dword [edi + 0x1ec]
mov eax, dword [eax + 0x118]
mov dword [edi + 0x118], eax
mov esi, dword [edi + 0x40]
add esi, 0xfffffb1a
push esi
call fcn.1003f0c0
mov eax, dword [edi + 0x1ec]
mov dword [ebp - 0x38], esi
addss xmm0, dword [eax + 0x118]
movss dword [edi + 0x118], xmm0
cmp esi, 0x1ac8
jl 0x1006df68
cmp esi, 0x1b90
jge 0x1006df68
lea eax, [esi - 0x1ad2]
cmp eax, 0x24
jbe 0x1006df68
lea eax, [ebp - 0x38]
mov ecx, 0x106b9bd0
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10042020
mov ecx, dword [ebp - 8]
mov eax, dword [0x106b9bd0]
cmp byte [ecx + 0xd], 0
jne 0x1006df58
cmp esi, dword [ecx + 0x10]
jge 0x1006df5a
mov ecx, eax
cmp ecx, eax
je 0x1006df68
xor eax, eax
cmp dword [ecx + 0x2c], eax
setne al
jmp 0x1006df6a
xor eax, eax
lea eax, [eax*2 - 1]
mov dword [edi + 0x58], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100a0150
mov esp, ebp
pop ebp
ret 0x14