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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x102a000c]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, edx
mov dword [esp + 0xc], eax
mov edx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [0x102a0b70]
push edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0xc0], edx
mov eax, dword [ecx + 0x17fc]
mov byte [eax + 0x8e], 1
mov eax, dword [ecx + 0x17fc]
mov ecx, edx
mov dword [esp + 0x58], eax
mov edi, dword [eax + 0x254]
mov dword [esp + 0x9c], edi
call fcn.1005b050
call fcn.10049b80
mov ecx, dword [ebp + 8]
mov edx, ecx
or edx, 0x10
mov eax, ecx
and eax, 0x100
cmovne edx, ecx
mov dword [esp + 0xc], edx
test dl, 8
jne 0x1004a196
mov ecx, dword [esp + 0xc]
mov edx, esi
call fcn.1004d450
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x54]
test edx, 0xc0000
jne 0x1004a1bf
mov eax, dword [esi + 0x2880]
mov ecx, 0x52000
test eax, 0xc0000
cmovne ecx, eax
and ecx, 0xc0000
or ecx, edx
jmp 0x1004a1c1
mov ecx, edx
mov dword [esp + 0x30], ecx
test cl, 8
jne 0x1004a1db
mov eax, dword [esi + 0x2880]
and eax, 0x200
or ecx, eax
mov dword [esp + 0x30], ecx
mov eax, ecx
mov edx, ecx
and eax, 0x202
and edx, 2
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa4], edx
movss xmm0, dword [eax + 0xdc]
movss xmm5, dword [eax + 0xd8]
mov eax, dword [0x102a0b70]
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x28], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x24], xmm5
movss xmm3, dword [eax + 0x141c]
addss xmm3, xmm3
addss xmm3, dword [eax + 0x172c]
mov eax, dword [eax + 0x17fc]
mov dword [esp + 0xc4], eax
movss xmm2, dword [eax + 0x144]
comiss xmm0, xmm2
movss dword [esp + 0x48], xmm3
jbe 0x1004a2d0
mov ecx, dword [eax + 0x1a0]
movss xmm4, dword [eax + 0xd8]
movss xmm1, dword [eax + 0x4c]
mov dword [esp + 0x58], ecx
subss xmm4, dword [eax + 0x14]
test ecx, ecx
je 0x1004a2bc
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 + 0x58]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mov edx, dword [esp + 0xa4]
mulss xmm1, dword [eax + ecx*4]
mov eax, dword [esp + 0xc4]
addss xmm1, xmm0
subss xmm1, dword [eax + 0x54]
subss xmm1, xmm4
addss xmm1, xmm2
movss xmm2, dword [0x10293df0]
maxss xmm2, xmm1
movss xmm4, dword [esi + 0x1430]
cvttss2si eax, xmm2
movaps xmm0, xmm4
addss xmm0, xmm3
movd xmm2, eax
xor eax, eax
cmp dword [esp + 0xb8], 0x200
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, xmm3
lea eax, [eax*4 + 0xc]
push eax
mov eax, dword [esp + 0x24]
subss xmm2, xmm1
movaps xmm1, xmm5
push eax
lea eax, [esp + 0x11c]
push eax
maxss xmm0, xmm2
addss xmm1, xmm0
movss dword [esp + 0x38], xmm0
movaps xmm0, xmm1
movss dword [esp + 0xc0], xmm1
addss xmm0, xmm4
movss dword [esp + 0xa4], xmm0
addss xmm0, xmm3
movss dword [esp + 0xd0], xmm0
addss xmm0, xmm4
movss dword [esp + 0xc8], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x10293da0]
cvttss2si esi, xmm0
mov dword [esp + 0x64], esi
call fcn.10022500
movss xmm6, dword [esp + 0x38]
add esp, 0xc
movss xmm5, dword [esp + 0x48]
movaps xmm3, xmm6
mulss xmm3, dword [0x10293db4]
movaps xmm1, xmm6
mov dword [esp + 0x18], 0
mulss xmm1, dword [0x10293d88]
movaps xmm2, xmm3
movss dword [esp + 0x64], xmm3
movaps xmm0, xmm3
movss xmm3, dword [esp + 0x1c]
addss xmm0, xmm3
movss dword [esp + 0x74], xmm1
subss xmm2, xmm1
movaps xmm1, xmm6
addss xmm1, xmm5
movss dword [esp + 0x90], xmm0
movss dword [esp + 0x80], xmm0
movaps xmm0, xmm6
mulss xmm0, dword [0x10293d80]
mulss xmm1, dword [0x10293db4]
cvttss2si eax, xmm0
addss xmm1, dword [esp + 0x24]
movss dword [esp + 0x4c], xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x8c], xmm1
movss dword [esp + 0x7c], xmm1
movaps xmm1, xmm2
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [esp + 0x14], xmm1
mulss xmm0, dword [0x10293f54]
movaps xmm2, xmm1
mulss xmm2, dword [0x10293f60]
movss dword [esp + 0x94], xmm0
movss dword [esp + 0xe8], xmm0
movss dword [esp + 0x78], xmm2
movss dword [esp + 0xec], xmm2
mov eax, dword [esp + 0x20]
xorps xmm2, xmm2
lea ecx, [eax + 4]
movss dword [esp + 0xf8], xmm0
movaps xmm0, xmm1
mov dword [esp + 0xb0], ecx
mulss xmm0, dword [0x10293ddc]
movss xmm4, dword [eax]
add eax, 8
movss xmm1, dword [ecx]
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0xfc], xmm0
movss xmm7, dword [eax]
comiss xmm7, xmm1
mov dword [esp + 0x60], eax
movss dword [esp + 0x5c], xmm4
movss dword [esp + 0x38], xmm2
jbe 0x1004a4da
movss xmm2, dword [0x10293f64]
movaps xmm0, xmm1
movaps xmm1, xmm7
movss dword [esp + 0x38], xmm2
movaps xmm7, xmm0
comiss xmm1, xmm4
jbe 0x1004a503
movaps xmm0, xmm4
movaps xmm4, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x5c], xmm4
movss xmm0, dword [0x10293f50]
subss xmm0, xmm2
movaps xmm2, xmm0
movss dword [esp + 0x38], xmm2
movaps xmm0, xmm1
mov eax, dword [esp + 0x30]
minss xmm0, xmm7
mov byte [esp + 9], 0
movaps xmm2, xmm4
mov byte [esp + 0xb], 0
subss xmm1, xmm7
mov byte [esp + 0xa], 0
movss xmm7, dword [0x10293e5c]
mov ecx, eax
and ecx, 0x80000
movss dword [esp + 0xc8], xmm7
subss xmm2, xmm0
mov dword [esp + 0x3c], ecx
movaps xmm0, xmm2
mulss xmm0, xmm7
addss xmm0, dword [0x10293d4c]
divss xmm1, xmm0
movaps xmm0, xmm4
addss xmm0, dword [0x10293d4c]
addss xmm1, dword [esp + 0x38]
divss xmm2, xmm0
andps xmm1, xmmword [0x102954b0]
movss dword [esp + 0x34], xmm1
movss dword [esp + 0x38], xmm2
je 0x1004ab4e
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x40]
mov ecx, 0x100d92b4
movss dword [esp + 0x44], xmm6
movss xmm0, dword [eax + 0x1430]
addss xmm0, xmm6
addss xmm0, xmm5
movss dword [esp + 0x40], xmm0
call fcn.1005cac0
mov eax, dword [0x102a0b70]
mov ecx, dword [eax + 0x181c]
test ecx, ecx
je 0x1004aa41
mov eax, dword [eax + 0x17fc]
cmp ecx, dword [eax + 0x110]
jne 0x1004aa41
mov eax, dword [esp + 0x54]
movss xmm0, dword [eax + 0x330]
subss xmm0, dword [esp + 0x8c]
movss xmm1, dword [eax + 0x334]
subss xmm1, dword [esp + 0x90]
movss xmm4, dword [eax + 0xcc]
movss xmm2, dword [eax + 0xd0]
subss xmm4, dword [esp + 0x8c]
subss xmm2, dword [esp + 0x90]
movaps xmm3, xmm0
movss dword [esp + 0x50], xmm0
mulss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0xc], xmm1
movss xmm1, dword [0x10293df0]
addss xmm3, xmm0
movss dword [esp + 0xe4], xmm4
movss xmm0, dword [esp + 0x4c]
subss xmm0, xmm1
movss dword [esp + 0xdc], xmm2
mulss xmm0, xmm0
comiss xmm3, xmm0
jb 0x1004a6e4
movss xmm0, dword [esp + 0x64]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm3
jb 0x1004a6e4
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
call fcn.100c20c0
movss xmm2, dword [0x10293e4c]
xorps xmm0, xmm0
fstp qword [esp + 0x40]
movsd xmm1, qword [esp + 0x40]
cvtpd2ps xmm1, xmm1
divss xmm1, xmm2
mulss xmm1, dword [0x10293db4]
comiss xmm0, xmm1
movss dword [esp + 0x34], xmm1
jbe 0x1004a6dc
addss xmm1, dword [0x10293df0]
movss dword [esp + 0x34], xmm1
mov al, 1
mov byte [esp + 9], al
jmp 0x1004a6f6
mov al, byte [esp + 9]
movss xmm2, dword [0x10293e4c]
movss xmm1, dword [esp + 0x34]
movaps xmm0, xmm1
mov byte [esp + 0xb], al
xorps xmm0, xmmword [0x102954e0]
addss xmm0, xmm0
mulss xmm0, xmm2
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x40], xmm0
call fcn.100c2610
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xac], xmm0
movsd xmm0, qword [esp + 0x40]
call fcn.100c3320
movss xmm3, dword [esp + 0xc]
xorps xmm2, xmm2
movss xmm5, dword [esp + 0xac]
cvtsd2ss xmm2, xmm0
movss xmm7, dword [esp + 0x94]
movaps xmm0, xmm3
mulss xmm0, xmm2
movaps xmm4, xmm5
mulss xmm4, dword [esp + 0x50]
mulss xmm3, xmm5
subss xmm4, xmm0
movss dword [esp + 0x68], xmm2
movaps xmm0, xmm2
movss xmm6, dword [esp + 0x14]
mulss xmm0, dword [esp + 0x50]
subss xmm6, xmm7
movaps xmm2, xmm7
movaps xmm1, xmm4
subss xmm2, xmm7
addss xmm3, xmm0
movss xmm0, dword [esp + 0x78]
subss xmm0, dword [esp + 0xa8]
subss xmm1, xmm7
movss dword [esp + 0xd4], xmm6
movss dword [esp + 0xcc], xmm2
movss dword [esp + 0x50], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm3
subss xmm0, dword [esp + 0xa8]
mulss xmm0, xmm2
xorps xmm2, xmm2
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0x78]
comiss xmm2, xmm1
movaps xmm1, xmm4
movss dword [esp + 0xa0], xmm0
subss xmm1, xmm7
seta cl
mulss xmm1, xmm0
movaps xmm0, xmm3
subss xmm0, dword [esp + 0x78]
mulss xmm0, xmm6
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp al, cl
jne 0x1004aa39
movss xmm7, dword [esp + 0xa8]
subss xmm3, xmm2
movss xmm0, dword [esp + 0x94]
subss xmm7, xmm2
subss xmm0, dword [esp + 0x14]
subss xmm4, dword [esp + 0x14]
movss dword [esp + 0x40], xmm7
mulss xmm3, xmm0
mulss xmm4, xmm7
movss dword [esp + 0xc], xmm0
subss xmm4, xmm3
comiss xmm2, xmm4
seta al
cmp cl, al
jne 0x1004aa39
movss xmm1, dword [esp + 0x68]
movaps xmm6, xmm5
movss xmm5, dword [esp + 0xdc]
mulss xmm6, dword [esp + 0xe4]
movaps xmm0, xmm5
mulss xmm5, dword [esp + 0xac]
movss xmm3, dword [esp + 0x94]
mulss xmm0, xmm1
mulss xmm1, dword [esp + 0xe4]
subss xmm6, xmm0
addss xmm5, xmm1
movaps xmm1, xmm6
movss dword [esp + 0x68], xmm6
subss xmm1, xmm3
movaps xmm0, xmm5
movss dword [esp + 0x6c], xmm5
subss xmm0, dword [esp + 0xa8]
mulss xmm1, dword [esp + 0x50]
mulss xmm0, dword [esp + 0xcc]
subss xmm1, xmm0
movaps xmm0, xmm5
subss xmm0, dword [esp + 0x78]
comiss xmm2, xmm1
mulss xmm0, dword [esp + 0xd4]
movaps xmm1, xmm6
subss xmm1, xmm3
seta cl
mulss xmm1, dword [esp + 0xa0]
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp al, cl
jne 0x1004a93a
movaps xmm1, xmm6
movaps xmm0, xmm5
subss xmm1, dword [esp + 0x14]
subss xmm0, xmm2
mulss xmm1, xmm7
mulss xmm0, dword [esp + 0xc]
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp cl, al
je 0x1004a97d
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0xf0]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0xe0]
call fcn.1006d1e0
movss xmm7, dword [esp + 0x4c]
add esp, 0xc
movss xmm3, dword [esp + 0x94]
xorps xmm2, xmm2
movss xmm6, dword [eax]
movss xmm5, dword [eax + 4]
subss xmm6, dword [esp + 0x14]
movaps xmm4, xmm3
subss xmm5, xmm2
movss xmm3, dword [esp + 0x78]
subss xmm4, dword [esp + 0x14]
subss xmm3, xmm2
movaps xmm1, xmm6
mulss xmm1, xmm7
movaps xmm2, xmm4
mulss xmm2, xmm7
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0xc]
mulss xmm6, xmm3
subss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0xc]
mulss xmm5, xmm4
subss xmm1, xmm0
movss xmm0, dword [0x10293df0]
movaps xmm7, xmm0
subss xmm5, xmm6
divss xmm1, xmm2
divss xmm5, xmm2
subss xmm7, xmm1
movss xmm1, dword [0x10293d60]
movss dword [esp + 0x38], xmm1
comiss xmm1, xmm7
movaps xmm2, xmm7
subss xmm2, xmm5
jbe 0x1004aa0a
movaps xmm4, xmm1
movss dword [esp + 0x5c], xmm1
jmp 0x1004aa17
movaps xmm4, xmm0
minss xmm4, xmm7
movss dword [esp + 0x5c], xmm4
divss xmm2, xmm4
comiss xmm1, xmm2
ja 0x1004aa2d
movaps xmm1, xmm0
minss xmm1, xmm2
movss dword [esp + 0x38], xmm1
mov byte [esp + 0xa], 1
mov byte [esp + 9], 1
jmp 0x1004aa41
mov al, byte [esp + 9]
mov byte [esp + 0xb], al
test byte [esp + 0x30], 8
jne 0x1004aa4d
call fcn.10064d10
movss xmm3, dword [esp + 0x1c]
movss xmm5, dword [esp + 0x48]
movss xmm6, dword [esp + 0x2c]
mov ecx, dword [0x102a0b70]
cmp dword [esp + 0xb8], 0x200
jne 0x1004ad73
mov eax, dword [ecx + 0x17fc]
lea edx, [esp + 0xe8]
movss xmm0, dword [esp + 0xbc]
movss dword [esp + 0xe8], xmm5
movss dword [esp + 0xec], xmm6
mov byte [eax + 0x8e], 1
mov eax, dword [ecx + 0x17fc]
mov ecx, 0x100d92c0
movss dword [eax + 0xd8], xmm0
movss dword [eax + 0xdc], xmm3
movss xmm1, dword [eax + 0xf0]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xf4]
maxss xmm0, xmm3
movss dword [eax + 0xf0], xmm1
movss dword [eax + 0xf4], xmm0
call fcn.1005cac0
mov eax, dword [0x102a0b70]
mov ecx, dword [eax + 0x181c]
test ecx, ecx
je 0x1004ad73
mov eax, dword [eax + 0x17fc]
cmp ecx, dword [eax + 0x110]
mov ecx, dword [esp + 0x54]
jne 0x1004ad77
movss xmm3, dword [ecx + 0xd0]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x2c]
movss xmm1, dword [0x10293df0]
subss xmm3, dword [esp + 0x1c]
subss xmm0, xmm1
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x1004ad55
xorps xmm4, xmm4
jmp 0x1004ad5c
test eax, 0x40000
je 0x1004aa5f
lea edx, [esp + 0xe8]
movss dword [esp + 0xe8], xmm6
mov ecx, 0x100d92b8
movss dword [esp + 0xec], xmm6
call fcn.1005cac0
mov ecx, dword [0x102a0b70]
mov edx, dword [ecx + 0x181c]
test edx, edx
je 0x1004ac1b
mov eax, dword [ecx + 0x17fc]
cmp edx, dword [eax + 0x110]
jne 0x1004ac1b
mov eax, dword [esp + 0x54]
xorps xmm0, xmm0
movss xmm4, dword [esp + 0x2c]
movss xmm1, dword [0x10293df0]
subss xmm4, xmm1
movss xmm3, dword [eax + 0xcc]
subss xmm3, dword [esp + 0x24]
divss xmm3, xmm4
comiss xmm0, xmm3
jbe 0x1004abd6
movss dword [esp + 0x38], xmm0
jmp 0x1004abe3
movaps xmm2, xmm1
minss xmm2, xmm3
movss dword [esp + 0x38], xmm2
movss xmm2, dword [eax + 0xd0]
subss xmm2, dword [esp + 0x1c]
divss xmm2, xmm4
comiss xmm0, xmm2
jbe 0x1004abff
xorps xmm3, xmm3
jmp 0x1004ac06
movaps xmm3, xmm1
minss xmm3, xmm2
movaps xmm0, xmm1
mov al, 1
subss xmm0, xmm3
mov byte [esp + 9], al
movss dword [esp + 0x5c], xmm0
jmp 0x1004ac1f
mov al, byte [esp + 9]
test byte [esp + 0x30], 8
mov byte [esp + 0xa], al
mov byte [esp + 0x73], al
jne 0x1004ac39
call fcn.10064d10
mov ecx, dword [0x102a0b70]
mov eax, dword [ecx + 0x17fc]
lea edx, [esp + 0xe8]
movss xmm2, dword [esp + 0x98]
movss xmm0, dword [esp + 0x1c]
mov byte [eax + 0x8e], 1
mov eax, dword [ecx + 0x17fc]
mov ecx, 0x100d92bc
movss dword [eax + 0xdc], xmm0
movss dword [eax + 0xd8], xmm2
movss xmm0, dword [eax + 0xf4]
maxss xmm0, dword [eax + 0xdc]
movss xmm1, dword [eax + 0xf0]
maxss xmm1, xmm2
movss dword [eax + 0xf4], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [esp + 0xe8], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [eax + 0xf0], xmm1
movss dword [esp + 0xec], xmm0
call fcn.1005cac0
mov ecx, dword [0x102a0b70]
movss xmm3, dword [esp + 0x1c]
movss xmm6, dword [esp + 0x2c]
mov edx, dword [ecx + 0x181c]
test edx, edx
je 0x1004ad4a
mov al, byte [esp + 9]
mov byte [esp + 0xa], al
mov eax, dword [ecx + 0x17fc]
cmp edx, dword [eax + 0x110]
jne 0x1004ad4a
mov eax, dword [esp + 0x54]
movaps xmm0, xmm6
movss xmm1, dword [0x10293df0]
xorps xmm2, xmm2
subss xmm0, xmm1
movss xmm4, dword [eax + 0xd0]
subss xmm4, xmm3
divss xmm4, xmm0
comiss xmm2, xmm4
jbe 0x1004ad2b
movss dword [esp + 0x34], xmm2
jmp 0x1004ad38
movaps xmm0, xmm1
minss xmm0, xmm4
movss dword [esp + 0x34], xmm0
mov al, byte [esp + 0x73]
mov byte [esp + 0xb], 1
mov byte [esp + 9], 1
mov byte [esp + 0xa], al
movss xmm5, dword [esp + 0x48]
jmp 0x1004aa65
movaps xmm4, xmm1
minss xmm4, xmm3
mov eax, dword [esp + 0x20]
movaps xmm0, xmm1
subss xmm0, xmm4
mov byte [esp + 9], 1
movss dword [eax + 0xc], xmm0
jmp 0x1004ad77
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
mov edx, eax
and edx, 0x100
mov dword [esp + 0x50], edx
jne 0x1004ada6
movss xmm1, dword [ecx + 0x1430]
xorps xmm0, xmm0
call fcn.10049930
call fcn.10049b80
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
mov ecx, eax
and ecx, 0x80
mov dword [esp + 0xc], ecx
jne 0x1004ae17
mov eax, dword [esp + 0xc0]
cmp eax, 0xffffffff
jae 0x1004ae17
mov cl, byte [eax]
test cl, cl
je 0x1004add6
cmp cl, 0x23
jne 0x1004add0
cmp byte [eax + 1], cl
je 0x1004add6
inc eax
cmp eax, 0xffffffff
jb 0x1004adc0
mov dword [esp + 0xac], eax
cmp dword [esp + 0xc0], eax
je 0x1004ae13
test edx, edx
je 0x1004ae05
mov eax, dword [esp + 0x54]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x1430]
call fcn.10049930
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xc0]
mov edx, eax
call fcn.1005d620
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x50], 0
jne 0x1004afc5
cmp dword [esp + 0xa4], 0
mov eax, dword [esp + 0x20]
je 0x1004ae3a
movss xmm1, dword [0x10293df0]
jmp 0x1004ae3f
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
movss dword [esp + 0xe8], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0xec], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0xf0], xmm0
movss dword [esp + 0xf4], xmm1
test ecx, ecx
je 0x1004ae82
push str.Current
call fcn.1005df40
add esp, 4
movss xmm0, dword [esp + 0x48]
lea edx, [esp + 0xe8]
mov eax, dword [esp + 0x30]
movaps xmm1, xmm0
mulss xmm1, dword [0x10293e48]
and eax, 0x1c40
mov ecx, str.current
mov dword [esp + 0xa0], eax
movss dword [esp + 0xcc], xmm1
movss dword [esp + 0x40], xmm1
movaps xmm1, xmm0
addss xmm1, xmm0
movss dword [esp + 0xd0], xmm1
push dword [esp + 0xd0]
movss dword [esp + 0xd8], xmm1
push dword [esp + 0xd0]
push eax
call fcn.1004dab0
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x1004afc0
push str.Original
call fcn.1005df40
mov eax, dword [esp + 0x14]
add esp, 4
cmp dword [esp + 0xa4], 0
je 0x1004af1e
movss xmm1, dword [0x10293df0]
jmp 0x1004af23
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0xf8]
movss dword [esp + 0xf8], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0xfc], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x100], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0xd4]
movss dword [esp + 0x44], xmm0
push dword [esp + 0x44]
movss dword [esp + 0x108], xmm1
push dword [esp + 0x44]
push dword [esp + 0xa8]
call fcn.1004dab0
add esp, 0xc
test al, al
je 0x1004afc0
xor eax, eax
cmp dword [esp + 0xa4], eax
sete al
lea eax, [eax*4 + 0xc]
push eax
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.10022500
add esp, 0xc
mov byte [esp + 9], 1
call fcn.100499e0
cmp byte [esp + 0xb], 0
jne 0x1004afd3
cmp byte [esp + 0xa], 0
je 0x1004b031
movss xmm1, dword [esp + 0x5c]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1004afe6
movaps xmm3, xmm1
jmp 0x1004afee
movss xmm3, dword [0x10293d50]
movss xmm1, dword [esp + 0x38]
comiss xmm1, xmm0
movss xmm2, dword [0x10293d54]
ja 0x1004b004
movaps xmm1, xmm2
movss xmm0, dword [esp + 0x34]
comiss xmm0, dword [0x10293df0]
jb 0x1004b017
subss xmm0, xmm2
push dword [esp + 0x60]
mov edx, dword [esp + 0xb4]
movaps xmm2, xmm3
mov ecx, dword [esp + 0x24]
call fcn.1006c030
add esp, 4
test byte [esp + 0x30], 0x20
jne 0x1004b196
cmp dword [esp + 0xb8], 0x200
jne 0x1004b054
movss xmm0, dword [esp + 0xbc]
jmp 0x1004b05d
movss xmm0, dword [esp + 0x98]
addss xmm0, dword [esp + 0x48]
subss xmm0, dword [esp + 0x24]
call fcn.1005f8a0
mov eax, dword [esp + 0x30]
mov edx, eax
and edx, 0x31c1a
mov dword [esp + 0x50], edx
test eax, 0x2000
jne 0x1004b099
mov ecx, eax
and ecx, 0xe000
mov dword [esp + 0x10], ecx
jne 0x1004b0ca
mov dword [esp + 0x10], ecx
jmp 0x1004b0a2
and eax, 0xe000
mov dword [esp + 0x10], eax
or edx, 0x2004
mov ecx, str.rgb
push edx
mov edx, dword [esp + 0x24]
call fcn.1004c670
mov ecx, dword [esp + 0x14]
add esp, 4
or byte [esp + 9], al
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
test eax, 0x4000
jne 0x1004b0d5
test ecx, ecx
jne 0x1004b101
or edx, 0x4004
mov ecx, str.hsv
push edx
mov edx, dword [esp + 0x24]
call fcn.1004c670
mov dl, byte [esp + 0xd]
add esp, 4
mov ecx, dword [esp + 0x10]
or dl, al
mov eax, dword [esp + 0x30]
mov byte [esp + 9], dl
jmp 0x1004b105
mov dl, byte [esp + 9]
test eax, 0x8000
jne 0x1004b110
test ecx, ecx
jne 0x1004b135
mov eax, dword [esp + 0x50]
mov ecx, str.hex
mov edx, dword [esp + 0x20]
or eax, 0x8004
push eax
call fcn.1004c670
mov dl, byte [esp + 0xd]
add esp, 4
or dl, al
mov byte [esp + 9], dl
mov ecx, dword [0x102a0b70]
mov eax, dword [ecx + 0x17fc]
mov byte [eax + 0x8e], 1
mov ecx, dword [ecx + 0x17fc]
mov eax, dword [ecx + 0x158]
add eax, 0xffffffff
mov dword [esp + 0x40], eax
mov dword [ecx + 0x158], eax
jne 0x1004b175
movss xmm0, dword [ecx + 0x1e4]
movss dword [ecx + 0x144], xmm0
jmp 0x1004b19a
mov eax, dword [ecx + 0x160]
mov edi, dword [esp + 0x40]
movss xmm0, dword [eax + edi*4 - 4]
mov edi, dword [esp + 0x9c]
movss dword [ecx + 0x144], xmm0
jmp 0x1004b19a
mov dl, byte [esp + 9]
test dl, dl
je 0x1004b28f
mov ecx, dword [esp + 0x20]
xorps xmm2, xmm2
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 xmm6, xmm6
jbe 0x1004b1d6
movss xmm6, dword [0x10293f64]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x1004b1f3
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x10293f50]
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 [0x10293d4c]
movaps xmm7, xmm1
mulss xmm1, dword [0x10293e5c]
divss xmm7, xmm0
addss xmm1, dword [0x10293d4c]
divss xmm3, xmm1
addss xmm3, xmm6
andps xmm3, xmmword [0x102954b0]
comiss xmm2, xmm3
jb 0x1004b28f
movss xmm0, dword [esp + 0x34]
comiss xmm0, xmm2
jbe 0x1004b28f
comiss xmm2, xmm4
jb 0x1004b270
movss xmm1, dword [esp + 0x5c]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
lea eax, [ecx + 8]
jnp 0x1004b270
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x38]
mulss xmm2, dword [0x10293db4]
jmp 0x1004b286
comiss xmm2, xmm7
jb 0x1004b28f
movss xmm1, dword [esp + 0x38]
movaps xmm2, xmm4
mulss xmm1, dword [0x10293db4]
push eax
call fcn.1006c030
add esp, 4
movaps xmm0, xmmword [0x10295400]
lea eax, [esp + 0xf0]
movss xmm2, dword [0x10293df0]
lea edx, [esp + 0xec]
movups xmmword [esp + 0xe8], xmm0
lea ecx, [esp + 0xe8]
movss xmm0, dword [esp + 0x34]
movaps xmm1, xmm2
push eax
call fcn.1006c030
movups xmm0, xmmword [esp + 0xec]
add esp, 4
movss xmm2, dword [0x10293df0]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1004b2ea
xorps xmm3, xmm3
jmp 0x1004b2f1
movaps xmm3, xmm2
minss xmm3, xmm0
movss xmm4, dword [0x10293f0c]
movss xmm0, dword [0x10293db4]
movss xmm5, dword [esp + 0xec]
comiss xmm1, xmm5
mulss xmm3, xmm4
addss xmm3, xmm0
cvttss2si ecx, xmm3
jbe 0x1004b320
xorps xmm3, xmm3
jmp 0x1004b327
movaps xmm3, xmm2
minss xmm3, xmm5
movss xmm5, dword [esp + 0xf0]
mulss xmm3, xmm4
addss xmm3, xmm0
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm1, xmm5
jbe 0x1004b34b
xorps xmm3, xmm3
jmp 0x1004b352
movaps xmm3, xmm2
minss xmm3, xmm5
movss xmm5, dword [esp + 0xf4]
mulss xmm3, xmm4
addss xmm3, xmm0
cvttss2si eax, xmm3
shl eax, 0x10
or ecx, eax
comiss xmm1, xmm5
jbe 0x1004b376
xorps xmm3, xmm3
jmp 0x1004b37d
movaps xmm3, xmm2
minss xmm3, xmm5
mov eax, dword [esp + 0x20]
mulss xmm3, xmm4
movss xmm5, dword [eax]
mov eax, dword [esp + 0xb0]
addss xmm3, xmm0
movss xmm6, dword [eax]
mov eax, dword [esp + 0x60]
cvttss2si edx, xmm3
movss xmm7, dword [eax]
shl edx, 0x18
or edx, ecx
comiss xmm1, xmm5
mov dword [esp + 0x10], edx
jbe 0x1004b3b7
xorps xmm3, xmm3
jmp 0x1004b3be
movaps xmm3, xmm2
minss xmm3, xmm5
comiss xmm1, xmm6
mulss xmm3, xmm4
addss xmm3, xmm0
cvttss2si ecx, xmm3
jbe 0x1004b3d4
xorps xmm3, xmm3
jmp 0x1004b3db
movaps xmm3, xmm2
minss xmm3, xmm6
mulss xmm3, xmm4
addss xmm3, xmm0
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm1, xmm7
jbe 0x1004b3f6
xorps xmm3, xmm3
jmp 0x1004b3fd
movaps xmm3, xmm2
minss xmm3, xmm7
mulss xmm3, xmm4
mov dword [esp + 0xf8], 0xff0000ff
mov dword [esp + 0xfc], 0xff00ffff
mov dword [esp + 0x100], 0xff00ff00
addss xmm3, xmm0
mov dword [esp + 0x104], 0xffffff00
mov dword [esp + 0x108], 0xffff0000
mov dword [esp + 0x10c], 0xffff00ff
mov dword [esp + 0x110], 0xff0000ff
mov dword [esp + 0x6c], 0
cvttss2si eax, xmm3
mov dword [esp + 0x68], 0
shl eax, 0x10
or ecx, eax
or ecx, 0xff000000
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x50], ecx
je 0x1004bc90
movss xmm4, dword [esp + 0x64]
mov eax, 0x2aaaaaab
movss xmm3, dword [0x10293e0c]
movss xmm1, dword [esp + 0x4c]
divss xmm3, xmm4
cvttss2si ecx, xmm4
addss xmm1, xmm4
movss dword [esp + 0xd4], xmm3
imul ecx
movss dword [esp + 0xcc], xmm1
movaps xmm4, xmm1
mov ecx, 4
mulss xmm4, xmm0
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
movss dword [esp + 0xa0], xmm4
cmp eax, ecx
cmovle eax, ecx
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0xc], ecx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov eax, dword [edi + 0x18]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x7c]
push dword [esp + 0x3c]
movaps xmm1, xmm0
addss xmm0, xmm2
divss xmm1, dword [0x10293e5c]
push ecx
mov ecx, edi
movaps xmm2, xmm4
divss xmm0, dword [0x10293e5c]
addss xmm1, xmm1
addss xmm0, xmm0
mulss xmm1, dword [0x10293e4c]
mulss xmm0, dword [0x10293e4c]
subss xmm1, xmm3
addss xmm0, xmm3
movaps xmm3, xmm1
movss dword [esp + 0x6c], xmm1
movss dword [esp], xmm0
push eax
movss dword [esp + 0x6c], xmm0
call fcn.100880a0
movss xmm0, dword [esp + 0x74]
push ecx
movss dword [esp], xmm0
mov ecx, edi
push 0
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10088600
mov ecx, dword [edi + 0x58]
test ecx, ecx
jns 0x1004b590
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x54]
call fcn.10005d20
movss xmm0, dword [esp + 0x64]
cvtps2pd xmm0, xmm0
mov dword [edi + 0x54], 0
call fcn.100c2610
movss xmm1, dword [esp + 0x64]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0x8c]
movss dword [esp + 0xdc], xmm0
cvtps2pd xmm0, xmm1
call fcn.100c3320
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0x90]
movss dword [esp + 0xe0], xmm0
movss xmm0, dword [esp + 0x60]
cvtps2pd xmm0, xmm0
call fcn.100c2610
movss xmm1, dword [esp + 0x60]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x24], xmm0
cvtps2pd xmm0, xmm1
call fcn.100c3320
mov eax, dword [esp + 0xc]
cvtsd2ss xmm0, xmm0
mov ecx, dword [edi + 0x20]
mulss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0x90]
movss dword [esp + 0x28], xmm0
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0xe8]
push dword [esp + 0xe8]
push dword [esp + eax*4 + 0x10c]
push dword [esp + eax*4 + 0x10c]
mov eax, dword [edi + 0x18]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov eax, dword [esp + 0x58]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
call fcn.1008a950
mov ecx, dword [esp + 0x24]
add esp, 0x18
movss xmm2, dword [0x10293df0]
inc ecx
movss xmm3, dword [esp + 0xd4]
movss xmm4, dword [esp + 0xa0]
mov dword [esp + 0xc], ecx
cmp ecx, 6
jl 0x1004b4e6
movss xmm0, dword [esp + 0x34]
addss xmm0, xmm0
mulss xmm0, dword [0x10293e4c]
movss dword [esp + 0x34], xmm0
cvtps2pd xmm0, xmm0
call fcn.100c2610
movss xmm3, dword [esp + 0x34]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x4c], xmm0
cvtps2pd xmm0, xmm3
call fcn.100c3320
cmp byte [esp + 0xb], 0
xorps xmm3, xmm3
movss xmm2, dword [esp + 0xcc]
movss xmm1, dword [0x10293db4]
cvtsd2ss xmm3, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [esp + 0x4c]
mulss xmm2, xmm3
mulss xmm0, xmm1
mulss xmm2, xmm1
addss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x40], xmm3
addss xmm2, dword [esp + 0x90]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x28], xmm2
movss xmm2, dword [esp + 0x74]
je 0x1004b74b
mulss xmm2, dword [0x10293dc0]
jmp 0x1004b753
mulss xmm2, dword [0x10293db8]
movaps xmm0, xmm2
movss dword [esp + 0x74], xmm2
divss xmm0, dword [0x10293e08]
cvttss2si eax, xmm0
cmp eax, 9
jge 0x1004b774
mov eax, 9
jmp 0x1004b77e
mov ecx, 0x20
cmp eax, ecx
cmovg eax, ecx
test dword [esp + 0x10], 0xff000000
movss xmm4, dword [0x10293e60]
movd xmm3, eax
cvtdq2ps xmm3, xmm3
mov dword [esp + 0xc], eax
movss dword [esp + 0x3c], xmm3
je 0x1004b825
movaps xmm0, xmm3
subss xmm0, dword [0x10293df0]
push eax
push ecx
lea eax, [esp + 0x2c]
mov ecx, edi
mulss xmm0, xmm4
divss xmm0, xmm3
xorps xmm3, xmm3
movss dword [esp], xmm0
push eax
call fcn.100880a0
push dword [esp + 0x10]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10088210
mov ecx, dword [edi + 0x58]
lea eax, [edi + 0x54]
test ecx, ecx
jns 0x1004b805
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x54]
call fcn.10005d20
lea eax, [edi + 0x54]
movss xmm1, dword [0x10293db4]
movss xmm3, dword [esp + 0x3c]
movss xmm4, dword [0x10293e60]
mov dword [eax], 0
mov eax, dword [esp + 0xc]
movaps xmm2, xmm3
subss xmm2, dword [0x10293df0]
push eax
push ecx
lea eax, [esp + 0x2c]
mov ecx, edi
mulss xmm2, xmm4
divss xmm2, xmm3
xorps xmm3, xmm3
movss dword [esp], xmm2
movss dword [esp + 0x44], xmm2
movss xmm2, dword [esp + 0x7c]
addss xmm2, dword [0x10293df0]
push eax
subss xmm2, xmm1
call fcn.100880a0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xff808080
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10088600
mov ecx, dword [edi + 0x58]
lea eax, [edi + 0x54]
test ecx, ecx
jns 0x1004b8a8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x54]
call fcn.10005d20
lea eax, [edi + 0x54]
push dword [esp + 0xc]
movss xmm2, dword [esp + 0x78]
xorps xmm3, xmm3
movss xmm0, dword [esp + 0x40]
subss xmm2, dword [0x10293db4]
push ecx
mov dword [eax], 0
mov ecx, edi
lea eax, [esp + 0x2c]
movss dword [esp], xmm0
push eax
call fcn.100880a0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10088600
mov ecx, dword [edi + 0x58]
lea eax, [edi + 0x54]
test ecx, ecx
jns 0x1004b91a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x54]
call fcn.10005d20
lea eax, [edi + 0x54]
movss xmm3, dword [esp + 0x4c]
xorps xmm1, xmm1
movss xmm5, dword [esp + 0x40]
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x14]
movaps xmm0, xmm5
mov dword [eax], 0
mov ecx, edi
movss xmm6, dword [esp + 0x8c]
movaps xmm4, xmm3
mulss xmm0, xmm1
mov eax, dword [0x102a0b70]
movss xmm7, dword [esp + 0x90]
mulss xmm4, dword [esp + 0x94]
push 6
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm5
push 6
mulss xmm1, dword [esp + 0x9c]
addss xmm2, xmm6
movss dword [esp + 0x6c], xmm2
movss dword [esp + 0xf0], xmm2
movaps xmm2, xmm5
mulss xmm2, dword [esp + 0x1c]
addss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x80]
mulss xmm5, dword [esp + 0xb0]
addss xmm2, xmm7
movss dword [esp + 0xb8], xmm2
movss dword [esp + 0xf4], xmm2
movaps xmm2, xmm4
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x80]
subss xmm4, xmm5
mulss xmm3, dword [esp + 0xb0]
addss xmm0, xmm1
addss xmm4, xmm6
addss xmm3, xmm1
addss xmm2, xmm6
addss xmm0, xmm7
movss dword [esp + 0x68], xmm4
addss xmm3, xmm7
movss dword [esp + 0x84], xmm4
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x20], xmm0
movss xmm0, dword [eax + 0x1734]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 0x1738]
movss dword [esp + 0x54], xmm3
movss dword [esp + 0x88], xmm3
movss dword [esp + 0x48], xmm0
call fcn.10087730
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x30]
movss xmm2, dword [esp + 0x64]
movss xmm3, dword [esp + 0xb0]
movss xmm0, dword [esp + 0x3c]
movss xmm1, dword [esp + 0x40]
mov word [ecx], ax
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
mov edx, dword [esp + 0x10]
movss xmm5, dword [esp + 0x14]
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], edx
mov eax, dword [edi + 0x38]
inc dword [edi + 0x30]
add dword [edi + 0x34], 0x14
mov ecx, dword [edi + 0x30]
mov word [eax], cx
add dword [edi + 0x38], 2
mov eax, dword [edi + 0x34]
movss dword [eax], xmm5
movss xmm4, dword [esp + 0x18]
movss dword [eax + 4], xmm4
mov eax, dword [edi + 0x34]
movss xmm7, dword [esp + 0x60]
movss xmm6, dword [esp + 0x4c]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
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 + 0x84]
add dword [edi + 0x34], 0x14
inc dword [edi + 0x30]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.10089510
movss xmm0, dword [0x10293df0]
movaps xmm2, xmm0
subss xmm2, dword [esp + 0x5c]
xorps xmm1, xmm1
comiss xmm1, xmm2
jbe 0x1004bc0e
xorps xmm4, xmm4
jmp 0x1004bc15
movaps xmm4, xmm0
minss xmm4, xmm2
movss xmm2, dword [esp + 0x38]
comiss xmm1, xmm2
jbe 0x1004bc25
xorps xmm3, xmm3
jmp 0x1004bc2c
movaps xmm3, xmm0
minss xmm3, xmm2
movss xmm0, dword [esp + 0x64]
subss xmm0, dword [esp + 0x60]
movss xmm2, dword [esp + 0xb0]
subss xmm2, dword [esp + 0x4c]
mulss xmm0, xmm3
mulss xmm2, xmm3
addss xmm0, dword [esp + 0x60]
movss xmm3, dword [esp + 0x14]
addss xmm2, dword [esp + 0x4c]
subss xmm3, xmm0
mulss xmm3, xmm4
addss xmm3, xmm0
movss xmm0, dword [esp + 0x18]
subss xmm0, xmm2
movss dword [esp + 0x68], xmm3
mulss xmm0, xmm4
addss xmm0, xmm2
movss dword [esp + 0x6c], xmm0
jmp 0x1004bfcd
test dword [esp + 0x30], 0x40000
je 0x1004bfcd
movss xmm0, dword [esp + 0xb4]
lea eax, [esp + 0x7c]
push 0xffffffffffffffff
push edx
movss dword [esp + 0x84], xmm0
mov ecx, edi
movss xmm0, dword [esp + 0x24]
addss xmm0, dword [esp + 0x34]
push edx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x38]
push eax
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x98], xmm0
call fcn.10089650
movss xmm0, dword [esp + 0xb4]
lea eax, [esp + 0x7c]
push 0xff000000
push 0xff000000
push 0
push 0
push eax
movss dword [esp + 0x90], xmm0
lea eax, [esp + 0x38]
movss xmm0, dword [esp + 0x24]
mov ecx, edi
push eax
movss dword [esp + 0x98], xmm0
call fcn.10089650
movss xmm0, dword [esp + 0xb4]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x18], xmm0
xorps xmm0, xmm0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.10066620
movss xmm3, dword [esp + 0x48]
xorps xmm0, xmm0
movss xmm1, dword [0x10293df0]
add esp, 0x10
comiss xmm0, xmm3
jbe 0x1004bd73
xorps xmm2, xmm2
jmp 0x1004bd7a
movaps xmm2, xmm1
minss xmm2, xmm3
movss xmm4, dword [esp + 0x2c]
movss xmm6, dword [esp + 0x24]
movss xmm3, dword [0x10293db4]
mulss xmm2, xmm4
movss xmm5, dword [0x10293e3c]
movss xmm7, dword [esp + 0xb4]
addss xmm2, xmm6
addss xmm6, xmm5
subss xmm7, xmm5
addss xmm2, xmm3
cvttss2si eax, xmm2
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm6, xmm2
jbe 0x1004bdcb
movss dword [esp + 0x68], xmm6
jmp 0x1004bdde
comiss xmm2, xmm7
jbe 0x1004bdd8
movss dword [esp + 0x68], xmm7
jmp 0x1004bdde
movss dword [esp + 0x68], xmm2
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x5c]
comiss xmm0, xmm2
jbe 0x1004bdf1
xorps xmm1, xmm1
jmp 0x1004bdf5
minss xmm1, xmm2
movss xmm2, dword [esp + 0x1c]
mulss xmm1, xmm4
movss xmm0, dword [esp + 0x10]
subss xmm0, xmm5
addss xmm1, xmm2
addss xmm1, xmm3
cvttss2si eax, xmm1
movaps xmm1, xmm2
addss xmm1, xmm5
movd xmm3, eax
cvtdq2ps xmm3, xmm3
comiss xmm1, xmm3
jbe 0x1004be30
movss dword [esp + 0x6c], xmm1
jmp 0x1004be43
comiss xmm3, xmm0
jbe 0x1004be3d
movss dword [esp + 0x6c], xmm0
jmp 0x1004be43
movss dword [esp + 0x6c], xmm3
movss xmm0, dword [esp + 0xc4]
movaps xmm1, xmm4
divss xmm1, dword [0x10293e5c]
mov esi, dword [esp + 0x9c]
xor ecx, ecx
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x98]
movss dword [esp + 0x3c], xmm1
movss dword [esp + 0xe8], xmm0
nop
mov eax, dword [esp + ecx*4 + 0xfc]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x84]
mulss xmm0, xmm1
addss xmm0, xmm2
movss dword [esp + 0x88], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0x100]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0xfc]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm2
movss dword [esp + 0x104], xmm0
call fcn.10089650
movss xmm1, dword [esp + 0x3c]
mov ecx, edi
movss xmm2, dword [esp + 0x1c]
cmp ecx, 6
jl 0x1004be80
movss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x10]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x98]
push dword [esp + 0x18]
movss dword [esp + 0x28], xmm0
movaps xmm0, xmm2
push dword [esp + 0x18]
movss dword [esp + 0x30], xmm0
xorps xmm0, xmm0
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.10066620
mov esi, dword [esp + 0x68]
movss xmm1, dword [esp + 0x58]
addss xmm1, dword [0x10293e3c]
mov edi, dword [esp + 0xac]
mov ecx, edi
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x28], xmm2
addss xmm0, dword [0x10293df0]
push dword [esp + 0x28]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0xac]
subss xmm0, dword [0x10293df0]
push dword [esp + 0x28]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x4c]
mulss xmm0, dword [esp + 0x44]
addss xmm0, dword [esp + 0x34]
addss xmm0, dword [0x10293db4]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x40], xmm0
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.1004c390
add esp, 0x20
cmp byte [esp + 0xa], 0
je 0x1004bfe5
movss xmm0, dword [0x10293e74]
movss dword [esp + 0xc8], xmm0
movss xmm2, dword [esp + 0xc8]
lea eax, [esp + 0x68]
push 0xc
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
mov ecx, edi
call fcn.100880a0
push dword [esp + 0x50]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10088210
mov ecx, dword [edi + 0x58]
lea eax, [edi + 0x54]
test ecx, ecx
jns 0x1004c03e
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x54]
call fcn.10005d20
lea eax, [edi + 0x54]
movss xmm2, dword [esp + 0xc8]
xorps xmm3, xmm3
addss xmm2, dword [0x10293df0]
push 0xc
push ecx
mov dword [eax], 0
mov ecx, edi
lea eax, [esp + 0x70]
mov dword [esp], 0x40b84e89
subss xmm2, dword [0x10293db4]
push eax
call fcn.100880a0
push ecx
mov dword [esp], 0x3f800000
lea eax, [edi + 0x54]
push 1
push 0xff808080
push dword [eax]
mov ecx, edi
mov dword [esp + 0x4c], eax
push dword [edi + 0x5c]
call fcn.10088600
mov ecx, dword [edi + 0x58]
lea eax, [edi + 0x54]
test ecx, ecx
jns 0x1004c0be
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x54]
call fcn.10005d20
lea eax, [edi + 0x54]
movss xmm2, dword [esp + 0xc8]
xorps xmm3, xmm3
subss xmm2, dword [0x10293db4]
push 0xc
push ecx
mov dword [eax], 0
mov ecx, edi
lea eax, [esp + 0x70]
mov dword [esp], 0x40b84e89
push eax
call fcn.100880a0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10088600
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x1004c12a
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10005d20
cmp dword [esp + 0xb8], 0x200
mov dword [edi], 0
jne 0x1004c2d2
mov eax, dword [esp + 0x20]
xorps xmm2, xmm2
movss xmm1, dword [eax + 0xc]
comiss xmm2, xmm1
jbe 0x1004c15a
movss dword [esp + 0x58], xmm2
jmp 0x1004c16c
movss xmm0, dword [0x10293df0]
minss xmm0, xmm1
movss dword [esp + 0x58], xmm0
movss xmm3, dword [esp + 0xbc]
or edx, 0xffffffff
movss xmm0, dword [esp + 0x1c]
movaps xmm1, xmm3
addss xmm1, dword [esp + 0x48]
movss dword [esp + 0x80], xmm0
xor ecx, ecx
addss xmm0, dword [esp + 0x2c]
mov dword [esp + 0x18], 0
push dword [esp + 0x18]
movss dword [esp + 0x88], xmm1
subss xmm1, xmm3
mov dword [esp + 0x18], 0
push dword [esp + 0x18]
movss dword [esp + 0x90], xmm0
push dword [esp + 0x90]
mulss xmm1, dword [0x10293db4]
push dword [esp + 0x90]
movss dword [esp + 0x8c], xmm3
push dword [esp + 0x90]
mov edi, dword [esp + 0x90]
push edi
call fcn.1004dff0
mov ecx, dword [esp + 0x68]
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 + 0x94]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.10089650
push dword [esp + 0x88]
xorps xmm0, xmm0
push dword [esp + 0x88]
push dword [esp + 0x88]
push edi
call fcn.10066620
movss xmm1, dword [0x10293df0]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0xac]
movaps xmm0, xmm2
movss dword [esp + 0x28], xmm2
addss xmm0, xmm1
push dword [esp + 0x28]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0xd0]
subss xmm0, xmm1
subss xmm1, dword [esp + 0x6c]
push dword [esp + 0x28]
movss dword [esp + 0x3c], xmm0
mulss xmm1, dword [esp + 0x44]
addss xmm1, dword [esp + 0x34]
addss xmm1, dword [0x10293db4]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x60]
addss xmm1, dword [0x10293e3c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x40], xmm0
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.1004c390
add esp, 0x20
call fcn.100499e0
mov eax, dword [0x102a0b70]
mov eax, dword [eax + 0x17fc]
dec dword [eax + 0x1a4]
add eax, 0x1a4
cmp byte [esp + 9], 0
je 0x1004c379
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x114]
xor edx, edx
cmp dword [esp + 0xa4], edx
sete dl
lea edx, [edx*4 + 0xc]
sub edx, 4
jb 0x1004c331
nop dword [eax + eax]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x1004c336
add esi, 4
add ecx, 4
sub edx, 4
jae 0x1004c320
cmp edx, 0xfffffffc
je 0x1004c379
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x1004c363
cmp edx, 0xfffffffd
je 0x1004c379
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x1004c363
cmp edx, 0xfffffffe
je 0x1004c379
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x1004c363
cmp edx, 0xffffffff
je 0x1004c379
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x1004c379
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.1001ed23
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.1001ed23
mov esp, ebp
pop ebp
ret