Function at 0x1003e570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x140
mov eax, dword [0x10105018]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x10107a10]
mov dword [esp + 0xd4], eax
push esi
push edi
mov eax, dword [ecx + 0x1b9c]
mov edi, edx
mov dword [esp + 0xa0], edi
mov dword [esp + 0x20], ecx
mov byte [eax + 0x8c], 1
mov eax, dword [ecx + 0x1b9c]
mov dword [esp + 0x9c], eax
cmp byte [eax + 0x8f], 0
je 0x1003e5e6
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100a8abc
mov esp, ebp
pop ebp
ret
test byte [ecx + 0x1c80], 1
mov edx, dword [eax + 0x284]
mov dword [esp + 0x24], edx
je 0x1003e603
movss xmm1, dword [ecx + 0x1c84]
jmp 0x1003e60b
movss xmm1, dword [eax + 0x1b0]
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1003e64d
cmp dword [eax + 0x198], 0
movss xmm0, dword [eax + 0x248]
jne 0x1003e62d
cmp dword [ecx + 0x1ed4], 0
je 0x1003e635
movss xmm0, dword [eax + 0x218]
subss xmm0, dword [eax + 0xd0]
addss xmm0, xmm1
movss xmm1, dword [0x100fcbb4]
maxss xmm1, xmm0
mov dword [ecx + 0x1c80], 0
mov ecx, dword [esp + 0x28]
cvttss2si esi, xmm1
call fcn.10023480
call fcn.10023bb0
mov edx, dword [ebp + 8]
mov ecx, edx
or ecx, 0x10
test edx, 0x100
cmovne ecx, edx
mov dword [esp + 0xa4], ecx
test cl, 8
jne 0x1003e696
mov edx, ecx
mov ecx, edi
call fcn.10041e90
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x20]
test ecx, 0x6000000
jne 0x1003e6c2
mov eax, dword [edx + 0x2e38]
mov ecx, 0xa900000
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, dword [esp + 0xa4]
mov dword [esp + 0x10], ecx
test ecx, 0x18000000
jne 0x1003e6fc
mov eax, dword [edx + 0x2e38]
mov edi, 0xa900000
test eax, 0x18000000
cmovne edi, eax
mov eax, edi
mov dword [esp + 0xd4], edi
mov edi, dword [esp + 0xa0]
and eax, 0x18000000
or ecx, eax
mov dword [esp + 0x10], ecx
test cl, 8
jne 0x1003e712
mov eax, dword [edx + 0x2e38]
and eax, 0x10000
or ecx, eax
mov dword [esp + 0x10], ecx
mov eax, ecx
movss xmm4, dword [edx + 0x1568]
and eax, 2
and ecx, 0x10002
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa4], ecx
movss xmm0, dword [eax + 0xd4]
movss xmm2, dword [eax + 0xd0]
mov eax, dword [0x10107a10]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm4
movss dword [esp + 0x30], xmm2
movss xmm3, dword [eax + 0x1554]
addss xmm3, xmm3
addss xmm3, dword [eax + 0x1930]
xor eax, eax
cmp ecx, 0x10000
sete al
inc eax
addss xmm0, xmm3
movss dword [esp + 0x74], xmm3
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
cmp dword [esp + 0x68], eax
sete al
mulss xmm1, xmm0
lea eax, [eax*4 + 0xc]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push eax
mov dword [esp + 0xd8], eax
lea eax, [esp + 0x138]
push edi
push eax
subss xmm0, xmm1
movaps xmm1, xmm3
maxss xmm1, xmm0
movaps xmm0, xmm2
addss xmm0, xmm1
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x9c], xmm0
addss xmm0, xmm4
movss dword [esp + 0xc0], xmm0
addss xmm0, xmm3
addss xmm4, xmm0
movss dword [esp + 0xa8], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x100fcb5c]
movss dword [esp + 0xe4], xmm4
cvttss2si esi, xmm0
mov dword [esp + 0xdc], esi
call fcn.100aa9f0
movss xmm1, dword [esp + 0x60]
add esp, 0xc
movaps xmm2, xmm1
movaps xmm3, xmm1
mulss xmm2, dword [0x100fcb74]
mulss xmm3, dword [0x100fcb4c]
movaps xmm0, xmm2
movss dword [esp + 0x88], xmm2
addss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x8c], xmm3
movaps xmm4, xmm2
subss xmm4, xmm3
movaps xmm3, xmm1
addss xmm3, dword [esp + 0x74]
movss dword [esp + 0xb8], xmm0
movss dword [esp + 0x10c], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x100fcb40]
mulss xmm3, dword [0x100fcb74]
cvttss2si eax, xmm0
addss xmm3, dword [esp + 0x30]
movss dword [esp + 0x5c], xmm4
movd xmm0, eax
movss dword [esp + 0xbc], xmm3
movss dword [esp + 0x108], xmm3
cvtdq2ps xmm0, xmm0
movss xmm3, dword [edi]
movaps xmm1, xmm4
movss xmm4, dword [edi + 4]
subss xmm1, xmm0
movss xmm5, dword [edi + 8]
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x8000000
mov dword [esp + 0x44], 0
movss dword [esp + 0x18], xmm3
movaps xmm0, xmm1
movss dword [esp + 0x40], xmm1
mulss xmm0, dword [0x100fccb0]
movaps xmm2, xmm1
mov dword [esp + 0x98], ecx
mulss xmm2, dword [0x100fccbc]
movss dword [esp + 0xac], xmm0
movss dword [esp + 0xf8], xmm0
movss dword [esp + 0x118], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x100fcba4]
movss dword [esp + 0xa8], xmm2
movss dword [esp + 0xfc], xmm2
movss dword [esp + 0xb0], xmm0
movss dword [esp + 0x11c], xmm0
movaps xmm0, xmm3
movss dword [esp + 0xe0], xmm0
movss dword [esp + 0xcc], xmm0
movaps xmm0, xmm4
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x94], xmm0
movaps xmm0, xmm5
movss dword [esp + 0x7c], xmm0
movss dword [esp + 0x78], xmm0
movss xmm0, dword [0x100fcc14]
movss dword [esp + 0x3c], xmm4
movss dword [esp + 0x50], xmm5
movss dword [esp + 0xe4], xmm0
je 0x1003eaab
comiss xmm5, xmm4
xorps xmm1, xmm1
xorps xmm6, xmm6
movaps xmm2, xmm4
movaps xmm7, xmm5
jbe 0x1003e9d0
movss xmm6, dword [0x100fccc0]
movaps xmm2, xmm5
movaps xmm7, xmm4
comiss xmm2, xmm3
movaps xmm5, xmm3
movss dword [esp + 0x50], xmm5
jbe 0x1003e9f9
movss xmm0, dword [0x100fccac]
movaps xmm5, xmm2
subss xmm0, xmm6
movss dword [esp + 0x50], xmm5
movaps xmm2, xmm3
movaps xmm6, xmm0
movaps xmm0, xmm2
mov ecx, dword [esp + 0x20]
minss xmm0, xmm7
movaps xmm4, xmm5
movaps xmm3, xmm2
subss xmm3, xmm7
mov eax, dword [ecx + 0x2e44]
subss xmm4, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x100fcc14]
addss xmm0, dword [0x100fcb24]
divss xmm3, xmm0
movaps xmm0, xmm5
addss xmm3, xmm6
addss xmm0, dword [0x100fcb24]
andps xmm3, xmmword [0x100fcff0]
divss xmm4, xmm0
movss dword [esp + 0x18], xmm3
movss dword [esp + 0x3c], xmm4
cmp eax, dword [edi]
jne 0x1003eb06
mov eax, dword [ecx + 0x2e48]
cmp eax, dword [edi + 4]
jne 0x1003eb06
mov eax, dword [ecx + 0x2e4c]
cmp eax, dword [edi + 8]
jne 0x1003eb06
ucomiss xmm4, xmm1
lahf
test ah, 0x44
jp 0x1003ea92
movss xmm0, dword [ecx + 0x2e3c]
movss dword [esp + 0x18], xmm0
ucomiss xmm5, xmm1
lahf
test ah, 0x44
jp 0x1003eb06
movss xmm0, dword [ecx + 0x2e40]
movss dword [esp + 0x3c], xmm0
jmp 0x1003eb06
test eax, 0x10000000
je 0x1003eb06
lea eax, [esp + 0x78]
movaps xmm2, xmm5
push eax
lea edx, [esp + 0x98]
movaps xmm1, xmm4
lea ecx, [esp + 0xd0]
movaps xmm0, xmm3
call fcn.10017f30
movss xmm0, dword [esp + 0xd0]
add esp, 4
movss dword [esp + 0xe0], xmm0
movss xmm0, dword [esp + 0x94]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x7c], xmm0
mov eax, dword [0x10107a10]
lea edx, [eax + 0x1cc4]
mov byte [esp + 0xf], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0x15], 0
mov ecx, dword [eax + 0x1bbc]
or ecx, 8
mov dword [esp + 0x4c], edx
mov dword [eax + 0x1bbc], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + 4]
cmp dword [edx], ecx
jne 0x1003eb71
test ecx, ecx
je 0x1003eb51
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x4c]
sar eax, 1
add eax, ecx
jmp 0x1003eb56
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.1000b390
mov edi, dword [esp + 0xa0]
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov esi, dword [esp + 0x2c]
mov dword [eax + ecx*4], esi
mov eax, dword [esp + 0x10]
mov ecx, eax
inc dword [edx]
and ecx, 0x4000000
mov dword [esp + 0x58], ecx
je 0x1003f201
movss xmm1, dword [esp + 0x54]
lea edx, [esp + 0x6c]
mov eax, dword [esp + 0x20]
movaps xmm0, xmm1
push ecx
mov ecx, 0x100fc8c0
movss dword [esp + 0x74], xmm1
addss xmm0, dword [eax + 0x1568]
addss xmm0, dword [esp + 0x78]
movss dword [esp + 0x70], xmm0
call fcn.10035010
mov eax, dword [0x10107a10]
add esp, 4
mov ecx, dword [eax + 0x1bd4]
mov dword [esp + 0x6c], ecx
test ecx, ecx
je 0x1003f085
mov eax, dword [eax + 0x1b9c]
cmp ecx, dword [eax + 0x11c]
jne 0x1003f080
mov eax, dword [esp + 0x20]
movss xmm0, dword [eax + 0x38c]
subss xmm0, dword [esp + 0xb8]
movss xmm1, dword [eax + 0x388]
subss xmm1, dword [esp + 0xbc]
movss xmm2, dword [eax + 0xe4]
movss xmm4, dword [eax + 0xe8]
subss xmm2, dword [esp + 0xbc]
subss xmm4, dword [esp + 0xb8]
movaps xmm3, xmm0
movss dword [esp + 0xc0], xmm0
mulss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x2c], xmm1
movss xmm1, dword [0x100fcbb4]
addss xmm3, xmm0
movss dword [esp + 0xe8], xmm2
movss xmm0, dword [esp + 0x5c]
subss xmm0, xmm1
movss dword [esp + 0xec], xmm4
mulss xmm0, xmm0
comiss xmm3, xmm0
jb 0x1003ed08
movss xmm0, dword [esp + 0x88]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm3
jb 0x1003ed08
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
call fcn.100cd260
movss xmm2, dword [0x100fcc00]
xorps xmm0, xmm0
fstp qword [esp + 0x60]
movsd xmm1, qword [esp + 0x60]
cvtpd2ps xmm1, xmm1
divss xmm1, xmm2
mulss xmm1, dword [0x100fcb74]
comiss xmm0, xmm1
movss dword [esp + 0x18], xmm1
jbe 0x1003ed00
addss xmm1, dword [0x100fcbb4]
movss dword [esp + 0x18], xmm1
mov al, 1
mov byte [esp + 0xf], al
jmp 0x1003ed1a
mov al, byte [esp + 0xf]
movss xmm2, dword [0x100fcc00]
movss xmm1, dword [esp + 0x18]
movaps xmm0, xmm1
mov byte [esp + 0x16], al
xorps xmm0, xmmword [0x100fd010]
addss xmm0, xmm0
mulss xmm0, xmm2
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
call fcn.100cd7b0
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x4c], xmm0
movsd xmm0, qword [esp + 0x60]
call fcn.100ce750
movss xmm3, dword [esp + 0x2c]
xorps xmm5, xmm5
movss xmm1, dword [esp + 0xc0]
movaps xmm4, xmm3
mulss xmm4, dword [esp + 0x4c]
cvtsd2ss xmm5, xmm0
movaps xmm0, xmm1
movss xmm7, dword [esp + 0x40]
mulss xmm1, dword [esp + 0x4c]
movaps xmm6, xmm7
mulss xmm0, xmm5
mulss xmm3, xmm5
subss xmm4, xmm0
movss dword [esp + 0xc4], xmm5
movss xmm0, dword [esp + 0xa8]
subss xmm0, dword [esp + 0xb0]
addss xmm3, xmm1
movss xmm1, dword [esp + 0xac]
movaps xmm5, xmm1
subss xmm5, xmm1
movaps xmm2, xmm4
subss xmm6, dword [esp + 0xac]
movss dword [esp + 0xc0], xmm0
subss xmm2, xmm1
movaps xmm1, xmm0
movaps xmm0, xmm3
subss xmm0, dword [esp + 0xb0]
movss dword [esp + 0x2c], xmm5
movss dword [esp + 0x60], xmm6
mulss xmm1, xmm2
mulss xmm0, xmm5
xorps xmm5, xmm5
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0xa8]
comiss xmm5, xmm1
movaps xmm1, xmm0
movss dword [esp + 0xf0], xmm0
movaps xmm0, xmm3
mulss xmm1, xmm2
seta cl
subss xmm0, dword [esp + 0xa8]
mulss xmm0, xmm6
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x1003f078
movss xmm0, dword [esp + 0xb0]
subss xmm4, xmm7
subss xmm0, xmm5
subss xmm3, xmm5
mulss xmm4, xmm0
movss xmm0, dword [esp + 0xac]
subss xmm0, xmm7
mulss xmm0, xmm3
subss xmm4, xmm0
comiss xmm5, xmm4
seta al
cmp cl, al
jne 0x1003f078
movss xmm6, dword [esp + 0xe8]
movss xmm1, dword [esp + 0xec]
movaps xmm7, xmm6
movss xmm3, dword [esp + 0xc4]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x4c]
mulss xmm7, dword [esp + 0x4c]
movss xmm4, dword [esp + 0xac]
mulss xmm0, xmm3
mulss xmm6, xmm3
subss xmm7, xmm0
addss xmm6, xmm1
movaps xmm1, xmm7
movss dword [esp + 0xc4], xmm7
subss xmm1, xmm4
movaps xmm0, xmm6
movss dword [esp + 0xc8], xmm6
subss xmm0, dword [esp + 0xb0]
mulss xmm1, dword [esp + 0xc0]
mulss xmm0, dword [esp + 0x2c]
subss xmm1, xmm0
movaps xmm0, xmm6
subss xmm0, dword [esp + 0xa8]
comiss xmm5, xmm1
mulss xmm0, dword [esp + 0x60]
movaps xmm1, xmm7
subss xmm1, xmm4
seta cl
mulss xmm1, dword [esp + 0xf0]
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x1003ef75
movss xmm3, dword [esp + 0x40]
movaps xmm2, xmm7
movss xmm0, dword [esp + 0xb0]
subss xmm2, xmm3
subss xmm0, xmm5
movaps xmm1, xmm4
subss xmm1, xmm3
mulss xmm2, xmm0
movaps xmm0, xmm6
subss xmm0, xmm5
mulss xmm1, xmm0
subss xmm2, xmm1
comiss xmm5, xmm2
seta al
cmp cl, al
je 0x1003efbb
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x100]
push eax
lea edx, [esp + 0x4c]
lea ecx, [esp + 0xfc]
call fcn.10017610
movss xmm3, dword [esp + 0x4c]
add esp, 0xc
movss xmm4, dword [esp + 0xac]
xorps xmm5, xmm5
movss xmm7, dword [eax]
movss xmm6, dword [eax + 4]
movss xmm1, dword [esp + 0xb0]
subss xmm7, xmm3
movaps xmm2, xmm4
subss xmm1, xmm5
movss xmm4, dword [esp + 0xa8]
subss xmm2, xmm3
subss xmm4, xmm5
subss xmm6, xmm5
movaps xmm3, xmm2
movaps xmm0, xmm4
mulss xmm3, xmm1
mulss xmm0, xmm2
mulss xmm6, xmm2
subss xmm3, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm1
mulss xmm7, xmm4
subss xmm0, xmm6
movss xmm1, dword [0x100fcbb4]
movaps xmm5, xmm1
subss xmm6, xmm7
divss xmm0, xmm3
divss xmm6, xmm3
subss xmm5, xmm0
movss xmm0, dword [0x100fcb30]
movss dword [esp + 0x3c], xmm0
comiss xmm0, xmm5
movaps xmm2, xmm5
subss xmm2, xmm6
jbe 0x1003f049
movaps xmm3, xmm0
movss dword [esp + 0x50], xmm0
jmp 0x1003f056
movaps xmm3, xmm1
minss xmm3, xmm5
movss dword [esp + 0x50], xmm3
divss xmm2, xmm3
comiss xmm0, xmm2
ja 0x1003f06c
movaps xmm0, xmm1
minss xmm0, xmm2
movss dword [esp + 0x3c], xmm0
mov byte [esp + 0x15], 1
mov byte [esp + 0xf], 1
jmp 0x1003f080
mov al, byte [esp + 0xf]
mov byte [esp + 0x16], al
mov eax, dword [0x10107a10]
test byte [esp + 0x10], 8
jne 0x1003f0f4
cmp byte [eax + 0x3e3], 0
mov esi, dword [eax + 0x1b9c]
je 0x1003f0f4
mov ecx, 8
call fcn.10019dc0
test al, al
je 0x1003f0f4
mov ecx, dword [esi + 0xc4]
xor edx, edx
mov eax, dword [esi + 0xcc]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.100178f0
mov ecx, eax
add esp, 4
mov eax, dword [0x10107a10]
cmp dword [esp + 0x6c], ecx
jne 0x1003f0db
mov dword [eax + 0x1bd8], ecx
cmp dword [eax + 0x1c0c], ecx
jne 0x1003f0ea
mov byte [eax + 0x1c10], 1
mov edx, 1
call fcn.100245b0
mov edx, dword [0x10107a10]
movss xmm2, dword [esp + 0x1c]
cmp dword [esp + 0xa4], 0x10000
mov esi, dword [esp + 0xd0]
jne 0x1003f49d
mov eax, dword [edx + 0x1b9c]
movss xmm0, dword [esp + 0xd8]
push ecx
mov ecx, 0x100f7bf8
mov byte [eax + 0x8c], 1
mov eax, dword [edx + 0x1b9c]
lea edx, [esp + 0xfc]
movss dword [eax + 0xd0], xmm0
movss dword [eax + 0xd4], xmm2
movss xmm1, dword [eax + 0xe8]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xec]
maxss xmm0, xmm2
movss dword [eax + 0xe8], xmm1
movss dword [eax + 0xec], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0xfc], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [esp + 0x100], xmm0
call fcn.10035010
mov edx, dword [0x10107a10]
add esp, 4
mov ecx, dword [edx + 0x1bd4]
test ecx, ecx
je 0x1003f49d
mov eax, dword [edx + 0x1b9c]
cmp ecx, dword [eax + 0x11c]
jne 0x1003f49d
mov eax, dword [esp + 0x20]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x54]
movss xmm1, dword [0x100fcbb4]
subss xmm0, xmm1
movss xmm3, dword [eax + 0xe8]
subss xmm3, dword [esp + 0x1c]
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x1003f485
xorps xmm4, xmm4
jmp 0x1003f48c
test eax, 0x2000000
je 0x1003f0f4
movss xmm0, dword [esp + 0x54]
lea edx, [esp + 0xf8]
push ecx
mov ecx, 0x100fc8c4
movss dword [esp + 0xfc], xmm0
movss dword [esp + 0x100], xmm0
call fcn.10035010
mov ecx, dword [0x10107a10]
add esp, 4
mov esi, dword [ecx + 0x1bd4]
test esi, esi
je 0x1003f2e2
mov eax, dword [ecx + 0x1b9c]
cmp esi, dword [eax + 0x11c]
jne 0x1003f2e2
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
movss xmm3, dword [esp + 0x54]
movss xmm1, dword [0x100fcbb4]
subss xmm3, xmm1
movss xmm4, dword [eax + 0xe4]
subss xmm4, dword [esp + 0x30]
movss dword [esp + 0x4c], xmm3
divss xmm4, xmm3
comiss xmm0, xmm4
jbe 0x1003f29d
movss dword [esp + 0x3c], xmm0
jmp 0x1003f2aa
movaps xmm2, xmm1
minss xmm2, xmm4
movss dword [esp + 0x3c], xmm2
movss xmm2, dword [eax + 0xe8]
subss xmm2, dword [esp + 0x1c]
divss xmm2, xmm3
comiss xmm0, xmm2
jbe 0x1003f2c6
xorps xmm3, xmm3
jmp 0x1003f2cd
movaps xmm3, xmm1
minss xmm3, xmm2
movaps xmm0, xmm1
mov al, 1
subss xmm0, xmm3
mov byte [esp + 0xf], al
movss dword [esp + 0x50], xmm0
jmp 0x1003f2fa
movss xmm0, dword [esp + 0x54]
subss xmm0, dword [0x100fcbb4]
mov al, byte [esp + 0xf]
movss dword [esp + 0x4c], xmm0
test byte [esp + 0x10], 8
mov byte [esp + 0x15], al
mov byte [esp + 0x17], al
jne 0x1003f37d
cmp byte [ecx + 0x3e3], 0
mov eax, dword [ecx + 0x1b9c]
mov dword [esp + 0x6c], eax
je 0x1003f37d
mov ecx, 8
call fcn.10019dc0
test al, al
je 0x1003f377
mov eax, dword [esp + 0x6c]
xor edx, edx
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xcc]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.100178f0
mov ecx, eax
add esp, 4
mov eax, dword [0x10107a10]
cmp esi, ecx
jne 0x1003f35e
mov dword [eax + 0x1bd8], ecx
cmp dword [eax + 0x1c0c], ecx
jne 0x1003f36d
mov byte [eax + 0x1c10], 1
mov edx, 1
call fcn.100245b0
mov ecx, dword [0x10107a10]
mov eax, dword [ecx + 0x1b9c]
lea edx, [esp + 0xf8]
movss xmm0, dword [esp + 0xb4]
movss xmm2, dword [esp + 0x1c]
push ecx
mov byte [eax + 0x8c], 1
mov eax, dword [ecx + 0x1b9c]
mov ecx, 0x100fc8c8
movss dword [eax + 0xd0], xmm0
movss dword [eax + 0xd4], xmm2
movss xmm1, dword [eax + 0xe8]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xec]
maxss xmm0, xmm2
movss dword [eax + 0xe8], xmm1
movss dword [eax + 0xec], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0xfc], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [esp + 0x100], xmm0
call fcn.10035010
mov edx, dword [0x10107a10]
add esp, 4
mov ecx, dword [edx + 0x1bd4]
test ecx, ecx
je 0x1003f0fa
mov al, byte [esp + 0xf]
mov byte [esp + 0x15], al
mov eax, dword [edx + 0x1b9c]
cmp ecx, dword [eax + 0x11c]
jne 0x1003f0fa
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
movss xmm2, dword [esp + 0x1c]
movss xmm1, dword [eax + 0xe8]
subss xmm1, xmm2
divss xmm1, dword [esp + 0x4c]
comiss xmm0, xmm1
ja 0x1003f468
movss xmm0, dword [0x100fcbb4]
minss xmm0, xmm1
mov al, byte [esp + 0x17]
movss dword [esp + 0x18], xmm0
mov byte [esp + 0x16], 1
mov byte [esp + 0xf], 1
mov byte [esp + 0x15], al
jmp 0x1003f100
movaps xmm4, xmm1
minss xmm4, xmm3
movaps xmm0, xmm1
mov byte [esp + 0xf], 1
subss xmm0, xmm4
movss dword [edi + 0xc], xmm0
dec dword [edx + 0x1cc4]
mov ecx, dword [edx + 0x1cc4]
mov eax, dword [edx + 0x1ccc]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x1bbc], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x100
mov dword [esp + 0x2c], ecx
jne 0x1003f4e8
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x1568]
call fcn.10023970
call fcn.10023bb0
mov eax, dword [esp + 0x10]
and eax, 0x80
mov dword [esp + 0x60], eax
jne 0x1003f553
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
jae 0x1003f553
nop dword [eax]
mov dl, byte [ecx]
test dl, dl
je 0x1003f516
cmp dl, 0x23
jne 0x1003f510
cmp byte [ecx + 1], dl
je 0x1003f516
inc ecx
cmp ecx, 0xffffffff
jb 0x1003f500
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], ecx
cmp eax, ecx
je 0x1003f553
cmp dword [esp + 0x2c], 0
je 0x1003f545
mov eax, dword [esp + 0x20]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x1568]
call fcn.10023970
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
mov edx, ecx
mov ecx, eax
push 0
call fcn.10033ea0
add esp, 4
cmp dword [esp + 0x2c], 0
jne 0x1003f779
mov eax, dword [0x10107a10]
lea edx, [eax + 0x1cc4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 0x1bbc]
or ecx, 0x10
mov dword [eax + 0x1bbc], ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [edx + 4]
cmp dword [edx], ecx
jne 0x1003f5b3
test ecx, ecx
je 0x1003f59a
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add eax, ecx
jmp 0x1003f59f
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.1000b390
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov esi, dword [esp + 0x6c]
mov dword [eax + ecx*4], esi
inc dword [edx]
cmp dword [esp + 0x68], 0
je 0x1003f5d2
movss xmm1, dword [0x100fcbb4]
jmp 0x1003f5d7
movss xmm1, dword [edi + 0xc]
cmp dword [esp + 0x60], 0
movss xmm0, dword [edi]
mov esi, dword [esp + 0xd0]
movss dword [esp + 0xf8], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0xfc], xmm0
movss xmm0, dword [edi + 8]
movss dword [esp + 0x100], xmm0
movss dword [esp + 0x104], xmm1
je 0x1003f624
push str.Current
call fcn.10034560
add esp, 4
movss xmm1, dword [esp + 0x74]
lea edx, [esp + 0xf8]
mov eax, dword [esp + 0x10]
movaps xmm0, xmm1
mulss xmm0, dword [0x100fcbfc]
and eax, 0x180e0040
mov ecx, str.current
mov dword [esp + 0xf0], eax
movss dword [esp + 0xc4], xmm0
movss dword [esp + 0x6c], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0xc8], xmm0
push dword [esp + 0xc8]
movss dword [esp + 0x64], xmm0
push dword [esp + 0xc8]
push eax
call fcn.10040ec0
add esp, 0xc
cmp dword [esp + 0xdc], 0
je 0x1003f752
push str.Original
call fcn.10034560
mov eax, dword [esp + 0xe0]
add esp, 4
cmp dword [esp + 0x68], 0
je 0x1003f6c0
movss xmm1, dword [0x100fcbb4]
jmp 0x1003f6c5
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0x118]
movss dword [esp + 0x118], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0x11c], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x120], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esp + 0x60]
movss dword [esp + 0x70], xmm0
push dword [esp + 0x70]
movss dword [esp + 0x128], xmm1
push dword [esp + 0x70]
push dword [esp + 0xf8]
call fcn.10040ec0
add esp, 0xc
test al, al
je 0x1003f752
push dword [esp + 0xd4]
push dword [esp + 0xe0]
push edi
call fcn.100aa9f0
add esp, 0xc
mov byte [esp + 0xf], 1
mov edx, dword [0x10107a10]
dec dword [edx + 0x1cc4]
mov eax, dword [edx + 0x1ccc]
mov ecx, dword [edx + 0x1cc4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x1bbc], eax
call fcn.10023ce0
cmp byte [esp + 0x16], 0
jne 0x1003f78b
cmp byte [esp + 0x15], 0
je 0x1003f826
cmp dword [esp + 0x98], 0
je 0x1003f84f
movss xmm1, dword [esp + 0x50]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1003f7ac
movaps xmm3, xmm1
jmp 0x1003f7b4
movss xmm3, dword [0x100fcb28]
movss xmm1, dword [esp + 0x3c]
comiss xmm1, xmm0
movss xmm2, dword [0x100fcb2c]
ja 0x1003f7ca
movaps xmm1, xmm2
movss xmm0, dword [esp + 0x18]
comiss xmm0, dword [0x100fcbb4]
jb 0x1003f7dd
subss xmm0, xmm2
lea eax, [edi + 8]
mov ecx, edi
push eax
lea edx, [edi + 4]
movaps xmm2, xmm3
call fcn.10017f30
mov ecx, dword [esp + 0x24]
add esp, 4
movss xmm0, dword [esp + 0x3c]
movss xmm1, dword [esp + 0x18]
movss dword [ecx + 0x2e3c], xmm1
movss dword [ecx + 0x2e40], xmm0
movq xmm0, qword [edi]
movq qword [ecx + 0x2e44], xmm0
mov eax, dword [edi + 8]
mov dword [ecx + 0x2e4c], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x17], 0
test al, 0x20
jne 0x1003fbff
cmp dword [esp + 0xa4], 0x10000
jne 0x1003f87c
movss xmm0, dword [esp + 0xd8]
jmp 0x1003f885
mov eax, dword [esp + 0x10]
test eax, 0x10000000
je 0x1003f82a
movss xmm0, dword [esp + 0x3c]
movss xmm1, dword [esp + 0x18]
movss dword [edi + 4], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [edi], xmm1
movss dword [edi + 8], xmm0
jmp 0x1003f82a
movss xmm0, dword [esp + 0xb4]
addss xmm0, dword [esp + 0x74]
subss xmm0, dword [esp + 0x30]
call fcn.10023a30
mov eax, dword [esp + 0x10]
mov edx, eax
and edx, 0x198e001a
mov dword [esp + 0x68], edx
test eax, 0x100000
jne 0x1003f8c1
mov ecx, eax
and ecx, 0x700000
mov dword [esp + 0x28], ecx
jne 0x1003f91f
mov dword [esp + 0x28], ecx
jmp 0x1003f8ca
and eax, 0x700000
mov dword [esp + 0x28], eax
or edx, 0x100004
mov ecx, str.rgb
push edx
mov edx, edi
call fcn.1003d0a0
add esp, 4
test al, al
je 0x1003f913
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x1bd4], 0
je 0x1003f8ff
cmp byte [eax + 0x1be1], 0
mov byte [esp + 0x17], 1
je 0x1003f904
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0x28]
mov byte [esp + 0xf], 1
mov dword [esp + 0x28], ecx
jmp 0x1003f917
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x10]
test eax, 0x200000
jne 0x1003f92a
test ecx, ecx
jne 0x1003f94c
or edx, 0x200004
mov ecx, str.hsv
push edx
mov edx, edi
call fcn.1003d0a0
mov ecx, dword [esp + 0x2c]
add esp, 4
or byte [esp + 0xf], al
mov eax, dword [esp + 0x10]
test eax, 0x400000
jne 0x1003f957
test ecx, ecx
jne 0x1003f974
mov eax, dword [esp + 0x68]
mov edx, edi
or eax, 0x400004
mov ecx, str.hex
push eax
call fcn.1003d0a0
add esp, 4
or byte [esp + 0xf], al
cmp byte [esp + 0x17], 0
xorps xmm2, xmm2
mov ecx, dword [0x10107a10]
mov eax, dword [ecx + 0x1b9c]
mov byte [eax + 0x8c], 1
mov edx, dword [ecx + 0x1b9c]
mov ecx, dword [edx + 0x1b8]
mov eax, dword [edx + 0x1c0]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x1b0], eax
lea eax, [ecx - 1]
mov dword [edx + 0x1b8], eax
lea ecx, [edi + 8]
lea edx, [edi + 4]
je 0x1003faa4
cmp dword [esp + 0x98], 0
je 0x1003faa4
movss xmm3, dword [edx]
xorps xmm6, xmm6
movss xmm5, dword [ecx]
comiss xmm5, xmm3
movss xmm4, dword [edi]
jbe 0x1003f9f3
movss xmm6, dword [0x100fccc0]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x1003fa10
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x100fccac]
subss xmm0, xmm6
movaps xmm6, xmm0
movaps xmm0, xmm3
movaps xmm1, xmm4
minss xmm0, xmm5
subss xmm3, xmm5
subss xmm1, xmm0
movaps xmm0, xmm4
addss xmm0, dword [0x100fcb24]
movaps xmm7, xmm1
mulss xmm1, dword [0x100fcc14]
divss xmm7, xmm0
addss xmm1, dword [0x100fcb24]
divss xmm3, xmm1
addss xmm3, xmm6
andps xmm3, xmmword [0x100fcff0]
comiss xmm2, xmm3
jb 0x1003faa4
movss xmm0, dword [esp + 0x18]
comiss xmm0, xmm2
jbe 0x1003faa4
comiss xmm2, xmm4
jb 0x1003fbe0
movss xmm1, dword [esp + 0x50]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x1003fbe0
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x3c]
mulss xmm2, dword [0x100fcb74]
push ecx
mov ecx, edi
call fcn.10017f30
add esp, 4
lea ecx, [edi + 8]
xorps xmm2, xmm2
lea edx, [edi + 4]
mov eax, dword [esp + 0x10]
cmp byte [esp + 0xf], 0
je 0x1003fc7d
cmp dword [esp + 0x98], 0
je 0x1003fc0d
movss xmm0, dword [edx]
xorps xmm4, xmm4
movss xmm3, dword [ecx]
movaps xmm1, xmm0
comiss xmm3, xmm0
movss xmm7, dword [edi]
movaps xmm6, xmm3
movss dword [esp + 0xe0], xmm7
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x7c], xmm3
jbe 0x1003fb01
movss xmm4, dword [0x100fccc0]
movaps xmm1, xmm3
movaps xmm6, xmm0
comiss xmm1, xmm7
movaps xmm5, xmm7
movss dword [esp + 0x50], xmm5
jbe 0x1003fb2a
movss xmm0, dword [0x100fccac]
movaps xmm5, xmm1
subss xmm0, xmm4
movss dword [esp + 0x50], xmm5
movaps xmm1, xmm7
movaps xmm4, xmm0
movaps xmm0, xmm1
mov ecx, dword [esp + 0x20]
minss xmm0, xmm6
movaps xmm3, xmm5
subss xmm1, xmm6
mov eax, dword [ecx + 0x2e44]
subss xmm3, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x100fcc14]
addss xmm0, dword [0x100fcb24]
divss xmm1, xmm0
movaps xmm0, xmm5
addss xmm1, xmm4
addss xmm0, dword [0x100fcb24]
andps xmm1, xmmword [0x100fcff0]
divss xmm3, xmm0
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x3c], xmm3
cmp eax, dword [edi]
jne 0x1003fc81
mov eax, dword [ecx + 0x2e48]
cmp eax, dword [edi + 4]
jne 0x1003fc81
mov eax, dword [ecx + 0x2e4c]
cmp eax, dword [edi + 8]
jne 0x1003fc81
ucomiss xmm3, xmm2
lahf
test ah, 0x44
jp 0x1003fbc0
movss xmm0, dword [ecx + 0x2e3c]
movss dword [esp + 0x18], xmm0
ucomiss xmm5, xmm2
lahf
test ah, 0x44
jp 0x1003fc81
movss xmm0, dword [ecx + 0x2e40]
movss dword [esp + 0x3c], xmm0
jmp 0x1003fc81
comiss xmm2, xmm7
jb 0x1003faa4
movss xmm1, dword [esp + 0x3c]
movaps xmm2, xmm4
mulss xmm1, dword [0x100fcb74]
jmp 0x1003fa90
xorps xmm2, xmm2
lea ecx, [edi + 8]
lea edx, [edi + 4]
jmp 0x1003faa8
test eax, 0x10000000
je 0x1003fc7d
movss xmm1, dword [edx]
lea eax, [esp + 0x78]
movss xmm2, dword [ecx]
lea edx, [esp + 0x94]
movss xmm0, dword [edi]
lea ecx, [esp + 0xcc]
push eax
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x54], xmm2
call fcn.10017f30
movss xmm0, dword [esp + 0xd0]
add esp, 4
movss dword [esp + 0xe0], xmm0
movss xmm0, dword [esp + 0x94]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [esp + 0x78]
movss dword [esp + 0x7c], xmm0
mov ecx, dword [esp + 0x20]
movss xmm2, dword [ecx + 0x1518]
xorps xmm0, xmm0
comiss xmm0, xmm2
movss xmm0, dword [0x100fcbb4]
jbe 0x1003fc9e
xorps xmm1, xmm1
jmp 0x1003fca5
movaps xmm1, xmm0
minss xmm1, xmm2
mulss xmm1, dword [0x100fcc5c]
mov dword [esp + 0xf8], 0x3f800000
movss dword [esp + 0x104], xmm2
movaps xmm2, xmm0
mov dword [esp + 0xfc], 0x3f800000
addss xmm1, dword [0x100fcb74]
mov dword [esp + 0x100], 0x3f800000
cvttss2si edx, xmm1
movaps xmm1, xmm0
movss xmm0, dword [esp + 0x18]
shl edx, 0x18
mov eax, edx
mov dword [esp + 0x94], edx
or eax, 0xffffff
mov ecx, edx
mov dword [esp + 0x28], eax
or ecx, 0xff
mov eax, edx
mov dword [esp + 0x118], ecx
or eax, 0x808080
mov dword [esp + 0x130], ecx
mov dword [esp + 0x78], eax
lea ecx, [esp + 0xf8]
mov eax, edx
or eax, 0xffff
mov dword [esp + 0x11c], eax
mov eax, edx
or eax, 0xff00
mov dword [esp + 0x120], eax
mov eax, edx
or eax, 0xffff00
mov dword [esp + 0x124], eax
mov eax, edx
or eax, 0xff0000
mov dword [esp + 0x128], eax
mov eax, edx
or eax, 0xff00ff
lea edx, [esp + 0xfc]
mov dword [esp + 0x12c], eax
lea eax, [esp + 0x100]
push eax
call fcn.10017f30
movss xmm3, dword [esp + 0xfc]
xorps xmm0, xmm0
movss xmm2, dword [0x100fcbb4]
add esp, 4
comiss xmm0, xmm3
jbe 0x1003fda7
xorps xmm1, xmm1
jmp 0x1003fdae
movaps xmm1, xmm2
minss xmm1, xmm3
movss xmm3, dword [0x100fcc5c]
movss xmm5, dword [0x100fcb74]
movss xmm4, dword [esp + 0xfc]
comiss xmm0, xmm4
mulss xmm1, xmm3
addss xmm1, xmm5
cvttss2si ecx, xmm1
jbe 0x1003fddd
xorps xmm1, xmm1
jmp 0x1003fde4
movaps xmm1, xmm2
minss xmm1, xmm4
movss xmm4, dword [esp + 0x100]
mulss xmm1, xmm3
addss xmm1, xmm5
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm4
jbe 0x1003fe08
xorps xmm1, xmm1
jmp 0x1003fe0f
movaps xmm1, xmm2
minss xmm1, xmm4
movss xmm4, dword [esp + 0x104]
mulss xmm1, xmm3
addss xmm1, xmm5
cvttss2si eax, xmm1
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm4
jbe 0x1003fe33
xorps xmm1, xmm1
jmp 0x1003fe3a
movaps xmm1, xmm2
minss xmm1, xmm4
movss xmm4, dword [esp + 0xe0]
mulss xmm1, xmm3
addss xmm1, xmm5
cvttss2si edx, xmm1
shl edx, 0x18
or edx, ecx
comiss xmm0, xmm4
mov dword [esp + 0xc0], edx
jbe 0x1003fe65
xorps xmm1, xmm1
jmp 0x1003fe6c
movaps xmm1, xmm2
minss xmm1, xmm4
movss xmm4, dword [esp + 0x80]
comiss xmm0, xmm4
mulss xmm1, xmm3
addss xmm1, xmm5
cvttss2si ecx, xmm1
jbe 0x1003fe8b
xorps xmm1, xmm1
jmp 0x1003fe92
movaps xmm1, xmm2
minss xmm1, xmm4
movss xmm4, dword [esp + 0x7c]
mulss xmm1, xmm3
addss xmm1, xmm5
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm4
jbe 0x1003feb3
xorps xmm1, xmm1
jmp 0x1003feba
movaps xmm1, xmm2
minss xmm1, xmm4
mulss xmm1, xmm3
addss xmm1, xmm5
cvttss2si eax, xmm1
shl eax, 0x10
or ecx, eax
mov eax, dword [esp + 0x20]
movss xmm1, dword [eax + 0x1518]
comiss xmm0, xmm1
ja 0x1003fee3
movaps xmm0, xmm2
minss xmm0, xmm1
mulss xmm0, xmm3
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
addss xmm0, xmm5
cvttss2si eax, xmm0
shl eax, 0x18
or eax, ecx
cmp dword [esp + 0x58], 0
mov dword [esp + 0x68], eax
je 0x1004083a
movss xmm1, dword [esp + 0x88]
movaps xmm3, xmm5
movss xmm0, dword [esp + 0x5c]
mov eax, 0x2aaaaaab
divss xmm3, xmm1
cvttss2si ecx, xmm1
addss xmm0, xmm1
movss dword [esp + 0xf0], xmm3
imul ecx
movss dword [esp + 0xe8], xmm0
movaps xmm4, xmm0
mov eax, 4
mulss xmm4, xmm5
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movss dword [esp + 0xc4], xmm4
mov edx, dword [esp + 0x24]
cmp ecx, eax
cmovle ecx, eax
xor esi, esi
mov dword [esp + 0xec], ecx
lea eax, [edx + 0x54]
mov dword [esp + 0x90], esi
mov dword [esp + 0x10], eax
jmp 0x1003ff94
mov edx, dword [esp + 0x24]
movd xmm1, esi
lea eax, [esp + 0x108]
cvtdq2ps xmm1, xmm1
mov edi, dword [edx + 0x18]
push ecx
push ecx
mov ecx, edx
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [0x100fcc14]
divss xmm1, dword [0x100fcc14]
addss xmm0, xmm0
movaps xmm2, xmm4
addss xmm1, xmm1
mulss xmm0, dword [0x100fcc00]
mulss xmm1, dword [0x100fcc00]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0x90], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x38], xmm1
call fcn.1002c920
movss xmm0, dword [esp + 0x8c]
mov eax, dword [esp + 0x24]
push ecx
movss dword [esp], xmm0
mov ecx, eax
push 0
push dword [esp + 0x30]
push dword [eax + 0x54]
push dword [eax + 0x5c]
call fcn.1002b400
movss xmm0, dword [esp + 0x88]
mov ecx, dword [esp + 0x24]
cvtps2pd xmm0, xmm0
mov dword [ecx + 0x54], 0
call fcn.100cd7b0
movss xmm1, dword [esp + 0x88]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x5c]
addss xmm0, dword [esp + 0xbc]
movss dword [esp + 0x6c], xmm0
cvtps2pd xmm0, xmm1
call fcn.100ce750
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x5c]
addss xmm0, dword [esp + 0xb8]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x2c]
cvtps2pd xmm0, xmm0
call fcn.100cd7b0
movss xmm1, dword [esp + 0x2c]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x5c]
addss xmm0, dword [esp + 0xbc]
movss dword [esp + 0x58], xmm0
cvtps2pd xmm0, xmm1
call fcn.100ce750
movss xmm3, dword [esp + 0x58]
xorps xmm4, xmm4
movss xmm6, dword [esp + 0x60]
movss xmm5, dword [esp + 0x6c]
cvtsd2ss xmm4, xmm0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + esi*4 + 0x118]
movss xmm2, dword [0x100fcbb4]
subss xmm3, xmm5
mulss xmm4, dword [esp + 0x5c]
mov edx, dword [eax + 0x20]
addss xmm4, dword [esp + 0xb8]
movaps xmm0, xmm3
mulss xmm0, xmm3
subss xmm4, xmm6
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
movss dword [esp + 0x60], xmm0
mov eax, dword [eax + 0x18]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [esp + 0x58], eax
movzx eax, cl
mov dword [esp + 0x2c], eax
mov eax, ecx
shr eax, 8
movzx eax, al
mov dword [esp + 0x88], eax
shr ecx, 0x10
movzx eax, cl
mov ecx, dword [esp + esi*4 + 0x11c]
mov dword [esp + 0x98], eax
movzx eax, cl
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x6c], eax
mov eax, ecx
shr eax, 8
movzx eax, al
sub eax, dword [esp + 0x88]
shr ecx, 0x10
mov dword [esp + 0x4c], eax
lea eax, [edi + edi*4]
mov edi, dword [esp + 0x58]
lea edx, [edx + eax*4]
movzx ecx, cl
sub ecx, dword [esp + 0x98]
cmp edx, edi
jae 0x10040274
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x6c]
movd xmm7, ecx
mov ecx, dword [esp + 0x98]
cvtdq2ps xmm7, xmm7
nop dword [eax]
movss xmm0, dword [edx]
movss xmm1, dword [edx + 4]
subss xmm0, xmm5
subss xmm1, xmm6
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, dword [esp + 0x60]
comiss xmm0, xmm1
jbe 0x100401e0
xorps xmm2, xmm2
jmp 0x100401e4
minss xmm2, xmm1
movd xmm1, ecx
movaps xmm0, xmm2
mulss xmm0, xmm7
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvttss2si ecx, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm1
shl ecx, 8
movd xmm1, dword [esp + 0x88]
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
or ecx, eax
shl ecx, 8
mulss xmm2, xmm0
movd xmm0, dword [esp + 0x2c]
cvtdq2ps xmm0, xmm0
addss xmm2, xmm0
cvttss2si eax, xmm2
movss xmm2, dword [0x100fcbb4]
or ecx, eax
mov eax, dword [edx + 0x10]
and eax, 0xff000000
or ecx, eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 0x10], ecx
add edx, 0x14
mov ecx, dword [esp + 0x98]
cmp edx, edi
jb 0x100401b0
mov esi, dword [esp + 0x90]
movss xmm3, dword [esp + 0xf0]
inc esi
movss xmm4, dword [esp + 0xc4]
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x90], esi
cmp esi, 6
jl 0x1003ff90
movss xmm0, dword [esp + 0x18]
addss xmm0, xmm0
mulss xmm0, dword [0x100fcc00]
movss dword [esp + 0x18], xmm0
cvtps2pd xmm0, xmm0
call fcn.100cd7b0
movss xmm1, dword [esp + 0x18]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x5c], xmm0
cvtps2pd xmm0, xmm1
call fcn.100ce750
cmp byte [esp + 0x16], 0
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x5c]
mulss xmm0, dword [esp + 0xe8]
movss dword [esp + 0x58], xmm1
mulss xmm0, dword [0x100fcb74]
addss xmm0, dword [esp + 0xbc]
movss dword [esp + 0x30], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0xe8]
movss xmm1, dword [esp + 0x8c]
mulss xmm0, dword [0x100fcb74]
addss xmm0, dword [esp + 0xb8]
movss dword [esp + 0x34], xmm0
je 0x10040346
mulss xmm1, dword [0x100fcb80]
jmp 0x1004034e
mulss xmm1, dword [0x100fcb78]
movaps xmm0, xmm1
movss dword [esp + 0x8c], xmm1
divss xmm0, dword [0x100fcbd0]
cvttss2si esi, xmm0
cmp esi, 9
jge 0x10040372
mov esi, 9
jmp 0x1004037c
mov eax, 0x20
cmp esi, eax
cmovg esi, eax
mov edi, dword [esp + 0xc0]
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x24]
movaps xmm2, xmm1
push esi
push edi
push eax
call fcn.1002d920
movss xmm2, dword [esp + 0x8c]
lea eax, [esp + 0x30]
addss xmm2, dword [0x100fcbb4]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp], 0x3f800000
push esi
push dword [esp + 0x80]
push eax
call fcn.1002d7d0
movss xmm2, dword [esp + 0x8c]
lea eax, [esp + 0x30]
push ecx
mov dword [esp], 0x3f800000
push esi
push dword [esp + 0x30]
mov esi, dword [esp + 0x30]
mov ecx, esi
push eax
call fcn.1002d7d0
movss xmm3, dword [esp + 0x5c]
xorps xmm1, xmm1
movss xmm4, dword [esp + 0x58]
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x40]
movaps xmm0, xmm4
mov eax, dword [0x10107a10]
mov ecx, esi
movss xmm6, dword [esp + 0xbc]
movaps xmm5, xmm3
mulss xmm0, xmm1
push 6
movss xmm7, dword [esp + 0xbc]
mulss xmm5, dword [esp + 0xb0]
push 6
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, dword [esp + 0xb4]
addss xmm2, xmm6
movss dword [esp + 0x38], xmm2
movaps xmm2, xmm4
mulss xmm2, dword [esp + 0x48]
addss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0xb0]
mulss xmm4, dword [esp + 0xb8]
addss xmm2, xmm7
movss dword [esp + 0x3c], xmm2
movaps xmm2, xmm5
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0xb0]
subss xmm5, xmm4
mulss xmm3, dword [esp + 0xb8]
addss xmm0, xmm1
addss xmm2, xmm6
addss xmm3, xmm1
addss xmm5, xmm6
addss xmm0, xmm7
movss dword [esp + 0x68], xmm2
addss xmm3, xmm7
movss dword [esp + 0x48], xmm5
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [eax + 0x1938]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [eax + 0x193c]
movss dword [esp + 0x64], xmm3
movss dword [esp + 0x4c], xmm3
movss dword [esp + 0x74], xmm0
call fcn.1002b1e0
mov ecx, dword [esi + 0x38]
mov ax, word [esi + 0x28]
mov word [ecx], ax
add dword [esi + 0x38], 2
mov eax, dword [esi + 0x34]
movss xmm3, dword [esp + 0x30]
movss xmm4, dword [esp + 0x34]
movss xmm0, dword [esp + 0x58]
movss dword [eax], xmm3
movss dword [eax + 4], xmm4
mov eax, dword [esi + 0x34]
movss xmm1, dword [esp + 0x6c]
movss xmm6, dword [esp + 0x60]
movss xmm5, dword [esp + 0x64]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
movss xmm7, dword [esp + 0x40]
movss xmm2, dword [esp + 0x5c]
mov dword [eax + 0x10], edi
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm6
movss dword [eax + 4], xmm5
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], edi
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
mov ecx, dword [esp + 0x28]
movss dword [eax], xmm7
movss dword [eax + 4], xmm2
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], ecx
add dword [esi + 0x34], 0x14
mov eax, dword [esi + 0x38]
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm3
movss dword [eax + 4], xmm4
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], 0
mov eax, dword [esi + 0x38]
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
mov ecx, dword [esp + 0x94]
movss dword [eax], xmm6
movss dword [eax + 4], xmm5
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], ecx
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x38]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm7
movss dword [eax + 4], xmm2
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], 0
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
test dword [esp + 0x78], 0xff000000
mov esi, dword [esp + 0xd0]
je 0x100407b2
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 4]
mov edx, dword [eax]
cmp edx, edi
jne 0x100406c3
inc edx
mov dword [esp + 0x58], edx
test edi, edi
je 0x100406ad
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x58]
mov ecx, eax
mov eax, dword [esp + 0x10]
sar ecx, 1
add ecx, edi
jmp 0x100406b2
mov ecx, 8
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
push edx
call fcn.10029b80
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
inc edi
mov dword [ecx], edi
mov eax, dword [ecx + 4]
cmp edi, eax
jne 0x1004070a
inc edi
test eax, eax
je 0x100406f6
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x100406fb
mov eax, 8
cmp eax, edi
cmovg edi, eax
push edi
call fcn.10029b80
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov eax, dword [eax]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
inc edi
mov dword [ecx], edi
mov eax, dword [ecx + 4]
cmp edi, eax
jne 0x10040755
inc edi
test eax, eax
je 0x10040741
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x10040746
mov eax, 8
cmp eax, edi
cmovg edi, eax
push edi
call fcn.10029b80
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov eax, dword [eax]
push ecx
mov dword [esp], 0x3fc00000
push 1
push dword [esp + 0x80]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, eax
inc dword [edi]
push dword [edi]
push dword [eax + 0x5c]
call fcn.1002b400
movss xmm3, dword [esp + 0x30]
movss xmm4, dword [esp + 0x34]
movss xmm5, dword [esp + 0x64]
movss xmm6, dword [esp + 0x60]
mov dword [edi], 0
movss xmm1, dword [0x100fcbb4]
xorps xmm0, xmm0
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x50]
comiss xmm0, xmm2
jbe 0x100407d0
xorps xmm7, xmm7
jmp 0x100407d7
movaps xmm7, xmm1
minss xmm7, xmm2
movss xmm2, dword [esp + 0x3c]
comiss xmm0, xmm2
jbe 0x100407e7
xorps xmm1, xmm1
jmp 0x100407eb
minss xmm1, xmm2
subss xmm3, dword [esp + 0x40]
subss xmm4, dword [esp + 0x5c]
mulss xmm3, xmm1
mulss xmm4, xmm1
addss xmm3, dword [esp + 0x40]
addss xmm4, dword [esp + 0x5c]
subss xmm6, xmm3
subss xmm5, xmm4
mulss xmm6, xmm7
mulss xmm5, xmm7
addss xmm6, xmm3
addss xmm5, xmm4
movss dword [esp + 0x80], xmm6
movss dword [esp + 0x84], xmm5
jmp 0x10040baa
test dword [esp + 0x10], 0x2000000
je 0x10040bb5
mov eax, dword [esp + 0x28]
movss xmm0, dword [esp + 0x90]
mov ecx, dword [esp + 0x24]
push eax
push edx
push edx
movss dword [esp + 0x114], xmm0
movss xmm0, dword [esp + 0x28]
addss xmm0, dword [esp + 0x60]
push eax
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x44]
push eax
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x124], xmm0
call fcn.1002d540
mov ecx, dword [esp + 0x94]
lea eax, [esp + 0x108]
movss xmm0, dword [esp + 0x90]
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
push 0
push 0
push eax
movss dword [esp + 0x11c], xmm0
lea eax, [esp + 0x44]
movss xmm0, dword [esp + 0x90]
push eax
movss dword [esp + 0x124], xmm0
call fcn.1002d540
movss xmm0, dword [esp + 0x90]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x7c]
movss dword [esp + 0x44], xmm0
xorps xmm0, xmm0
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.10018ed0
movss xmm2, dword [esp + 0x4c]
xorps xmm0, xmm0
movss xmm1, dword [0x100fcbb4]
add esp, 0x10
comiss xmm0, xmm2
jbe 0x1004092e
xorps xmm3, xmm3
jmp 0x10040935
movaps xmm3, xmm1
minss xmm3, xmm2
movss xmm7, dword [esp + 0x54]
movss xmm6, dword [esp + 0x30]
movss xmm5, dword [0x100fcb74]
mulss xmm3, xmm7
movss xmm4, dword [esp + 0x90]
addss xmm3, xmm6
addss xmm3, xmm5
cvttss2si eax, xmm3
movss xmm3, dword [0x100fcbe8]
addss xmm6, xmm3
subss xmm4, xmm3
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm6, xmm2
jbe 0x10040989
movss dword [esp + 0x80], xmm6
jmp 0x100409a2
comiss xmm2, xmm4
jbe 0x10040999
movss dword [esp + 0x80], xmm4
jmp 0x100409a2
movss dword [esp + 0x80], xmm2
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x50]
comiss xmm0, xmm2
jbe 0x100409b5
xorps xmm1, xmm1
jmp 0x100409b9
minss xmm1, xmm2
movss xmm4, dword [esp + 0x1c]
mulss xmm1, xmm7
movss xmm0, dword [esp + 0x7c]
subss xmm0, xmm3
addss xmm1, xmm4
addss xmm1, xmm5
cvttss2si eax, xmm1
movaps xmm1, xmm4
addss xmm1, xmm3
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x100409f7
movss dword [esp + 0x84], xmm1
jmp 0x10040a10
comiss xmm2, xmm0
jbe 0x10040a07
movss dword [esp + 0x84], xmm0
jmp 0x10040a10
movss dword [esp + 0x84], xmm2
movss xmm0, dword [esp + 0x9c]
movaps xmm1, xmm7
divss xmm1, dword [0x100fcc14]
mov esi, dword [esp + 0x24]
xor ecx, ecx
movss dword [esp + 0x108], xmm0
movss xmm0, dword [esp + 0xb4]
movss dword [esp + 0x58], xmm1
movss dword [esp + 0xf8], xmm0
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0x11c]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x110]
mulss xmm0, xmm1
addss xmm0, xmm4
movss dword [esp + 0x114], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0x120]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0x10c]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm4
movss dword [esp + 0x114], xmm0
call fcn.1002d540
movss xmm1, dword [esp + 0x58]
mov ecx, edi
movss xmm4, dword [esp + 0x1c]
cmp ecx, 6
jl 0x10040a50
movss xmm0, dword [esp + 0x9c]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x7c]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0xb4]
push dword [esp + 0x44]
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm4
push dword [esp + 0x44]
movss dword [esp + 0x3c], xmm0
xorps xmm0, xmm0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.10018ed0
mov esi, dword [esp + 0xe0]
movss xmm1, dword [esp + 0x84]
addss xmm1, dword [0x100fcbe8]
mov ecx, dword [esp + 0x34]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x54], xmm2
addss xmm0, dword [0x100fcbb4]
movss xmm2, dword [esp + 0xc4]
push dword [esp + 0x54]
subss xmm2, dword [0x100fcbb4]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, dword [esp + 0x68]
push dword [esp + 0x54]
movss dword [esp + 0x48], xmm2
addss xmm0, dword [esp + 0x34]
addss xmm0, dword [0x100fcb74]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x38]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x1518]
movss dword [esp + 0x4c], xmm0
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call fcn.1003e350
add esp, 0x20
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0xa0]
cmp byte [esp + 0x15], 0
je 0x10040bcf
movss xmm0, dword [0x100fcc20]
movss dword [esp + 0xe4], xmm0
jmp 0x10040bd7
movss xmm0, dword [0x100fcc14]
mov ecx, dword [esp + 0x24]
movaps xmm2, xmm0
push 0xc
push eax
lea eax, [esp + 0x88]
push eax
call fcn.1002d920
movss xmm2, dword [esp + 0xe4]
lea eax, [esp + 0x80]
addss xmm2, dword [0x100fcbb4]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp], 0x3f800000
push 0xc
push dword [esp + 0x80]
push eax
call fcn.1002d7d0
movss xmm2, dword [esp + 0xe4]
lea eax, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp], 0x3f800000
push 0xc
push dword [esp + 0x30]
push eax
call fcn.1002d7d0
cmp dword [esp + 0xa4], 0x10000
jne 0x10040e02
movss xmm2, dword [edi + 0xc]
xorps xmm1, xmm1
comiss xmm1, xmm2
jbe 0x10040c72
movss dword [esp + 0x9c], xmm1
jmp 0x10040c87
movss xmm0, dword [0x100fcbb4]
minss xmm0, xmm2
movss dword [esp + 0x9c], xmm0
movss xmm3, dword [esp + 0xd8]
xor edx, edx
movss xmm0, dword [esp + 0x1c]
movaps xmm2, xmm3
addss xmm2, dword [esp + 0x74]
mov ecx, dword [esp + 0x24]
movss dword [esp + 0x10c], xmm0
addss xmm0, dword [esp + 0x54]
mov dword [esp + 0x44], 0
push dword [esp + 0x44]
mov dword [esp + 0x44], 0
push dword [esp + 0x44]
movss dword [esp + 0x118], xmm2
subss xmm2, xmm3
movss dword [esp + 0x11c], xmm0
push dword [esp + 0x11c]
movss dword [esp + 0x114], xmm3
xorps xmm3, xmm3
push dword [esp + 0x11c]
mov edi, dword [esp + 0x118]
push dword [esp + 0x11c]
mulss xmm2, dword [0x100fcb74]
push edi
push 0
call fcn.10030af0
mov ecx, dword [esp + 0x84]
add esp, 0x1c
mov eax, ecx
and eax, 0xffffff
push eax
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x120]
push eax
lea eax, [esp + 0x11c]
push eax
call fcn.1002d540
push dword [esp + 0x114]
xorps xmm0, xmm0
push dword [esp + 0x114]
push dword [esp + 0x114]
push edi
call fcn.10018ed0
movss xmm1, dword [0x100fcbb4]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0x34]
movaps xmm0, xmm2
movss dword [esp + 0x54], xmm2
movss xmm2, dword [esp + 0xe8]
addss xmm0, xmm1
subss xmm2, xmm1
subss xmm1, dword [esp + 0xac]
push dword [esp + 0x54]
movss dword [esp + 0x54], xmm0
push dword [esp + 0x54]
mulss xmm1, dword [esp + 0x6c]
movss dword [esp + 0x48], xmm2
addss xmm1, dword [esp + 0x34]
addss xmm1, dword [0x100fcb74]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x8c]
addss xmm1, dword [0x100fcbe8]
movd xmm0, eax
mov eax, dword [esp + 0x38]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x1518]
movss dword [esp + 0x4c], xmm0
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call fcn.1003e350
add esp, 0x20
call fcn.10023ce0
cmp byte [esp + 0xf], 0
mov esi, dword [0x10107a10]
je 0x10040e92
mov edi, dword [esp + 0xd4]
lea ecx, [esp + 0x134]
mov edx, dword [esp + 0xa0]
sub edi, 4
jb 0x10040e43
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10040e48
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10040e32
cmp edi, 0xfffffffc
je 0x10040e8d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10040e75
cmp edi, 0xfffffffd
je 0x10040e8d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10040e75
cmp edi, 0xfffffffe
je 0x10040e8d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10040e75
cmp edi, 0xffffffff
je 0x10040e8d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10040e8d
mov eax, dword [esi + 0x1b9c]
mov word [esi + 0x1be4], 0x101
or dword [eax + 0x120], 4
jmp 0x10040e92
mov byte [esp + 0xf], 0
mov ecx, dword [esi + 0x1b9c]
mov al, byte [esp + 0xf]
pop edi
pop esi
dec dword [ecx + 0xc4]
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100a8abc
mov esp, ebp
pop ebp
ret