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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x10129040]
xor eax, esp
mov dword [esp + 0x54], eax
cmp dword [ebp + 0x10], 0
movaps xmm1, xmm3
push esi
push edi
mov edi, dword [ebp + 8]
movss dword [esp + 0x14], xmm1
mov dword [esp + 0xc], ecx
jne 0x10083113
mov eax, dword [ebp + 0x14]
xorps xmm2, xmm2
test eax, eax
jne 0x100828f9
cmp dword [0x1030391c], 0
je 0x100823e1
mov ecx, dword [0x10129b90]
cmp ecx, 0xffffffff
jne 0x1008280b
xor eax, eax
mov esi, 0x81f6c7c
mov dword [esp + 0x14], eax
cmp byte [esi - 8], 0
je 0x100823ca
cmp byte [esi], 0
je 0x100823ca
mov eax, dword [edi + 0x1d8]
movss xmm1, dword [eax + 0xfc]
movss xmm0, dword [eax + 0x100]
subss xmm0, dword [esi + 0xf4]
subss xmm1, dword [esi + 0xf0]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x1008230c
sqrtsd xmm0, xmm0
jmp 0x10082311
call fcn.1010fc90
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x30], xmm0
movss xmm0, dword [edi + 0xfc]
movaps xmm1, xmm0
movss dword [esp + 0x20], xmm0
movss xmm0, dword [edi + 0x100]
subss xmm1, dword [esi + 0xf0]
movss dword [esp + 0x24], xmm0
subss xmm0, dword [esi + 0xf4]
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm0, xmm1
xorps xmm1, xmm1
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x10082368
sqrtsd xmm0, xmm0
jmp 0x1008236d
call fcn.1010fc90
mov ecx, dword [esi + 0x24]
mov eax, dword [0x1027f8a0]
sub ecx, 0x493
mov edx, dword [0x1027f8a4]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x28], xmm0
cmp eax, edx
je 0x100823c6
nop
cmp dword [eax], ecx
je 0x1008239d
add eax, 4
cmp eax, edx
jne 0x10082390
jmp 0x100823c6
movsd xmm1, qword [0x1011ff18]
cvtss2sd xmm0, xmm0
comisd xmm1, xmm0
ja 0x100827ef
movss xmm0, dword [0x101206c4]
comiss xmm0, dword [esp + 0x30]
ja 0x10082559
mov eax, dword [esp + 0x14]
inc eax
add esi, 0x350
mov dword [esp + 0x14], eax
cmp esi, 0x82c5cfc
jl 0x100822b5
mov eax, dword [edi + 0x1d8]
movss xmm4, dword [edi + 0xfc]
movss xmm5, dword [edi + 0x100]
movss xmm2, dword [eax + 0xfc]
movss xmm3, dword [eax + 0x100]
movaps xmm1, xmm2
movaps xmm0, xmm3
subss xmm1, xmm4
subss xmm0, xmm5
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm1, xmm0
comiss xmm1, dword [0x10120818]
movss dword [esp + 0x24], xmm1
jb 0x10082489
sub esp, 0x10
mov eax, 0x540c30
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, 0x540ea0
fstp dword [esp + 0x2c]
movss xmm0, dword [esp + 0x2c]
mov dword [esp + 8], 0x41a00000
movss dword [esp + 4], xmm0
movss xmm0, dword [edi + 0x110]
movss dword [esp], xmm0
call eax
fstp dword [edi + 0x110]
add esp, 0xc
lea esi, [edi + 0x174]
lea eax, [edi + 0x108]
push esi
push eax
mov eax, 0x959ce0
call eax
lea eax, [esp + 0x58]
push eax
lea eax, [edi + 0xa8]
push esi
push eax
mov eax, 0x95a1e0
call eax
movss xmm0, dword [esp + 0x64]
add esp, 0x14
addss xmm0, dword [edi + 0xfc]
movss dword [edi + 0xfc], xmm0
movss xmm0, dword [esp + 0x54]
addss xmm0, dword [edi + 0x100]
movss dword [edi + 0x100], xmm0
movss xmm0, dword [esp + 0x58]
addss xmm0, dword [edi + 0x104]
movss dword [edi + 0x104], xmm0
call fcn.100f78ca
cdq
mov ecx, 0x3e8
idiv ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test edx, edx
jne 0x10082517
call esi
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x14], eax
movss xmm0, dword [0x10120818]
comiss xmm0, dword [esp + 0x24]
jbe 0x10082871
call esi
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x14]
add ecx, 0xfa0
cmp eax, ecx
ja 0x10082871
mov eax, 1
mov dword [edi + 0xac], 0
mov word [edi + 0x12], ax
jmp 0x10083043
movss xmm1, dword [esi + 0xf0]
xorps xmm3, xmm3
subss xmm1, dword [esp + 0x20]
movss xmm0, dword [esi + 0xf4]
subss xmm0, dword [esp + 0x24]
movss xmm5, dword [0x10120cd0]
comiss xmm3, xmm1
movss dword [esp + 0x30], xmm1
movaps xmm2, xmm1
movss dword [esp + 0xc], xmm0
jbe 0x10082597
xorps xmm2, xmm5
movss xmm4, dword [0x1011f9f0]
comiss xmm4, xmm2
jbe 0x100825c1
comiss xmm3, xmm0
movss xmm5, dword [0x101205a0]
jbe 0x100825b9
xorps xmm1, xmm1
jmp 0x10082643
movaps xmm1, xmm5
jmp 0x10082643
comiss xmm3, xmm0
movaps xmm2, xmm0
jbe 0x100825cc
xorps xmm2, xmm5
comiss xmm4, xmm2
jbe 0x100825f2
comiss xmm3, xmm1
movss xmm5, dword [0x101205a0]
jbe 0x100825e8
movss xmm1, dword [0x1012067c]
jmp 0x10082643
movss xmm1, dword [0x10120470]
jmp 0x10082643
divss xmm0, xmm1
cvtps2pd xmm0, xmm0
call fcn.1010f380
xorps xmm1, xmm1
movss xmm5, dword [0x101205a0]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x30]
xorps xmm3, xmm3
comiss xmm3, xmm0
divss xmm1, dword [0x1011ff20]
movss xmm2, dword [esp + 0xc]
mulss xmm1, xmm5
addss xmm1, dword [0x10120470]
jbe 0x10082643
comiss xmm2, xmm3
jae 0x1008263f
comiss xmm3, xmm2
jbe 0x10082643
addss xmm1, xmm5
movss xmm4, dword [edi + 0x110]
comiss xmm3, xmm4
movss xmm7, dword [0x10120720]
jbe 0x1008265c
addss xmm4, xmm7
comiss xmm3, xmm1
jbe 0x10082665
addss xmm1, xmm7
comiss xmm5, xmm4
movaps xmm2, xmm4
movaps xmm6, xmm4
addss xmm2, dword [0x10120334]
subss xmm6, dword [0x10120334]
jbe 0x100826c8
comiss xmm1, xmm2
jb 0x10082691
movaps xmm0, xmm4
addss xmm0, xmm5
comiss xmm0, xmm1
ja 0x1008270e
comiss xmm6, xmm3
jb 0x100826ac
movaps xmm0, xmm4
addss xmm0, xmm5
comiss xmm1, xmm0
jae 0x100826a7
comiss xmm6, xmm1
jbe 0x100826ac
movaps xmm2, xmm6
jmp 0x1008270e
comiss xmm3, xmm6
jbe 0x1008270b
addss xmm4, xmm5
comiss xmm1, xmm4
jb 0x1008270b
movaps xmm2, xmm6
addss xmm2, xmm7
comiss xmm2, xmm1
ja 0x1008270e
jmp 0x1008270b
comiss xmm6, xmm1
jbe 0x100826de
movaps xmm0, xmm4
subss xmm0, xmm5
comiss xmm1, xmm0
jb 0x100826de
movaps xmm2, xmm6
jmp 0x1008270e
comiss xmm7, xmm2
jbe 0x100826f4
movaps xmm0, xmm4
subss xmm0, xmm5
comiss xmm0, xmm1
ja 0x1008270e
comiss xmm1, xmm2
jae 0x1008270e
comiss xmm2, xmm7
jb 0x1008270b
subss xmm4, xmm5
comiss xmm4, xmm1
jbe 0x1008270b
subss xmm2, xmm7
comiss xmm1, xmm2
jae 0x1008270e
movaps xmm2, xmm1
lea esi, [edi + 0x174]
movss dword [edi + 0x110], xmm2
lea eax, [edi + 0x108]
push esi
push eax
mov eax, 0x959ce0
call eax
lea ecx, [esp + 0x38]
push ecx
lea eax, [edi + 0xa8]
push esi
push eax
mov eax, 0x95a1e0
call eax
movss xmm0, dword [esp + 0x44]
add esp, 0x14
addss xmm0, dword [edi + 0xfc]
movss xmm1, dword [esp + 0x28]
movss dword [edi + 0xfc], xmm0
movss xmm0, dword [esp + 0x34]
addss xmm0, dword [edi + 0x100]
movss dword [edi + 0x100], xmm0
movss xmm0, dword [esp + 0x38]
addss xmm0, dword [edi + 0x104]
movss dword [edi + 0x104], xmm0
movss xmm0, dword [0x10120370]
comiss xmm0, xmm1
jb 0x1008279c
xorps xmm0, xmm0
jmp 0x100827b0
cvtps2pd xmm0, xmm1
call fcn.1010f830
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [0x1011fc98]
xorps xmm0, xmmword [0x10120cd0]
mov eax, 2
mov dword [edi + 0xa8], 0
movss dword [edi + 0xac], xmm0
mov dword [edi + 0xb0], 0
mov word [edi + 0x12], ax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100ee369
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esp + 0x14]
mov dword [0x10129b90], eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100ee369
mov esp, ebp
pop ebp
ret 0x14
test ecx, ecx
js 0x100823e1
mov dword [esp + 0x19], 0
mov eax, ecx
mov dword [0x81c0420], ecx
mov edx, 5
mov dword [0xe61fc8], ecx
shr eax, 8
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x18]
mov word [esp + 0x18], 0x5c3
mov byte [esp + 0x1a], 0x22
mov byte [esp + 0x1b], al
call fcn.100e16c0
xor eax, eax
mov dword [0x10129b90], 0xffffffff
mov word [edi + 0x12], ax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100ee369
mov esp, ebp
pop ebp
ret 0x14
mov eax, 2
mov word [edi + 0x12], ax
call fcn.100f78ca
and eax, 0x8000001f
jns 0x1008288d
dec eax
or eax, 0xffffffe0
add eax, 1
jne 0x10083043
movss xmm0, dword [0x10120818]
comiss xmm0, dword [esp + 0x24]
jbe 0x100828b8
call fcn.100f78ca
and eax, reloc.WS2_32.dll_ntohs
jns 0x100828b3
dec eax
or eax, 0xfffffff0
inc eax
add eax, 0x30
jmp 0x100828cc
call fcn.100f78ca
and eax, 0x8000001f
jns 0x100828c9
dec eax
or eax, 0xffffffe0
inc eax
sub eax, 0xffffff80
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov dword [edi + 0xa8], 0
xorps xmm0, xmmword [0x10120cd0]
mulss xmm0, dword [0x1011fab4]
movss dword [edi + 0xac], xmm0
jmp 0x10083043
cmp eax, 2
jl 0x10082b97
cmp dword [0xe609e8], 4
jne 0x10082929
mov eax, dword [edi + 0x1d8]
movss xmm0, dword [eax + 0x100]
addss xmm0, dword [0x10120458]
movss dword [edi + 0x100], xmm0
mov ecx, dword [edi + 0x1d8]
movss xmm7, dword [edi + 0xfc]
movss xmm6, dword [edi + 0x100]
mulss xmm3, xmm1
mov byte [esp + 0x13], 0
movss xmm0, dword [ecx + 0x60]
mulss xmm0, xmm2
movss dword [esp + 0x30], xmm3
addss xmm0, dword [ecx + 0x104]
movss dword [edi + 0x104], xmm0
movss xmm4, dword [ecx + 0xfc]
movss xmm5, dword [ecx + 0x100]
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 [esp + 0xc], xmm2
comiss xmm0, xmm2
jbe 0x10082a19
comiss xmm2, xmm3
jb 0x10082a69
sub esp, 0x10
mov eax, 0x540c30
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, 0x540ea0
fstp dword [esp + 0x2c]
movss xmm0, dword [esp + 0x2c]
mov dword [esp + 8], 0x41200000
movss dword [esp + 4], xmm0
movss xmm0, dword [edi + 0x110]
movss dword [esp], xmm0
call eax
mov eax, 2
mov byte [esp + 0x1f], 1
fstp dword [edi + 0x110]
add esp, 0xc
mov word [edi + 0x12], ax
jmp 0x10082a69
movss dword [edi + 0xfc], xmm4
mov eax, dword [ecx + 0x100]
mov dword [edi + 0x100], eax
movss xmm0, dword [ecx + 0x104]
addss xmm0, dword [0x101205d4]
movss dword [edi + 0x104], xmm0
mov eax, dword [ecx + 0x108]
mov dword [edi + 0x108], eax
mov eax, dword [ecx + 0x10c]
mov dword [edi + 0x10c], eax
mov eax, dword [ecx + 0x110]
mov dword [edi + 0x110], eax
lea esi, [edi + 0x174]
lea eax, [edi + 0x108]
push esi
push eax
mov eax, 0x959ce0
call eax
lea ecx, [esp + 0x4c]
push ecx
lea eax, [edi + 0xa8]
push esi
push eax
mov eax, 0x95a1e0
call eax
movss xmm0, dword [esp + 0x58]
add esp, 0x14
addss xmm0, dword [edi + 0xfc]
movss xmm2, dword [esp + 0xc]
comiss xmm2, dword [esp + 0x30]
movss dword [edi + 0xfc], xmm0
movss xmm0, dword [esp + 0x48]
addss xmm0, dword [edi + 0x100]
movss dword [edi + 0x100], xmm0
movss xmm0, dword [esp + 0x4c]
addss xmm0, dword [edi + 0x104]
movss dword [edi + 0x104], xmm0
xorps xmm0, xmm0
jbe 0x10082b5e
movss xmm0, dword [esp + 0x14]
addss xmm0, xmm0
movss dword [esp + 0x30], xmm0
cvtps2pd xmm0, xmm2
call fcn.1010f830
movss xmm2, dword [esp + 0xc]
movaps xmm3, xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, xmm0
comiss xmm2, xmm0
jb 0x10082b28
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm3
mulss xmm0, dword [0x1011fc00]
jmp 0x10082b5e
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x1011fae4]
addss xmm0, dword [esp + 0x14]
mulss xmm0, xmm0
comiss xmm2, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm3
jb 0x10082b56
mulss xmm0, dword [0x1011fbb8]
jmp 0x10082b5e
mulss xmm0, dword [0x1011fb70]
cmp byte [esp + 0x13], 0
xorps xmm0, xmmword [0x10120cd0]
mov dword [edi + 0xa8], 0
movss dword [edi + 0xac], xmm0
mov dword [edi + 0xb0], 0
jne 0x10083043
xor eax, eax
mov word [edi + 0x12], ax
jmp 0x10083043
mov esi, dword [edi + 0x1d8]
movss xmm6, dword [edi + 0xfc]
movss xmm7, dword [edi + 0x100]
movss dword [esp + 0x18], xmm7
movss xmm1, dword [esi + 0xfc]
comiss xmm1, xmm6
movss xmm5, dword [esi + 0x100]
movaps xmm2, xmm1
movaps xmm3, xmm5
movss dword [esp + 0xc], xmm1
subss xmm2, xmm6
movss dword [esp + 0x2c], xmm5
subss xmm3, xmm7
movaps xmm0, xmm2
movss dword [esp + 0x24], xmm2
movaps xmm4, xmm3
mulss xmm0, xmm2
mulss xmm4, xmm3
movss dword [esp + 0x20], xmm3
addss xmm4, xmm0
movss dword [esp + 0x28], xmm4
jbe 0x10082c0b
movaps xmm6, xmm2
jmp 0x10082c0f
subss xmm6, xmm1
comiss xmm5, xmm7
jbe 0x10082c19
movaps xmm7, xmm3
jmp 0x10082c1d
subss xmm7, xmm5
cvtps2pd xmm0, xmm6
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
cvtps2pd xmm0, xmm7
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
call fcn.1010f370
movss xmm1, dword [esp + 0x14]
movss xmm6, dword [0x101205a0]
movaps xmm3, xmm1
mulss xmm3, xmm1
fstp qword [esp + 0x30]
movsd xmm2, qword [esp + 0x30]
cvtpd2ps xmm2, xmm2
movaps xmm0, xmm3
movss dword [esp + 0x30], xmm3
mulss xmm0, xmm1
mulss xmm2, xmm6
mulss xmm0, xmm1
movss xmm1, dword [esp + 0x28]
divss xmm2, dword [0x1011ff20]
comiss xmm0, xmm1
jbe 0x10082d92
comiss xmm1, xmm3
jb 0x10082d83
movss xmm4, dword [0x1011fb4c]
movss xmm3, dword [esp + 0xc]
movss xmm5, dword [edi + 0xfc]
subss xmm3, xmm4
comiss xmm3, xmm5
jbe 0x10082ced
movss xmm1, dword [esi + 0x100]
movss xmm7, dword [edi + 0x100]
movaps xmm0, xmm1
subss xmm0, xmm4
comiss xmm0, xmm7
jbe 0x10082cf9
subss xmm6, xmm2
mov edx, 0x12
mov ecx, edi
xor eax, eax
movss dword [edi + 0x110], xmm6
mov word [edx + ecx], ax
jmp 0x10082de2
movss xmm1, dword [esp + 0x2c]
movss xmm7, dword [esp + 0x18]
comiss xmm3, xmm5
jbe 0x10082d11
subss xmm1, xmm4
comiss xmm7, xmm1
jbe 0x10082d11
addss xmm2, dword [0x1011f9e4]
jmp 0x10082d7b
comiss xmm5, xmm3
jbe 0x10082d55
movss xmm1, dword [esi + 0x100]
movss xmm0, dword [edi + 0x100]
subss xmm1, xmm4
comiss xmm0, xmm1
jbe 0x10082d55
movss xmm0, dword [0x10120720]
mov edx, 0x12
subss xmm0, xmm2
mov ecx, edi
xor eax, eax
movss dword [edi + 0x110], xmm0
mov word [edx + ecx], ax
jmp 0x10082de2
movss xmm0, dword [edi + 0xfc]
comiss xmm0, xmm3
jbe 0x10082d83
movss xmm0, dword [esi + 0x100]
subss xmm0, xmm4
comiss xmm0, dword [edi + 0x100]
jbe 0x10082d83
addss xmm2, xmm6
movss dword [edi + 0x110], xmm2
mov edx, 0x12
mov ecx, edi
xor eax, eax
mov word [edx + ecx], ax
jmp 0x10082de2
movss xmm0, dword [esp + 0xc]
movss dword [edi + 0xfc], xmm0
mov eax, dword [esi + 0x100]
mov dword [edi + 0x100], eax
mov eax, dword [esi + 0x104]
mov dword [edi + 0x104], eax
mov eax, dword [esi + 0x108]
mov dword [edi + 0x108], eax
mov eax, dword [esi + 0x10c]
mov dword [edi + 0x10c], eax
mov eax, dword [esi + 0x110]
mov dword [edi + 0x110], eax
movss dword [esp + 0x30], xmm3
lea esi, [edi + 0x174]
lea eax, [edi + 0x108]
push esi
push eax
mov eax, 0x959ce0
call eax
lea ecx, [esp + 0x4c]
push ecx
lea eax, [edi + 0xa8]
push esi
push eax
mov eax, 0x95a1e0
call eax
movss xmm0, dword [esp + 0x5c]
add esp, 0x14
addss xmm0, dword [edi + 0x100]
movss xmm1, dword [esp + 0x44]
addss xmm1, dword [edi + 0xfc]
movss xmm2, dword [esp + 0x28]
comiss xmm2, dword [esp + 0x30]
movss dword [edi + 0x100], xmm0
movss xmm0, dword [esp + 0x4c]
addss xmm0, dword [edi + 0x104]
movss dword [esp + 0xc], xmm1
movss dword [edi + 0xfc], xmm1
movss dword [edi + 0x104], xmm0
xorps xmm0, xmm0
jbe 0x10082ee3
movss xmm0, dword [esp + 0x14]
addss xmm0, xmm0
movss dword [esp + 0x18], xmm0
cvtps2pd xmm0, xmm2
call fcn.1010f830
movss xmm2, dword [esp + 0x28]
movaps xmm3, xmm0
movss xmm0, dword [esp + 0x18]
mulss xmm0, xmm0
comiss xmm2, xmm0
jb 0x10082ea7
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm3
mulss xmm0, dword [0x1011fc00]
jmp 0x10082edd
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x1011fae4]
addss xmm0, dword [esp + 0x14]
mulss xmm0, xmm0
comiss xmm2, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm3
jb 0x10082ed5
mulss xmm0, dword [0x1011fbb8]
jmp 0x10082edd
mulss xmm0, dword [0x1011fb70]
movss xmm1, dword [esp + 0xc]
xorps xmm0, xmmword [0x10120cd0]
movss dword [edi + 0xac], xmm0
movss xmm0, dword [esp + 0x28]
comiss xmm0, dword [0x1012081c]
mov dword [edi + 0xa8], 0
mov dword [edi + 0xb0], 0
jb 0x10083028
mov eax, dword [edi + 0x1d8]
mov esi, 0x168
movss xmm0, dword [eax + 0xfc]
comiss xmm0, xmm1
jbe 0x10082f5f
call fcn.100f78ca
cdq
idiv esi
movss xmm2, dword [esp + 0x24]
movaps xmm1, xmm2
addss xmm1, dword [edi + 0xfc]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movss dword [edi + 0xfc], xmm1
jmp 0x10082f65
movss xmm2, dword [esp + 0x24]
mov eax, dword [edi + 0x1d8]
comiss xmm1, dword [eax + 0xfc]
jbe 0x10082f9f
addss xmm2, xmm1
movss dword [esp + 0x24], xmm2
call fcn.100f78ca
cdq
idiv esi
movss xmm1, dword [esp + 0x24]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [edi + 0xfc], xmm1
mov eax, dword [edi + 0x1d8]
movss xmm1, dword [edi + 0x100]
movss xmm0, dword [eax + 0x100]
comiss xmm0, xmm1
jbe 0x10082fe8
call fcn.100f78ca
cdq
idiv esi
movss xmm2, dword [esp + 0x20]
movaps xmm1, xmm2
addss xmm1, dword [edi + 0x100]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movss dword [edi + 0x100], xmm1
jmp 0x10082fee
movss xmm2, dword [esp + 0x20]
mov eax, dword [edi + 0x1d8]
comiss xmm1, dword [eax + 0x100]
jbe 0x10083028
addss xmm2, xmm1
movss dword [esp + 0x20], xmm2
call fcn.100f78ca
cdq
idiv esi
movss xmm1, dword [esp + 0x20]
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
movss dword [edi + 0x100], xmm1
cmp dword [0xe609e8], 4
jne 0x10083043
mov eax, dword [edi + 0x1d8]
mov eax, dword [eax + 0x104]
mov dword [edi + 0x104], eax
mov esi, dword [edi + 0x30]
add esi, 0xfffffb6d
mov dword [esp + 0x18], esi
cmp esi, 0x1ac8
jl 0x10083096
cmp esi, 0x1b90
jge 0x10083096
lea eax, [esp + 0x18]
mov ecx, 0x11514de0
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10011c40
mov eax, dword [esp + 0x4c]
mov ecx, dword [0x11514de0]
cmp byte [eax + 0xd], 0
jne 0x10083089
cmp esi, dword [eax + 0x10]
jge 0x1008308b
mov eax, ecx
cmp eax, ecx
je 0x10083096
movss xmm0, dword [eax + 0x28]
jmp 0x10083099
xorps xmm0, xmm0
mov eax, dword [edi + 0x1d8]
mov esi, dword [edi + 0x30]
add esi, 0xfffffb6d
mov dword [esp + 0x18], esi
addss xmm0, dword [eax + 0x104]
movss dword [edi + 0x104], xmm0
cmp esi, 0x1ac8
jl 0x10083100
cmp esi, 0x1b90
jge 0x10083100
lea eax, [esp + 0x18]
mov ecx, 0x11514de0
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10011c40
mov eax, dword [esp + 0x4c]
mov ecx, dword [0x11514de0]
cmp byte [eax + 0xd], 0
jne 0x100830f5
cmp esi, dword [eax + 0x10]
jge 0x100830f7
mov eax, ecx
cmp eax, ecx
je 0x10083100
mov ecx, dword [eax + 0x2c]
jmp 0x10083102
xor ecx, ecx
xor eax, eax
test ecx, ecx
setg al
lea eax, [eax*2 - 1]
mov dword [edi + 0x44], eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.100ee369
mov esp, ebp
pop ebp
ret 0x14