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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x1004f014]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [0x1004f60c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], ecx
push edi
mov eax, dword [esi + 0x1928]
mov edi, edx
xor edx, edx
mov dword [esp + 0xd0], edi
mov dword [esp + 0x20], esi
mov byte [eax + 0x78], 1
mov eax, dword [esi + 0x1928]
mov dword [esp + 0x50], eax
mov eax, dword [eax + 0x27c]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x1928]
add eax, 0x1c8
mov dword [esp + 0x54], eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
push dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0x60]
call fcn.10003ee0
add esp, 4
cmp dword [esi + 0x1944], eax
jne 0x100214bd
mov byte [esi + 0x1950], 1
cmp dword [esi + 0x1948], eax
jne 0x100214cc
mov byte [esi + 0x1954], 1
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
push eax
call fcn.10026dc0
call fcn.10023e90
mov ecx, dword [ebp + 8]
mov edx, ecx
or edx, 0x10
mov eax, ecx
and eax, 0x100
cmovne edx, ecx
mov dword [esp + 0x10], edx
test dl, 8
jne 0x1002150d
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.1001fd80
mov edx, dword [esp + 0x10]
test edx, 0x6000000
jne 0x10021532
mov eax, dword [esi + 0x2b18]
mov ecx, 0x2900000
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, edx
jmp 0x10021534
mov ecx, edx
mov dword [esp + 0x1c], ecx
test cl, 8
jne 0x1002154e
mov eax, dword [esi + 0x2b18]
and eax, 0x10000
or ecx, eax
mov dword [esp + 0x1c], ecx
mov eax, ecx
movss xmm1, dword [0x1004cb50]
and eax, 0x10002
mov edx, ecx
mov dword [esp + 0xcc], eax
and edx, 2
mov eax, dword [esp + 0x50]
mov dword [esp + 0xb0], edx
movss xmm0, dword [eax + 0xcc]
movss xmm6, dword [eax + 0xc8]
mov eax, dword [0x1004f60c]
movss dword [esp + 0x34], xmm0
movss dword [esp + 0x28], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x24], xmm6
movss xmm4, dword [eax + 0x1540]
addss xmm4, xmm4
movss dword [esp + 0x14], xmm0
addss xmm4, dword [eax + 0x1854]
mov eax, dword [eax + 0x1928]
mov dword [esp + 0x10], eax
movss xmm5, dword [eax + 0x168]
comiss xmm0, xmm5
movss dword [esp + 0x68], xmm4
jbe 0x1002164e
mov ecx, dword [eax + 0x1c4]
movss xmm3, dword [eax + 0xc8]
movss xmm2, dword [eax + 0x21c]
mov dword [esp + 0x60], ecx
subss xmm3, dword [eax + 0xc]
subss xmm2, dword [eax + 0xc]
test ecx, ecx
je 0x1002163f
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 + 0x60]
movss xmm2, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm2, xmm0
mov edx, dword [esp + 0xb0]
mulss xmm2, dword [eax + ecx*4]
mov eax, dword [esp + 0x10]
addss xmm2, xmm0
subss xmm2, dword [eax + 0x3c]
subss xmm2, xmm3
addss xmm2, xmm5
movaps xmm5, xmm1
maxss xmm5, xmm2
movss xmm3, dword [esi + 0x1554]
cvttss2si eax, xmm5
movaps xmm0, xmm3
addss xmm0, xmm4
movd xmm2, eax
xor eax, eax
cmp dword [esp + 0xcc], 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
lea eax, [esp + 0x118]
subss xmm2, xmm1
movaps xmm1, xmm6
push edi
push eax
maxss xmm0, xmm2
addss xmm1, xmm0
movss dword [esp + 0x3c], xmm0
addss xmm1, xmm3
movaps xmm0, xmm1
movss dword [esp + 0x7c], xmm1
addss xmm0, xmm4
movss dword [esp + 0x60], xmm0
addss xmm0, xmm3
movss dword [esp + 0xd0], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x1004cb08]
cvttss2si esi, xmm0
mov dword [esp + 0xd4], esi
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [esp + 0x3c]
add esp, 0xc
movaps xmm4, xmm1
movaps xmm3, xmm1
mulss xmm4, dword [0x1004cb20]
mulss xmm3, dword [0x1004caf4]
movaps xmm0, xmm4
movss dword [esp + 0x50], xmm4
addss xmm0, dword [esp + 0x34]
movss dword [esp + 0x80], xmm3
movaps xmm2, xmm4
subss xmm2, xmm3
movaps xmm3, xmm1
addss xmm3, dword [esp + 0x68]
movss dword [esp + 0xac], xmm0
movss dword [esp + 0x90], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x1004caec]
mulss xmm3, dword [0x1004cb20]
cvttss2si eax, xmm0
addss xmm3, dword [esp + 0x24]
movss dword [esp + 0x58], xmm2
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xa0], xmm3
subss xmm2, xmm0
movss dword [esp + 0x8c], xmm3
movss xmm0, dword [esp + 0x14]
movss dword [esp + 0xec], xmm0
movaps xmm1, xmm2
movss dword [esp + 0xa4], xmm2
mulss xmm1, dword [0x1004cc54]
movaps xmm3, xmm2
mulss xmm3, dword [0x1004cc60]
movss dword [esp + 0xb4], xmm1
movss dword [esp + 0xf8], xmm1
movss dword [esp + 0xe0], xmm1
movaps xmm1, xmm2
mulss xmm1, dword [0x1004cb48]
movss dword [esp + 0xe8], xmm2
movss dword [esp + 0xb8], xmm3
movss dword [esp + 0xfc], xmm3
movss xmm4, dword [edi + 8]
movaps xmm5, xmm0
movss xmm3, dword [edi]
movss xmm2, dword [0x1004cc64]
movss dword [esp + 0x9c], xmm1
movss dword [esp + 0xe4], xmm1
movss xmm1, dword [edi + 4]
comiss xmm4, xmm1
movss dword [esp + 0x6c], xmm3
jbe 0x1002183d
movaps xmm0, xmm1
movaps xmm5, xmm2
movaps xmm1, xmm4
movaps xmm4, xmm0
comiss xmm1, xmm3
movss xmm2, dword [0x1004cc50]
jbe 0x10021863
movaps xmm0, xmm3
movss dword [esp + 0x6c], xmm1
movaps xmm3, xmm1
movaps xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm5
movaps xmm5, xmm0
movaps xmm0, xmm1
movaps xmm2, xmm3
minss xmm0, xmm4
subss xmm1, xmm4
movss xmm4, dword [0x1004cbc4]
movss dword [esp + 0x84], xmm4
subss xmm2, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm4
addss xmm0, dword [0x1004cac4]
divss xmm1, xmm0
addss xmm1, xmm5
movaps xmm0, xmm1
call fcn.100029f0
mov eax, dword [esp + 0x10]
movss dword [esp + 0x4c], xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x1004cac4]
mov ecx, dword [0x1004f60c]
mov byte [eax + 0x78], 1
mov byte [esp + 0xf], 0
mov byte [esp + 0x1b], 0
mov ecx, dword [ecx + 0x1928]
divss xmm2, xmm0
or dword [ecx + 0x164], 8
mov byte [esp + 0x1a], 0
lea eax, [ecx + 0x164]
add ecx, 0x170
push eax
movss dword [esp + 0x68], xmm2
call fcn.10026dc0
mov eax, dword [esp + 0x1c]
mov ecx, eax
and ecx, 0x4000000
mov dword [esp + 0x44], ecx
je 0x10021f0e
movss xmm1, dword [esp + 0x30]
lea edx, [esp + 0x38]
mov eax, dword [esp + 0x20]
movaps xmm0, xmm1
mov ecx, 0x1004a738
movss dword [esp + 0x3c], xmm1
addss xmm0, dword [eax + 0x1554]
addss xmm0, dword [esp + 0x68]
movss dword [esp + 0x38], xmm0
call fcn.10013d40
mov ecx, dword [0x1004f60c]
mov edx, dword [ecx + 0x1944]
test edx, edx
je 0x10021e00
mov eax, dword [ecx + 0x1928]
cmp edx, dword [eax + 0x104]
jne 0x10021e00
mov eax, dword [esp + 0x20]
movss xmm0, dword [eax + 0x394]
subss xmm0, dword [esp + 0xa0]
movss xmm1, dword [eax + 0x398]
subss xmm1, dword [esp + 0xac]
movss xmm4, dword [eax + 0xd8]
movss xmm3, dword [eax + 0xdc]
subss xmm4, dword [esp + 0xa0]
subss xmm3, dword [esp + 0xac]
movaps xmm2, xmm0
movss dword [esp + 0x60], xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x74], xmm1
movss xmm1, dword [0x1004cb50]
addss xmm2, xmm0
movss dword [esp + 0xd4], xmm4
movss xmm0, dword [esp + 0x58]
subss xmm0, xmm1
movss dword [esp + 0xbc], xmm3
mulss xmm0, xmm0
comiss xmm2, xmm0
jb 0x10021a7b
movss xmm0, dword [esp + 0x50]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm2
jb 0x10021a7b
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 sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm2, dword [0x1004cba8]
fstp qword [esp + 0x38]
movsd xmm1, qword [esp + 0x38]
cvtpd2ps xmm1, xmm1
movss xmm0, dword [esp + 0x14]
divss xmm1, xmm2
mulss xmm1, dword [0x1004cb20]
comiss xmm0, xmm1
movss dword [esp + 0x4c], xmm1
jbe 0x10021a73
addss xmm1, dword [0x1004cb50]
movss dword [esp + 0x4c], xmm1
mov al, 1
mov byte [esp + 0xf], al
jmp 0x10021a8d
mov al, byte [esp + 0xf]
movss xmm2, dword [0x1004cba8]
movss xmm1, dword [esp + 0x4c]
movaps xmm0, xmm1
mov byte [esp + 0x1b], al
xorps xmm0, xmmword [0x1004d370]
addss xmm0, xmm0
mulss xmm0, xmm2
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x38], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x10], xmm0
movsd xmm0, qword [esp + 0x38]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm1, dword [esp + 0x60]
xorps xmm6, xmm6
movss xmm5, dword [esp + 0x10]
movaps xmm3, xmm1
movss xmm7, dword [esp + 0xb4]
movaps xmm4, xmm5
mulss xmm4, dword [esp + 0x74]
movaps xmm2, xmm7
cvtsd2ss xmm6, xmm0
mulss xmm3, xmm5
subss xmm2, xmm7
movaps xmm0, xmm6
mulss xmm1, xmm6
mulss xmm0, dword [esp + 0x74]
addss xmm4, xmm1
movss dword [esp + 0x60], xmm2
movss dword [esp + 0xd8], xmm6
subss xmm3, xmm0
movss xmm6, dword [esp + 0xa4]
movss xmm0, dword [esp + 0xb8]
subss xmm6, xmm7
subss xmm0, dword [esp + 0x9c]
movaps xmm1, xmm3
subss xmm1, xmm7
movss dword [esp + 0x88], xmm6
movss dword [esp + 0x74], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0x9c]
mulss xmm0, xmm2
movss xmm2, dword [esp + 0x14]
subss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, dword [esp + 0xb8]
comiss xmm2, xmm1
movaps xmm1, xmm3
movss dword [esp + 0xa8], xmm0
subss xmm1, xmm7
seta cl
mulss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0xb8]
mulss xmm0, xmm6
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp al, cl
jne 0x10021df8
movss xmm7, dword [esp + 0x9c]
subss xmm4, xmm2
movss xmm0, dword [esp + 0xb4]
subss xmm7, xmm2
subss xmm0, dword [esp + 0xa4]
subss xmm3, dword [esp + 0xa4]
movss dword [esp + 0x38], xmm7
mulss xmm4, xmm0
mulss xmm3, xmm7
movss dword [esp + 0x10], xmm0
subss xmm3, xmm4
comiss xmm2, xmm3
seta al
cmp cl, al
jne 0x10021df8
movss xmm1, dword [esp + 0xd8]
movaps xmm6, xmm5
movss xmm3, dword [esp + 0xbc]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0xd4]
mulss xmm6, dword [esp + 0xd4]
mulss xmm0, xmm3
mulss xmm5, xmm3
movss xmm3, dword [esp + 0xb4]
subss xmm6, xmm0
addss xmm5, xmm1
movaps xmm1, xmm6
movss dword [esp + 0xbc], xmm6
subss xmm1, xmm3
movaps xmm0, xmm5
movss dword [esp + 0xc0], xmm5
subss xmm0, dword [esp + 0x9c]
mulss xmm1, dword [esp + 0x74]
mulss xmm0, dword [esp + 0x60]
subss xmm1, xmm0
movaps xmm0, xmm5
subss xmm0, dword [esp + 0xb8]
comiss xmm2, xmm1
mulss xmm0, dword [esp + 0x88]
movaps xmm1, xmm6
subss xmm1, xmm3
seta cl
mulss xmm1, dword [esp + 0xa8]
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp al, cl
jne 0x10021ce7
movaps xmm1, xmm6
movaps xmm0, xmm5
subss xmm1, dword [esp + 0xa4]
subss xmm0, xmm2
mulss xmm1, xmm7
mulss xmm0, dword [esp + 0x10]
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp cl, al
je 0x10021d33
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x100]
push eax
lea edx, [esp + 0xf4]
lea ecx, [esp + 0xe4]
call fcn.10003b30
movss xmm2, dword [esp + 0x20]
add esp, 0xc
movss xmm7, dword [esp + 0x38]
movss xmm3, dword [esp + 0xb4]
movss xmm6, dword [eax]
movss xmm5, dword [eax + 4]
subss xmm6, dword [esp + 0xa4]
movaps xmm4, xmm3
subss xmm5, xmm2
movss xmm3, dword [esp + 0xb8]
subss xmm4, dword [esp + 0xa4]
subss xmm3, xmm2
movaps xmm1, xmm6
mulss xmm1, xmm7
movaps xmm2, xmm4
mulss xmm4, xmm5
movaps xmm0, xmm3
mulss xmm2, xmm7
mulss xmm0, dword [esp + 0x10]
mulss xmm3, xmm6
subss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x10]
subss xmm4, xmm3
subss xmm1, xmm0
movss xmm0, dword [0x1004cb50]
movaps xmm7, xmm0
divss xmm4, xmm2
divss xmm1, xmm2
subss xmm7, xmm1
movss xmm1, dword [0x1004cad8]
movss dword [esp + 0x64], xmm1
comiss xmm1, xmm7
movaps xmm3, xmm7
subss xmm3, xmm4
jbe 0x10021dc9
movaps xmm2, xmm1
movss dword [esp + 0x6c], xmm1
jmp 0x10021dd6
movaps xmm2, xmm0
minss xmm2, xmm7
movss dword [esp + 0x6c], xmm2
divss xmm3, xmm2
comiss xmm1, xmm3
ja 0x10021dec
movaps xmm1, xmm0
minss xmm1, xmm3
movss dword [esp + 0x64], xmm1
mov byte [esp + 0x1a], 1
mov byte [esp + 0xf], 1
jmp 0x10021e00
mov al, byte [esp + 0xf]
mov byte [esp + 0x1b], al
test byte [esp + 0x1c], 8
jne 0x10021e0c
call fcn.1000c760
mov ecx, dword [0x1004f60c]
movss xmm2, dword [esp + 0x34]
movss xmm3, dword [esp + 0x30]
cmp dword [esp + 0xcc], 0x10000
jne 0x10022133
mov eax, dword [ecx + 0x1928]
lea edx, [esp + 0xe8]
movss xmm0, dword [esp + 0xc4]
movss dword [esp + 0xec], xmm3
mov byte [eax + 0x78], 1
mov eax, dword [ecx + 0x1928]
mov ecx, str.alpha
movss dword [eax + 0xc8], xmm0
movss dword [eax + 0xcc], xmm2
movss xmm1, dword [eax + 0xe0]
maxss xmm1, xmm0
movss xmm0, dword [eax + 0xe4]
maxss xmm0, xmm2
movss dword [eax + 0xe0], xmm1
movss dword [eax + 0xe4], xmm0
movss xmm0, dword [esp + 0x68]
movss dword [esp + 0xe8], xmm0
call fcn.10013d40
mov ecx, dword [0x1004f60c]
movss xmm1, dword [esp + 0x14]
mov edx, dword [ecx + 0x1944]
test edx, edx
je 0x10022139
mov eax, dword [ecx + 0x1928]
cmp edx, dword [eax + 0x104]
mov edx, dword [esp + 0x20]
jne 0x1002213d
movss xmm3, dword [edx + 0xdc]
movss xmm0, dword [esp + 0x30]
movss xmm2, dword [0x1004cb50]
subss xmm3, dword [esp + 0x34]
subss xmm0, xmm2
divss xmm3, xmm0
comiss xmm1, xmm3
jbe 0x10022119
movaps xmm4, xmm1
jmp 0x10022120
test eax, 0x2000000
je 0x10021e0c
movss xmm0, dword [esp + 0x30]
lea edx, [esp + 0xe8]
mov ecx, 0x1004a73c
movss dword [esp + 0xe8], xmm0
movss dword [esp + 0xec], xmm0
call fcn.10013d40
mov ecx, dword [0x1004f60c]
mov edx, dword [ecx + 0x1944]
test edx, edx
je 0x10021fe8
mov eax, dword [ecx + 0x1928]
cmp edx, dword [eax + 0x104]
jne 0x10021fe8
mov eax, dword [esp + 0x20]
movss xmm4, dword [esp + 0x30]
movss xmm1, dword [0x1004cb50]
subss xmm4, xmm1
movss xmm0, dword [esp + 0x14]
movss xmm3, dword [eax + 0xd8]
subss xmm3, dword [esp + 0x24]
divss xmm3, xmm4
comiss xmm0, xmm3
jbe 0x10021fa3
movss dword [esp + 0x64], xmm0
jmp 0x10021fb0
movaps xmm2, xmm1
minss xmm2, xmm3
movss dword [esp + 0x64], xmm2
movss xmm2, dword [eax + 0xdc]
subss xmm2, dword [esp + 0x34]
divss xmm2, xmm4
comiss xmm0, xmm2
jbe 0x10021fcc
movaps xmm3, xmm0
jmp 0x10021fd3
movaps xmm3, xmm1
minss xmm3, xmm2
movaps xmm0, xmm1
mov al, 1
subss xmm0, xmm3
mov byte [esp + 0xf], al
movss dword [esp + 0x6c], xmm0
jmp 0x10021fec
mov al, byte [esp + 0xf]
test byte [esp + 0x1c], 8
mov byte [esp + 0x1a], al
mov byte [esp + 0x7f], al
jne 0x10022006
call fcn.1000c760
mov ecx, dword [0x1004f60c]
mov eax, dword [ecx + 0x1928]
lea edx, [esp + 0xe8]
movss xmm2, dword [esp + 0x70]
movss xmm0, dword [esp + 0x34]
mov byte [eax + 0x78], 1
mov eax, dword [ecx + 0x1928]
mov ecx, 0x1004a740
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 + 0x68]
movss dword [esp + 0xe8], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [eax + 0xe0], xmm1
movss dword [esp + 0xec], xmm0
call fcn.10013d40
mov ecx, dword [0x1004f60c]
mov edx, dword [ecx + 0x1944]
test edx, edx
je 0x10021e12
mov al, byte [esp + 0xf]
mov byte [esp + 0x1a], al
mov eax, dword [ecx + 0x1928]
cmp edx, dword [eax + 0x104]
jne 0x10021e12
mov eax, dword [esp + 0x20]
movss xmm3, dword [esp + 0x30]
movss xmm2, dword [esp + 0x34]
movaps xmm0, xmm3
movss xmm1, dword [0x1004cb50]
movss xmm4, dword [eax + 0xdc]
subss xmm0, xmm1
subss xmm4, xmm2
divss xmm4, xmm0
movss xmm0, dword [esp + 0x14]
comiss xmm0, xmm4
ja 0x100220fc
movaps xmm0, xmm1
minss xmm0, xmm4
mov al, byte [esp + 0x7f]
movss dword [esp + 0x4c], xmm0
mov byte [esp + 0x1b], 1
mov byte [esp + 0xf], 1
mov byte [esp + 0x1a], al
jmp 0x10021e1e
movaps xmm4, xmm2
minss xmm4, xmm3
movaps xmm0, xmm2
mov byte [esp + 0xf], 1
subss xmm0, xmm4
movss dword [edi + 0xc], xmm0
jmp 0x1002213d
movss xmm1, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx + 0x1928]
mov byte [eax + 0x78], 1
mov eax, dword [ecx + 0x1928]
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0x170]
add eax, 0xffffffff
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x38]
mov dword [eax + 0x170], esi
jne 0x10022175
mov esi, 1
jmp 0x10022183
mov eax, dword [eax + 0x178]
mov esi, dword [eax + esi*4 - 4]
mov eax, dword [esp + 0x10]
mov dword [eax + 0x164], esi
mov eax, dword [esp + 0x1c]
mov esi, eax
and esi, 0x100
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xc8]
jne 0x10022214
mov eax, dword [ecx + 0x1928]
movss xmm2, dword [edx + 0x1554]
mov byte [eax + 0x78], 1
mov edx, dword [ecx + 0x1928]
cmp byte [edx + 0x7b], 0
jne 0x10022205
comiss xmm1, xmm2
jbe 0x100221cd
movss xmm2, dword [ecx + 0x154c]
addss xmm2, dword [edx + 0xd0]
movss xmm0, dword [edx + 0xd4]
movss dword [edx + 0xc8], xmm2
movss dword [edx + 0xcc], xmm0
mov eax, dword [edx + 0xf0]
mov dword [edx + 0xe8], eax
mov eax, dword [edx + 0xf4]
mov dword [edx + 0xec], eax
call fcn.10023e90
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x1004f60c]
and eax, 0x80
mov dword [esp + 0x88], eax
jne 0x100222d7
mov edx, dword [esp + 0x5c]
cmp edx, 0xffffffff
jae 0x100222d7
mov al, byte [edx]
test al, al
je 0x10022248
cmp al, 0x23
jne 0x10022242
cmp byte [edx + 1], al
je 0x10022248
inc edx
cmp edx, 0xffffffff
jb 0x10022233
cmp dword [esp + 0x5c], edx
je 0x100222d7
cmp dword [esp + 0x10], 0
je 0x100222ce
mov eax, dword [esp + 0x20]
movss xmm1, dword [eax + 0x1554]
mov eax, dword [ecx + 0x1928]
mov byte [eax + 0x78], 1
mov eax, dword [ecx + 0x1928]
mov dword [esp + 0x38], eax
cmp byte [eax + 0x7b], 0
jne 0x100222ce
movss xmm0, dword [esp + 0x14]
comiss xmm0, xmm1
jbe 0x10022292
movss xmm1, dword [ecx + 0x154c]
addss xmm1, dword [eax + 0xd0]
movss xmm0, dword [eax + 0xd4]
movss dword [eax + 0xc8], xmm1
movss dword [eax + 0xcc], xmm0
mov ecx, dword [esp + 0x38]
mov eax, dword [eax + 0xf0]
mov dword [ecx + 0xe8], eax
mov eax, dword [ecx + 0xf4]
mov dword [ecx + 0xec], eax
mov ecx, dword [esp + 0x5c]
call fcn.10012c50
cmp dword [esp + 0x10], 0
jne 0x100224f1
mov ecx, dword [0x1004f60c]
mov eax, dword [ecx + 0x1928]
mov byte [eax + 0x78], 1
mov ecx, dword [ecx + 0x1928]
or dword [ecx + 0x164], 0x10
lea eax, [ecx + 0x164]
add ecx, 0x170
push eax
call fcn.10026dc0
cmp dword [esp + 0xb0], 0
je 0x10022325
movss xmm1, dword [0x1004cb50]
jmp 0x1002232a
movss xmm1, dword [edi + 0xc]
cmp dword [esp + 0x88], 0
movss xmm0, dword [edi]
movss dword [esp + 0xe8], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0xec], xmm0
movss xmm0, dword [edi + 8]
movss dword [esp + 0xf0], xmm0
movss dword [esp + 0xf4], xmm1
je 0x10022373
push str.Current
call fcn.10012900
add esp, 4
movss xmm0, dword [esp + 0x68]
lea edx, [esp + 0xe8]
mov eax, dword [esp + 0x1c]
movaps xmm1, xmm0
mulss xmm1, dword [0x1004cba4]
and eax, 0xe0040
mov ecx, str.current
mov dword [esp + 0xa8], eax
movss dword [esp + 0xbc], xmm1
movss dword [esp + 0x38], xmm1
movaps xmm1, xmm0
addss xmm1, xmm0
movss dword [esp + 0xc0], xmm1
push dword [esp + 0xc0]
movss dword [esp + 0x8c], xmm1
push dword [esp + 0xc0]
push eax
call fcn.1001f230
add esp, 0xc
cmp dword [esp + 0x2c], 0
je 0x100224ae
push str.Original
call fcn.10012900
mov eax, dword [esp + 0x30]
add esp, 4
cmp dword [esp + 0xb0], 0
je 0x1002240f
movss xmm1, dword [0x1004cb50]
jmp 0x10022414
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 + 0x38]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x88]
movss dword [esp + 0x3c], xmm0
push dword [esp + 0x3c]
movss dword [esp + 0x108], xmm1
push dword [esp + 0x3c]
push dword [esp + 0xb0]
call fcn.1001f230
add esp, 0xc
test al, al
je 0x100224ae
xor eax, eax
cmp dword [esp + 0xb0], eax
sete al
lea eax, [eax*4 + 0xc]
push eax
push dword [esp + 0x30]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 0xf], 1
mov ecx, dword [0x1004f60c]
mov eax, dword [ecx + 0x1928]
mov byte [eax + 0x78], 1
mov ecx, dword [ecx + 0x1928]
mov edx, dword [ecx + 0x170]
sub edx, 1
mov dword [ecx + 0x170], edx
jne 0x100224dc
mov eax, 1
jmp 0x100224e6
mov eax, dword [ecx + 0x178]
mov eax, dword [eax + edx*4 - 4]
mov dword [ecx + 0x164], eax
call fcn.10023fb0
cmp byte [esp + 0x1b], 0
jne 0x100224ff
cmp byte [esp + 0x1a], 0
je 0x1002255a
movss xmm0, dword [esp + 0x14]
movss xmm1, dword [esp + 0x6c]
comiss xmm1, xmm0
jbe 0x10022515
movaps xmm3, xmm1
jmp 0x1002251d
movss xmm3, dword [0x1004cac8]
movss xmm1, dword [esp + 0x64]
comiss xmm1, xmm0
movss xmm2, dword [0x1004cacc]
ja 0x10022533
movaps xmm1, xmm2
movss xmm0, dword [esp + 0x4c]
comiss xmm0, dword [0x1004cb50]
jb 0x10022546
subss xmm0, xmm2
lea eax, [edi + 8]
mov ecx, edi
push eax
lea edx, [edi + 4]
movaps xmm2, xmm3
call fcn.100045c0
add esp, 4
test byte [esp + 0x1c], 0x20
jne 0x100226ed
cmp dword [esp + 0xcc], 0x10000
jne 0x1002257d
movss xmm0, dword [esp + 0xc4]
jmp 0x10022583
movss xmm0, dword [esp + 0x70]
addss xmm0, dword [esp + 0x68]
mov ecx, dword [0x1004f60c]
subss xmm0, dword [esp + 0x24]
mov eax, dword [ecx + 0x1928]
ucomiss xmm0, dword [esp + 0x14]
mov byte [eax + 0x78], 1
mov ecx, dword [ecx + 0x1928]
lahf
test ah, 0x44
jp 0x100225b8
movss xmm0, dword [ecx + 0x228]
lea eax, [ecx + 0x168]
add ecx, 0x17c
movss dword [eax], xmm0
push eax
call fcn.10026dc0
mov eax, dword [esp + 0x1c]
mov edx, eax
and edx, 0x18e001a
mov dword [esp + 0x10], edx
test eax, 0x100000
jne 0x100225f9
mov ecx, eax
and ecx, 0x700000
mov dword [esp + 0x2c], ecx
jne 0x10022628
mov dword [esp + 0x2c], ecx
jmp 0x10022602
and eax, 0x700000
mov dword [esp + 0x2c], eax
or edx, 0x100004
mov ecx, str.rgb
push edx
mov edx, edi
call fcn.100200b0
mov ecx, dword [esp + 0x30]
add esp, 4
or byte [esp + 0xf], al
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test eax, 0x200000
jne 0x10022633
test ecx, ecx
jne 0x1002265d
or edx, 0x200004
mov ecx, str.hsv
push edx
mov edx, edi
call fcn.100200b0
mov dl, byte [esp + 0x13]
add esp, 4
mov ecx, dword [esp + 0x2c]
or dl, al
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xf], dl
jmp 0x10022661
mov dl, byte [esp + 0xf]
test eax, 0x400000
jne 0x1002266c
test ecx, ecx
jne 0x1002268f
mov eax, dword [esp + 0x10]
mov edx, edi
or eax, 0x400004
mov ecx, str.hex
push eax
call fcn.100200b0
mov dl, byte [esp + 0x13]
add esp, 4
or dl, al
mov byte [esp + 0xf], dl
mov ecx, dword [0x1004f60c]
mov eax, dword [ecx + 0x1928]
mov byte [eax + 0x78], 1
mov ecx, dword [ecx + 0x1928]
mov eax, dword [ecx + 0x17c]
add eax, 0xffffffff
mov dword [esp + 0x38], eax
mov dword [ecx + 0x17c], eax
jne 0x100226cc
movss xmm0, dword [ecx + 0x228]
movss dword [ecx + 0x168], xmm0
jmp 0x100226f1
mov eax, dword [ecx + 0x184]
mov esi, dword [esp + 0x38]
movss xmm0, dword [eax + esi*4 - 4]
mov esi, dword [esp + 0xc8]
movss dword [ecx + 0x168], xmm0
jmp 0x100226f1
mov dl, byte [esp + 0xf]
test dl, dl
je 0x100227e5
movss xmm3, dword [edi + 4]
lea edx, [edi + 8]
movss xmm5, dword [edx]
comiss xmm5, xmm3
movss xmm2, dword [esp + 0x14]
movss xmm4, dword [edi]
movaps xmm6, xmm2
jbe 0x10022728
movss xmm6, dword [0x1004cc64]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x10022745
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x1004cc50]
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 [0x1004cac4]
movaps xmm7, xmm1
mulss xmm1, dword [esp + 0x84]
divss xmm7, xmm0
addss xmm1, dword [0x1004cac4]
divss xmm3, xmm1
addss xmm3, xmm6
movaps xmm0, xmm3
call fcn.100029f0
comiss xmm2, xmm0
jb 0x100227e5
movss xmm0, dword [esp + 0x4c]
comiss xmm0, xmm2
jbe 0x100227e5
comiss xmm2, xmm4
jb 0x100227c1
movss xmm1, dword [esp + 0x6c]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x100227c1
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x64]
mulss xmm2, dword [0x1004cb20]
jmp 0x100227d7
comiss xmm2, xmm7
jb 0x100227e5
movss xmm1, dword [esp + 0x64]
movaps xmm2, xmm4
mulss xmm1, dword [0x1004cb20]
push edx
lea edx, [edi + 4]
mov ecx, edi
call fcn.100045c0
add esp, 4
movaps xmm0, xmmword [0x1004d2c0]
lea eax, [esp + 0xf0]
movss xmm2, dword [0x1004cb50]
lea edx, [esp + 0xec]
movups xmmword [esp + 0xe8], xmm0
lea ecx, [esp + 0xe8]
movss xmm0, dword [esp + 0x4c]
movaps xmm1, xmm2
push eax
call fcn.100045c0
movups xmm0, xmmword [esp + 0xec]
add esp, 4
movss xmm1, dword [esp + 0x14]
comiss xmm1, xmm0
movss xmm2, dword [0x1004cb50]
jbe 0x10022843
movaps xmm3, xmm1
jmp 0x1002284a
movaps xmm3, xmm2
minss xmm3, xmm0
movss xmm4, dword [0x1004cc14]
movss xmm0, dword [0x1004cb20]
movss xmm5, dword [esp + 0xec]
comiss xmm1, xmm5
mulss xmm3, xmm4
addss xmm3, xmm0
cvttss2si ecx, xmm3
jbe 0x10022879
movaps xmm3, xmm1
jmp 0x10022880
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 0x100228a4
movaps xmm3, xmm1
jmp 0x100228ab
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 0x100228cf
movaps xmm3, xmm1
jmp 0x100228d6
movaps xmm3, xmm2
minss xmm3, xmm5
movss xmm5, dword [edi]
movss xmm6, dword [edi + 4]
movss xmm7, dword [edi + 8]
mulss xmm3, xmm4
addss xmm3, xmm0
cvttss2si edx, xmm3
shl edx, 0x18
or edx, ecx
comiss xmm1, xmm5
mov dword [esp + 0x2c], edx
jbe 0x10022903
movaps xmm3, xmm1
jmp 0x1002290a
movaps xmm3, xmm2
minss xmm3, xmm5
comiss xmm1, xmm6
mulss xmm3, xmm4
addss xmm3, xmm0
cvttss2si ecx, xmm3
jbe 0x10022920
movaps xmm3, xmm1
jmp 0x10022927
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 0x10022942
movaps xmm3, xmm1
jmp 0x10022949
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 + 0x78], 0
cvttss2si eax, xmm3
mov dword [esp + 0x74], 0
shl eax, 0x10
or ecx, eax
or ecx, 0xff000000
cmp dword [esp + 0x44], 0
mov dword [esp + 0x60], ecx
je 0x1002333a
movss xmm4, dword [esp + 0x50]
mov eax, 0x2aaaaaab
movss xmm3, dword [0x1004cb64]
movss xmm1, dword [esp + 0x58]
divss xmm3, xmm4
mov edi, dword [esp + 0x40]
addss xmm1, xmm4
cvttss2si ecx, xmm4
movaps xmm5, xmm1
movss dword [esp + 0xa8], xmm3
imul ecx
mulss xmm5, xmm0
movss dword [esp + 0xd4], xmm1
mov eax, 4
movss dword [esp + 0xbc], xmm5
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, eax
cmovle ecx, eax
xor eax, eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x10], eax
nop dword [eax]
movd xmm1, eax
lea edx, [edi + 0x18]
cvtdq2ps xmm1, xmm1
mov esi, dword [edx]
lea eax, [esp + 0x8c]
push ecx
push ecx
mov ecx, edi
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [esp + 0x8c]
divss xmm1, dword [esp + 0x8c]
addss xmm0, xmm0
movaps xmm2, xmm5
addss xmm1, xmm1
mulss xmm0, dword [0x1004cba8]
mulss xmm1, dword [0x1004cba8]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0x58], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x68], xmm1
call fcn.1003db90
movss xmm0, dword [esp + 0x80]
push ecx
movss dword [esp], xmm0
mov ecx, edi
push 0
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.1003ca70
push ecx
lea ecx, [edi + 0x54]
call fcn.10027520
movss xmm0, dword [esp + 0x50]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x50]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x58]
addss xmm0, dword [esp + 0xa0]
movss dword [esp + 0x38], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x58]
addss xmm0, dword [esp + 0xac]
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esp + 0x5c]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x5c]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x58]
addss xmm0, dword [esp + 0xa0]
movss dword [esp + 0x44], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov edx, dword [esp + 0x10]
xorps xmm4, xmm4
movss xmm6, dword [esp + 0x88]
mov ecx, dword [edi + 0x20]
movss xmm3, dword [esp + 0x44]
mov eax, dword [esp + edx*4 + 0xfc]
movss xmm5, dword [esp + 0x38]
mov edx, dword [esp + edx*4 + 0xf8]
subss xmm3, xmm5
cvtsd2ss xmm4, xmm0
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x18]
mulss xmm4, dword [esp + 0x58]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x70], eax
addss xmm4, dword [esp + 0xac]
subss xmm4, xmm6
movaps xmm1, xmm4
mulss xmm1, xmm4
movss xmm2, dword [0x1004cb50]
lea eax, [esi + esi*4]
movaps xmm0, xmm3
lea eax, [ecx + eax*4]
movaps xmm7, xmm2
mulss xmm0, xmm3
mov dword [esp + 0x1c], eax
addss xmm1, xmm0
divss xmm7, xmm1
cmp eax, dword [esp + 0x70]
jae 0x10022d0b
movzx eax, dl
mov dword [esp + 0x5c], eax
mov eax, edx
shr eax, 8
movzx esi, al
mov eax, dword [esp + 0x50]
shr eax, 0x10
movzx ecx, al
mov eax, dword [esp + 0x50]
shr edx, 0x10
movzx edx, dl
shr eax, 8
sub ecx, edx
mov dword [esp + 0x54], edx
movzx edx, al
mov eax, dword [esp + 0x50]
sub edx, esi
movzx edi, al
sub edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x54]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
subss xmm0, xmm5
subss xmm1, xmm6
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm1, xmm0
movss xmm0, dword [esp + 0x14]
mulss xmm1, xmm7
comiss xmm0, xmm1
jbe 0x10022c63
movaps xmm2, xmm0
jmp 0x10022c67
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 + 0x44]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
shl eax, 8
mov dword [esp + 0x20], eax
mulss xmm0, xmm2
addss xmm0, xmm1
movd xmm1, dword [esp + 0x5c]
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movd xmm0, edi
or dword [esp + 0x20], eax
shl dword [esp + 0x20], 8
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
movss xmm2, dword [0x1004cb50]
addss xmm0, xmm1
cvttss2si eax, xmm0
or dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
and eax, 0xff000000
or dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
mov esi, dword [esp + 0x54]
add eax, 0x14
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x70]
jb 0x10022c32
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
movss xmm3, dword [esp + 0xa8]
inc eax
movss xmm5, dword [esp + 0xbc]
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x10], eax
cmp eax, 6
jl 0x10022a40
movss xmm0, dword [esp + 0x4c]
addss xmm0, xmm0
mulss xmm0, dword [0x1004cba8]
movss dword [esp + 0x4c], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm3, dword [esp + 0x4c]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x58], xmm0
cvtps2pd xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cmp byte [esp + 0x1b], 0
xorps xmm3, xmm3
movss xmm2, dword [esp + 0xd4]
movss xmm1, dword [esp + 0x80]
cvtsd2ss xmm3, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [esp + 0x58]
mulss xmm2, xmm3
mulss xmm0, dword [0x1004cb20]
mulss xmm2, dword [0x1004cb20]
addss xmm0, dword [esp + 0xa0]
movss dword [esp + 0x38], xmm3
addss xmm2, dword [esp + 0xac]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x28], xmm2
je 0x10022dd9
mulss xmm1, dword [0x1004cb2c]
jmp 0x10022de1
mulss xmm1, dword [0x1004cb24]
movaps xmm0, xmm1
movss dword [esp + 0x80], xmm1
divss xmm0, dword [0x1004cb60]
cvttss2si eax, xmm0
cmp eax, 9
jge 0x10022e05
mov eax, 9
jmp 0x10022e0f
mov ecx, 0x20
cmp eax, ecx
cmovg eax, ecx
test dword [esp + 0x2c], 0xff000000
movss xmm3, dword [0x1004cbc8]
mov esi, dword [esp + 0xc8]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mov dword [esp + 0x10], eax
movss dword [esp + 0x44], xmm2
je 0x10022e94
movaps xmm0, xmm2
subss xmm0, dword [0x1004cb50]
push eax
push ecx
lea eax, [esp + 0x2c]
mov ecx, edi
mulss xmm0, xmm3
movss xmm3, dword [esp + 0x1c]
divss xmm0, xmm2
movaps xmm2, xmm1
movss dword [esp], xmm0
push eax
call fcn.1003db90
push dword [esp + 0x2c]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.1003d620
push ecx
lea ecx, [edi + 0x54]
call fcn.10027520
movss xmm2, dword [esp + 0x44]
movss xmm3, dword [0x1004cbc8]
mov eax, dword [esp + 0x10]
movaps xmm0, xmm2
subss xmm0, dword [0x1004cb50]
push eax
push ecx
lea eax, [esp + 0x2c]
mov ecx, edi
mulss xmm0, xmm3
movss xmm3, dword [esp + 0x1c]
divss xmm0, xmm2
movss xmm2, dword [esp + 0x88]
addss xmm2, dword [0x1004cb50]
movss dword [esp], xmm0
push eax
movss dword [esp + 0x50], xmm0
subss xmm2, dword [0x1004cb20]
call fcn.1003db90
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xff808080
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.1003ca70
push ecx
lea ecx, [edi + 0x54]
call fcn.10027520
push dword [esp + 0x10]
movss xmm2, dword [esp + 0x84]
lea eax, [esp + 0x28]
movss xmm0, dword [esp + 0x48]
subss xmm2, dword [0x1004cb20]
movss xmm3, dword [esp + 0x18]
push ecx
movss dword [esp], xmm0
mov ecx, edi
push eax
call fcn.1003db90
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.1003ca70
push ecx
lea ecx, [edi + 0x54]
call fcn.10027520
movss xmm3, dword [esp + 0x58]
movss xmm4, dword [esp + 0x38]
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0xa4]
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0x14]
movaps xmm1, xmm3
movss xmm5, dword [esp + 0xa0]
movss xmm6, dword [esp + 0xac]
subss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0xa4]
addss xmm2, xmm5
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x8c], xmm2
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x14]
addss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0xb8]
addss xmm2, xmm6
movss dword [esp + 0x10], xmm2
movss dword [esp + 0x90], xmm2
movss xmm2, dword [esp + 0xb4]
mulss xmm1, xmm2
subss xmm1, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm2
addss xmm1, xmm5
movss dword [esp + 0x24], xmm1
movaps xmm1, xmm3
mulss xmm1, dword [esp + 0xb8]
mov eax, dword [0x1004f60c]
addss xmm1, xmm0
mov edx, dword [edi]
lea ecx, [edi + 0x18]
movaps xmm0, xmm4
shl edx, 5
mulss xmm0, dword [esp + 0x9c]
addss xmm1, xmm6
mulss xmm4, xmm2
movss dword [esp + 0x28], xmm1
movaps xmm1, xmm3
mulss xmm3, dword [esp + 0x9c]
mulss xmm1, xmm2
addss xmm3, xmm4
subss xmm1, xmm0
movss xmm0, dword [eax + 0x185c]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 0x1860]
mov eax, dword [edi + 8]
addss xmm3, xmm6
movss dword [esp + 0x38], xmm0
addss xmm1, xmm5
add dword [eax + edx - 0x20], 6
mov edi, dword [ecx]
movss dword [esp + 0x58], xmm3
movss dword [esp + 0x50], xmm1
movss dword [esp + 0xe8], xmm1
lea eax, [edi + 6]
movss dword [esp + 0xec], xmm3
push eax
call fcn.10041630
mov edx, dword [esp + 0x40]
lea ecx, [edi + edi*4]
mov edi, dword [edx + 0xc]
mov eax, dword [edx + 0x20]
lea eax, [eax + ecx*4]
lea ecx, [edx + 0xc]
mov dword [edx + 0x34], eax
lea eax, [edi + 6]
push eax
call fcn.100275c0
mov ecx, dword [esp + 0x40]
movss xmm2, dword [esp + 0x54]
movss xmm3, dword [esp + 0x10]
movss xmm0, dword [esp + 0x44]
mov eax, dword [ecx + 0x14]
movss xmm1, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
movss xmm4, dword [esp + 0x24]
lea ecx, [eax + edi*2]
movss xmm5, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
mov ax, word [edi + 0x30]
mov dword [edi + 0x38], ecx
mov word [ecx], ax
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], edx
mov eax, dword [edi + 0x38]
add dword [edi + 0x34], 0x14
inc dword [edi + 0x30]
mov ecx, dword [edi + 0x30]
mov word [eax], cx
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
movss dword [eax], xmm4
movss dword [eax + 4], xmm5
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
add dword [edi + 0x34], 0x14
inc dword [edi + 0x30]
mov ecx, dword [edi + 0x30]
mov eax, dword [edi + 0x38]
movss xmm7, dword [esp + 0x50]
movss xmm6, dword [esp + 0x58]
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], xmm4
movss dword [eax + 4], xmm5
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
lea ecx, [edi + 0x54]
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], 0
lea eax, [esp + 0x8c]
add dword [edi + 0x34], 0x14
inc dword [edi + 0x30]
push eax
call fcn.10027480
lea eax, [esp + 0x24]
push eax
lea ecx, [edi + 0x54]
call fcn.10027480
lea eax, [esp + 0xe8]
push eax
lea ecx, [edi + 0x54]
call fcn.10027480
push ecx
mov dword [esp], 0x3fc00000
mov ecx, edi
push 1
push 0xff808080
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.1003ca70
push ecx
lea ecx, [edi + 0x54]
call fcn.10027520
movss xmm0, dword [0x1004cb50]
movss xmm1, dword [esp + 0x14]
movaps xmm2, xmm0
subss xmm2, dword [esp + 0x6c]
comiss xmm1, xmm2
jbe 0x100232bb
movaps xmm4, xmm1
jmp 0x100232c2
movaps xmm4, xmm0
minss xmm4, xmm2
movss xmm2, dword [esp + 0x64]
comiss xmm1, xmm2
jbe 0x100232d2
movaps xmm3, xmm1
jmp 0x100232d9
movaps xmm3, xmm0
minss xmm3, xmm2
movss xmm0, dword [esp + 0x54]
subss xmm0, dword [esp + 0x50]
movss xmm2, dword [esp + 0x10]
subss xmm2, dword [esp + 0x58]
mulss xmm0, xmm3
mulss xmm2, xmm3
addss xmm0, dword [esp + 0x50]
movss xmm3, dword [esp + 0x24]
addss xmm2, dword [esp + 0x58]
subss xmm3, xmm0
mulss xmm3, xmm4
addss xmm3, xmm0
movss xmm0, dword [esp + 0x28]
subss xmm0, xmm2
movss dword [esp + 0x74], xmm3
mulss xmm0, xmm4
addss xmm0, xmm2
movss dword [esp + 0x78], xmm0
jmp 0x10023686
test dword [esp + 0x1c], 0x2000000
je 0x10023682
movss xmm0, dword [esp + 0x24]
lea eax, [esp + 0x44]
addss xmm0, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
push edx
push edx
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0x40]
addss xmm0, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x38]
push eax
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x60], xmm0
call fcn.1003e570
movss xmm0, dword [esp + 0x44]
lea eax, [esp + 0x8c]
mov ecx, dword [esp + 0x40]
push 0xff000000
push 0xff000000
push 0
push 0
push eax
movss dword [esp + 0xa0], xmm0
lea eax, [esp + 0x38]
movss xmm0, dword [esp + 0x40]
push eax
movss dword [esp + 0xa8], xmm0
call fcn.1003e570
movss xmm0, dword [esp + 0x44]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x3c], xmm0
push dword [esp + 0x3c]
movss xmm0, dword [esp + 0x18]
push dword [esp + 0x3c]
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.1000b7b0
movss xmm0, dword [esp + 0x24]
add esp, 0x10
movss xmm2, dword [esp + 0x64]
comiss xmm0, xmm2
movss xmm1, dword [0x1004cb50]
jbe 0x10023421
movaps xmm3, xmm0
jmp 0x10023428
movaps xmm3, xmm1
minss xmm3, xmm2
movss xmm5, dword [esp + 0x30]
movss xmm6, dword [esp + 0x24]
movss xmm4, dword [0x1004cb20]
mulss xmm3, xmm5
movss xmm7, dword [0x1004cb8c]
movss xmm2, dword [esp + 0x44]
addss xmm3, xmm6
addss xmm6, xmm7
subss xmm2, xmm7
addss xmm3, xmm4
cvttss2si eax, xmm3
movd xmm3, eax
cvtdq2ps xmm3, xmm3
comiss xmm6, xmm3
jbe 0x10023476
movss dword [esp + 0x74], xmm6
jmp 0x10023489
comiss xmm3, xmm2
jbe 0x10023483
movss dword [esp + 0x74], xmm2
jmp 0x10023489
movss dword [esp + 0x74], xmm3
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x6c]
comiss xmm0, xmm2
jbe 0x1002349c
movaps xmm1, xmm0
jmp 0x100234a0
minss xmm1, xmm2
movss xmm2, dword [esp + 0x34]
mulss xmm1, xmm5
movss xmm0, dword [esp + 0x2c]
subss xmm0, xmm7
addss xmm1, xmm2
addss xmm1, xmm4
cvttss2si eax, xmm1
movaps xmm1, xmm2
addss xmm1, xmm7
movd xmm3, eax
cvtdq2ps xmm3, xmm3
comiss xmm1, xmm3
jbe 0x100234db
movss dword [esp + 0x78], xmm1
jmp 0x100234ee
comiss xmm3, xmm0
jbe 0x100234e8
movss dword [esp + 0x78], xmm0
jmp 0x100234ee
movss dword [esp + 0x78], xmm3
movss xmm0, dword [esp + 0x54]
movaps xmm1, xmm5
divss xmm1, dword [esp + 0x84]
mov esi, dword [esp + 0x40]
xor ecx, ecx
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [esp + 0x44], xmm1
movss dword [esp + 0xe8], xmm0
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0xfc]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x94]
mulss xmm0, xmm1
addss xmm0, xmm2
movss dword [esp + 0x98], 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.1003e570
movss xmm1, dword [esp + 0x44]
mov ecx, edi
movss xmm2, dword [esp + 0x34]
cmp ecx, 6
jl 0x10023530
movss xmm0, dword [esp + 0x54]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x70]
push dword [esp + 0x28]
movss dword [esp + 0x48], xmm0
movaps xmm0, xmm2
push dword [esp + 0x28]
movss dword [esp + 0x50], xmm0
push dword [esp + 0x50]
movss xmm0, dword [esp + 0x20]
push dword [esp + 0x50]
call fcn.1000b7b0
mov esi, dword [esp + 0xd8]
movss xmm1, dword [esp + 0x78]
addss xmm1, dword [0x1004cb8c]
mov edi, dword [esp + 0x50]
mov ecx, edi
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x38], xmm2
addss xmm0, dword [0x1004cb50]
push dword [esp + 0x38]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x84]
subss xmm0, dword [0x1004cb50]
push dword [esp + 0x38]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x64]
mulss xmm0, dword [esp + 0x48]
addss xmm0, dword [esp + 0x4c]
addss xmm0, dword [0x1004cb20]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x60], xmm0
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.100211e0
movss xmm1, dword [esp + 0x34]
add esp, 0x20
jmp 0x10023686
mov edi, dword [esp + 0x40]
cmp byte [esp + 0x1a], 0
je 0x1002369e
movss xmm0, dword [0x1004cbd0]
movss dword [esp + 0x84], xmm0
movss xmm2, dword [esp + 0x84]
lea eax, [esp + 0x74]
push 0xc
push ecx
mov dword [esp], 0x40b84e89
movaps xmm3, xmm1
push eax
mov ecx, edi
call fcn.1003db90
push dword [esp + 0x60]
mov eax, dword [esp + 0x44]
mov ecx, eax
push dword [edi + 0x54]
push dword [eax + 0x5c]
call fcn.1003d620
push ecx
lea ecx, [edi + 0x54]
call fcn.10027520
movss xmm2, dword [esp + 0x84]
lea eax, [esp + 0x74]
addss xmm2, dword [0x1004cb50]
movss xmm3, dword [esp + 0x14]
push 0xc
push ecx
mov ecx, dword [esp + 0x48]
subss xmm2, dword [0x1004cb20]
mov dword [esp], 0x40b84e89
push eax
call fcn.1003db90
mov eax, dword [esp + 0x40]
push ecx
mov dword [esp], 0x3f800000
lea edi, [eax + 0x54]
push 1
push 0xff808080
push dword [edi]
mov ecx, eax
push dword [eax + 0x5c]
call fcn.1003ca70
push ecx
mov ecx, edi
call fcn.10027520
movss xmm2, dword [esp + 0x84]
lea eax, [esp + 0x74]
subss xmm2, dword [0x1004cb20]
movss xmm3, dword [esp + 0x14]
push 0xc
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esp], 0x40b84e89
push eax
call fcn.1003db90
mov eax, dword [esp + 0x40]
push ecx
mov dword [esp], 0x3f800000
mov ecx, eax
push 1
push 0xffffffffffffffff
push dword [edi]
push dword [eax + 0x5c]
call fcn.1003ca70
push ecx
mov ecx, edi
call fcn.10027520
cmp dword [esp + 0xcc], 0x10000
jne 0x1002393a
mov eax, dword [esp + 0xd0]
movss xmm2, dword [esp + 0x14]
movss xmm1, dword [eax + 0xc]
comiss xmm2, xmm1
jbe 0x100237c2
movss dword [esp + 0x54], xmm2
jmp 0x100237d4
movss xmm0, dword [0x1004cb50]
minss xmm0, xmm1
movss dword [esp + 0x54], xmm0
movss xmm3, dword [esp + 0xc4]
or edx, 0xffffffff
movss xmm0, dword [esp + 0x34]
movaps xmm1, xmm3
addss xmm1, dword [esp + 0x68]
movss dword [esp + 0x90], xmm0
xor ecx, ecx
addss xmm0, dword [esp + 0x30]
mov dword [esp + 0x28], 0
push dword [esp + 0x28]
movss dword [esp + 0x98], xmm1
subss xmm1, xmm3
mov dword [esp + 0x28], 0
push dword [esp + 0x28]
movss dword [esp + 0xa0], xmm0
push dword [esp + 0xa0]
mulss xmm1, dword [0x1004cb20]
push dword [esp + 0xa0]
movss dword [esp + 0x9c], xmm3
push dword [esp + 0xa0]
mov edi, dword [esp + 0xa0]
push edi
call fcn.1001ef60
mov ecx, dword [esp + 0x78]
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 + 0xa4]
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.1003e570
push dword [esp + 0x98]
movss xmm0, dword [esp + 0x18]
push dword [esp + 0x98]
push dword [esp + 0x98]
push edi
call fcn.1000b7b0
movss xmm1, dword [0x1004cb50]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0x50]
movaps xmm0, xmm2
movss dword [esp + 0x38], xmm2
addss xmm0, xmm1
push dword [esp + 0x38]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0xd8]
subss xmm0, xmm1
subss xmm1, dword [esp + 0x68]
push dword [esp + 0x38]
movss dword [esp + 0x5c], xmm0
mulss xmm1, dword [esp + 0x48]
addss xmm1, dword [esp + 0x4c]
addss xmm1, dword [0x1004cb20]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x80]
addss xmm1, dword [0x1004cb8c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x60], xmm0
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.100211e0
add esp, 0x20
call fcn.10023fb0
cmp byte [esp + 0xf], 0
mov edi, dword [0x1004f60c]
je 0x100239c3
mov ecx, dword [esp + 0xd0]
lea esi, [esp + 0x114]
xor edx, edx
cmp dword [esp + 0xb0], edx
sete dl
lea edx, [edx*4 + 0xc]
sub edx, 4
jb 0x10023983
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x10023988
add esi, 4
add ecx, 4
sub edx, 4
jae 0x10023972
cmp edx, 0xfffffffc
je 0x100239be
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x100239b5
cmp edx, 0xfffffffd
je 0x100239be
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x100239b5
cmp edx, 0xfffffffe
je 0x100239be
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x100239b5
cmp edx, 0xffffffff
je 0x100239be
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x100239be
mov byte [edi + 0x1953], 1
jmp 0x100239c3
mov byte [esp + 0xf], 0
mov ecx, dword [edi + 0x1928]
mov al, byte [esp + 0xf]
pop edi
pop esi
dec dword [ecx + 0x1c8]
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.10044190
mov esp, ebp
pop ebp
ret