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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
push esi
mov esi, edx
mov edx, ecx
mov ecx, dword [0x100bd09c]
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x50], esi
mov eax, dword [ecx + 0x198c]
mov dword [esp + 0x34], edx
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x198c]
mov ecx, edx
mov dword [esp + 0x68], eax
mov edi, dword [eax + 0x274]
mov dword [esp + 0x4c], edi
call fcn.1002c850
call fcn.1002c990
mov ecx, dword [ebp + 8]
mov edx, ecx
or edx, 0x10
mov eax, ecx
and eax, 0x100
cmovne edx, ecx
mov dword [esp + 0x6c], edx
test dl, 8
jne 0x1004b5f4
mov ecx, esi
call fcn.1004e890
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x18]
test edx, 0x6000000
jne 0x1004b61d
mov eax, dword [esi + 0x2bf0]
mov ecx, 0x2900000
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, edx
jmp 0x1004b61f
mov ecx, edx
mov dword [esp + 0x58], ecx
test cl, 8
jne 0x1004b639
mov eax, dword [esi + 0x2bf0]
and eax, 0x10000
or ecx, eax
mov dword [esp + 0x58], ecx
mov eax, ecx
mov edx, ecx
and eax, 0x10002
and edx, 2
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc0], edx
movss xmm0, dword [eax + 0xcc]
movss xmm4, dword [eax + 0xc8]
mov eax, dword [0x100bd09c]
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x44], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x40], xmm4
movss xmm5, dword [eax + 0x1538]
addss xmm5, xmm5
addss xmm5, dword [eax + 0x18ac]
mov eax, dword [eax + 0x198c]
mov dword [esp + 0x68], eax
movss xmm2, dword [eax + 0x16c]
comiss xmm0, xmm2
movss dword [esp + 0x74], xmm5
jbe 0x1004b730
mov ecx, dword [eax + 0x1bc]
movss xmm3, dword [eax + 0xc8]
movss xmm1, dword [eax + 0x214]
mov dword [esp + 0x6c], ecx
subss xmm3, dword [eax + 0xc]
subss xmm1, dword [eax + 0xc]
test ecx, ecx
je 0x1004b71c
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 [esp + 0x6c]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mov edx, dword [esp + 0xc0]
mulss xmm1, dword [eax + ecx*4]
mov eax, dword [esp + 0x68]
addss xmm1, xmm0
subss xmm1, dword [eax + 0x3c]
subss xmm1, xmm3
addss xmm1, xmm2
movss xmm2, dword [0x1009ee70]
maxss xmm2, xmm1
movss xmm3, dword [esi + 0x154c]
cvttss2si eax, xmm2
movaps xmm0, xmm3
addss xmm0, xmm5
movd xmm2, eax
xor eax, eax
cmp dword [esp + 0xe0], 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, xmm4
lea eax, [eax*4 + 0xc]
push eax
mov eax, dword [esp + 0x54]
subss xmm2, xmm1
movaps xmm1, xmm5
push eax
lea eax, [esp + 0x120]
push eax
maxss xmm1, xmm2
addss xmm0, xmm1
movss dword [esp + 0x38], xmm1
movaps xmm1, xmm3
addss xmm1, xmm0
movss dword [esp + 0x98], xmm0
movaps xmm0, xmm1
movss dword [esp + 0x9c], xmm1
addss xmm0, xmm5
movss dword [esp + 0x74], xmm0
addss xmm0, xmm3
movss dword [esp + 0xf0], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [0x1009ee18]
cvttss2si esi, xmm0
mov dword [esp + 0xac], esi
call fcn.100695f0
movss xmm1, dword [esp + 0x38]
add esp, 0xc
movaps xmm3, xmm1
mov dword [esp + 0x24], 0
mulss xmm3, dword [0x1009ee38]
movaps xmm2, xmm1
mulss xmm2, dword [0x1009edf8]
movaps xmm0, xmm3
movss dword [esp + 0x64], xmm3
addss xmm0, dword [esp + 0x30]
movss dword [esp + 0x88], xmm2
movaps xmm4, xmm3
subss xmm4, xmm2
movaps xmm2, xmm1
addss xmm2, dword [esp + 0x74]
movss dword [esp + 0xc8], xmm0
movss dword [esp + 0xd4], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x1009ede4]
movaps xmm1, xmm4
mulss xmm2, dword [0x1009ee38]
cvttss2si eax, xmm0
addss xmm2, dword [esp + 0x40]
movss dword [esp + 0x60], xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc4], xmm2
subss xmm1, xmm0
movss dword [esp + 0xd0], xmm2
movaps xmm0, xmm1
movss dword [esp + 0x20], xmm1
mulss xmm0, dword [0x1009f014]
movaps xmm2, xmm1
mulss xmm2, dword [0x1009f020]
movss dword [esp + 0xcc], xmm0
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0x94], xmm2
movss dword [esp + 0xa8], xmm2
movss dword [esp + 0xf4], xmm0
mov eax, dword [esp + 0x50]
movaps xmm0, xmm1
mulss xmm0, dword [0x1009ee60]
lea ecx, [eax + 4]
mov dword [esp + 0xb8], ecx
movss xmm1, dword [ecx]
xorps xmm3, xmm3
movss xmm5, dword [eax]
add eax, 8
movss dword [esp + 0xbc], xmm0
movss dword [esp + 0xf8], xmm0
movss dword [esp + 0x80], xmm5
movss xmm2, dword [eax]
comiss xmm2, xmm1
mov dword [esp + 0x84], eax
jbe 0x1004b938
movss xmm3, dword [0x1009f024]
movaps xmm0, xmm1
movaps xmm1, xmm2
movaps xmm2, xmm0
comiss xmm1, xmm5
jbe 0x1004b95e
movaps xmm0, xmm5
movaps xmm5, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x80], xmm5
movss xmm0, dword [0x1009f010]
subss xmm0, xmm3
movaps xmm3, xmm0
movaps xmm0, xmm1
mov byte [esp + 0xe], 0
minss xmm0, xmm2
mov byte [esp + 0x16], 0
movaps xmm4, xmm5
mov byte [esp + 0xf], 0
subss xmm1, xmm2
mov ecx, 8
movss xmm2, dword [0x1009eef0]
movss dword [esp + 0xe8], xmm2
subss xmm4, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm2
addss xmm0, dword [0x1009ed9c]
divss xmm1, xmm0
movaps xmm0, xmm5
addss xmm0, dword [0x1009ed9c]
addss xmm1, xmm3
divss xmm4, xmm0
andps xmm1, xmmword [0x1009f320]
movss dword [esp + 0x5c], xmm1
movss dword [esp + 0x70], xmm4
call fcn.1002c400
mov eax, dword [esp + 0x58]
mov ecx, eax
and ecx, 0x4000000
mov dword [esp + 0x78], ecx
je 0x1004bfbb
movss xmm1, dword [esp + 0x2c]
lea edx, [esp + 0x38]
mov eax, dword [esp + 0x18]
movaps xmm0, xmm1
mov ecx, 0x1009c458
movss dword [esp + 0x3c], xmm1
addss xmm0, dword [eax + 0x154c]
addss xmm0, dword [esp + 0x74]
movss dword [esp + 0x38], xmm0
call fcn.10041ca0
mov eax, dword [0x100bd09c]
mov ecx, dword [eax + 0x19ac]
test ecx, ecx
je 0x1004beb1
mov eax, dword [eax + 0x198c]
cmp ecx, dword [eax + 0x10c]
jne 0x1004beb1
mov eax, dword [esp + 0x18]
movss xmm0, dword [eax + 0x380]
subss xmm0, dword [esp + 0xc4]
movss xmm1, dword [eax + 0x384]
subss xmm1, dword [esp + 0xc8]
movss xmm4, dword [eax + 0xe0]
movss xmm3, dword [eax + 0xe4]
subss xmm4, dword [esp + 0xc4]
subss xmm3, dword [esp + 0xc8]
movaps xmm2, xmm0
movss dword [esp + 0x6c], xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [0x1009ee70]
addss xmm2, xmm0
movss dword [esp + 0xec], xmm4
movss xmm0, dword [esp + 0x60]
subss xmm0, xmm1
movss dword [esp + 0xf0], xmm3
mulss xmm0, xmm0
comiss xmm2, xmm0
jb 0x1004bb4e
movss xmm0, dword [esp + 0x64]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm2
jb 0x1004bb4e
cvtps2pd xmm0, xmm3
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x38], xmm0
fld qword [esp + 0x38]
call fcn.10083ab0
movss xmm2, dword [0x1009eec8]
xorps xmm0, xmm0
fstp qword [esp + 0x38]
movsd xmm1, qword [esp + 0x38]
cvtpd2ps xmm1, xmm1
divss xmm1, xmm2
mulss xmm1, dword [0x1009ee38]
comiss xmm0, xmm1
movss dword [esp + 0x5c], xmm1
jbe 0x1004bb46
addss xmm1, dword [0x1009ee70]
movss dword [esp + 0x5c], xmm1
mov al, 1
mov byte [esp + 0xe], al
jmp 0x1004bb60
mov al, byte [esp + 0xe]
movss xmm2, dword [0x1009eec8]
movss xmm1, dword [esp + 0x5c]
movaps xmm0, xmm1
mov byte [esp + 0x16], al
xorps xmm0, xmmword [0x1009f350]
addss xmm0, xmm0
mulss xmm0, xmm2
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
call fcn.10083dd0
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x38]
call fcn.10084ae0
movss xmm3, dword [esp + 0x10]
xorps xmm5, xmm5
mulss xmm3, dword [esp + 0x6c]
cvtsd2ss xmm5, xmm0
movss xmm7, dword [esp + 0xcc]
movaps xmm0, xmm5
movss xmm6, dword [esp + 0x20]
mulss xmm0, dword [esp + 0x1c]
subss xmm6, xmm7
movaps xmm4, xmm5
movaps xmm2, xmm7
mulss xmm4, dword [esp + 0x6c]
subss xmm2, xmm7
subss xmm3, xmm0
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x98], xmm6
mulss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x110], xmm2
movaps xmm1, xmm3
addss xmm4, xmm0
movss xmm0, dword [esp + 0x94]
subss xmm0, dword [esp + 0xbc]
subss xmm1, xmm7
movss dword [esp + 0x6c], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0xbc]
mulss xmm0, xmm2
xorps xmm2, xmm2
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0x94]
comiss xmm2, xmm1
movaps xmm1, xmm3
movss dword [esp + 0xb4], xmm0
subss xmm1, xmm7
seta cl
mulss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0x94]
mulss xmm0, xmm6
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp al, cl
jne 0x1004bea9
movss xmm7, dword [esp + 0xbc]
subss xmm4, xmm2
movss xmm0, dword [esp + 0xcc]
subss xmm7, xmm2
subss xmm0, dword [esp + 0x20]
subss xmm3, dword [esp + 0x20]
movss dword [esp + 0x54], xmm7
mulss xmm4, xmm0
mulss xmm3, xmm7
movss dword [esp + 0x1c], xmm0
subss xmm3, xmm4
comiss xmm2, xmm3
seta al
cmp cl, al
jne 0x1004bea9
movss xmm1, dword [esp + 0x10]
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0xf0]
movaps xmm6, xmm1
mulss xmm1, dword [esp + 0xf0]
mulss xmm6, dword [esp + 0xec]
mulss xmm5, dword [esp + 0xec]
movss xmm3, dword [esp + 0xcc]
subss xmm6, xmm0
addss xmm5, xmm1
movaps xmm1, xmm6
movss dword [esp + 0x38], xmm6
subss xmm1, xmm3
movaps xmm0, xmm5
movss dword [esp + 0x3c], xmm5
subss xmm0, dword [esp + 0xbc]
mulss xmm1, dword [esp + 0x6c]
mulss xmm0, dword [esp + 0x110]
subss xmm1, xmm0
movaps xmm0, xmm5
subss xmm0, dword [esp + 0x94]
comiss xmm2, xmm1
mulss xmm0, dword [esp + 0x98]
movaps xmm1, xmm6
subss xmm1, xmm3
seta cl
mulss xmm1, dword [esp + 0xb4]
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp al, cl
jne 0x1004bda1
movaps xmm1, xmm6
movaps xmm0, xmm5
subss xmm1, dword [esp + 0x20]
subss xmm0, xmm2
mulss xmm1, xmm7
mulss xmm0, dword [esp + 0x1c]
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp cl, al
je 0x1004bde4
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0xac]
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x11c]
call fcn.10021b50
movss xmm7, dword [esp + 0x60]
add esp, 0xc
movss xmm3, dword [esp + 0xcc]
xorps xmm2, xmm2
movss xmm6, dword [eax]
movss xmm5, dword [eax + 4]
subss xmm6, dword [esp + 0x20]
movaps xmm4, xmm3
subss xmm5, xmm2
movss xmm3, dword [esp + 0x94]
subss xmm4, dword [esp + 0x20]
subss xmm3, xmm2
movaps xmm1, xmm6
mulss xmm1, xmm7
movaps xmm2, xmm4
mulss xmm2, xmm7
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x1c]
mulss xmm6, xmm3
subss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x1c]
mulss xmm5, xmm4
subss xmm1, xmm0
movss xmm0, dword [0x1009ee70]
movaps xmm7, xmm0
subss xmm5, xmm6
divss xmm1, xmm2
divss xmm5, xmm2
movss xmm2, dword [0x1009edc0]
subss xmm7, xmm1
movss dword [esp + 0x70], xmm2
comiss xmm2, xmm7
movaps xmm1, xmm7
subss xmm1, xmm5
jbe 0x1004be77
movaps xmm3, xmm2
movss dword [esp + 0x80], xmm2
jmp 0x1004be87
movaps xmm3, xmm0
minss xmm3, xmm7
movss dword [esp + 0x80], xmm3
divss xmm1, xmm3
comiss xmm2, xmm1
ja 0x1004be9d
movaps xmm2, xmm0
minss xmm2, xmm1
movss dword [esp + 0x70], xmm2
mov byte [esp + 0xf], 1
mov byte [esp + 0xe], 1
jmp 0x1004beb1
mov al, byte [esp + 0xe]
mov byte [esp + 0x16], al
test byte [esp + 0x58], 8
jne 0x1004bebd
call fcn.1002d0f0
movss xmm4, dword [esp + 0x2c]
movss xmm3, dword [esp + 0x30]
cmp dword [esp + 0xe0], 0x10000
jne 0x1004c1d7
mov ecx, dword [0x100bd09c]
lea edx, [esp + 0xa4]
movss xmm0, dword [esp + 0xe4]
movss dword [esp + 0xa8], xmm4
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x198c]
mov ecx, str.alpha
movss dword [eax + 0xc8], xmm0
movss dword [eax + 0xcc], xmm3
movss xmm1, dword [eax + 0xe0]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xe4]
maxss xmm0, xmm3
movss dword [eax + 0xe0], xmm1
movss dword [eax + 0xe4], xmm0
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0xa4], xmm0
call fcn.10041ca0
mov eax, dword [0x100bd09c]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0x19ac]
test ecx, ecx
je 0x1004c1db
mov eax, dword [eax + 0x198c]
cmp ecx, dword [eax + 0x10c]
jne 0x1004c1db
movss xmm3, dword [edx + 0xe4]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x2c]
movss xmm1, dword [0x1009ee70]
subss xmm3, dword [esp + 0x30]
subss xmm0, xmm1
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x1004c1b9
xorps xmm4, xmm4
jmp 0x1004c1c0
test eax, 0x2000000
je 0x1004bebd
movss xmm0, dword [esp + 0x2c]
lea edx, [esp + 0xa4]
mov ecx, 0x1009c45c
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0xa8], xmm0
call fcn.10041ca0
mov ecx, dword [0x100bd09c]
mov edx, dword [ecx + 0x19ac]
test edx, edx
je 0x1004c089
mov eax, dword [ecx + 0x198c]
cmp edx, dword [eax + 0x10c]
jne 0x1004c089
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movss xmm3, dword [esp + 0x2c]
movss xmm1, dword [0x1009ee70]
subss xmm3, xmm1
movss xmm2, dword [eax + 0xe0]
subss xmm2, dword [esp + 0x40]
divss xmm2, xmm3
comiss xmm0, xmm2
jbe 0x1004c049
movss dword [esp + 0x70], xmm0
jmp 0x1004c056
movaps xmm4, xmm1
minss xmm4, xmm2
movss dword [esp + 0x70], xmm4
movss xmm2, dword [eax + 0xe4]
subss xmm2, dword [esp + 0x30]
divss xmm2, xmm3
comiss xmm0, xmm2
ja 0x1004c074
movaps xmm0, xmm1
minss xmm0, xmm2
subss xmm1, xmm0
mov al, 1
mov byte [esp + 0xe], al
movss dword [esp + 0x80], xmm1
jmp 0x1004c08d
mov al, byte [esp + 0xe]
test byte [esp + 0x58], 8
mov byte [esp + 0xf], al
mov byte [esp + 0x17], al
jne 0x1004c0a7
call fcn.1002d0f0
mov ecx, dword [0x100bd09c]
mov eax, dword [ecx + 0x198c]
lea edx, [esp + 0xa4]
movss xmm2, dword [esp + 0x90]
movss xmm0, dword [esp + 0x30]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x198c]
mov ecx, 0x1009c460
movss dword [eax + 0xcc], xmm0
movss dword [eax + 0xc8], xmm2
movss xmm0, dword [eax + 0xe4]
maxss xmm0, dword [eax + 0xcc]
movss xmm1, dword [eax + 0xe0]
maxss xmm1, xmm2
movss dword [eax + 0xe4], xmm0
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [eax + 0xe0], xmm1
movss dword [esp + 0xa8], xmm0
call fcn.10041ca0
mov eax, dword [0x100bd09c]
mov ecx, dword [eax + 0x19ac]
test ecx, ecx
je 0x1004bebd
mov eax, dword [eax + 0x198c]
mov dl, byte [esp + 0xe]
movss xmm3, dword [esp + 0x30]
movss xmm4, dword [esp + 0x2c]
mov byte [esp + 0xf], dl
cmp ecx, dword [eax + 0x10c]
jne 0x1004bec9
mov eax, dword [esp + 0x18]
movaps xmm0, xmm4
movss xmm1, dword [0x1009ee70]
subss xmm0, xmm1
movss xmm2, dword [eax + 0xe4]
subss xmm2, xmm3
divss xmm2, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
ja 0x1004c19c
movaps xmm0, xmm1
minss xmm0, xmm2
mov al, byte [esp + 0x17]
movss dword [esp + 0x5c], xmm0
mov byte [esp + 0x16], 1
mov byte [esp + 0xe], 1
mov byte [esp + 0xf], al
jmp 0x1004bec9
movaps xmm4, xmm1
minss xmm4, xmm3
mov eax, dword [esp + 0x50]
movaps xmm0, xmm1
subss xmm0, xmm4
mov byte [esp + 0xe], 1
movss dword [eax + 0xc], xmm0
jmp 0x1004c1db
mov edx, dword [esp + 0x18]
mov ecx, dword [0x100bd09c]
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov eax, dword [ecx + 0x174]
add eax, 0xffffffff
mov dword [esp + 0x54], eax
mov dword [ecx + 0x174], eax
jne 0x1004c20a
xor eax, eax
jmp 0x1004c21f
mov esi, dword [esp + 0x54]
mov eax, dword [ecx + 0x17c]
mov eax, dword [eax + esi*4 - 4]
mov esi, dword [esp + 0xa0]
mov dword [ecx + 0x168], eax
mov eax, dword [esp + 0x58]
mov ecx, eax
and ecx, 0x100
mov dword [esp + 0x1c], ecx
jne 0x1004c250
movss xmm1, dword [edx + 0x154c]
xorps xmm0, xmm0
call fcn.1002cc60
call fcn.1002c990
mov eax, dword [esp + 0x58]
and eax, 0x80
mov dword [esp + 0x54], eax
jne 0x1004c2ae
mov edx, dword [esp + 0x34]
mov eax, edx
cmp edx, 0xffffffff
jae 0x1004c2ae
mov cl, byte [eax]
test cl, cl
je 0x1004c27c
cmp cl, 0x23
jne 0x1004c276
cmp byte [eax + 1], cl
je 0x1004c27c
inc eax
cmp eax, 0xffffffff
jb 0x1004c266
mov dword [esp + 0x10], eax
cmp edx, eax
je 0x1004c2ae
cmp dword [esp + 0x1c], 0
je 0x1004c2a3
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x154c]
call fcn.1002cc60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov edx, eax
call fcn.10040ba0
cmp dword [esp + 0x1c], 0
jne 0x1004c495
mov ecx, 0x10
call fcn.1002c400
cmp dword [esp + 0xc0], 0
mov eax, dword [esp + 0x50]
je 0x1004c2db
movss xmm1, dword [0x1009ee70]
jmp 0x1004c2e0
movss xmm1, dword [eax + 0xc]
cmp dword [esp + 0x54], 0
movss xmm0, dword [eax]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0xac], xmm0
movss dword [esp + 0xb0], xmm1
je 0x1004c326
push str.Current
call fcn.10041200
add esp, 4
movss xmm1, dword [esp + 0x74]
lea edx, [esp + 0xa4]
mov eax, dword [esp + 0x58]
movaps xmm0, xmm1
mulss xmm0, dword [0x1009eec4]
and eax, 0xe0040
mov ecx, str.current
mov dword [esp + 0xb4], eax
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x54], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0x3c], xmm0
push dword [esp + 0x3c]
movss dword [esp + 0x9c], xmm0
push dword [esp + 0x3c]
push eax
call fcn.1004db00
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x1004c455
push str.Original
call fcn.10041200
mov eax, dword [ebp + 0xc]
add esp, 4
cmp dword [esp + 0xc0], 0
je 0x1004c3b4
movss xmm1, dword [0x1009ee70]
jmp 0x1004c3b9
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0xf4]
movss dword [esp + 0xf4], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0xf8], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0xfc], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x98]
movss dword [esp + 0x3c], xmm0
push dword [esp + 0x3c]
movss dword [esp + 0x104], xmm1
push dword [esp + 0x3c]
push dword [esp + 0xbc]
call fcn.1004db00
add esp, 0xc
test al, al
je 0x1004c455
xor eax, eax
cmp dword [esp + 0xc0], eax
sete al
lea eax, [eax*4 + 0xc]
push eax
push dword [ebp + 0xc]
push dword [esp + 0x58]
call fcn.100695f0
add esp, 0xc
mov byte [esp + 0xe], 1
mov ecx, dword [0x100bd09c]
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov edx, dword [ecx + 0x174]
sub edx, 1
mov dword [ecx + 0x174], edx
jne 0x1004c480
xor eax, eax
jmp 0x1004c48a
mov eax, dword [ecx + 0x17c]
mov eax, dword [eax + edx*4 - 4]
mov dword [ecx + 0x168], eax
call fcn.1002cad0
cmp byte [esp + 0x16], 0
jne 0x1004c4a3
cmp byte [esp + 0xf], 0
je 0x1004c50f
movss xmm1, dword [esp + 0x80]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1004c4b9
movaps xmm4, xmm1
jmp 0x1004c4c1
movss xmm4, dword [0x1009eda8]
movss xmm2, dword [esp + 0x70]
comiss xmm2, xmm0
movss xmm1, dword [0x1009edb0]
jbe 0x1004c4d9
movaps xmm3, xmm2
jmp 0x1004c4dc
movaps xmm3, xmm1
movss xmm0, dword [esp + 0x5c]
comiss xmm0, dword [0x1009ee70]
jb 0x1004c4ef
subss xmm0, xmm1
push dword [esp + 0x84]
mov edx, dword [esp + 0xbc]
movaps xmm2, xmm4
mov ecx, dword [esp + 0x54]
movaps xmm1, xmm3
call fcn.100224b0
add esp, 4
test byte [esp + 0x58], 0x20
mov byte [esp + 0x17], 0
jne 0x1004c81c
cmp dword [esp + 0xe0], 0x10000
jne 0x1004c537
movss xmm0, dword [esp + 0xe4]
jmp 0x1004c540
movss xmm0, dword [esp + 0x90]
addss xmm0, dword [esp + 0x74]
mov ecx, dword [0x100bd09c]
subss xmm0, dword [esp + 0x40]
mov eax, dword [ecx + 0x198c]
ucomiss xmm0, dword [0x1009ed8c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov dword [esp + 0x98], ecx
lahf
test ah, 0x44
jp 0x1004c57e
movss xmm0, dword [ecx + 0x220]
lea edx, [ecx + 0x180]
movss dword [ecx + 0x16c], xmm0
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], eax
cmp eax, ecx
jne 0x1004c5d5
inc eax
mov dword [esp + 0x54], eax
test ecx, ecx
je 0x1004c5b5
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add eax, ecx
jmp 0x1004c5ba
mov eax, 8
mov ecx, dword [esp + 0x54]
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.10032d60
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov dword [esp + 0x34], eax
mov ecx, dword [edx + 8]
mov eax, dword [esp + 0x98]
mov edi, dword [esp + 0x34]
mov eax, dword [eax + 0x16c]
mov dword [ecx + edi*4], eax
inc dword [edx]
mov eax, dword [esp + 0x58]
mov edx, eax
and edx, 0x18e001a
mov dword [esp + 0x34], edx
test eax, 0x100000
jne 0x1004c619
mov ecx, eax
and ecx, 0x700000
mov dword [esp + 0x1c], ecx
jne 0x1004c679
mov dword [esp + 0x1c], ecx
jmp 0x1004c622
and eax, 0x700000
mov dword [esp + 0x1c], eax
or edx, 0x100004
mov ecx, str.rgb
push edx
mov edx, dword [esp + 0x54]
call fcn.10049fe0
add esp, 4
test al, al
je 0x1004c66d
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x19ac], 0
je 0x1004c659
cmp byte [eax + 0x19bd], 0
mov byte [esp + 0x17], 1
je 0x1004c65e
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xe], 1
mov dword [esp + 0x1c], ecx
jmp 0x1004c671
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x4c]
test eax, 0x200000
jne 0x1004c688
test ecx, ecx
jne 0x1004c6ac
or edx, 0x200004
mov ecx, str.hsv
push edx
mov edx, dword [esp + 0x54]
call fcn.10049fe0
mov ecx, dword [esp + 0x20]
add esp, 4
or byte [esp + 0xe], al
mov eax, dword [esp + 0x58]
test eax, 0x400000
jne 0x1004c6b7
test ecx, ecx
jne 0x1004c6d6
mov eax, dword [esp + 0x34]
mov ecx, str.hex
mov edx, dword [esp + 0x50]
or eax, 0x400004
push eax
call fcn.10049fe0
add esp, 4
or byte [esp + 0xe], al
mov ecx, dword [0x100bd09c]
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov edx, dword [ecx + 0x180]
sub edx, 1
mov dword [ecx + 0x180], edx
jne 0x1004c707
movss xmm0, dword [ecx + 0x220]
jmp 0x1004c713
mov eax, dword [ecx + 0x188]
movss xmm0, dword [eax + edx*4 - 4]
cmp byte [esp + 0x17], 0
movss dword [ecx + 0x16c], xmm0
je 0x1004c81c
mov ecx, dword [esp + 0x50]
xorps xmm2, xmm2
movss xmm3, dword [ecx + 4]
lea eax, [ecx + 4]
movss xmm5, dword [ecx + 8]
lea edx, [ecx + 8]
comiss xmm5, xmm3
movss xmm4, dword [ecx]
xorps xmm6, xmm6
jbe 0x1004c75a
movss xmm6, dword [0x1009f024]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x1004c777
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x1009f010]
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 [0x1009ed9c]
movaps xmm7, xmm1
mulss xmm1, dword [0x1009eef0]
divss xmm7, xmm0
addss xmm1, dword [0x1009ed9c]
divss xmm3, xmm1
addss xmm3, xmm6
andps xmm3, xmmword [0x1009f320]
comiss xmm2, xmm3
jb 0x1004c81c
movss xmm0, dword [esp + 0x5c]
comiss xmm0, xmm2
jbe 0x1004c81c
comiss xmm2, xmm4
jb 0x1004c7fb
movss xmm1, dword [esp + 0x80]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x1004c7f8
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x70]
mulss xmm2, dword [0x1009ee38]
push edx
lea edx, [ecx + 4]
jmp 0x1004c814
lea eax, [ecx + 4]
comiss xmm2, xmm7
jb 0x1004c81c
movss xmm1, dword [esp + 0x70]
movaps xmm2, xmm4
mulss xmm1, dword [0x1009ee38]
push edx
mov edx, eax
call fcn.100224b0
add esp, 4
movaps xmm0, xmmword [0x1009f2d0]
lea eax, [esp + 0xac]
movss xmm2, dword [0x1009ee70]
lea edx, [esp + 0xa8]
movups xmmword [esp + 0xa4], xmm0
lea ecx, [esp + 0xa4]
movss xmm0, dword [esp + 0x5c]
movaps xmm1, xmm2
push eax
call fcn.100224b0
movups xmm3, xmmword [esp + 0xa8]
add esp, 4
movss xmm2, dword [0x1009ee70]
xorps xmm1, xmm1
comiss xmm1, xmm3
jbe 0x1004c877
xorps xmm0, xmm0
jmp 0x1004c87e
movaps xmm0, xmm2
minss xmm0, xmm3
movss xmm3, dword [0x1009ef8c]
movss xmm7, dword [0x1009ee38]
movss xmm4, dword [esp + 0xa8]
comiss xmm1, xmm4
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si ecx, xmm0
jbe 0x1004c8ad
xorps xmm0, xmm0
jmp 0x1004c8b4
movaps xmm0, xmm2
minss xmm0, xmm4
movss xmm4, dword [esp + 0xac]
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si eax, xmm0
shl eax, 8
or ecx, eax
comiss xmm1, xmm4
jbe 0x1004c8d8
xorps xmm0, xmm0
jmp 0x1004c8df
movaps xmm0, xmm2
minss xmm0, xmm4
movss xmm4, dword [esp + 0xb0]
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si eax, xmm0
shl eax, 0x10
or ecx, eax
comiss xmm1, xmm4
jbe 0x1004c903
xorps xmm0, xmm0
jmp 0x1004c90a
movaps xmm0, xmm2
minss xmm0, xmm4
mov eax, dword [esp + 0x50]
mulss xmm0, xmm3
movss xmm4, dword [eax]
mov eax, dword [esp + 0xb8]
addss xmm0, xmm7
movss xmm5, dword [eax]
mov eax, dword [esp + 0x84]
cvttss2si edx, xmm0
movss xmm6, dword [eax]
shl edx, 0x18
or edx, ecx
comiss xmm1, xmm4
mov dword [esp + 0x10], edx
jbe 0x1004c947
xorps xmm0, xmm0
jmp 0x1004c94e
movaps xmm0, xmm2
minss xmm0, xmm4
comiss xmm1, xmm5
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si ecx, xmm0
jbe 0x1004c964
xorps xmm0, xmm0
jmp 0x1004c96b
movaps xmm0, xmm2
minss xmm0, xmm5
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si eax, xmm0
shl eax, 8
or ecx, eax
comiss xmm1, xmm6
jbe 0x1004c986
xorps xmm0, xmm0
jmp 0x1004c98d
movaps xmm0, xmm2
minss xmm0, xmm6
mulss xmm0, xmm3
mov dword [esp + 0xf4], 0xff0000ff
mov dword [esp + 0xf8], 0xff00ffff
mov dword [esp + 0xfc], 0xff00ff00
addss xmm0, xmm7
mov dword [esp + 0x100], 0xffffff00
mov dword [esp + 0x104], 0xffff0000
mov dword [esp + 0x108], 0xffff00ff
mov dword [esp + 0x10c], 0xff0000ff
mov dword [esp + 0x3c], 0
cvttss2si eax, xmm0
mov dword [esp + 0x38], 0
shl eax, 0x10
or ecx, eax
or ecx, 0xff000000
cmp dword [esp + 0x78], 0
mov dword [esp + 0x6c], ecx
je 0x1004d471
movss xmm1, dword [esp + 0x64]
mov eax, 0x2aaaaaab
movss xmm3, dword [0x1009ee84]
movss xmm0, dword [esp + 0x60]
divss xmm3, xmm1
cvttss2si ecx, xmm1
addss xmm0, xmm1
movss dword [esp + 0xf0], xmm3
imul ecx
movss dword [esp + 0x90], xmm0
movaps xmm4, xmm0
mov eax, 4
mulss xmm4, xmm7
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
movss dword [esp + 0xec], xmm4
mov edx, dword [esp + 0x4c]
cmp ecx, eax
cmovle ecx, eax
xor eax, eax
add edi, 0x54
mov dword [esp + 0x68], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x110], edi
nop dword [eax]
nop dword [eax + eax]
movd xmm1, eax
lea eax, [esp + 0xd0]
cvtdq2ps xmm1, xmm1
mov esi, dword [edx + 0x18]
push ecx
push ecx
mov ecx, edx
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [0x1009eef0]
divss xmm1, dword [0x1009eef0]
addss xmm0, xmm0
movaps xmm2, xmm4
addss xmm1, xmm1
mulss xmm0, dword [0x1009eec8]
mulss xmm1, dword [0x1009eec8]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0x6c], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x90], xmm1
call fcn.1003c250
movss xmm0, dword [esp + 0x88]
mov eax, dword [esp + 0x4c]
push ecx
movss dword [esp], xmm0
mov ecx, eax
push 0
push 0xffffffffffffffff
push dword [edi]
push dword [eax + 0x5c]
call fcn.1003b210
movss xmm0, dword [esp + 0x64]
cvtps2pd xmm0, xmm0
mov dword [edi], 0
call fcn.10083dd0
movss xmm1, dword [esp + 0x64]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x60]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x54], xmm0
cvtps2pd xmm0, xmm1
call fcn.10084ae0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x60]
addss xmm0, dword [esp + 0xc8]
movss dword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0x84]
cvtps2pd xmm0, xmm0
call fcn.10083dd0
movss xmm1, dword [esp + 0x84]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x60]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x78], xmm0
cvtps2pd xmm0, xmm1
call fcn.10084ae0
movss xmm3, dword [esp + 0x78]
xorps xmm4, xmm4
movss xmm5, dword [esp + 0x54]
movss xmm6, dword [esp + 0x98]
subss xmm3, xmm5
cvtsd2ss xmm4, xmm0
mov eax, dword [esp + 0x34]
movss xmm2, dword [0x1009ee70]
movaps xmm0, xmm3
mulss xmm4, dword [esp + 0x60]
movaps xmm7, xmm2
mov ecx, dword [esp + eax*4 + 0xf8]
mov eax, dword [esp + eax*4 + 0xf4]
mulss xmm0, xmm3
mov dword [esp + 0x64], ecx
addss xmm4, dword [esp + 0xc8]
mov dword [esp + 0xb4], eax
subss xmm4, xmm6
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
divss xmm7, xmm1
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x20]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0xb8], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0xb8]
jae 0x1004cd96
mov ecx, dword [esp + 0xb4]
movzx eax, cl
mov dword [esp + 0x84], eax
mov eax, ecx
shr eax, 8
movzx esi, al
mov eax, dword [esp + 0x64]
shr eax, 0x10
shr ecx, 0x10
movzx edx, cl
movzx ecx, al
mov eax, dword [esp + 0x64]
sub ecx, edx
shr eax, 8
mov dword [esp + 0x8c], edx
movzx edx, al
mov eax, dword [esp + 0x64]
sub edx, esi
movzx edi, al
sub edi, dword [esp + 0x84]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x8c]
nop dword [eax + 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 0x1004ccde
xorps xmm2, xmm2
jmp 0x1004cce2
minss xmm2, xmm1
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, esi
mulss xmm0, xmm2
mov esi, dword [esp + 0x1c]
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
movd xmm1, dword [esp + 0x78]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
shl eax, 8
mov dword [esp + 0x18], eax
mulss xmm0, xmm2
addss xmm0, xmm1
movd xmm1, dword [esp + 0x84]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, edi
or dword [esp + 0x18], eax
shl dword [esp + 0x18], 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss xmm2, dword [0x1009ee70]
addss xmm0, xmm1
cvttss2si eax, xmm0
or dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
and eax, 0xff000000
or dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov eax, esi
mov esi, dword [esp + 0x8c]
add eax, 0x14
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0xb8]
jb 0x1004ccb0
mov edi, dword [esp + 0x110]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
movss xmm3, dword [esp + 0xf0]
inc eax
movss xmm4, dword [esp + 0xec]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x34], eax
cmp eax, 6
jl 0x1004ca90
movss xmm0, dword [esp + 0x5c]
addss xmm0, xmm0
mulss xmm0, dword [0x1009eec8]
movss dword [esp + 0x5c], xmm0
cvtps2pd xmm0, xmm0
call fcn.10083dd0
movss xmm3, dword [esp + 0x5c]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x60], xmm0
cvtps2pd xmm0, xmm3
call fcn.10084ae0
cmp byte [esp + 0x16], 0
xorps xmm5, xmm5
movss xmm3, dword [esp + 0x60]
movss xmm6, dword [esp + 0xc4]
cvtsd2ss xmm5, xmm0
movss xmm7, dword [esp + 0xc8]
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x90]
movss xmm4, dword [esp + 0x88]
movss dword [esp + 0x54], xmm5
mulss xmm0, dword [0x1009ee38]
addss xmm0, xmm6
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x90]
mulss xmm0, dword [0x1009ee38]
addss xmm0, xmm7
movss dword [esp + 0x44], xmm0
je 0x1004ce71
mulss xmm4, dword [0x1009ee44]
jmp 0x1004ce79
mulss xmm4, dword [0x1009ee3c]
movaps xmm0, xmm4
movss dword [esp + 0x88], xmm4
divss xmm0, dword [0x1009ee80]
cvttss2si eax, xmm0
cmp eax, 9
jge 0x1004ce9d
mov eax, 9
jmp 0x1004cea7
mov ecx, 0x20
cmp eax, ecx
cmovg eax, ecx
test dword [esp + 0x10], 0xff000000
movss xmm2, dword [0x1009eef4]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x64], eax
je 0x1004cf35
cmp eax, 2
jle 0x1004d01e
movd xmm1, eax
lea ecx, [eax - 1]
cvtdq2ps xmm1, xmm1
push ecx
push ecx
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], ecx
mov ecx, esi
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, dword [0x1009ee70]
mulss xmm0, xmm2
movaps xmm2, xmm4
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.1003c250
push dword [esp + 0x10]
mov ecx, esi
push dword [edi]
push dword [esi + 0x5c]
call fcn.1003bd40
movss xmm2, dword [0x1009eef4]
movss xmm4, dword [esp + 0x88]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x34]
mov dword [edi], 0
jmp 0x1004cf45
lea ecx, [eax - 1]
mov dword [esp + 0x34], ecx
cmp eax, 2
jle 0x1004d01e
movd xmm0, eax
xorps xmm3, xmm3
cvtdq2ps xmm0, xmm0
push ecx
push ecx
lea eax, [esp + 0x48]
mov ecx, esi
movaps xmm1, xmm0
subss xmm1, dword [0x1009ee70]
mulss xmm1, xmm2
movaps xmm2, xmm4
addss xmm2, dword [0x1009ee70]
divss xmm1, xmm0
subss xmm2, dword [0x1009ee38]
movss dword [esp], xmm1
push eax
movss dword [esp + 0x84], xmm1
call fcn.1003c250
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push 1
push 0xff808080
push dword [edi]
push dword [esi + 0x5c]
call fcn.1003b210
push dword [esp + 0x34]
movss xmm2, dword [esp + 0x8c]
lea eax, [esp + 0x44]
movss xmm0, dword [esp + 0x7c]
xorps xmm3, xmm3
subss xmm2, dword [0x1009ee38]
push ecx
movss dword [esp], xmm0
mov ecx, esi
push eax
mov dword [edi], 0
call fcn.1003c250
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push 1
push 0xffffffffffffffff
push dword [edi]
push dword [esi + 0x5c]
call fcn.1003b210
movss xmm3, dword [esp + 0x60]
movss xmm5, dword [esp + 0x54]
movss xmm6, dword [esp + 0xc4]
movss xmm7, dword [esp + 0xc8]
mov dword [edi], 0
movss xmm4, dword [esp + 0x20]
movaps xmm2, xmm3
mulss xmm2, xmm4
xorps xmm1, xmm1
mov eax, dword [0x100bd09c]
mov ecx, esi
movaps xmm0, xmm5
mulss xmm0, xmm1
push 6
push 6
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0xd4]
addss xmm2, xmm6
movss dword [esp + 0x28], xmm2
movaps xmm2, xmm5
mulss xmm2, xmm4
movaps xmm4, xmm3
mulss xmm4, dword [esp + 0xd4]
addss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x9c]
mulss xmm5, dword [esp + 0xc4]
addss xmm2, xmm7
movss dword [esp + 0x2c], xmm2
movaps xmm2, xmm4
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x9c]
subss xmm4, xmm5
mulss xmm3, dword [esp + 0xc4]
addss xmm0, xmm1
addss xmm2, xmm6
addss xmm3, xmm1
addss xmm4, xmm6
addss xmm0, xmm7
movss dword [esp + 0x48], xmm2
addss xmm3, xmm7
movss dword [esp + 0xa0], xmm4
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [eax + 0x18b4]
movss dword [esp + 0x80], xmm0
movss xmm0, dword [eax + 0x18b8]
movss dword [esp + 0x68], xmm3
movss dword [esp + 0xa4], xmm3
movss dword [esp + 0x5c], xmm0
call fcn.1003b060
mov ecx, dword [esi + 0x38]
mov ax, word [esi + 0x30]
movss xmm2, dword [esp + 0x20]
movss xmm3, dword [esp + 0x24]
movss xmm0, dword [esp + 0x78]
mov word [ecx], ax
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss xmm1, dword [esp + 0x54]
mov edx, dword [esp + 0x10]
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
mov eax, dword [esi + 0x34]
movss xmm5, dword [esp + 0x40]
movss xmm4, dword [esp + 0x44]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], edx
mov eax, dword [esi + 0x38]
add dword [esi + 0x34], 0x14
inc dword [esi + 0x30]
mov ecx, dword [esi + 0x30]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm5
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], edx
add dword [esi + 0x34], 0x14
inc dword [esi + 0x30]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
movss xmm7, dword [esp + 0x98]
movss xmm6, dword [esp + 0x60]
mov word [eax], cx
add dword [esi + 0x38], 2
mov eax, dword [esi + 0x34]
movss dword [eax], xmm7
movss dword [eax + 4], xmm6
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], 0xffffffff
add dword [esi + 0x34], 0x14
inc dword [esi + 0x30]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
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 + 0x30]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm5
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], 0xff000000
add dword [esi + 0x34], 0x14
inc dword [esi + 0x30]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm7
movss dword [eax + 4], xmm6
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 + 0x30]
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x10], eax
cmp eax, edx
jne 0x1004d2c9
lea ecx, [eax + 1]
test edx, edx
je 0x1004d2b1
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x1004d2b6
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10033220
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax + esi*8], ecx
mov ecx, esi
mov dword [eax + ecx*8 + 4], edx
inc dword [edi]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
cmp eax, ecx
jne 0x1004d322
lea edx, [eax + 1]
mov dword [esp + 0x78], edx
test ecx, ecx
je 0x1004d30a
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
sar eax, 1
add eax, ecx
jmp 0x1004d30f
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.10033220
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [eax + esi*8], ecx
mov ecx, esi
mov dword [eax + ecx*8 + 4], edx
inc dword [edi]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x10], eax
cmp eax, ecx
jne 0x1004d37b
lea edx, [eax + 1]
mov dword [esp + 0x78], edx
test ecx, ecx
je 0x1004d363
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
sar eax, 1
add eax, ecx
jmp 0x1004d368
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.10033220
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 8]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov dword [eax + esi*8], ecx
mov ecx, esi
push ecx
mov dword [esp], 0x3fc00000
push 1
mov dword [eax + ecx*8 + 4], edx
mov eax, dword [esp + 0x54]
mov ecx, eax
inc dword [edi]
push 0xff808080
push dword [edi]
push dword [eax + 0x5c]
call fcn.1003b210
movss xmm0, dword [0x1009ee70]
xorps xmm1, xmm1
movaps xmm2, xmm0
mov dword [edi], 0
subss xmm2, dword [esp + 0x80]
comiss xmm1, xmm2
jbe 0x1004d3e1
xorps xmm4, xmm4
jmp 0x1004d3e8
movaps xmm4, xmm0
minss xmm4, xmm2
movss xmm2, dword [esp + 0x70]
comiss xmm1, xmm2
jbe 0x1004d3f8
xorps xmm3, xmm3
jmp 0x1004d3ff
movaps xmm3, xmm0
minss xmm3, xmm2
movss xmm0, dword [esp + 0x20]
subss xmm0, dword [esp + 0x98]
movss xmm2, dword [esp + 0x24]
subss xmm2, dword [esp + 0x60]
mov esi, dword [esp + 0xa0]
mov edi, dword [esp + 0x4c]
mulss xmm0, xmm3
mulss xmm2, xmm3
addss xmm0, dword [esp + 0x98]
movss xmm3, dword [esp + 0x40]
addss xmm2, dword [esp + 0x60]
subss xmm3, xmm0
mulss xmm3, xmm4
addss xmm3, xmm0
movss xmm0, dword [esp + 0x44]
subss xmm0, xmm2
movss dword [esp + 0x38], xmm3
mulss xmm0, xmm4
addss xmm0, xmm2
movss dword [esp + 0x3c], xmm0
jmp 0x1004d7ad
test dword [esp + 0x58], 0x2000000
je 0x1004d7ad
movss xmm0, dword [esp + 0x8c]
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push edx
movss dword [esp + 0x28], xmm0
mov ecx, edi
movss xmm0, dword [esp + 0x38]
addss xmm0, dword [esp + 0x34]
push edx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x54]
push eax
movss dword [esp + 0x3c], xmm0
call fcn.1003c940
movss xmm0, dword [esp + 0x8c]
lea eax, [esp + 0xd0]
push 0xff000000
push 0xff000000
push 0
push 0
push eax
movss dword [esp + 0xe4], xmm0
lea eax, [esp + 0x54]
movss xmm0, dword [esp + 0x38]
mov ecx, edi
push eax
movss dword [esp + 0xec], xmm0
call fcn.1003c940
movss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x7c], xmm0
xorps xmm0, xmm0
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
call fcn.10022f40
movss xmm3, dword [esp + 0x80]
xorps xmm0, xmm0
movss xmm1, dword [0x1009ee70]
add esp, 0x10
comiss xmm0, xmm3
jbe 0x1004d54e
xorps xmm2, xmm2
jmp 0x1004d555
movaps xmm2, xmm1
minss xmm2, xmm3
movss xmm7, dword [esp + 0x2c]
movss xmm3, dword [esp + 0x40]
movss xmm4, dword [0x1009ee38]
mulss xmm2, xmm7
movss xmm6, dword [0x1009eeac]
movss xmm5, dword [esp + 0x8c]
addss xmm2, xmm3
addss xmm3, xmm6
subss xmm5, xmm6
addss xmm2, xmm4
cvttss2si eax, xmm2
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm3, xmm2
jbe 0x1004d5a6
movss dword [esp + 0x38], xmm3
jmp 0x1004d5b9
comiss xmm2, xmm5
jbe 0x1004d5b3
movss dword [esp + 0x38], xmm5
jmp 0x1004d5b9
movss dword [esp + 0x38], xmm2
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x80]
comiss xmm0, xmm2
jbe 0x1004d5cf
xorps xmm1, xmm1
jmp 0x1004d5d3
minss xmm1, xmm2
movss xmm3, dword [esp + 0x30]
mulss xmm1, xmm7
movss xmm0, dword [esp + 0x24]
subss xmm0, xmm6
addss xmm1, xmm3
addss xmm1, xmm4
cvttss2si eax, xmm1
movaps xmm1, xmm3
addss xmm1, xmm6
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x1004d60e
movss dword [esp + 0x3c], xmm1
jmp 0x1004d621
comiss xmm2, xmm0
jbe 0x1004d61b
movss dword [esp + 0x3c], xmm0
jmp 0x1004d621
movss dword [esp + 0x3c], xmm2
movss xmm0, dword [esp + 0x68]
movaps xmm1, xmm7
divss xmm1, dword [0x1009eef0]
mov esi, dword [esp + 0x4c]
xor ecx, ecx
movss dword [esp + 0xd0], xmm0
movss xmm0, dword [esp + 0x90]
movss dword [esp + 0x78], xmm1
movss dword [esp + 0xa4], xmm0
nop dword [eax]
mov eax, dword [esp + ecx*4 + 0xf8]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0xd8]
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xdc], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0xfc]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0xb8]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xc0], xmm0
call fcn.1003c940
movss xmm1, dword [esp + 0x78]
mov ecx, edi
movss xmm3, dword [esp + 0x30]
cmp ecx, 6
jl 0x1004d660
movss xmm0, dword [esp + 0x68]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x90]
push dword [esp + 0x44]
movss dword [esp + 0x24], xmm0
movaps xmm0, xmm3
push dword [esp + 0x44]
movss dword [esp + 0x2c], xmm0
xorps xmm0, xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.10022f40
mov esi, dword [esp + 0xb0]
movss xmm1, dword [esp + 0x84]
addss xmm1, dword [0x1009eeac]
mov edi, dword [esp + 0x5c]
mov ecx, edi
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x34], xmm2
addss xmm0, dword [0x1009ee70]
push dword [esp + 0x34]
movss xmm2, dword [esp + 0xa4]
subss xmm2, dword [0x1009ee70]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x70]
mulss xmm0, dword [esp + 0x40]
push dword [esp + 0x34]
movss dword [esp + 0x58], xmm2
addss xmm0, dword [esp + 0x48]
addss xmm0, dword [0x1009ee38]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x5c], xmm0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.1004b3b0
add esp, 0x20
cmp byte [esp + 0xf], 0
je 0x1004d7c5
movss xmm0, dword [0x1009ef00]
movss dword [esp + 0xe8], xmm0
movss xmm2, dword [esp + 0xe8]
lea eax, [esp + 0x38]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
mov ecx, edi
call fcn.1003c250
push dword [esp + 0x6c]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.1003bd40
movss xmm2, dword [esp + 0xe8]
lea eax, [esp + 0x38]
addss xmm2, dword [0x1009ee70]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
subss xmm2, dword [0x1009ee38]
mov ecx, edi
mov dword [edi + 0x54], 0
call fcn.1003c250
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xff808080
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.1003b210
movss xmm2, dword [esp + 0xe8]
lea eax, [esp + 0x38]
subss xmm2, dword [0x1009ee38]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
mov ecx, edi
mov dword [edi + 0x54], 0
call fcn.1003c250
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.1003b210
cmp dword [esp + 0xe0], 0x10000
mov dword [edi + 0x54], 0
jne 0x1004da40
mov eax, dword [esp + 0x50]
xorps xmm2, xmm2
movss xmm1, dword [eax + 0xc]
comiss xmm2, xmm1
jbe 0x1004d8c8
movss dword [esp + 0x68], xmm2
jmp 0x1004d8da
movss xmm0, dword [0x1009ee70]
minss xmm0, xmm1
movss dword [esp + 0x68], xmm0
movss xmm3, dword [esp + 0xe4]
or edx, 0xffffffff
movss xmm0, dword [esp + 0x30]
movaps xmm1, xmm3
addss xmm1, dword [esp + 0x74]
movss dword [esp + 0xd4], xmm0
xor ecx, ecx
addss xmm0, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
push dword [esp + 0x24]
movss dword [esp + 0xdc], xmm1
subss xmm1, xmm3
mov dword [esp + 0x24], 0
push dword [esp + 0x24]
movss dword [esp + 0xe4], xmm0
push dword [esp + 0xe4]
mulss xmm1, dword [0x1009ee38]
push dword [esp + 0xe4]
movss dword [esp + 0xe0], xmm3
push dword [esp + 0xe4]
mov edi, dword [esp + 0xe4]
push edi
call fcn.1004b0e0
mov ecx, dword [esp + 0x84]
add esp, 0x18
mov eax, ecx
and eax, 0xffffff
push eax
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0xe4]
push eax
call fcn.1003c940
push dword [esp + 0xdc]
xorps xmm0, xmm0
push dword [esp + 0xdc]
push dword [esp + 0xdc]
push edi
call fcn.10022f40
movss xmm1, dword [0x1009ee70]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0x5c]
movaps xmm0, xmm2
movss dword [esp + 0x34], xmm2
movss xmm2, dword [esp + 0xf4]
addss xmm0, xmm1
subss xmm2, xmm1
subss xmm1, dword [esp + 0x78]
push dword [esp + 0x34]
movss dword [esp + 0x34], xmm0
push dword [esp + 0x34]
mulss xmm1, dword [esp + 0x44]
movss dword [esp + 0x58], xmm2
addss xmm1, dword [esp + 0x48]
addss xmm1, dword [0x1009ee38]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x8c]
addss xmm1, dword [0x1009eeac]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x5c], xmm0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.1004b3b0
add esp, 0x20
call fcn.1002cad0
cmp byte [esp + 0xe], 0
mov edi, dword [0x100bd09c]
je 0x1004dade
mov esi, dword [esp + 0x50]
lea edx, [esp + 0x118]
xor ecx, ecx
cmp dword [esp + 0xc0], ecx
sete cl
lea ecx, [ecx*4 + 0xc]
sub ecx, 4
jb 0x1004da91
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1004da96
add edx, 4
add esi, 4
sub ecx, 4
jae 0x1004da80
cmp ecx, 0xfffffffc
je 0x1004dad9
mov al, byte [edx]
cmp al, byte [esi]
jne 0x1004dac3
cmp ecx, 0xfffffffd
je 0x1004dad9
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x1004dac3
cmp ecx, 0xfffffffe
je 0x1004dad9
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x1004dac3
cmp ecx, 0xffffffff
je 0x1004dad9
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x1004dad9
mov eax, dword [edi + 0x198c]
mov byte [edi + 0x19bf], 1
or dword [eax + 0x110], 4
jmp 0x1004dade
mov byte [esp + 0xe], 0
mov ecx, dword [edi + 0x198c]
mov al, byte [esp + 0xe]
pop edi
pop esi
dec dword [ecx + 0x1c0]
mov esp, ebp
pop ebp
ret