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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x100b7018]
xor eax, esp
mov dword [esp + 0x14c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, edx
mov dword [esp + 0x20], eax
mov edx, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [0x10124700]
push edi
mov dword [esp + 0x98], edx
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x199c]
mov dword [esp + 0x88], eax
cmp byte [eax + 0x7f], 0
je 0x10059f9f
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.1006e641
mov esp, ebp
pop ebp
ret
mov edi, dword [eax + 0x26c]
mov ecx, edx
mov dword [esp + 0x9c], edi
call fcn.10017b30
call fcn.10017c50
mov ecx, dword [ebp + 8]
mov edx, ecx
or edx, 0x10
test ecx, 0x100
cmovne edx, ecx
mov dword [esp + 0xdc], edx
test dl, 8
jne 0x10059fe3
mov ecx, esi
call fcn.1005d910
mov edx, dword [esp + 0xdc]
mov esi, 0xa900000
test edx, 0x6000000
jne 0x1005a00e
mov eax, dword [esp + 0x10]
mov ecx, esi
mov eax, dword [eax + 0x2c94]
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, edx
jmp 0x1005a010
mov ecx, edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
test ecx, 0x18000000
jne 0x1005a03a
mov eax, dword [edx + 0x2c94]
test eax, 0x18000000
cmovne esi, eax
and esi, 0x18000000
or ecx, esi
mov dword [esp + 0xc], ecx
test cl, 8
jne 0x1005a050
mov eax, dword [edx + 0x2c94]
and eax, 0x10000
or ecx, eax
mov dword [esp + 0xc], ecx
mov eax, ecx
mov edx, ecx
and eax, 0x10002
and edx, 2
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x60], edx
movss xmm0, dword [eax + 0xcc]
movss xmm4, dword [eax + 0xc8]
mov eax, dword [0x10124700]
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x5c], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x58], xmm4
movss xmm5, dword [eax + 0x1548]
mov esi, dword [eax + 0x199c]
addss xmm5, xmm5
movss xmm2, dword [esi + 0x170]
comiss xmm0, xmm2
addss xmm5, dword [eax + 0x18bc]
movss dword [esp + 0x64], xmm5
jbe 0x1005a13a
movss xmm3, dword [esi + 0xc8]
movss xmm1, dword [esi + 0x218]
mov ecx, dword [esi + 0x1c0]
subss xmm3, dword [esi + 0xc]
subss xmm1, dword [esi + 0xc]
test ecx, ecx
je 0x1005a126
mov edx, dword [ecx + 0xc]
movss xmm0, dword [ecx + 0x14]
lea eax, [edx + 1]
test eax, eax
cmovns edx, eax
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [esi + 0x1c0]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mov edx, dword [esp + 0x60]
mulss xmm1, dword [eax + ecx*4]
addss xmm1, xmm0
subss xmm1, dword [esi + 0x3c]
subss xmm1, xmm3
addss xmm1, xmm2
movss xmm2, dword [0x100aaca4]
maxss xmm2, xmm1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
movss xmm3, dword [eax + 0x155c]
cvttss2si eax, xmm2
movaps xmm0, xmm3
addss xmm0, xmm5
movd xmm2, eax
xor eax, eax
cmp dword [esp + 0xc0], 0x10000
cvtdq2ps xmm2, xmm2
sete al
inc eax
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
test edx, edx
sete al
mulss xmm1, xmm0
movaps xmm0, xmm5
lea eax, [eax*4 + 0xc]
push eax
mov dword [esp + 0xe0], eax
lea eax, [esp + 0x148]
subss xmm2, xmm1
movaps xmm1, xmm4
push ecx
push eax
maxss xmm0, xmm2
addss xmm1, xmm0
movss dword [esp + 0x5c], xmm0
movaps xmm0, xmm1
movss dword [esp + 0xe4], xmm1
addss xmm0, xmm3
movss dword [esp + 0xc0], xmm0
addss xmm0, xmm5
movss dword [esp + 0x10c], xmm0
addss xmm0, xmm3
movss dword [esp + 0xd0], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [0x100aac50]
cvttss2si esi, xmm0
mov dword [esp + 0x94], esi
call fcn.10070330
movss xmm1, dword [esp + 0x5c]
add esp, 0xc
movaps xmm3, xmm1
mov dword [esp + 0x30], 0
mulss xmm3, dword [0x100aac68]
movaps xmm2, xmm1
mulss xmm2, dword [0x100aac34]
movaps xmm0, xmm3
movss dword [esp + 0x34], xmm3
addss xmm0, dword [esp + 0x20]
movss dword [esp + 0x80], xmm2
movaps xmm4, xmm3
subss xmm4, xmm2
movaps xmm2, xmm1
addss xmm2, dword [esp + 0x64]
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0x94], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x100aac28]
movaps xmm1, xmm4
mulss xmm2, dword [0x100aac68]
cvttss2si eax, xmm0
addss xmm2, dword [esp + 0x58]
movss dword [esp + 0x54], xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xac], xmm2
subss xmm1, xmm0
movss dword [esp + 0x90], xmm2
movaps xmm0, xmm1
movss dword [esp + 0x2c], xmm1
mulss xmm0, dword [0x100aae08]
movaps xmm2, xmm1
mulss xmm2, dword [0x100aae14]
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0x120], xmm0
movss dword [esp + 0xb0], xmm2
movss dword [esp + 0x124], xmm2
mov eax, dword [esp + 0x18]
movss xmm7, dword [0x100aabfc]
lea ecx, [eax + 4]
movss dword [esp + 0x134], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x100aac94]
mov dword [esp + 0x7c], ecx
movss xmm3, dword [eax]
add eax, 8
movss xmm1, dword [ecx]
movss dword [esp + 0xa0], xmm0
movss dword [esp + 0x138], xmm0
movaps xmm0, xmm3
movss xmm4, dword [eax]
movss dword [esp + 0xc8], xmm0
movss dword [esp + 0xd4], xmm0
movaps xmm0, xmm1
movss dword [esp + 0x74], xmm0
movss dword [esp + 0xd0], xmm0
movaps xmm0, xmm4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
mov ecx, eax
movss dword [esp + 0x70], xmm0
and ecx, 0x8000000
movss dword [esp + 0xcc], xmm0
movss xmm0, dword [0x100aad3c]
movss dword [esp + 0x1c], xmm3
movss dword [esp + 0x48], xmm1
movss dword [esp + 0x4c], xmm4
mov dword [esp + 0x84], ecx
movss dword [esp + 0xe0], xmm0
je 0x1005a431
comiss xmm4, xmm1
xorps xmm5, xmm5
movaps xmm2, xmm1
movaps xmm6, xmm4
jbe 0x1005a3be
movss xmm5, dword [0x100aae18]
movaps xmm2, xmm4
movaps xmm6, xmm1
comiss xmm2, xmm3
movaps xmm4, xmm3
movss dword [esp + 0x4c], xmm4
jbe 0x1005a3e7
movss xmm0, dword [0x100aae04]
movaps xmm4, xmm2
subss xmm0, xmm5
movss dword [esp + 0x4c], xmm4
movaps xmm2, xmm3
movaps xmm5, xmm0
movaps xmm0, xmm2
movaps xmm1, xmm4
minss xmm0, xmm6
subss xmm2, xmm6
subss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x100aad3c]
addss xmm0, xmm7
divss xmm2, xmm0
addss xmm2, xmm5
movaps xmm0, xmm2
call fcn.1000b040
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm4
addss xmm0, xmm7
divss xmm1, xmm0
movss dword [esp + 0x48], xmm1
jmp 0x1005a48c
test eax, 0x10000000
je 0x1005a48c
lea eax, [esp + 0xcc]
movaps xmm2, xmm4
push eax
lea edx, [esp + 0xd4]
movaps xmm0, xmm3
lea ecx, [esp + 0xd8]
call fcn.1000d000
movss xmm0, dword [esp + 0xd8]
add esp, 4
movss dword [esp + 0xc8], xmm0
movss xmm0, dword [esp + 0xd0]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0xcc]
movss dword [esp + 0x70], xmm0
mov ecx, dword [0x10124700]
mov byte [esp + 0xa], 0
mov byte [esp + 0x16], 0
mov byte [esp + 0xb], 0
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov dword [esp + 0x3c], ecx
or dword [ecx + 0x16c], 8
add ecx, 0x178
mov dword [esp + 0x8c], ecx
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
cmp edx, eax
jne 0x1005a500
inc edx
mov dword [esp + 0x28], edx
test eax, eax
je 0x1005a4e9
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x1005a4ee
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.10020170
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx]
mov ecx, dword [ecx + 8]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x16c]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x3c]
inc dword [eax + 0x178]
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0x4000000
mov dword [esp + 0x68], ecx
je 0x1005ab1b
movss xmm1, dword [esp + 0x50]
lea edx, [esp + 0x40]
mov eax, dword [esp + 0x10]
movaps xmm0, xmm1
mov ecx, 0x100a80b4
movss dword [esp + 0x44], xmm1
addss xmm0, dword [eax + 0x155c]
addss xmm0, dword [esp + 0x64]
movss dword [esp + 0x40], xmm0
call fcn.1004d000
mov eax, dword [0x10124700]
mov ecx, dword [eax + 0x19bc]
test ecx, ecx
je 0x1005aa0c
mov eax, dword [eax + 0x199c]
cmp ecx, dword [eax + 0x108]
jne 0x1005aa0c
mov eax, dword [esp + 0x10]
movss xmm0, dword [eax + 0x388]
subss xmm0, dword [esp + 0xa4]
movss xmm1, dword [eax + 0x384]
subss xmm1, dword [esp + 0xac]
movss xmm2, dword [eax + 0xe0]
movss xmm4, dword [eax + 0xe4]
subss xmm2, dword [esp + 0xac]
subss xmm4, dword [esp + 0xa4]
movaps xmm3, xmm0
movss dword [esp + 0x28], xmm0
mulss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x8c], xmm1
movss xmm1, dword [0x100aaca4]
addss xmm3, xmm0
movss dword [esp + 0xe4], xmm2
movss xmm0, dword [esp + 0x54]
subss xmm0, xmm1
movss dword [esp + 0xe8], xmm4
mulss xmm0, xmm0
comiss xmm3, xmm0
jb 0x1005a69a
movss xmm0, dword [esp + 0x34]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm3
jb 0x1005a69a
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
call fcn.1008b270
movss xmm3, dword [0x100aad20]
xorps xmm0, xmm0
fstp qword [esp + 0x40]
movsd xmm1, qword [esp + 0x40]
cvtpd2ps xmm1, xmm1
divss xmm1, xmm3
mulss xmm1, dword [0x100aac68]
comiss xmm0, xmm1
movss dword [esp + 0x1c], xmm1
jbe 0x1005a692
addss xmm1, dword [0x100aaca4]
movss dword [esp + 0x1c], xmm1
mov al, 1
mov byte [esp + 0xa], al
jmp 0x1005a6ac
mov al, byte [esp + 0xa]
movss xmm3, dword [0x100aad20]
movss xmm1, dword [esp + 0x1c]
movaps xmm0, xmm1
mov byte [esp + 0x16], al
xorps xmm0, xmmword [0x100ab070]
addss xmm0, xmm0
mulss xmm0, xmm3
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x40], xmm0
call fcn.1008b7c0
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x3c], xmm0
movsd xmm0, qword [esp + 0x40]
call fcn.1008c4d0
movss xmm3, dword [esp + 0x8c]
xorps xmm5, xmm5
movss xmm1, dword [esp + 0x28]
movaps xmm4, xmm3
mulss xmm4, dword [esp + 0x3c]
cvtsd2ss xmm5, xmm0
movaps xmm0, xmm1
movss xmm7, dword [esp + 0x2c]
mulss xmm1, dword [esp + 0x3c]
movaps xmm6, xmm7
mulss xmm0, xmm5
mulss xmm3, xmm5
subss xmm4, xmm0
movss dword [esp + 0xb8], xmm5
movss xmm0, dword [esp + 0xb0]
subss xmm0, dword [esp + 0xa0]
addss xmm3, xmm1
movss xmm1, dword [esp + 0xa8]
movaps xmm5, xmm1
movaps xmm2, xmm4
subss xmm5, xmm1
subss xmm2, xmm1
movss dword [esp + 0x8c], xmm0
subss xmm6, dword [esp + 0xa8]
movss dword [esp + 0x28], xmm5
movaps xmm1, xmm2
mulss xmm1, xmm0
movaps xmm0, xmm3
subss xmm0, dword [esp + 0xa0]
movss dword [esp + 0x40], xmm6
mulss xmm0, xmm5
xorps xmm5, xmm5
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0xb0]
comiss xmm5, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x6c], xmm0
movaps xmm0, xmm3
mulss xmm1, xmm2
seta cl
subss xmm0, dword [esp + 0xb0]
mulss xmm0, xmm6
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x1005aa04
movss xmm0, dword [esp + 0xa0]
subss xmm4, xmm7
subss xmm0, xmm5
subss xmm3, xmm5
mulss xmm4, xmm0
movss xmm0, dword [esp + 0xa8]
subss xmm0, xmm7
mulss xmm0, xmm3
subss xmm4, xmm0
comiss xmm5, xmm4
seta al
cmp cl, al
jne 0x1005aa04
movss xmm6, dword [esp + 0xe4]
movss xmm1, dword [esp + 0xe8]
movaps xmm7, xmm6
movss xmm3, dword [esp + 0xb8]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x3c]
mulss xmm7, dword [esp + 0x3c]
movss xmm4, dword [esp + 0xa8]
mulss xmm0, xmm3
mulss xmm6, xmm3
subss xmm7, xmm0
addss xmm6, xmm1
movaps xmm1, xmm7
movss dword [esp + 0xb8], xmm7
subss xmm1, xmm4
movaps xmm0, xmm6
movss dword [esp + 0xbc], xmm6
subss xmm0, dword [esp + 0xa0]
mulss xmm1, dword [esp + 0x8c]
mulss xmm0, dword [esp + 0x28]
subss xmm1, xmm0
movaps xmm0, xmm6
subss xmm0, dword [esp + 0xb0]
comiss xmm5, xmm1
mulss xmm0, dword [esp + 0x40]
movaps xmm1, xmm7
subss xmm1, xmm4
seta cl
mulss xmm1, dword [esp + 0x6c]
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x1005a901
movss xmm3, dword [esp + 0x2c]
movaps xmm2, xmm7
movss xmm0, dword [esp + 0xa0]
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 0x1005a947
lea eax, [esp + 0xb8]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x128]
push eax
lea edx, [esp + 0x38]
lea ecx, [esp + 0xfc]
call fcn.1000c600
movss xmm3, dword [esp + 0x38]
add esp, 0xc
movss xmm4, dword [esp + 0xa8]
xorps xmm5, xmm5
movss xmm7, dword [eax]
movss xmm6, dword [eax + 4]
movss xmm1, dword [esp + 0xa0]
subss xmm7, xmm3
movaps xmm2, xmm4
subss xmm1, xmm5
movss xmm4, dword [esp + 0xb0]
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 [0x100aaca4]
movaps xmm5, xmm1
subss xmm6, xmm7
divss xmm0, xmm3
divss xmm6, xmm3
subss xmm5, xmm0
movss xmm0, dword [0x100aac10]
movss dword [esp + 0x48], xmm0
comiss xmm0, xmm5
movaps xmm2, xmm5
subss xmm2, xmm6
jbe 0x1005a9d5
movaps xmm3, xmm0
movss dword [esp + 0x4c], xmm0
jmp 0x1005a9e2
movaps xmm3, xmm1
minss xmm3, xmm5
movss dword [esp + 0x4c], xmm3
divss xmm2, xmm3
comiss xmm0, xmm2
ja 0x1005a9f8
movaps xmm0, xmm1
minss xmm0, xmm2
movss dword [esp + 0x48], xmm0
mov byte [esp + 0xb], 1
mov byte [esp + 0xa], 1
jmp 0x1005aa0c
mov al, byte [esp + 0xa]
mov byte [esp + 0x16], al
test byte [esp + 0xc], 8
jne 0x1005aa1d
mov ecx, str.context
call fcn.100183f0
movss xmm2, dword [esp + 0x20]
cmp dword [esp + 0xc0], 0x10000
jne 0x1005ad4d
mov ecx, dword [0x10124700]
lea edx, [esp + 0x120]
movss xmm0, dword [esp + 0xc4]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x199c]
mov ecx, str.alpha
movss dword [eax + 0xc8], xmm0
movss dword [eax + 0xcc], xmm2
movss xmm1, dword [eax + 0xe0]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xe4]
maxss xmm0, xmm2
movss dword [eax + 0xe0], xmm1
movss dword [eax + 0xe4], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x120], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x124], xmm0
call fcn.1004d000
mov eax, dword [0x10124700]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0x19bc]
test ecx, ecx
je 0x1005ad51
mov eax, dword [eax + 0x199c]
cmp ecx, dword [eax + 0x108]
jne 0x1005ad51
movss xmm0, dword [esp + 0x50]
xorps xmm2, xmm2
movss xmm1, dword [0x100aaca4]
movss xmm3, dword [edx + 0xe4]
subss xmm0, xmm1
subss xmm3, dword [esp + 0x20]
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x1005ad2f
xorps xmm4, xmm4
jmp 0x1005ad36
test eax, 0x2000000
je 0x1005aa1d
movss xmm0, dword [esp + 0x50]
lea edx, [esp + 0x120]
mov ecx, 0x100a80b8
movss dword [esp + 0x120], xmm0
movss dword [esp + 0x124], xmm0
call fcn.1004d000
mov ecx, dword [0x10124700]
mov edx, dword [ecx + 0x19bc]
test edx, edx
je 0x1005abf8
mov eax, dword [ecx + 0x199c]
cmp edx, dword [eax + 0x108]
jne 0x1005abf8
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
movss xmm3, dword [esp + 0x50]
movss xmm1, dword [0x100aaca4]
subss xmm3, xmm1
movss xmm4, dword [eax + 0xe0]
subss xmm4, dword [esp + 0x58]
movss dword [esp + 0x3c], xmm3
divss xmm4, xmm3
comiss xmm0, xmm4
jbe 0x1005abb3
movss dword [esp + 0x48], xmm0
jmp 0x1005abc0
movaps xmm2, xmm1
minss xmm2, xmm4
movss dword [esp + 0x48], xmm2
movss xmm2, dword [eax + 0xe4]
subss xmm2, dword [esp + 0x20]
divss xmm2, xmm3
comiss xmm0, xmm2
jbe 0x1005abdc
xorps xmm3, xmm3
jmp 0x1005abe3
movaps xmm3, xmm1
minss xmm3, xmm2
movaps xmm0, xmm1
mov al, 1
subss xmm0, xmm3
mov byte [esp + 0xa], al
movss dword [esp + 0x4c], xmm0
jmp 0x1005ac10
movss xmm0, dword [esp + 0x50]
subss xmm0, dword [0x100aaca4]
mov al, byte [esp + 0xa]
movss dword [esp + 0x3c], xmm0
test byte [esp + 0xc], 8
mov byte [esp + 0xb], al
mov byte [esp + 0x17], al
jne 0x1005ac2f
mov ecx, str.context
call fcn.100183f0
mov ecx, dword [0x10124700]
mov eax, dword [ecx + 0x199c]
lea edx, [esp + 0x120]
movss xmm0, dword [esp + 0xb4]
movss xmm2, dword [esp + 0x20]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x199c]
mov ecx, 0x100a80bc
movss dword [eax + 0xc8], xmm0
movss dword [eax + 0xcc], xmm2
movss xmm1, dword [eax + 0xe0]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xe4]
maxss xmm0, xmm2
movss dword [eax + 0xe0], xmm1
movss dword [eax + 0xe4], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x120], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [esp + 0x124], xmm0
call fcn.1004d000
mov eax, dword [0x10124700]
mov ecx, dword [eax + 0x19bc]
test ecx, ecx
je 0x1005aa1d
mov eax, dword [eax + 0x199c]
mov dl, byte [esp + 0xa]
mov byte [esp + 0xb], dl
cmp ecx, dword [eax + 0x108]
jne 0x1005aa1d
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
movss xmm2, dword [esp + 0x20]
movss xmm1, dword [eax + 0xe4]
subss xmm1, xmm2
divss xmm1, dword [esp + 0x3c]
comiss xmm0, xmm1
ja 0x1005ad12
movss xmm0, dword [0x100aaca4]
minss xmm0, xmm1
mov al, byte [esp + 0x17]
movss dword [esp + 0x1c], xmm0
mov byte [esp + 0x16], 1
mov byte [esp + 0xa], 1
mov byte [esp + 0xb], al
jmp 0x1005aa23
movaps xmm4, xmm1
minss xmm4, xmm3
mov eax, dword [esp + 0x18]
movaps xmm0, xmm1
subss xmm0, xmm4
mov byte [esp + 0xa], 1
movss dword [eax + 0xc], xmm0
jmp 0x1005ad51
mov edx, dword [esp + 0x10]
mov ecx, dword [0x10124700]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov eax, dword [ecx + 0x178]
add eax, 0xffffffff
mov dword [esp + 0x40], eax
mov dword [ecx + 0x178], eax
jne 0x1005ad80
xor eax, eax
jmp 0x1005ad95
mov edi, dword [esp + 0x40]
mov eax, dword [ecx + 0x180]
mov eax, dword [eax + edi*4 - 4]
mov edi, dword [esp + 0x9c]
mov dword [ecx + 0x16c], eax
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0x100
mov dword [esp + 0x28], ecx
jne 0x1005adc6
movss xmm1, dword [edx + 0x155c]
xorps xmm0, xmm0
call fcn.10017f20
call fcn.10017c50
mov eax, dword [esp + 0xc]
and eax, 0x80
mov dword [esp + 0xb8], eax
jne 0x1005ae39
mov ecx, dword [esp + 0x98]
cmp ecx, 0xffffffff
jae 0x1005ae39
mov dl, byte [ecx]
test dl, dl
je 0x1005adf6
cmp dl, 0x23
jne 0x1005adf0
cmp byte [ecx + 1], dl
je 0x1005adf6
inc ecx
cmp ecx, 0xffffffff
jb 0x1005ade0
mov eax, dword [esp + 0x98]
mov dword [esp + 0x3c], ecx
cmp eax, ecx
je 0x1005ae39
cmp dword [esp + 0x28], 0
je 0x1005ae2b
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x155c]
call fcn.10017f20
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x98]
mov edx, ecx
mov ecx, eax
push 0
call fcn.1004b5e0
add esp, 4
cmp dword [esp + 0x28], 0
jne 0x1005b090
mov ecx, dword [0x10124700]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov dword [esp + 0x28], ecx
or dword [ecx + 0x16c], 0x10
add ecx, 0x178
mov dword [esp + 0x6c], ecx
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
cmp edx, eax
jne 0x1005aea3
inc edx
mov dword [esp + 0x40], edx
test eax, eax
je 0x1005ae8f
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x1005ae94
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.10020170
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x28]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 0x16c]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x28]
inc dword [eax + 0x178]
cmp dword [esp + 0x60], 0
mov eax, dword [esp + 0x18]
je 0x1005aed4
movss xmm1, dword [0x100aaca4]
jmp 0x1005aed9
movss xmm1, dword [eax + 0xc]
cmp dword [esp + 0xb8], 0
movss xmm0, dword [eax]
mov eax, dword [esp + 0x7c]
movss dword [esp + 0x134], xmm0
movss dword [esp + 0x140], xmm1
movss xmm0, dword [eax]
mov eax, dword [esp + 0x38]
movss dword [esp + 0x138], xmm0
movss xmm0, dword [eax]
movss dword [esp + 0x13c], xmm0
je 0x1005af28
push str.Current
call fcn.1004bd10
add esp, 4
movss xmm1, dword [esp + 0x64]
lea edx, [esp + 0x134]
mov eax, dword [esp + 0xc]
movaps xmm0, xmm1
mulss xmm0, dword [0x100aad1c]
and eax, 0x180e0040
mov ecx, str.current
mov dword [esp + 0xb8], eax
movss dword [esp + 0xe8], xmm0
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0xec], xmm0
push dword [esp + 0xec]
movss dword [esp + 0x70], xmm0
push dword [esp + 0xec]
push eax
call fcn.1005c780
add esp, 0xc
cmp dword [esp + 0x24], 0
je 0x1005b050
push str.Original
call fcn.1004bd10
mov eax, dword [esp + 0x28]
add esp, 4
cmp dword [esp + 0x60], 0
je 0x1005afbe
movss xmm1, dword [0x100aaca4]
jmp 0x1005afc3
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0x120]
movss dword [esp + 0x120], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0x124], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x128], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x44], xmm0
push dword [esp + 0x44]
movss dword [esp + 0x130], xmm1
push dword [esp + 0x44]
push dword [esp + 0xc0]
call fcn.1005c780
add esp, 0xc
test al, al
je 0x1005b050
push dword [esp + 0xdc]
push dword [esp + 0x28]
push dword [esp + 0x20]
call fcn.10070330
add esp, 0xc
mov byte [esp + 0xa], 1
mov ecx, dword [0x10124700]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov edx, dword [ecx + 0x178]
sub edx, 1
mov dword [ecx + 0x178], edx
jne 0x1005b07b
xor eax, eax
jmp 0x1005b085
mov eax, dword [ecx + 0x180]
mov eax, dword [eax + edx*4 - 4]
mov dword [ecx + 0x16c], eax
call fcn.10017d80
cmp byte [esp + 0x16], 0
jne 0x1005b09e
cmp byte [esp + 0xb], 0
je 0x1005b10a
cmp dword [esp + 0x84], 0
je 0x1005b133
movss xmm1, dword [esp + 0x4c]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1005b0bf
movaps xmm3, xmm1
jmp 0x1005b0c7
movss xmm3, dword [0x100aac00]
movss xmm1, dword [esp + 0x48]
comiss xmm1, xmm0
movss xmm2, dword [0x100aac04]
ja 0x1005b0dd
movaps xmm1, xmm2
movss xmm0, dword [esp + 0x1c]
comiss xmm0, dword [0x100aaca4]
jb 0x1005b0f0
subss xmm0, xmm2
push dword [esp + 0x38]
mov edx, dword [esp + 0x80]
movaps xmm2, xmm3
mov ecx, dword [esp + 0x1c]
call fcn.1000d000
add esp, 4
mov eax, dword [esp + 0xc]
mov byte [esp + 0x17], 0
test al, 0x20
jne 0x1005b52b
cmp dword [esp + 0xc0], 0x10000
jne 0x1005b164
movss xmm0, dword [esp + 0xc4]
jmp 0x1005b16d
mov eax, dword [esp + 0xc]
test eax, 0x10000000
je 0x1005b10e
mov ecx, dword [esp + 0x18]
movss xmm0, dword [esp + 0x48]
movss xmm1, dword [esp + 0x1c]
movss dword [ecx + 4], xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [ecx], xmm1
movss dword [ecx + 8], xmm0
jmp 0x1005b10e
movss xmm0, dword [esp + 0xb4]
addss xmm0, dword [esp + 0x64]
mov ecx, dword [0x10124700]
subss xmm0, dword [esp + 0x58]
mov eax, dword [ecx + 0x199c]
ucomiss xmm0, dword [0x100aabec]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov dword [esp + 0x38], ecx
lahf
test ah, 0x44
jp 0x1005b1a8
movss xmm0, dword [ecx + 0x224]
movss dword [ecx + 0x170], xmm0
add ecx, 0x184
mov dword [esp + 0x6c], ecx
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
cmp edx, eax
jne 0x1005b1ee
inc edx
mov dword [esp + 0x40], edx
test eax, eax
je 0x1005b1da
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x1005b1df
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.10020170
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x38]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 0x170]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x38]
inc dword [eax + 0x184]
mov eax, dword [esp + 0xc]
mov edx, eax
and edx, 0x198e001a
mov dword [esp + 0x60], edx
test eax, 0x100000
jne 0x1005b235
mov ecx, eax
and ecx, 0x700000
mov dword [esp + 0x24], ecx
jne 0x1005b295
mov dword [esp + 0x24], ecx
jmp 0x1005b23e
and eax, 0x700000
mov dword [esp + 0x24], eax
or edx, 0x100004
mov ecx, str.rgb
push edx
mov edx, dword [esp + 0x1c]
call fcn.100588f0
add esp, 4
test al, al
je 0x1005b289
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x19bc], 0
je 0x1005b275
cmp byte [eax + 0x19cd], 0
mov byte [esp + 0x17], 1
je 0x1005b27a
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0x24]
mov byte [esp + 0xa], 1
mov dword [esp + 0x24], ecx
jmp 0x1005b28d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0xc]
test eax, 0x200000
jne 0x1005b2a0
test ecx, ecx
jne 0x1005b2c4
or edx, 0x200004
mov ecx, str.hsv
push edx
mov edx, dword [esp + 0x1c]
call fcn.100588f0
mov ecx, dword [esp + 0x28]
add esp, 4
or byte [esp + 0xa], al
mov eax, dword [esp + 0xc]
test eax, 0x400000
jne 0x1005b2cf
test ecx, ecx
jne 0x1005b2ee
mov eax, dword [esp + 0x60]
mov ecx, str.hex
mov edx, dword [esp + 0x18]
or eax, 0x400004
push eax
call fcn.100588f0
add esp, 4
or byte [esp + 0xa], al
mov ecx, dword [0x10124700]
mov eax, dword [ecx + 0x199c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x199c]
mov edx, dword [ecx + 0x184]
sub edx, 1
mov dword [ecx + 0x184], edx
jne 0x1005b31f
movss xmm0, dword [ecx + 0x224]
jmp 0x1005b32b
mov eax, dword [ecx + 0x18c]
movss xmm0, dword [eax + edx*4 - 4]
cmp byte [esp + 0x17], 0
movss dword [ecx + 0x170], xmm0
mov ecx, dword [esp + 0x18]
je 0x1005b42e
cmp dword [esp + 0x84], 0
je 0x1005b42e
movss xmm3, dword [ecx + 4]
lea edx, [ecx + 4]
movss xmm5, dword [ecx + 8]
lea eax, [ecx + 8]
comiss xmm5, xmm3
movss xmm4, dword [ecx]
xorps xmm2, xmm2
xorps xmm6, xmm6
jbe 0x1005b380
movss xmm6, dword [0x100aae18]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x1005b39d
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x100aae04]
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 [0x100aabfc]
movaps xmm7, xmm1
mulss xmm1, dword [0x100aad3c]
divss xmm7, xmm0
addss xmm1, dword [0x100aabfc]
divss xmm3, xmm1
addss xmm3, xmm6
movaps xmm0, xmm3
call fcn.1000b040
comiss xmm2, xmm0
jb 0x1005b432
movss xmm0, dword [esp + 0x1c]
comiss xmm0, xmm2
jbe 0x1005b432
comiss xmm2, xmm4
jb 0x1005b50b
movss xmm1, dword [esp + 0x4c]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
lea eax, [ecx + 8]
jnp 0x1005b50b
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x48]
mulss xmm2, dword [0x100aac68]
push eax
call fcn.1000d000
mov ecx, dword [esp + 0x1c]
add esp, 4
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0xc]
cmp byte [esp + 0xa], 0
je 0x1005b5ac
cmp dword [esp + 0x84], 0
je 0x1005b538
movss xmm1, dword [edx]
xorps xmm4, xmm4
movss xmm3, dword [ecx + 8]
movaps xmm2, xmm1
comiss xmm3, xmm1
movss xmm0, dword [ecx]
movaps xmm5, xmm3
movss dword [esp + 0xc8], xmm0
movss dword [esp + 0x74], xmm1
movss dword [esp + 0x70], xmm3
jbe 0x1005b48d
movss xmm4, dword [0x100aae18]
movaps xmm2, xmm3
movaps xmm5, xmm1
comiss xmm2, xmm0
movaps xmm3, xmm0
movss dword [esp + 0x4c], xmm3
jbe 0x1005b4b6
movaps xmm3, xmm2
movaps xmm2, xmm0
movss xmm0, dword [0x100aae04]
subss xmm0, xmm4
movss dword [esp + 0x4c], xmm3
movaps xmm4, xmm0
movaps xmm0, xmm2
movaps xmm1, xmm3
minss xmm0, xmm5
subss xmm2, xmm5
subss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x100aad3c]
addss xmm0, dword [0x100aabfc]
divss xmm2, xmm0
addss xmm2, xmm4
movaps xmm0, xmm2
call fcn.1000b040
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x100aabfc]
divss xmm1, xmm0
movss dword [esp + 0x48], xmm1
jmp 0x1005b5ac
comiss xmm2, xmm7
jb 0x1005b432
movss xmm1, dword [esp + 0x48]
movaps xmm2, xmm4
mulss xmm1, dword [0x100aac68]
push eax
jmp 0x1005b422
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x7c]
jmp 0x1005b436
test eax, 0x10000000
je 0x1005b5ac
movss xmm0, dword [ecx]
lea eax, [esp + 0xcc]
movss xmm1, dword [edx]
lea edx, [esp + 0xd0]
movss xmm2, dword [ecx + 8]
lea ecx, [esp + 0xd4]
push eax
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x50], xmm2
call fcn.1000d000
movss xmm0, dword [esp + 0xd8]
add esp, 4
movss dword [esp + 0xc8], xmm0
movss xmm0, dword [esp + 0xd0]
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0xcc]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0x1c]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x120], xmm0
fld qword [esp + 0x120]
fld1
call fcn.1008b280
fstp qword [esp + 0x120]
movsd xmm1, qword [esp + 0x120]
xorps xmm0, xmm0
cvtpd2ps xmm1, xmm1
movss xmm2, dword [0x100aaca4]
divss xmm1, dword [0x100aac48]
movaps xmm3, xmm2
cvttss2si eax, xmm1
cvtsi2ss xmm0, eax
subss xmm1, xmm0
movaps xmm0, xmm2
subss xmm3, xmm1
subss xmm0, xmm3
cmp eax, 5
ja case.0x1005b612.5
jmp dword [eax*4 + 0x1005c764]
movaps xmm5, xmm0
xorps xmm0, xmm0
jmp 0x1005b650
movaps xmm4, xmm3
movaps xmm5, xmm2
xorps xmm0, xmm0
jmp 0x1005b653
xorps xmm4, xmm4
movaps xmm5, xmm2
jmp 0x1005b653
xorps xmm4, xmm4
movaps xmm5, xmm3
movaps xmm0, xmm2
jmp 0x1005b653
movaps xmm4, xmm0
xorps xmm5, xmm5
movaps xmm0, xmm2
jmp 0x1005b653
xorps xmm5, xmm5
movaps xmm0, xmm3
movaps xmm4, xmm2
xorps xmm1, xmm1
comiss xmm1, xmm4
jbe 0x1005b660
xorps xmm3, xmm3
jmp 0x1005b667
movaps xmm3, xmm2
minss xmm3, xmm4
comiss xmm1, xmm5
movss xmm4, dword [0x100aadb0]
movss xmm6, dword [0x100aac68]
mulss xmm3, xmm4
addss xmm3, xmm6
cvttss2si ecx, xmm3
jbe 0x1005b68d
xorps xmm3, xmm3
jmp 0x1005b694
movaps xmm3, xmm2
minss xmm3, xmm5
mulss xmm3, xmm4
addss xmm3, xmm6
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm1, xmm0
jbe 0x1005b6af
xorps xmm3, xmm3
jmp 0x1005b6b6
movaps xmm3, xmm2
minss xmm3, xmm0
mulss xmm3, xmm4
addss xmm3, xmm6
cvttss2si eax, xmm3
movss xmm3, dword [esp + 0xc8]
shl eax, 0x10
or ecx, eax
or ecx, 0xff000000
comiss xmm1, xmm3
mov dword [esp + 0x60], ecx
jbe 0x1005b6e4
xorps xmm0, xmm0
jmp 0x1005b6eb
movaps xmm0, xmm2
minss xmm0, xmm3
movss xmm3, dword [esp + 0x74]
comiss xmm1, xmm3
mulss xmm0, xmm4
addss xmm0, xmm6
cvttss2si edx, xmm0
jbe 0x1005b707
xorps xmm0, xmm0
jmp 0x1005b70e
movaps xmm0, xmm2
minss xmm0, xmm3
movss xmm3, dword [esp + 0x70]
mulss xmm0, xmm4
addss xmm0, xmm6
cvttss2si eax, xmm0
shl eax, 8
or edx, eax
comiss xmm1, xmm3
jbe 0x1005b72f
xorps xmm0, xmm0
jmp 0x1005b736
movaps xmm0, xmm2
minss xmm0, xmm3
mulss xmm0, xmm4
mov dword [esp + 0x104], 0xff0000ff
mov dword [esp + 0x108], 0xff00ffff
mov dword [esp + 0x10c], 0xff00ff00
addss xmm0, xmm6
mov dword [esp + 0x110], 0xffffff00
mov dword [esp + 0x114], 0xffff0000
mov dword [esp + 0x118], 0xffff00ff
mov dword [esp + 0x11c], 0xff0000ff
mov dword [esp + 0x78], 0
cvttss2si eax, xmm0
mov dword [esp + 0x74], 0
shl eax, 0x10
or edx, eax
or edx, 0xff000000
cmp dword [esp + 0x68], 0
mov dword [esp + 0x98], edx
je 0x1005c0c1
movss xmm1, dword [esp + 0x34]
mov eax, 0x2aaaaaab
movss xmm3, dword [0x100aacd0]
movss xmm0, dword [esp + 0x54]
divss xmm3, xmm1
cvttss2si ecx, xmm1
addss xmm0, xmm1
movss dword [esp + 0xb8], xmm3
imul ecx
movss dword [esp + 0x8c], xmm0
movaps xmm4, xmm0
mov eax, 4
mulss xmm4, xmm6
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movss dword [esp + 0xe8], xmm4
cmp ecx, eax
cmovle ecx, eax
xor eax, eax
mov dword [esp + 0xe4], ecx
mov dword [esp + 0x84], eax
nop dword [eax + eax]
movd xmm1, eax
lea eax, [esp + 0x90]
cvtdq2ps xmm1, xmm1
mov esi, dword [edi + 0x18]
push ecx
push ecx
mov ecx, edi
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [0x100aad3c]
divss xmm1, dword [0x100aad3c]
addss xmm0, xmm0
movaps xmm2, xmm4
addss xmm1, xmm1
mulss xmm0, dword [0x100aad20]
mulss xmm1, dword [0x100aad20]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0x3c], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x44], xmm1
call fcn.10045700
movss xmm0, dword [esp + 0x80]
push ecx
movss dword [esp], xmm0
mov ecx, edi
push 0
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.100445b0
movss xmm0, dword [esp + 0x34]
cvtps2pd xmm0, xmm0
mov dword [edi + 0x54], 0
call fcn.1008b7c0
movss xmm1, dword [esp + 0x34]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x54]
addss xmm0, dword [esp + 0xac]
movss dword [esp + 0x40], xmm0
cvtps2pd xmm0, xmm1
call fcn.1008c4d0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x54]
addss xmm0, dword [esp + 0xa4]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [esp + 0x38]
cvtps2pd xmm0, xmm0
call fcn.1008b7c0
movss xmm1, dword [esp + 0x38]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x54]
addss xmm0, dword [esp + 0xac]
movss dword [esp + 0x68], xmm0
cvtps2pd xmm0, xmm1
call fcn.1008c4d0
movss xmm3, dword [esp + 0x68]
xorps xmm4, xmm4
movss xmm5, dword [esp + 0x40]
movss xmm6, dword [esp + 0x6c]
subss xmm3, xmm5
cvtsd2ss xmm4, xmm0
mov edx, dword [esp + 0x84]
mov ecx, dword [edi + 0x20]
movss xmm2, dword [0x100aaca4]
movaps xmm0, xmm3
mulss xmm4, dword [esp + 0x54]
movaps xmm7, xmm2
mov eax, dword [esp + edx*4 + 0x108]
mov edx, dword [esp + edx*4 + 0x104]
mulss xmm0, xmm3
mov dword [esp + 0x34], eax
addss xmm4, dword [esp + 0xa4]
mov eax, dword [edi + 0x18]
subss xmm4, xmm6
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
divss xmm7, xmm1
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x28], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x28]
jae 0x1005baff
movzx eax, dl
mov dword [esp + 0x38], eax
mov eax, edx
shr eax, 8
movzx esi, al
mov eax, dword [esp + 0x34]
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x34]
shr edx, 0x10
movzx edx, dl
shr eax, 8
sub ecx, edx
mov dword [esp + 0x3c], edx
movzx edx, al
mov eax, dword [esp + 0x34]
sub edx, esi
movzx edi, al
sub edi, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x3c]
nop dword [eax]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
subss xmm0, xmm5
subss xmm1, xmm6
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, xmm7
comiss xmm0, xmm1
jbe 0x1005ba4e
xorps xmm2, xmm2
jmp 0x1005ba52
minss xmm2, xmm1
movd xmm1, ecx
movaps xmm0, xmm2
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm1
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov esi, dword [esp + 0x24]
addss xmm0, xmm1
movd xmm1, edx
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm1
shl eax, 8
movd xmm1, dword [esp + 0x68]
cvtdq2ps xmm1, xmm1
mov dword [esp + 0x10], eax
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, edi
or dword [esp + 0x10], eax
shl dword [esp + 0x10], 8
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm0
movd xmm0, dword [esp + 0x38]
cvtdq2ps xmm0, xmm0
addss xmm2, xmm0
cvttss2si eax, xmm2
movss xmm2, dword [0x100aaca4]
or dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
and eax, 0xff000000
or dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov eax, esi
mov esi, dword [esp + 0x3c]
add eax, 0x14
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x28]
jb 0x1005ba20
mov edi, dword [esp + 0x9c]
mov eax, dword [esp + 0x84]
movss xmm3, dword [esp + 0xb8]
inc eax
movss xmm4, dword [esp + 0xe8]
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x84], eax
cmp eax, 6
jl 0x1005b830
movss xmm0, dword [esp + 0x1c]
addss xmm0, xmm0
mulss xmm0, dword [0x100aad20]
movss dword [esp + 0x1c], xmm0
cvtps2pd xmm0, xmm0
call fcn.1008b7c0
movss xmm1, dword [esp + 0x1c]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x54], xmm0
cvtps2pd xmm0, xmm1
call fcn.1008c4d0
cmp byte [esp + 0x16], 0
xorps xmm5, xmm5
movss xmm3, dword [esp + 0x54]
movss xmm6, dword [esp + 0xac]
cvtsd2ss xmm5, xmm0
movaps xmm0, xmm3
movss xmm4, dword [esp + 0x80]
mulss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x34], xmm5
mulss xmm0, dword [0x100aac68]
addss xmm0, xmm6
movss dword [esp + 0x58], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x8c]
mulss xmm0, dword [0x100aac68]
addss xmm0, dword [esp + 0xa4]
movss dword [esp + 0x5c], xmm0
je 0x1005bbdf
mulss xmm4, dword [0x100aac74]
jmp 0x1005bbe7
mulss xmm4, dword [0x100aac6c]
movaps xmm0, xmm4
movss dword [esp + 0x80], xmm4
divss xmm0, dword [0x100aaccc]
cvttss2si esi, xmm0
cmp esi, 9
jge 0x1005bc0b
mov esi, 9
jmp 0x1005bc1e
mov eax, 0x20
cmp esi, eax
cmovg esi, eax
cmp esi, 2
jle 0x1005bd65
movd xmm1, esi
lea eax, [esi - 1]
cvtdq2ps xmm1, xmm1
push eax
push ecx
lea eax, [esp + 0x60]
mov ecx, edi
xorps xmm3, xmm3
movaps xmm2, xmm4
movaps xmm0, xmm1
subss xmm0, dword [0x100aaca4]
mulss xmm0, dword [0x100aad44]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.10045700
push dword [esp + 0x60]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.100451b0
movd xmm1, esi
lea eax, [esi - 1]
cvtdq2ps xmm1, xmm1
push eax
lea eax, [esp + 0x5c]
mov dword [edi + 0x54], 0
push ecx
mov ecx, edi
movss xmm2, dword [esp + 0x88]
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, dword [0x100aaca4]
addss xmm2, dword [0x100aaca4]
mulss xmm0, dword [0x100aad44]
subss xmm2, dword [0x100aac68]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.10045700
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xff808080
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.100445b0
mov dword [edi + 0x54], 0
cmp esi, 2
jle 0x1005bd50
movd xmm1, esi
lea eax, [esi - 1]
cvtdq2ps xmm1, xmm1
push eax
lea eax, [esp + 0x5c]
push ecx
mov ecx, edi
movss xmm2, dword [esp + 0x88]
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, dword [0x100aaca4]
subss xmm2, dword [0x100aac68]
mulss xmm0, dword [0x100aad44]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.10045700
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.100445b0
mov dword [edi + 0x54], 0
movss xmm6, dword [esp + 0xac]
movss xmm5, dword [esp + 0x34]
movss xmm3, dword [esp + 0x54]
movaps xmm2, xmm3
mov eax, dword [0x10124700]
mulss xmm2, dword [esp + 0x2c]
xorps xmm1, xmm1
push 6
movaps xmm0, xmm5
movaps xmm4, xmm3
mulss xmm0, xmm1
mov ecx, edi
push 6
mulss xmm4, dword [esp + 0xb0]
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0xb0]
addss xmm2, xmm6
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0x128], xmm2
movaps xmm2, xmm5
mulss xmm2, dword [esp + 0x34]
addss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0xb8]
mulss xmm5, dword [esp + 0xa8]
addss xmm2, dword [esp + 0xac]
movss dword [esp + 0x30], xmm2
movss dword [esp + 0x12c], xmm2
movaps xmm2, xmm4
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0xb8]
subss xmm4, xmm5
mulss xmm3, dword [esp + 0xa8]
addss xmm0, xmm1
addss xmm4, xmm6
addss xmm3, xmm1
addss xmm2, xmm6
addss xmm0, dword [esp + 0xac]
movss dword [esp + 0x40], xmm4
addss xmm3, dword [esp + 0xac]
movss dword [esp + 0x34], xmm2
movss dword [esp + 0x98], xmm4
movss dword [esp + 0x38], xmm0
movss xmm0, dword [eax + 0x18c4]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [eax + 0x18c8]
movss dword [esp + 0x5c], xmm3
movss dword [esp + 0x9c], xmm3
movss dword [esp + 0x48], xmm0
call fcn.10044400
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x30]
movss xmm2, dword [esp + 0x34]
movss xmm3, dword [esp + 0x28]
movss xmm0, dword [esp + 0x68]
movss xmm1, dword [esp + 0x40]
mov word [ecx], ax
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
mov edx, dword [esp + 0x60]
movss xmm5, dword [esp + 0x2c]
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
mov eax, dword [edi + 0x34]
movss xmm4, dword [esp + 0x30]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], edx
mov eax, dword [edi + 0x38]
add dword [edi + 0x34], 0x14
inc dword [edi + 0x30]
mov ecx, dword [edi + 0x30]
mov word [eax], cx
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
movss dword [eax], xmm5
movss dword [eax + 4], xmm4
mov eax, dword [edi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
movss xmm7, dword [esp + 0x38]
movss xmm6, dword [esp + 0x54]
mov dword [eax + 0x10], edx
add dword [edi + 0x34], 0x14
inc dword [edi + 0x30]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x30]
mov word [eax], cx
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
movss dword [eax], xmm7
movss dword [eax + 4], xmm6
mov eax, dword [edi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], 0xffffffff
add dword [edi + 0x34], 0x14
mov eax, dword [edi + 0x38]
inc dword [edi + 0x30]
mov ecx, dword [edi + 0x30]
mov word [eax], cx
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
mov eax, dword [edi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], 0
add dword [edi + 0x34], 0x14
mov eax, dword [edi + 0x38]
inc dword [edi + 0x30]
mov ecx, dword [edi + 0x30]
mov word [eax], cx
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
movss dword [eax], xmm5
movss dword [eax + 4], xmm4
mov eax, dword [edi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], 0xff000000
mov eax, dword [edi + 0x38]
add dword [edi + 0x34], 0x14
inc dword [edi + 0x30]
mov ecx, dword [edi + 0x30]
mov word [eax], cx
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
push ecx
mov dword [esp], 0x3fc00000
mov ecx, edi
movss dword [eax], xmm7
movss dword [eax + 4], xmm6
mov eax, dword [edi + 0x34]
push 0xff808080
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], 0
lea eax, [esp + 0x98]
add dword [edi + 0x34], 0x14
inc dword [edi + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x130]
push eax
call fcn.10046310
movss xmm2, dword [0x100aaca4]
xorps xmm1, xmm1
movaps xmm0, xmm2
subss xmm0, dword [esp + 0x4c]
comiss xmm1, xmm0
jbe 0x1005c03e
xorps xmm4, xmm4
jmp 0x1005c045
movaps xmm4, xmm2
minss xmm4, xmm0
movss xmm0, dword [esp + 0x48]
comiss xmm1, xmm0
jbe 0x1005c055
xorps xmm2, xmm2
jmp 0x1005c059
minss xmm2, xmm0
movss xmm0, dword [esp + 0x34]
subss xmm0, dword [esp + 0x38]
movss xmm3, dword [esp + 0x2c]
mov esi, dword [esp + 0x88]
mulss xmm0, xmm2
addss xmm0, dword [esp + 0x38]
subss xmm3, xmm0
mulss xmm3, xmm4
addss xmm3, xmm0
movss xmm0, dword [esp + 0x28]
subss xmm0, dword [esp + 0x54]
movss dword [esp + 0x74], xmm3
mulss xmm0, xmm2
movss xmm2, dword [esp + 0x30]
addss xmm0, dword [esp + 0x54]
subss xmm2, xmm0
mulss xmm2, xmm4
addss xmm2, xmm0
movss dword [esp + 0x78], xmm2
jmp 0x1005c410
test dword [esp + 0xc], 0x2000000
je 0x1005c410
movss xmm0, dword [esp + 0xd8]
lea eax, [esp + 0x90]
push 0xffffffffffffffff
push ecx
push ecx
movss dword [esp + 0x9c], xmm0
mov ecx, edi
movss xmm0, dword [esp + 0x2c]
addss xmm0, dword [esp + 0x5c]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x6c]
push eax
movss dword [esp + 0x88], xmm0
movss dword [esp + 0xac], xmm0
call fcn.10046190
movss xmm0, dword [esp + 0xd8]
lea eax, [esp + 0x90]
push 0xff000000
push 0xff000000
push 0
push 0
push eax
movss dword [esp + 0xa4], xmm0
lea eax, [esp + 0x6c]
movss xmm0, dword [esp + 0x84]
mov ecx, edi
push eax
movss dword [esp + 0xac], xmm0
call fcn.10046190
movss xmm0, dword [esp + 0xd8]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [esp + 0x30], xmm0
xorps xmm0, xmm0
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.1000e190
movss xmm2, dword [esp + 0x58]
xorps xmm0, xmm0
movss xmm1, dword [0x100aaca4]
add esp, 0x10
comiss xmm0, xmm2
jbe 0x1005c1b0
xorps xmm3, xmm3
jmp 0x1005c1b7
movaps xmm3, xmm1
minss xmm3, xmm2
movss xmm7, dword [esp + 0x50]
movss xmm6, dword [esp + 0x58]
movss xmm5, dword [0x100aac68]
mulss xmm3, xmm7
movss xmm4, dword [0x100aacfc]
addss xmm3, xmm6
addss xmm6, xmm4
addss xmm3, xmm5
cvttss2si eax, xmm3
movss xmm3, dword [esp + 0xd8]
subss xmm3, xmm4
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm6, xmm2
jbe 0x1005c208
movss dword [esp + 0x74], xmm6
jmp 0x1005c21b
comiss xmm2, xmm3
jbe 0x1005c215
movss dword [esp + 0x74], xmm3
jmp 0x1005c21b
movss dword [esp + 0x74], xmm2
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x4c]
comiss xmm0, xmm2
jbe 0x1005c22e
xorps xmm1, xmm1
jmp 0x1005c232
minss xmm1, xmm2
movss xmm3, dword [esp + 0x20]
mulss xmm1, xmm7
movss xmm0, dword [esp + 0x70]
subss xmm0, xmm4
addss xmm1, xmm3
addss xmm1, xmm5
cvttss2si eax, xmm1
movaps xmm1, xmm3
addss xmm1, xmm4
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x1005c26d
movss dword [esp + 0x78], xmm1
jmp 0x1005c280
comiss xmm2, xmm0
jbe 0x1005c27a
movss dword [esp + 0x78], xmm0
jmp 0x1005c280
movss dword [esp + 0x78], xmm2
movss xmm0, dword [esp + 0xb4]
movaps xmm1, xmm7
divss xmm1, dword [0x100aad3c]
mov esi, dword [esp + 0x9c]
xor ecx, ecx
movss dword [esp + 0x120], xmm0
movss xmm0, dword [esp + 0x100]
movss dword [esp + 0x68], xmm1
movss dword [esp + 0x90], xmm0
nop
mov eax, dword [esp + ecx*4 + 0x108]
lea edi, [ecx + 1]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov ecx, dword [esp + ecx*4 + 0x104]
push eax
push eax
push ecx
push ecx
mulss xmm0, xmm1
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x134]
mov ecx, esi
push eax
addss xmm0, xmm3
movss dword [esp + 0x13c], xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xac], xmm0
call fcn.10046190
movss xmm1, dword [esp + 0x68]
mov ecx, edi
movss xmm3, dword [esp + 0x20]
cmp ecx, 6
jl 0x1005c2c0
movss xmm0, dword [esp + 0xb4]
movss dword [esp + 0x58], xmm0
movaps xmm0, xmm3
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x100]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [esp + 0x30], xmm0
xorps xmm0, xmm0
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.1000e190
movss xmm0, dword [esp + 0xc4]
subss xmm0, dword [0x100aaca4]
mov esi, dword [esp + 0x98]
movss xmm1, dword [esp + 0x74]
addss xmm1, dword [0x100aacfc]
mov edi, dword [esp + 0xac]
mov ecx, edi
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, dword [esp + 0x60]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
addss xmm0, dword [esp + 0x30]
movss dword [esp + 0x40], xmm2
push dword [esp + 0x40]
addss xmm0, dword [0x100aac68]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x70], xmm0
movaps xmm0, xmm2
addss xmm0, dword [0x100aaca4]
movss dword [esp + 0x40], xmm0
push dword [esp + 0x40]
push dword [esp + 0x74]
push dword [esp + 0x74]
call fcn.10059d60
add esp, 0x20
cmp byte [esp + 0xb], 0
je 0x1005c428
movss xmm0, dword [0x100aad58]
movss dword [esp + 0xe0], xmm0
movss xmm2, dword [esp + 0xe0]
lea eax, [esp + 0x74]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
mov ecx, edi
call fcn.10045700
push dword [esp + 0x98]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.100451b0
movss xmm2, dword [esp + 0xe0]
lea eax, [esp + 0x74]
addss xmm2, dword [0x100aaca4]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
subss xmm2, dword [0x100aac68]
mov ecx, edi
mov dword [edi + 0x54], 0
call fcn.10045700
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xff808080
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.100445b0
movss xmm2, dword [esp + 0xe0]
lea eax, [esp + 0x74]
subss xmm2, dword [0x100aac68]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
mov ecx, edi
mov dword [edi + 0x54], 0
call fcn.10045700
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.100445b0
cmp dword [esp + 0xc0], 0x10000
mov dword [edi + 0x54], 0
jne 0x1005c6b5
mov eax, dword [esp + 0x18]
xorps xmm2, xmm2
movss xmm1, dword [eax + 0xc]
comiss xmm2, xmm1
jbe 0x1005c531
movss dword [esp + 0x88], xmm2
jmp 0x1005c546
movss xmm0, dword [0x100aaca4]
minss xmm0, xmm1
movss dword [esp + 0x88], xmm0
movss xmm3, dword [esp + 0xc4]
or edx, 0xffffffff
movss xmm0, dword [esp + 0x20]
movaps xmm1, xmm3
addss xmm1, dword [esp + 0x64]
movss dword [esp + 0xf4], xmm0
xor ecx, ecx
addss xmm0, dword [esp + 0x50]
mov dword [esp + 0x30], 0
push dword [esp + 0x30]
movss dword [esp + 0xfc], xmm1
subss xmm1, xmm3
mov dword [esp + 0x30], 0
push dword [esp + 0x30]
movss dword [esp + 0x104], xmm0
push dword [esp + 0x104]
mulss xmm1, dword [0x100aac68]
push dword [esp + 0x104]
movss dword [esp + 0x100], xmm3
push dword [esp + 0x104]
mov edi, dword [esp + 0x104]
push edi
call fcn.10059a90
mov ecx, dword [esp + 0xb0]
add esp, 0x18
mov eax, ecx
and eax, 0xffffff
push eax
push eax
push ecx
push ecx
mov ecx, dword [esp + 0xac]
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.10046190
push dword [esp + 0xfc]
xorps xmm0, xmm0
push dword [esp + 0xfc]
push dword [esp + 0xfc]
push edi
call fcn.1000e190
movss xmm1, dword [0x100aaca4]
movss xmm0, dword [esp + 0xd4]
subss xmm0, xmm1
mov ecx, dword [esp + 0xac]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movss dword [esp + 0x68], xmm0
movaps xmm0, xmm1
subss xmm0, dword [esp + 0x98]
movss dword [esp + 0x40], xmm2
push dword [esp + 0x40]
mulss xmm0, dword [esp + 0x64]
addss xmm0, dword [esp + 0x34]
addss xmm0, dword [0x100aac68]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x70], xmm0
movaps xmm0, xmm2
addss xmm0, xmm1
movss xmm1, dword [esp + 0x78]
addss xmm1, dword [0x100aacfc]
movss dword [esp + 0x40], xmm0
push dword [esp + 0x40]
push dword [esp + 0x74]
push dword [esp + 0x74]
call fcn.10059d60
add esp, 0x20
call fcn.10017d80
cmp byte [esp + 0xa], 0
mov esi, dword [0x10124700]
je 0x1005c73e
mov edi, dword [esp + 0xdc]
lea ecx, [esp + 0x144]
mov edx, dword [esp + 0x18]
sub edi, 4
jb 0x1005c6f1
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005c6f6
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1005c6e0
cmp edi, 0xfffffffc
je 0x1005c739
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005c723
cmp edi, 0xfffffffd
je 0x1005c739
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1005c723
cmp edi, 0xfffffffe
je 0x1005c739
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1005c723
cmp edi, 0xffffffff
je 0x1005c739
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1005c739
mov eax, dword [esi + 0x199c]
mov byte [esi + 0x19cf], 1
or dword [eax + 0x10c], 4
jmp 0x1005c73e
mov byte [esp + 0xa], 0
mov ecx, dword [esi + 0x199c]
mov al, byte [esp + 0xa]
pop edi
pop esi
dec dword [ecx + 0x1c4]
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.1006e641
mov esp, ebp
pop ebp
ret