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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
push esi
mov esi, edx
mov edx, ecx
mov ecx, dword [0x103f3c74]
push edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x34], esi
mov eax, dword [ecx + 0x198c]
mov dword [esp + 0x58], 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 + 0x40], edi
call fcn.100394d0
call fcn.100395f0
mov ecx, dword [ebp + 8]
mov edx, ecx
or edx, 0x10
mov eax, ecx
and eax, 0x100
cmovne edx, ecx
mov dword [esp + 0x5c], edx
test dl, 8
jne 0x100568e4
mov ecx, esi
call fcn.10059970
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0xc]
test edx, 0x6000000
jne 0x1005690d
mov eax, dword [esi + 0x2bf0]
mov ecx, 0x2900000
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, edx
jmp 0x1005690f
mov ecx, edx
mov dword [esp + 0x10], ecx
test cl, 8
jne 0x10056929
mov eax, dword [esi + 0x2bf0]
and eax, 0x10000
or ecx, eax
mov dword [esp + 0x10], ecx
mov eax, ecx
mov edx, ecx
and eax, 0x10002
and edx, 2
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xa0], edx
movss xmm0, dword [eax + 0xcc]
movss xmm4, dword [eax + 0xc8]
mov eax, dword [0x103f3c74]
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x3c], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x38], 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 + 0x64], xmm5
jbe 0x10056a20
mov ecx, dword [eax + 0x1bc]
movss xmm3, dword [eax + 0xc8]
movss xmm1, dword [eax + 0x214]
mov dword [esp + 0x5c], ecx
subss xmm3, dword [eax + 0xc]
subss xmm1, dword [eax + 0xc]
test ecx, ecx
je 0x10056a0c
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 + 0x5c]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mov edx, dword [esp + 0xa0]
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 [0x103b71f0]
maxss xmm2, xmm1
movss xmm3, dword [esi + 0x154c]
cvttss2si eax, xmm2
movaps xmm0, xmm3
movss dword [esp + 0x6c], xmm3
addss xmm0, xmm5
movd xmm2, eax
xor eax, eax
cmp dword [esp + 0xd4], 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 + 0x38]
subss xmm2, xmm1
movaps xmm1, xmm5
push eax
lea eax, [esp + 0x118]
push eax
maxss xmm1, xmm2
addss xmm0, xmm1
movss dword [esp + 0x38], xmm1
movss dword [esp + 0xa8], xmm0
addss xmm0, xmm3
movss dword [esp + 0xe4], xmm0
addss xmm0, xmm5
movss dword [esp + 0xb8], xmm0
addss xmm0, xmm3
movss dword [esp + 0xf4], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [0x103b7184]
cvttss2si esi, xmm0
mov dword [esp + 0x74], esi
call fcn.1008ff70
movss xmm1, dword [esp + 0x38]
add esp, 0xc
movaps xmm2, xmm1
mov dword [esp + 0x24], 0
mulss xmm2, dword [0x103b71a8]
movaps xmm3, xmm1
mulss xmm3, dword [0x103b7168]
movaps xmm0, xmm2
movss dword [esp + 0x44], xmm2
addss xmm0, dword [esp + 0x30]
movaps xmm4, xmm2
movss dword [esp + 0x80], xmm3
subss xmm4, xmm3
movaps xmm3, xmm1
addss xmm3, dword [esp + 0x64]
movss dword [esp + 0xb4], xmm0
movss dword [esp + 0xc4], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x103b7154]
movaps xmm1, xmm4
mulss xmm3, dword [0x103b71a8]
cvttss2si eax, xmm0
addss xmm3, dword [esp + 0x38]
movss dword [esp + 0x4c], xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xb0], xmm3
subss xmm1, xmm0
movss dword [esp + 0xc0], xmm3
movaps xmm0, xmm1
movss dword [esp + 0x20], xmm1
mulss xmm0, dword [0x103b741c]
movaps xmm2, xmm1
mulss xmm2, dword [0x103b7428]
movss dword [esp + 0xb8], xmm0
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0xf4], xmm0
movaps xmm0, xmm1
movss dword [esp + 0xbc], xmm2
movss dword [esp + 0x90], xmm2
mov eax, dword [esp + 0x34]
xorps xmm3, xmm3
mulss xmm0, dword [0x103b71dc]
lea ecx, [eax + 4]
mov dword [esp + 0x7c], ecx
movss xmm1, dword [ecx]
movss xmm5, dword [eax]
add eax, 8
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0xf8], xmm0
movss dword [esp + 0x78], xmm5
movss xmm2, dword [eax]
comiss xmm2, xmm1
mov dword [esp + 0x54], eax
jbe 0x10056c1f
movss xmm3, dword [0x103b742c]
movaps xmm0, xmm1
movaps xmm1, xmm2
movaps xmm2, xmm0
comiss xmm1, xmm5
jbe 0x10056c42
movaps xmm0, xmm5
movaps xmm5, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x78], xmm5
movss xmm0, dword [0x103b7418]
subss xmm0, xmm3
movaps xmm3, xmm0
movaps xmm0, xmm1
movaps xmm4, xmm5
minss xmm0, xmm2
subss xmm1, xmm2
movss xmm2, dword [0x103b72c4]
movss dword [esp + 0xd0], xmm2
subss xmm4, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm2
addss xmm0, dword [0x103b710c]
divss xmm1, xmm0
addss xmm1, xmm3
movaps xmm0, xmm1
call fcn.1000e970
movss dword [esp + 0x48], xmm0
mov ecx, 8
movaps xmm0, xmm5
mov byte [esp + 8], 0
addss xmm0, dword [0x103b710c]
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
divss xmm4, xmm0
movss dword [esp + 0x60], xmm4
call fcn.10038f40
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x4000000
mov dword [esp + 0x70], ecx
je 0x10057298
movss xmm1, dword [esp + 0x2c]
lea edx, [esp + 0x18]
mov eax, dword [esp + 0xc]
movaps xmm0, xmm1
mov ecx, 0x103b4324
movss dword [esp + 0x1c], xmm1
addss xmm0, dword [eax + 0x154c]
addss xmm0, dword [esp + 0x64]
movss dword [esp + 0x18], xmm0
call fcn.1004e4b0
mov ecx, dword [0x103f3c74]
mov edx, dword [ecx + 0x19ac]
test edx, edx
je 0x1005718d
mov eax, dword [ecx + 0x198c]
cmp edx, dword [eax + 0x10c]
jne 0x1005718d
mov eax, dword [esp + 0xc]
movss xmm2, dword [esp + 0xb0]
movss xmm0, dword [eax + 0x384]
subss xmm0, dword [esp + 0xb4]
movss xmm1, dword [eax + 0x380]
movss xmm4, dword [eax + 0xe0]
subss xmm1, xmm2
movss xmm3, dword [eax + 0xe4]
subss xmm4, xmm2
subss xmm3, dword [esp + 0xb4]
movaps xmm2, xmm0
movss dword [esp + 0x14], xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
movss dword [esp + 0x50], xmm1
mulss xmm0, xmm1
movss xmm1, dword [0x103b71f0]
movss dword [esp + 0xdc], xmm4
addss xmm2, xmm0
movss dword [esp + 0xe0], xmm3
movss xmm0, dword [esp + 0x4c]
subss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm2, xmm0
jb 0x10056e33
movss xmm0, dword [esp + 0x44]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm2
jb 0x10056e33
cvtps2pd xmm0, xmm3
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
call fcn.100b3440
movss xmm2, dword [0x103b7294]
xorps xmm0, xmm0
fstp qword [esp + 0x18]
movsd xmm1, qword [esp + 0x18]
cvtpd2ps xmm1, xmm1
divss xmm1, xmm2
mulss xmm1, dword [0x103b71a8]
comiss xmm0, xmm1
movss dword [esp + 0x48], xmm1
jbe 0x10056e2b
addss xmm1, dword [0x103b71f0]
movss dword [esp + 0x48], xmm1
mov al, 1
mov byte [esp + 8], al
jmp 0x10056e45
mov al, byte [esp + 8]
movss xmm2, dword [0x103b7294]
movss xmm1, dword [esp + 0x48]
movaps xmm0, xmm1
mov byte [esp + 9], al
mulss xmm0, dword [0x103b7440]
mulss xmm0, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x18], xmm0
call fcn.100b3760
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x5c], xmm0
movsd xmm0, qword [esp + 0x18]
call fcn.100b4750
movss xmm5, dword [esp + 0x5c]
xorps xmm6, xmm6
cvtsd2ss xmm6, xmm0
movss xmm7, dword [esp + 0xb8]
movaps xmm2, xmm5
mulss xmm2, dword [esp + 0x50]
movaps xmm0, xmm6
mulss xmm0, dword [esp + 0x14]
movaps xmm3, xmm5
mulss xmm3, dword [esp + 0x14]
movaps xmm4, xmm7
subss xmm4, xmm7
movss dword [esp + 0xe4], xmm6
subss xmm2, xmm0
movaps xmm0, xmm6
mulss xmm0, dword [esp + 0x50]
movss xmm6, dword [esp + 0x20]
movss dword [esp + 0x50], xmm4
subss xmm6, xmm7
addss xmm3, xmm0
movaps xmm1, xmm2
movss xmm0, dword [esp + 0xbc]
subss xmm1, xmm7
subss xmm0, dword [esp + 0xa8]
movss dword [esp + 0xec], xmm6
mulss xmm1, xmm0
movss dword [esp + 0x5c], xmm0
movaps xmm0, xmm3
subss xmm0, dword [esp + 0xa8]
mulss xmm0, xmm4
xorps xmm4, xmm4
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0xbc]
comiss xmm4, xmm1
movaps xmm1, xmm2
movss dword [esp + 0xa4], xmm0
subss xmm1, xmm7
seta cl
mulss xmm1, xmm0
movaps xmm0, xmm3
subss xmm0, dword [esp + 0xbc]
mulss xmm0, xmm6
subss xmm1, xmm0
comiss xmm4, xmm1
seta al
cmp al, cl
jne 0x10057185
movss xmm7, dword [esp + 0xa8]
subss xmm3, xmm4
movss xmm0, dword [esp + 0xb8]
subss xmm7, xmm4
subss xmm0, dword [esp + 0x20]
subss xmm2, dword [esp + 0x20]
movss dword [esp + 0x84], xmm7
mulss xmm3, xmm0
mulss xmm2, xmm7
movss dword [esp + 0x14], xmm0
subss xmm2, xmm3
comiss xmm4, xmm2
seta al
cmp cl, al
jne 0x10057185
movss xmm1, dword [esp + 0xe4]
movaps xmm6, xmm5
movss xmm3, dword [esp + 0xdc]
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0xe0]
mulss xmm5, dword [esp + 0xe0]
movss xmm2, dword [esp + 0xb8]
mulss xmm1, xmm3
mulss xmm6, xmm3
addss xmm5, xmm1
subss xmm6, xmm0
movaps xmm0, xmm5
movss dword [esp + 0x1c], xmm5
subss xmm0, dword [esp + 0xa8]
movaps xmm1, xmm6
movss dword [esp + 0x18], xmm6
subss xmm1, xmm2
mulss xmm0, dword [esp + 0x50]
mulss xmm1, dword [esp + 0x5c]
subss xmm1, xmm0
movaps xmm0, xmm5
subss xmm0, dword [esp + 0xbc]
comiss xmm4, xmm1
mulss xmm0, dword [esp + 0xec]
movaps xmm1, xmm6
subss xmm1, xmm2
seta cl
mulss xmm1, dword [esp + 0xa4]
subss xmm1, xmm0
comiss xmm4, xmm1
seta al
cmp al, cl
jne 0x1005708a
movaps xmm1, xmm6
movaps xmm0, xmm5
subss xmm1, dword [esp + 0x20]
subss xmm0, xmm4
mulss xmm1, xmm7
mulss xmm0, dword [esp + 0x14]
subss xmm1, xmm0
comiss xmm4, xmm1
seta al
cmp cl, al
je 0x100570d0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xf8]
push eax
lea eax, [esp + 0x94]
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0xf8]
call fcn.1002e890
movss xmm7, dword [esp + 0x90]
add esp, 0xc
movss xmm2, dword [esp + 0xb8]
xorps xmm4, xmm4
movss xmm6, dword [eax]
movss xmm5, dword [eax + 4]
subss xmm6, dword [esp + 0x20]
movaps xmm3, xmm2
subss xmm5, xmm4
movss xmm2, dword [esp + 0xbc]
movaps xmm1, xmm7
subss xmm3, dword [esp + 0x20]
subss xmm2, xmm4
movss xmm4, dword [esp + 0x14]
movaps xmm0, xmm4
mulss xmm7, xmm6
mulss xmm4, xmm5
mulss xmm1, xmm3
mulss xmm0, xmm2
subss xmm7, xmm4
mulss xmm5, xmm3
subss xmm1, xmm0
mulss xmm6, xmm2
movss xmm0, dword [0x103b71f0]
movss xmm2, dword [0x103b7130]
movaps xmm4, xmm0
subss xmm5, xmm6
movss dword [esp + 0x60], xmm2
divss xmm7, xmm1
divss xmm5, xmm1
subss xmm4, xmm7
comiss xmm2, xmm4
movaps xmm1, xmm4
subss xmm1, xmm5
jbe 0x10057156
movaps xmm3, xmm2
jmp 0x1005715d
movaps xmm3, xmm0
minss xmm3, xmm4
divss xmm1, xmm3
movss dword [esp + 0x78], xmm3
comiss xmm2, xmm1
ja 0x10057179
movaps xmm2, xmm0
minss xmm2, xmm1
movss dword [esp + 0x60], xmm2
mov byte [esp + 0xa], 1
mov byte [esp + 8], 1
jmp 0x1005718d
mov al, byte [esp + 8]
mov byte [esp + 9], al
test byte [esp + 0x10], 8
jne 0x10057199
call fcn.10039d50
mov ecx, dword [0x103f3c74]
movss xmm4, dword [esp + 0x2c]
movss xmm3, dword [esp + 0x30]
cmp dword [esp + 0xd4], 0x10000
jne 0x100574b3
mov eax, dword [ecx + 0x198c]
lea edx, [esp + 0x8c]
movss xmm0, dword [esp + 0xe8]
movss dword [esp + 0x90], xmm4
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 + 0x64]
movss dword [esp + 0x8c], xmm0
call fcn.1004e4b0
mov ecx, dword [0x103f3c74]
xorps xmm2, xmm2
mov edx, dword [ecx + 0x19ac]
test edx, edx
je 0x100574b6
mov eax, dword [ecx + 0x198c]
cmp edx, dword [eax + 0x10c]
mov edx, dword [esp + 0xc]
jne 0x100574ba
movss xmm3, dword [edx + 0xe4]
movss xmm0, dword [esp + 0x2c]
movss xmm1, dword [0x103b71f0]
subss xmm3, dword [esp + 0x30]
subss xmm0, xmm1
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x10057495
xorps xmm4, xmm4
jmp 0x1005749c
test eax, 0x2000000
je 0x10057199
movss xmm0, dword [esp + 0x2c]
lea edx, [esp + 0x8c]
mov ecx, 0x103b4334
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x90], xmm0
call fcn.1004e4b0
mov ecx, dword [0x103f3c74]
mov edx, dword [ecx + 0x19ac]
test edx, edx
je 0x10057363
mov eax, dword [ecx + 0x198c]
cmp edx, dword [eax + 0x10c]
jne 0x10057363
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
movss xmm3, dword [esp + 0x2c]
movss xmm1, dword [0x103b71f0]
subss xmm3, xmm1
movss xmm2, dword [eax + 0xe0]
subss xmm2, dword [esp + 0x38]
divss xmm2, xmm3
comiss xmm0, xmm2
jbe 0x10057326
movss dword [esp + 0x60], xmm0
jmp 0x10057333
movaps xmm4, xmm1
minss xmm4, xmm2
movss dword [esp + 0x60], xmm4
movss xmm2, dword [eax + 0xe4]
subss xmm2, dword [esp + 0x30]
divss xmm2, xmm3
comiss xmm0, xmm2
ja 0x10057351
movaps xmm0, xmm1
minss xmm0, xmm2
subss xmm1, xmm0
mov al, 1
mov byte [esp + 8], al
movss dword [esp + 0x78], xmm1
jmp 0x10057367
mov al, byte [esp + 8]
test byte [esp + 0x10], 8
mov byte [esp + 0xb], al
jne 0x1005737d
call fcn.10039d50
mov ecx, dword [0x103f3c74]
mov eax, dword [ecx + 0x198c]
lea edx, [esp + 0x8c]
movss xmm2, dword [esp + 0xd8]
movss xmm0, dword [esp + 0x30]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x198c]
mov ecx, 0x103b4330
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 + 0x64]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [eax + 0xe0], xmm1
movss dword [esp + 0x90], xmm0
call fcn.1004e4b0
mov ecx, dword [0x103f3c74]
mov edx, dword [ecx + 0x19ac]
test edx, edx
je 0x10057428
mov eax, dword [ecx + 0x198c]
cmp edx, dword [eax + 0x10c]
sete al
jmp 0x1005742a
xor al, al
mov dl, byte [esp + 8]
mov byte [esp + 0xa], dl
test al, al
je 0x1005719f
mov eax, dword [esp + 0xc]
movss xmm4, dword [esp + 0x2c]
movss xmm3, dword [esp + 0x30]
movaps xmm0, xmm4
movss xmm1, dword [0x103b71f0]
movss xmm2, dword [eax + 0xe4]
subss xmm0, xmm1
subss xmm2, xmm3
divss xmm2, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
ja 0x10057478
movaps xmm0, xmm1
minss xmm0, xmm2
mov al, byte [esp + 0xb]
movss dword [esp + 0x48], xmm0
mov byte [esp + 9], 1
mov byte [esp + 8], 1
mov byte [esp + 0xa], al
jmp 0x100571ab
movaps xmm4, xmm1
minss xmm4, xmm3
mov eax, dword [esp + 0x34]
movaps xmm0, xmm1
subss xmm0, xmm4
mov byte [esp + 8], 1
movss dword [eax + 0xc], xmm0
jmp 0x100574ba
xorps xmm2, xmm2
mov edx, dword [esp + 0xc]
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 + 0x84], eax
mov dword [ecx + 0x174], eax
jne 0x100574e6
xor eax, eax
jmp 0x100574fb
mov edi, dword [esp + 0x84]
mov eax, dword [ecx + 0x17c]
mov eax, dword [eax + edi*4 - 4]
mov edi, dword [esp + 0x40]
mov dword [ecx + 0x168], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x100
mov dword [esp + 0x50], ecx
jne 0x1005752c
movss xmm1, dword [edx + 0x154c]
xorps xmm0, xmm0
call fcn.100398b0
call fcn.100395f0
mov eax, dword [esp + 0x10]
and eax, 0x80
mov dword [esp + 0x84], eax
jne 0x1005758d
mov edx, dword [esp + 0x58]
mov eax, edx
cmp edx, 0xffffffff
jae 0x1005758d
mov cl, byte [eax]
test cl, cl
je 0x1005755b
cmp cl, 0x23
jne 0x10057555
cmp byte [eax + 1], cl
je 0x1005755b
inc eax
cmp eax, 0xffffffff
jb 0x10057545
mov dword [esp + 0x14], eax
cmp edx, eax
je 0x1005758d
cmp dword [esp + 0x50], 0
je 0x10057582
mov eax, dword [esp + 0xc]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x154c]
call fcn.100398b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
mov edx, eax
call fcn.1004d0b0
cmp dword [esp + 0x50], 0
jne 0x1005777d
mov ecx, 0x10
call fcn.10038f40
cmp dword [esp + 0xa0], 0
mov eax, dword [esp + 0x34]
je 0x100575ba
movss xmm1, dword [0x103b71f0]
jmp 0x100575bf
movss xmm1, dword [eax + 0xc]
cmp dword [esp + 0x84], 0
movss xmm0, dword [eax]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x90], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x98], xmm1
je 0x10057608
push str.Current
call fcn.1004d710
add esp, 4
movss xmm1, dword [esp + 0x64]
lea edx, [esp + 0x8c]
mov eax, dword [esp + 0x10]
movaps xmm0, xmm1
mulss xmm0, dword [0x103b7290]
and eax, 0xe0040
mov ecx, str.current
mov dword [esp + 0xa4], eax
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x84], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0x1c], xmm0
push dword [esp + 0x1c]
movss dword [esp + 0xf0], xmm0
push dword [esp + 0x1c]
push eax
call fcn.10058cf0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x1005773d
push str.Original
call fcn.1004d710
mov eax, dword [ebp + 0xc]
add esp, 4
cmp dword [esp + 0xa0], 0
je 0x10057699
movss xmm1, dword [0x103b71f0]
jmp 0x1005769e
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 + 0x84]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0xec]
movss dword [esp + 0x1c], xmm0
push dword [esp + 0x1c]
movss dword [esp + 0x104], xmm1
push dword [esp + 0x1c]
push dword [esp + 0xac]
call fcn.10058cf0
add esp, 0xc
test al, al
je 0x1005773d
xor eax, eax
cmp dword [esp + 0xa0], eax
sete al
lea eax, [eax*4 + 0xc]
push eax
push dword [ebp + 0xc]
push dword [esp + 0x3c]
call fcn.1008ff70
add esp, 0xc
mov byte [esp + 8], 1
mov ecx, dword [0x103f3c74]
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 0x10057768
xor eax, eax
jmp 0x10057772
mov eax, dword [ecx + 0x17c]
mov eax, dword [eax + edx*4 - 4]
mov dword [ecx + 0x168], eax
call fcn.10039720
cmp byte [esp + 9], 0
jne 0x1005778b
cmp byte [esp + 0xa], 0
je 0x100577e9
movss xmm1, dword [esp + 0x78]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1005779e
movaps xmm2, xmm1
jmp 0x100577a6
movss xmm2, dword [0x103b7118]
movss xmm3, dword [esp + 0x60]
comiss xmm3, xmm0
movss xmm1, dword [0x103b7120]
ja 0x100577bc
movaps xmm3, xmm1
movss xmm0, dword [esp + 0x48]
comiss xmm0, dword [0x103b71f0]
jb 0x100577cf
subss xmm0, xmm1
push dword [esp + 0x54]
mov edx, dword [esp + 0x80]
movaps xmm1, xmm3
mov ecx, dword [esp + 0x38]
call fcn.1002f340
add esp, 4
test byte [esp + 0x10], 0x20
mov byte [esp + 0xb], 0
jne 0x10057a56
cmp dword [esp + 0xd4], 0x10000
jne 0x10057811
movss xmm0, dword [esp + 0xac]
jmp 0x1005781a
movss xmm0, dword [esp + 0x9c]
addss xmm0, dword [esp + 0x6c]
addss xmm0, dword [esp + 0x64]
subss xmm0, dword [esp + 0x38]
call fcn.10038be0
mov eax, dword [esp + 0x10]
mov edx, eax
mov ecx, eax
and edx, 0x18e001a
and ecx, 0x700000
mov dword [esp + 0x14], edx
mov dword [esp + 0x58], ecx
test eax, 0x100000
jne 0x10057858
test ecx, ecx
jne 0x100578b9
or edx, 0x100004
mov eax, ecx
push edx
mov edx, dword [esp + 0x38]
mov ecx, str.rgb
mov dword [esp + 0x70], eax
mov dword [esp + 0x5c], eax
call fcn.100555f0
add esp, 4
test al, al
je 0x100578ad
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x19ac], 0
je 0x10057899
cmp byte [eax + 0x19bd], 0
mov byte [esp + 0xb], 1
je 0x1005789e
mov byte [esp + 0xb], 0
mov ecx, dword [esp + 0x6c]
mov byte [esp + 8], 1
mov dword [esp + 0x58], ecx
jmp 0x100578b1
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, 0x200000
jne 0x100578c4
test ecx, ecx
jne 0x100578e8
or edx, 0x200004
mov ecx, str.hsv
push edx
mov edx, dword [esp + 0x38]
call fcn.100555f0
mov ecx, dword [esp + 0x5c]
add esp, 4
or byte [esp + 8], al
mov eax, dword [esp + 0x10]
test eax, 0x400000
jne 0x100578f3
test ecx, ecx
jne 0x10057912
mov eax, dword [esp + 0x14]
mov ecx, str.hex
mov edx, dword [esp + 0x34]
or eax, 0x400004
push eax
call fcn.100555f0
add esp, 4
or byte [esp + 8], al
mov ecx, dword [0x103f3c74]
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 0x10057943
movss xmm0, dword [ecx + 0x220]
jmp 0x1005794f
mov eax, dword [ecx + 0x188]
movss xmm0, dword [eax + edx*4 - 4]
cmp byte [esp + 0xb], 0
movss dword [ecx + 0x16c], xmm0
je 0x10057a56
mov ecx, dword [esp + 0x34]
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 0x10057996
movss xmm6, dword [0x103b742c]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x100579b3
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x103b7418]
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 [0x103b710c]
movaps xmm7, xmm1
mulss xmm1, dword [0x103b72c4]
divss xmm7, xmm0
addss xmm1, dword [0x103b710c]
divss xmm3, xmm1
addss xmm3, xmm6
movaps xmm0, xmm3
call fcn.1000e970
comiss xmm2, xmm0
jb 0x10057a56
movss xmm0, dword [esp + 0x48]
comiss xmm0, xmm2
jbe 0x10057a56
comiss xmm2, xmm4
jb 0x10057a35
movss xmm1, dword [esp + 0x78]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x10057a32
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x60]
mulss xmm2, dword [0x103b71a8]
push edx
lea edx, [ecx + 4]
jmp 0x10057a4e
lea eax, [ecx + 4]
comiss xmm2, xmm7
jb 0x10057a56
movss xmm1, dword [esp + 0x60]
movaps xmm2, xmm4
mulss xmm1, dword [0x103b71a8]
push edx
mov edx, eax
call fcn.1002f340
add esp, 4
movaps xmm0, xmmword [0x103b7950]
lea eax, [esp + 0x94]
movups xmmword [esp + 0x8c], xmm0
lea edx, [esp + 0x90]
movss xmm0, dword [0x103b71f0]
lea ecx, [esp + 0x8c]
movaps xmm2, xmm0
movaps xmm1, xmm0
movss xmm0, dword [esp + 0x48]
push eax
call fcn.1002f340
movups xmm3, xmmword [esp + 0x90]
add esp, 4
movss xmm2, dword [0x103b71f0]
xorps xmm1, xmm1
comiss xmm1, xmm3
jbe 0x10057ab4
xorps xmm0, xmm0
jmp 0x10057abb
movaps xmm0, xmm2
minss xmm0, xmm3
movss xmm3, dword [0x103b7390]
movss xmm7, dword [0x103b71a8]
movss xmm4, dword [esp + 0x90]
comiss xmm1, xmm4
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si ecx, xmm0
jbe 0x10057aea
xorps xmm0, xmm0
jmp 0x10057af1
movaps xmm0, xmm2
minss xmm0, xmm4
movss xmm4, dword [esp + 0x94]
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si eax, xmm0
shl eax, 8
or ecx, eax
comiss xmm1, xmm4
jbe 0x10057b15
xorps xmm0, xmm0
jmp 0x10057b1c
movaps xmm0, xmm2
minss xmm0, xmm4
movss xmm4, dword [esp + 0x98]
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si eax, xmm0
shl eax, 0x10
or ecx, eax
comiss xmm1, xmm4
jbe 0x10057b40
xorps xmm0, xmm0
jmp 0x10057b47
movaps xmm0, xmm2
minss xmm0, xmm4
mov eax, dword [esp + 0x34]
mulss xmm0, xmm3
movss xmm4, dword [eax]
mov eax, dword [esp + 0x7c]
addss xmm0, xmm7
movss xmm5, dword [eax]
mov eax, dword [esp + 0x54]
cvttss2si edx, xmm0
movss xmm6, dword [eax]
shl edx, 0x18
or edx, ecx
comiss xmm1, xmm4
mov dword [esp + 0x58], edx
jbe 0x10057b7e
xorps xmm0, xmm0
jmp 0x10057b85
movaps xmm0, xmm2
minss xmm0, xmm4
comiss xmm1, xmm5
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si ecx, xmm0
jbe 0x10057b9b
xorps xmm0, xmm0
jmp 0x10057ba2
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 0x10057bbd
xorps xmm0, xmm0
jmp 0x10057bc4
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 + 0x1c], 0
cvttss2si eax, xmm0
mov dword [esp + 0x18], 0
shl eax, 0x10
or ecx, eax
or ecx, 0xff000000
cmp dword [esp + 0x70], 0
mov dword [esp + 0x5c], ecx
je 0x10058660
movss xmm1, dword [esp + 0x44]
mov eax, 0x2aaaaaab
movss xmm3, dword [0x103b7220]
movss xmm0, dword [esp + 0x4c]
divss xmm3, xmm1
cvttss2si ecx, xmm1
addss xmm0, xmm1
movss dword [esp + 0xe0], xmm3
imul ecx
movss dword [esp + 0xac], 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 + 0xe4], xmm4
mov edx, dword [esp + 0x40]
cmp ecx, eax
cmovle ecx, eax
xor eax, eax
add edi, 0x54
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0xa4], edi
nop
movd xmm1, eax
lea eax, [esp + 0xc0]
cvtdq2ps xmm1, xmm1
mov esi, dword [edx + 0x18]
push ecx
push ecx
mov ecx, edx
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [0x103b72c4]
divss xmm1, dword [0x103b72c4]
addss xmm0, xmm0
movaps xmm2, xmm4
addss xmm1, xmm1
mulss xmm0, dword [0x103b7294]
mulss xmm1, dword [0x103b7294]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0x4c], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x60], xmm1
call fcn.10048410
movss xmm0, dword [esp + 0x80]
mov eax, dword [esp + 0x40]
push ecx
movss dword [esp], xmm0
mov ecx, eax
push 0
push 0xffffffffffffffff
push dword [edi]
push dword [eax + 0x5c]
call fcn.100473a0
movss xmm0, dword [esp + 0x44]
cvtps2pd xmm0, xmm0
mov dword [edi], 0
call fcn.100b3760
movss xmm1, dword [esp + 0x44]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0xb0]
movss dword [esp + 0x6c], xmm0
cvtps2pd xmm0, xmm1
call fcn.100b4750
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0xb4]
movss dword [esp + 0x84], xmm0
movss xmm0, dword [esp + 0x54]
cvtps2pd xmm0, xmm0
call fcn.100b3760
movss xmm1, dword [esp + 0x54]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x4c]
addss xmm0, dword [esp + 0xb0]
movss dword [esp + 0x70], xmm0
cvtps2pd xmm0, xmm1
call fcn.100b4750
movss xmm3, dword [esp + 0x70]
xorps xmm4, xmm4
movss xmm5, dword [esp + 0x6c]
movss xmm6, dword [esp + 0x84]
subss xmm3, xmm5
cvtsd2ss xmm4, xmm0
mov eax, dword [esp + 0x14]
movss xmm2, dword [0x103b71f0]
movaps xmm0, xmm3
mulss xmm4, dword [esp + 0x4c]
movaps xmm7, xmm2
mov ecx, dword [esp + eax*4 + 0xf8]
mov eax, dword [esp + eax*4 + 0xf4]
mulss xmm0, xmm3
mov dword [esp + 0x44], ecx
addss xmm4, dword [esp + 0xb4]
mov dword [esp + 0xec], eax
subss xmm4, xmm6
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
divss xmm7, xmm1
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x20]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x7c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x7c]
jae 0x10057f9d
mov ecx, dword [esp + 0xec]
movzx eax, cl
mov dword [esp + 0x54], eax
mov eax, ecx
shr eax, 8
movzx esi, al
mov eax, dword [esp + 0x44]
shr eax, 0x10
shr ecx, 0x10
movzx edx, cl
movzx ecx, al
mov eax, dword [esp + 0x44]
sub ecx, edx
shr eax, 8
mov dword [esp + 0x50], edx
movzx edx, al
mov eax, dword [esp + 0x44]
sub edx, esi
movzx edi, al
sub edi, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x50]
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 0x10057eee
xorps xmm2, xmm2
jmp 0x10057ef2
minss xmm2, xmm1
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movd xmm1, esi
mulss xmm0, xmm2
mov esi, dword [esp + 0x10]
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
movd xmm1, dword [esp + 0x70]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
shl eax, 8
mov dword [esp + 0xc], eax
mulss xmm0, xmm2
addss xmm0, xmm1
movd xmm1, dword [esp + 0x54]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, edi
or dword [esp + 0xc], eax
shl dword [esp + 0xc], 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss xmm2, dword [0x103b71f0]
addss xmm0, xmm1
cvttss2si eax, xmm0
or dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
and eax, 0xff000000
or dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov esi, dword [esp + 0x50]
add eax, 0x14
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x7c]
jb 0x10057ec0
mov edi, dword [esp + 0xa4]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
movss xmm3, dword [esp + 0xe0]
inc eax
movss xmm4, dword [esp + 0xe4]
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x14], eax
cmp eax, 6
jl 0x10057cc0
movss xmm0, dword [esp + 0x48]
addss xmm0, xmm0
mulss xmm0, dword [0x103b7294]
movss dword [esp + 0x48], xmm0
cvtps2pd xmm0, xmm0
call fcn.100b3760
movss xmm3, dword [esp + 0x48]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x4c], xmm0
cvtps2pd xmm0, xmm3
call fcn.100b4750
cmp byte [esp + 9], 0
xorps xmm1, xmm1
movss xmm5, dword [0x103b71a8]
cvtsd2ss xmm1, xmm0
movss xmm0, dword [esp + 0x4c]
mulss xmm0, dword [esp + 0xac]
movss dword [esp + 0x6c], xmm1
mulss xmm0, xmm5
addss xmm0, dword [esp + 0xb0]
movss dword [esp + 0x38], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0xac]
mulss xmm0, xmm5
addss xmm0, dword [esp + 0xb4]
movss dword [esp + 0x3c], xmm0
je 0x10058067
movss xmm2, dword [0x103b71b4]
jmp 0x1005806f
movss xmm2, dword [0x103b71ac]
mulss xmm2, dword [esp + 0x80]
movaps xmm0, xmm2
movss dword [esp + 0x44], xmm2
divss xmm0, dword [0x103b7210]
cvttss2si eax, xmm0
cmp eax, 9
jge 0x10058099
mov eax, 9
jmp 0x100580a3
mov ecx, 0x20
cmp eax, ecx
cmovg eax, ecx
test dword [esp + 0x58], 0xff000000
movss xmm4, dword [0x103b72c8]
mov dword [esp + 0x80], eax
je 0x1005813d
cmp eax, 2
jle 0x10058200
movd xmm1, eax
lea ecx, [eax - 1]
cvtdq2ps xmm1, xmm1
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x38]
push ecx
push ecx
mov dword [esp + 0x1c], ecx
mov ecx, esi
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, dword [0x103b71f0]
mulss xmm0, xmm4
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.10048410
push dword [esp + 0x58]
mov ecx, esi
push dword [edi]
push dword [esi + 0x5c]
call fcn.10047ec0
movss xmm2, dword [esp + 0x44]
movss xmm4, dword [0x103b72c8]
movss xmm5, dword [0x103b71a8]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x14]
mov dword [edi], 0
jmp 0x10058148
mov esi, dword [esp + 0x40]
lea ecx, [eax - 1]
mov dword [esp + 0x14], ecx
cmp eax, 2
jle 0x10058200
movd xmm0, eax
xorps xmm3, xmm3
cvtdq2ps xmm0, xmm0
push ecx
push ecx
lea eax, [esp + 0x40]
mov ecx, esi
addss xmm2, dword [0x103b71f0]
movaps xmm1, xmm0
subss xmm1, dword [0x103b71f0]
subss xmm2, xmm5
mulss xmm1, xmm4
divss xmm1, xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x7c], xmm1
call fcn.10048410
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push 1
push 0xff808080
push dword [edi]
push dword [esi + 0x5c]
call fcn.100473a0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x38]
movss xmm2, dword [esp + 0x44]
xorps xmm3, xmm3
movss xmm0, dword [esp + 0x70]
subss xmm2, dword [0x103b71a8]
push ecx
push ecx
movss dword [esp], xmm0
mov ecx, esi
push eax
mov dword [edi], 0
call fcn.10048410
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push 1
push 0xffffffffffffffff
push dword [edi]
push dword [esi + 0x5c]
call fcn.100473a0
mov dword [edi], 0
movss xmm3, dword [esp + 0x4c]
xorps xmm1, xmm1
movss xmm4, dword [esp + 0x6c]
movaps xmm2, xmm3
movss xmm6, dword [esp + 0x20]
movaps xmm0, xmm4
movss xmm5, dword [esp + 0xb0]
mulss xmm0, xmm1
mov eax, dword [0x103f3c74]
mulss xmm2, xmm6
mov esi, dword [esp + 0x40]
mov ecx, esi
push 6
push 6
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm3
addss xmm2, xmm5
movss dword [esp + 0x88], xmm2
movss dword [esp + 0x28], xmm2
movaps xmm2, xmm4
mulss xmm2, xmm6
movss xmm6, dword [esp + 0xbc]
addss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0xc4]
addss xmm2, xmm6
movss dword [esp + 0x5c], xmm2
movss dword [esp + 0x2c], xmm2
movss xmm2, dword [esp + 0xc0]
mulss xmm1, xmm2
subss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm2
addss xmm1, xmm5
movss dword [esp + 0x84], xmm1
movss dword [esp + 0x40], xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esp + 0xc4]
addss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0xb0]
mulss xmm4, xmm2
addss xmm1, xmm6
movss dword [esp + 0x58], xmm1
movss dword [esp + 0x44], xmm1
movaps xmm1, xmm3
mulss xmm3, dword [esp + 0xb0]
mulss xmm1, xmm2
addss xmm3, xmm4
subss xmm1, xmm0
movss xmm0, dword [eax + 0x18b4]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [eax + 0x18b8]
addss xmm3, xmm6
movss dword [esp + 0x74], xmm0
addss xmm1, xmm5
movss dword [esp + 0x54], xmm3
movss dword [esp + 0x90], xmm3
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x8c], xmm1
call fcn.100471f0
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x30]
movss xmm2, dword [esp + 0x80]
movss xmm3, dword [esp + 0x54]
movss xmm0, dword [esp + 0x70]
movss xmm1, dword [esp + 0x6c]
mov edx, dword [esp + 0x58]
mov dword [ecx], eax
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 4
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], edx
add dword [esi + 0x34], 0x14
inc dword [esi + 0x30]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
movss xmm4, dword [esp + 0x7c]
movss xmm5, dword [esp + 0x50]
mov dword [eax], ecx
add dword [esi + 0x38], 4
mov eax, dword [esi + 0x34]
movss xmm7, dword [esp + 0x44]
movss xmm6, dword [esp + 0x4c]
movss dword [eax], xmm4
movss dword [eax + 4], xmm5
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], edx
add dword [esi + 0x34], 0x14
inc dword [esi + 0x30]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
mov dword [eax], ecx
add dword [esi + 0x38], 4
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 dword [eax], ecx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 4
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 dword [eax], ecx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 4
movss dword [eax], xmm4
movss dword [eax + 4], xmm5
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], 0xff000000
add dword [esi + 0x34], 0x14
inc dword [esi + 0x30]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x30]
mov dword [eax], ecx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 4
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 + 4]
mov edx, dword [edi]
mov esi, dword [esp + 0x68]
cmp edx, eax
jne 0x100584eb
lea ecx, [edx + 1]
test eax, eax
je 0x100584d7
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x100584dc
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1003f420
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x20]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + edx*8 + 4], eax
inc dword [edi]
mov edx, dword [edi]
mov ecx, dword [edi + 4]
cmp edx, ecx
jne 0x10058534
inc edx
mov dword [esp + 0x70], edx
test ecx, ecx
je 0x10058520
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x70]
sar eax, 1
add eax, ecx
jmp 0x10058525
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.1003f420
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x38]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + edx*8 + 4], eax
inc dword [edi]
mov edx, dword [edi]
mov ecx, dword [edi + 4]
cmp edx, ecx
jne 0x1005857d
inc edx
mov dword [esp + 0x70], edx
test ecx, ecx
je 0x10058569
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x70]
sar eax, 1
add eax, ecx
jmp 0x1005856e
mov eax, 8
cmp eax, edx
mov ecx, edi
cmovg edx, eax
push edx
call fcn.1003f420
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x84]
push ecx
mov dword [esp], 0x3fc00000
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x8c]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [esp + 0x44]
mov ecx, eax
inc dword [edi]
push 1
push 0xff808080
push dword [edi]
push dword [eax + 0x5c]
call fcn.100473a0
movss xmm0, dword [0x103b71f0]
xorps xmm1, xmm1
movaps xmm2, xmm0
mov dword [edi], 0
subss xmm2, dword [esp + 0x78]
comiss xmm1, xmm2
jbe 0x100585da
xorps xmm4, xmm4
jmp 0x100585e1
movaps xmm4, xmm0
minss xmm4, xmm2
movss xmm2, dword [esp + 0x60]
comiss xmm1, xmm2
jbe 0x100585f1
xorps xmm3, xmm3
jmp 0x100585f8
movaps xmm3, xmm0
minss xmm3, xmm2
movss xmm0, dword [esp + 0x80]
subss xmm0, dword [esp + 0x44]
movss xmm2, dword [esp + 0x54]
subss xmm2, dword [esp + 0x4c]
mov edi, dword [esp + 0x40]
mulss xmm0, xmm3
mulss xmm2, xmm3
addss xmm0, dword [esp + 0x44]
movss xmm3, dword [esp + 0x7c]
addss xmm2, dword [esp + 0x4c]
subss xmm3, xmm0
mulss xmm3, xmm4
addss xmm3, xmm0
movss xmm0, dword [esp + 0x50]
subss xmm0, xmm2
movss dword [esp + 0x18], xmm3
mulss xmm0, xmm4
addss xmm0, xmm2
movss dword [esp + 0x1c], xmm0
jmp 0x1005899a
test dword [esp + 0x10], 0x2000000
je 0x1005899a
movss xmm0, dword [esp + 0x9c]
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 + 0x4c]
push eax
movss dword [esp + 0x3c], xmm0
call fcn.10048bd0
movss xmm0, dword [esp + 0x9c]
lea eax, [esp + 0xc0]
push 0xff000000
push 0xff000000
push 0
push 0
push eax
movss dword [esp + 0xd4], xmm0
lea eax, [esp + 0x4c]
movss xmm0, dword [esp + 0x38]
mov ecx, edi
push eax
movss dword [esp + 0xdc], xmm0
call fcn.10048bd0
movss xmm0, dword [esp + 0x9c]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x74], xmm0
xorps xmm0, xmm0
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.1002fcd0
movss xmm3, dword [esp + 0x70]
xorps xmm0, xmm0
movss xmm1, dword [0x103b71f0]
add esp, 0x10
comiss xmm0, xmm3
jbe 0x1005873a
xorps xmm2, xmm2
jmp 0x10058741
movaps xmm2, xmm1
minss xmm2, xmm3
movss xmm7, dword [esp + 0x2c]
movss xmm3, dword [esp + 0x38]
movss xmm4, dword [0x103b71a8]
mulss xmm2, xmm7
movss xmm6, dword [0x103b725c]
movss xmm5, dword [esp + 0x9c]
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 0x10058792
movss dword [esp + 0x18], xmm3
jmp 0x100587a5
comiss xmm2, xmm5
jbe 0x1005879f
movss dword [esp + 0x18], xmm5
jmp 0x100587a5
movss dword [esp + 0x18], xmm2
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x78]
comiss xmm0, xmm2
jbe 0x100587b8
xorps xmm1, xmm1
jmp 0x100587bc
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 0x100587f7
movss dword [esp + 0x1c], xmm1
jmp 0x1005880a
comiss xmm2, xmm0
jbe 0x10058804
movss dword [esp + 0x1c], xmm0
jmp 0x1005880a
movss dword [esp + 0x1c], xmm2
movss xmm0, dword [esp + 0xac]
movaps xmm1, xmm7
divss xmm1, dword [0x103b72c4]
mov esi, dword [esp + 0x40]
xor ecx, ecx
movss dword [esp + 0xc0], xmm0
movss xmm0, dword [esp + 0xd8]
movss dword [esp + 0x70], xmm1
movss dword [esp + 0x8c], xmm0
nop word [eax + 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 + 0xc8]
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xcc], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0xfc]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0xa0]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xa8], xmm0
call fcn.10048bd0
movss xmm1, dword [esp + 0x70]
mov ecx, edi
movss xmm3, dword [esp + 0x30]
cmp ecx, 6
jl 0x10058850
movss xmm0, dword [esp + 0xac]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0xd8]
push dword [esp + 0x3c]
movss dword [esp + 0x24], xmm0
movaps xmm0, xmm3
push dword [esp + 0x3c]
movss dword [esp + 0x2c], xmm0
xorps xmm0, xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.1002fcd0
mov esi, dword [esp + 0x78]
movss xmm1, dword [esp + 0x74]
addss xmm1, dword [0x103b725c]
mov edi, dword [esp + 0x50]
mov ecx, edi
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x34], xmm2
addss xmm0, dword [0x103b71f0]
push dword [esp + 0x34]
movss xmm2, dword [esp + 0xec]
subss xmm2, dword [0x103b71f0]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0x5c]
mulss xmm0, dword [esp + 0x40]
push dword [esp + 0x34]
movss dword [esp + 0x50], xmm2
addss xmm0, dword [esp + 0x48]
addss xmm0, dword [0x103b71a8]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x54], xmm0
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.100566a0
add esp, 0x20
cmp byte [esp + 0xa], 0
je 0x100589b2
movss xmm0, dword [0x103b72d4]
movss dword [esp + 0xd0], xmm0
movss xmm2, dword [esp + 0xd0]
lea eax, [esp + 0x18]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
mov ecx, edi
call fcn.10048410
push dword [esp + 0x5c]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10047ec0
movss xmm2, dword [esp + 0xd0]
lea eax, [esp + 0x18]
addss xmm2, dword [0x103b71f0]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
subss xmm2, dword [0x103b71a8]
mov ecx, edi
mov dword [edi + 0x54], 0
call fcn.10048410
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xff808080
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.100473a0
movss xmm2, dword [esp + 0xd0]
lea eax, [esp + 0x18]
subss xmm2, dword [0x103b71a8]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
mov ecx, edi
mov dword [edi + 0x54], 0
call fcn.10048410
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.100473a0
cmp dword [esp + 0xd4], 0x10000
mov dword [edi + 0x54], 0
jne 0x10058c27
mov eax, dword [esp + 0x34]
xorps xmm2, xmm2
movss xmm1, dword [eax + 0xc]
comiss xmm2, xmm1
jbe 0x10058ab5
movss dword [esp + 0x68], xmm2
jmp 0x10058ac7
movss xmm0, dword [0x103b71f0]
minss xmm0, xmm1
movss dword [esp + 0x68], xmm0
movss xmm3, dword [esp + 0xe8]
or edx, 0xffffffff
movss xmm0, dword [esp + 0x30]
movaps xmm1, xmm3
addss xmm1, dword [esp + 0x64]
movss dword [esp + 0xc4], xmm0
xor ecx, ecx
addss xmm0, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
push dword [esp + 0x24]
movss dword [esp + 0xcc], xmm1
subss xmm1, xmm3
mov dword [esp + 0x24], 0
push dword [esp + 0x24]
movss dword [esp + 0xd4], xmm0
push dword [esp + 0xd4]
mulss xmm1, dword [0x103b71a8]
push dword [esp + 0xd4]
movss dword [esp + 0xd0], xmm3
push dword [esp + 0xd4]
mov edi, dword [esp + 0xd4]
push edi
call fcn.100563e0
mov ecx, dword [esp + 0x74]
add esp, 0x18
mov eax, ecx
and eax, 0xffffff
push eax
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.10048bd0
push dword [esp + 0xcc]
xorps xmm0, xmm0
push dword [esp + 0xcc]
push dword [esp + 0xcc]
push edi
call fcn.1002fcd0
movss xmm1, dword [0x103b71f0]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0x50]
movaps xmm0, xmm2
movss dword [esp + 0x34], xmm2
movss xmm2, dword [esp + 0xf8]
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 + 0x50], xmm2
addss xmm1, dword [esp + 0x48]
addss xmm1, dword [0x103b71a8]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x7c]
addss xmm1, dword [0x103b725c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x54], xmm0
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.100566a0
add esp, 0x20
call fcn.10039720
cmp byte [esp + 8], 0
mov edi, dword [0x103f3c74]
je 0x10058cbe
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x110]
xor ecx, ecx
cmp dword [esp + 0xa0], ecx
sete cl
lea ecx, [ecx*4 + 0xc]
sub ecx, 4
jb 0x10058c71
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10058c76
add edx, 4
add esi, 4
sub ecx, 4
jae 0x10058c60
cmp ecx, 0xfffffffc
je 0x10058cb9
mov al, byte [edx]
cmp al, byte [esi]
jne 0x10058ca3
cmp ecx, 0xfffffffd
je 0x10058cb9
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x10058ca3
cmp ecx, 0xfffffffe
je 0x10058cb9
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x10058ca3
cmp ecx, 0xffffffff
je 0x10058cb9
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x10058cb9
mov eax, dword [edi + 0x198c]
mov byte [edi + 0x19bf], 1
or dword [eax + 0x110], 4
jmp 0x10058cbe
mov byte [esp + 8], 0
mov ecx, dword [edi + 0x198c]
mov al, byte [esp + 8]
pop edi
pop esi
dec dword [ecx + 0x1c0]
mov esp, ebp
pop ebp
ret