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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov dword [esp + 0x38], edx
mov edx, ecx
mov ecx, dword [0x101257f8]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ecx + 0x198c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x198c]
mov ecx, edx
mov dword [esp + 0x84], eax
mov edi, dword [eax + 0x274]
mov dword [esp + 0x1c], edi
call fcn.1003b9d0
call fcn.1003bae0
mov edx, esi
or edx, 0x10
test esi, 0x100
cmovne edx, esi
mov dword [esp + 0xe0], edx
test dl, 8
jne 0x1005a61c
mov ecx, dword [esp + 0x40]
call fcn.1005d830
mov edx, dword [esp + 0xe0]
mov esi, dword [esp + 0x18]
test edx, 0x6000000
jne 0x1005a645
mov eax, dword [esi + 0x2bf0]
mov ecx, 0x2900000
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, edx
jmp 0x1005a647
mov ecx, edx
mov dword [esp + 0x10], ecx
test cl, 8
jne 0x1005a661
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 + 0xdc], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x44], edx
movss xmm0, dword [eax + 0xcc]
movss xmm4, dword [eax + 0xc8]
mov eax, dword [0x101257f8]
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x3c], xmm0
xorps xmm0, xmm0
movss dword [esp + 0x38], xmm4
movss xmm5, dword [eax + 0x1538]
mov esi, dword [eax + 0x198c]
addss xmm5, xmm5
movss xmm2, dword [esi + 0x16c]
comiss xmm0, xmm2
addss xmm5, dword [eax + 0x18ac]
movss dword [esp + 0x70], xmm5
jbe 0x1005a74b
movss xmm3, dword [esi + 0xc8]
movss xmm1, dword [esi + 0x214]
mov ecx, dword [esi + 0x1bc]
subss xmm3, dword [esi + 0xc]
subss xmm1, dword [esi + 0xc]
test ecx, ecx
je 0x1005a737
mov edx, dword [ecx + 0xc]
movss xmm0, dword [ecx + 0x14]
lea eax, [edx + 1]
test eax, eax
cmovns edx, eax
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [esi + 0x1bc]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mov edx, dword [esp + 0x44]
mulss xmm1, dword [eax + ecx*4]
addss xmm1, xmm0
subss xmm1, dword [esi + 0x3c]
subss xmm1, xmm3
addss xmm1, xmm2
movss xmm2, dword [0x100e04e4]
maxss xmm2, xmm1
mov eax, dword [esp + 0x18]
movss xmm3, dword [eax + 0x154c]
cvttss2si eax, xmm2
movaps xmm0, xmm3
addss xmm0, xmm5
movd xmm2, eax
xor eax, eax
cmp dword [esp + 0xdc], 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
push dword [esp + 0x44]
subss xmm2, xmm1
mov dword [esp + 0xe8], eax
movaps xmm1, xmm5
lea eax, [esp + 0x110]
push eax
maxss xmm1, xmm2
addss xmm0, xmm1
movss dword [esp + 0x58], xmm1
movaps xmm1, xmm3
addss xmm1, xmm0
movss dword [esp + 0x64], xmm0
movaps xmm0, xmm1
movss dword [esp + 0x8c], xmm1
addss xmm0, xmm5
movss dword [esp + 0xe4], xmm0
addss xmm0, xmm3
movss dword [esp + 0xdc], xmm0
movaps xmm0, xmm5
mulss xmm0, dword [0x100e047c]
cvttss2si esi, xmm0
mov dword [esp + 0x90], esi
call sub.VCRUNTIME140.dll_memcpy
movss xmm2, dword [esp + 0x58]
add esp, 0xc
movaps xmm3, xmm2
mov dword [esp + 0x2c], 0
mulss xmm3, dword [0x100e04a8]
movaps xmm1, xmm2
mulss xmm1, dword [0x100e045c]
movaps xmm0, xmm3
movss dword [esp + 0x64], xmm3
addss xmm0, dword [esp + 0x20]
movss dword [esp + 0x7c], xmm1
movaps xmm4, xmm3
subss xmm4, xmm1
movaps xmm1, xmm2
addss xmm1, dword [esp + 0x70]
movss dword [esp + 0x98], xmm0
movss dword [esp + 0xb8], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x100e044c]
mulss xmm1, dword [0x100e04a8]
cvttss2si eax, xmm0
addss xmm1, dword [esp + 0x38]
movss dword [esp + 0x50], xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x88], xmm1
movss dword [esp + 0xb4], xmm1
movaps xmm1, xmm4
subss xmm1, xmm0
movaps xmm0, xmm1
movss dword [esp + 0x28], xmm1
mulss xmm0, dword [0x100e0688]
movaps xmm2, xmm1
mulss xmm2, dword [0x100e0694]
movss dword [esp + 0xa0], xmm0
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0x94], xmm2
movss dword [esp + 0xa8], xmm2
mov eax, dword [esp + 0x40]
xorps xmm3, xmm3
lea ecx, [eax + 4]
movss dword [esp + 0xe4], xmm0
movaps xmm0, xmm1
mov dword [esp + 0xcc], ecx
mulss xmm0, dword [0x100e04d4]
movss xmm5, dword [eax]
add eax, 8
movss xmm1, dword [ecx]
movss dword [esp + 0x9c], xmm0
movss dword [esp + 0xe8], xmm0
movss xmm2, dword [eax]
comiss xmm2, xmm1
mov dword [esp + 0x78], eax
movss dword [esp + 0x74], xmm5
jbe 0x1005a954
movss xmm3, dword [0x100e0698]
movaps xmm0, xmm1
movaps xmm1, xmm2
movaps xmm2, xmm0
comiss xmm1, xmm5
jbe 0x1005a977
movaps xmm0, xmm5
movaps xmm5, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x74], xmm5
movss xmm0, dword [0x100e0684]
subss xmm0, xmm3
movaps xmm3, xmm0
movaps xmm0, xmm1
movaps xmm4, xmm5
minss xmm0, xmm2
subss xmm1, xmm2
movss xmm2, dword [0x100e0578]
movss dword [esp + 0xd4], xmm2
subss xmm4, xmm0
movaps xmm0, xmm4
mulss xmm0, xmm2
addss xmm0, dword [0x100e03fc]
divss xmm1, xmm0
addss xmm1, xmm3
movaps xmm0, xmm1
call fcn.10009610
movss dword [esp + 0x48], xmm0
mov ecx, 8
movaps xmm0, xmm5
mov byte [esp + 0xe], 0
addss xmm0, dword [0x100e03fc]
mov byte [esp + 0x16], 0
mov byte [esp + 0xf], 0
divss xmm4, xmm0
movss dword [esp + 0x6c], xmm4
call fcn.1003b5b0
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x4000000
mov dword [esp + 0x68], ecx
je 0x1005afdd
movss xmm1, dword [esp + 0x4c]
lea edx, [esp + 0x30]
mov eax, dword [esp + 0x18]
movaps xmm0, xmm1
mov ecx, 0x100ddcb4
movss dword [esp + 0x34], xmm1
addss xmm0, dword [eax + 0x154c]
addss xmm0, dword [esp + 0x70]
movss dword [esp + 0x30], xmm0
call fcn.100505c0
mov eax, dword [0x101257f8]
mov ecx, dword [eax + 0x19ac]
test ecx, ecx
je 0x1005aed3
mov eax, dword [eax + 0x198c]
cmp ecx, dword [eax + 0x10c]
jne 0x1005aed3
mov eax, dword [esp + 0x18]
movss xmm0, dword [eax + 0x384]
subss xmm0, dword [esp + 0x98]
movss xmm1, dword [eax + 0x380]
subss xmm1, dword [esp + 0x88]
movss xmm4, dword [eax + 0xe0]
movss xmm3, dword [eax + 0xe4]
subss xmm4, dword [esp + 0x88]
subss xmm3, dword [esp + 0x98]
movaps xmm2, xmm0
movss dword [esp + 0xc8], xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x5c], xmm1
movss xmm1, dword [0x100e04e4]
addss xmm2, xmm0
movss dword [esp + 0x100], xmm4
movss xmm0, dword [esp + 0x50]
subss xmm0, xmm1
movss dword [esp + 0x8c], xmm3
mulss xmm0, xmm0
comiss xmm2, xmm0
jb 0x1005ab6b
movss xmm0, dword [esp + 0x64]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm2
jb 0x1005ab6b
cvtps2pd xmm0, xmm3
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x30], xmm0
fld qword [esp + 0x30]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm2, dword [0x100e0558]
xorps xmm0, xmm0
fstp qword [esp + 0x30]
movsd xmm1, qword [esp + 0x30]
cvtpd2ps xmm1, xmm1
divss xmm1, xmm2
mulss xmm1, dword [0x100e04a8]
comiss xmm0, xmm1
movss dword [esp + 0x48], xmm1
jbe 0x1005ab63
addss xmm1, dword [0x100e04e4]
movss dword [esp + 0x48], xmm1
mov al, 1
mov byte [esp + 0xe], al
jmp 0x1005ab7d
mov al, byte [esp + 0xe]
movss xmm2, dword [0x100e0558]
movss xmm1, dword [esp + 0x48]
movaps xmm0, xmm1
mov byte [esp + 0x16], al
xorps xmm0, xmmword [0x100e0950]
addss xmm0, xmm0
mulss xmm0, xmm2
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x30], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x60], xmm0
movsd xmm0, qword [esp + 0x30]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm6, dword [esp + 0x60]
xorps xmm5, xmm5
cvtsd2ss xmm5, xmm0
movss xmm1, dword [esp + 0xa0]
movaps xmm3, xmm6
mulss xmm3, dword [esp + 0x5c]
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0xc8]
movaps xmm4, xmm6
mulss xmm4, dword [esp + 0xc8]
subss xmm3, xmm0
movss dword [esp + 0xc4], xmm5
movaps xmm0, xmm5
movss xmm7, dword [esp + 0x28]
mulss xmm0, dword [esp + 0x5c]
movaps xmm5, xmm1
subss xmm5, xmm1
movaps xmm2, xmm3
addss xmm4, xmm0
movss xmm0, dword [esp + 0x94]
subss xmm0, dword [esp + 0x9c]
subss xmm2, xmm1
subss xmm7, dword [esp + 0xa0]
movss dword [esp + 0x60], xmm5
movss dword [esp + 0xc8], xmm0
movaps xmm1, xmm2
mulss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0x9c]
movss dword [esp + 0x54], xmm7
mulss xmm0, xmm5
xorps xmm5, xmm5
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0x94]
comiss xmm5, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x5c], xmm0
movaps xmm0, xmm4
mulss xmm1, xmm2
seta cl
subss xmm0, dword [esp + 0x94]
mulss xmm0, xmm7
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x1005aecb
movss xmm0, dword [esp + 0x9c]
subss xmm4, xmm5
subss xmm3, dword [esp + 0x28]
subss xmm0, xmm5
mulss xmm3, xmm0
movss xmm0, dword [esp + 0xa0]
subss xmm0, dword [esp + 0x28]
mulss xmm0, xmm4
subss xmm3, xmm0
comiss xmm5, xmm3
seta al
cmp cl, al
jne 0x1005aecb
movss xmm1, dword [esp + 0xc4]
movaps xmm7, xmm6
mulss xmm7, dword [esp + 0x100]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x100]
mulss xmm0, dword [esp + 0x8c]
mulss xmm6, dword [esp + 0x8c]
movss xmm4, dword [esp + 0xa0]
subss xmm7, xmm0
addss xmm6, xmm1
movaps xmm1, xmm7
movss dword [esp + 0x30], xmm7
subss xmm1, xmm4
movaps xmm0, xmm6
movss dword [esp + 0x34], xmm6
subss xmm0, dword [esp + 0x9c]
mulss xmm1, dword [esp + 0xc8]
mulss xmm0, dword [esp + 0x60]
subss xmm1, xmm0
movaps xmm0, xmm6
subss xmm0, dword [esp + 0x94]
comiss xmm5, xmm1
mulss xmm0, dword [esp + 0x54]
movaps xmm1, xmm7
subss xmm1, xmm4
seta cl
mulss xmm1, dword [esp + 0x5c]
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x1005add0
movss xmm0, dword [esp + 0x9c]
movaps xmm2, xmm7
subss xmm2, dword [esp + 0x28]
subss xmm0, xmm5
movaps xmm1, xmm4
subss xmm1, dword [esp + 0x28]
mulss xmm2, xmm0
movaps xmm0, xmm6
subss xmm0, xmm5
mulss xmm1, xmm0
subss xmm2, xmm1
comiss xmm5, xmm2
seta al
cmp cl, al
je 0x1005ae0d
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0xac]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10c]
call fcn.10030f60
movss xmm4, dword [esp + 0xac]
add esp, 0xc
xorps xmm5, xmm5
movss xmm7, dword [eax]
movss xmm6, dword [eax + 4]
movss xmm3, dword [esp + 0x9c]
subss xmm6, xmm5
subss xmm7, dword [esp + 0x28]
movaps xmm1, xmm4
subss xmm3, xmm5
movss xmm4, dword [esp + 0x94]
subss xmm1, dword [esp + 0x28]
subss xmm4, xmm5
movaps xmm2, xmm3
mulss xmm3, xmm7
mulss xmm6, xmm1
mulss xmm2, xmm1
movaps xmm0, xmm4
mulss xmm0, xmm1
subss xmm3, xmm6
mulss xmm7, xmm4
subss xmm2, xmm0
movss xmm0, dword [0x100e04e4]
movaps xmm5, xmm0
subss xmm6, xmm7
divss xmm3, xmm2
divss xmm6, xmm2
movss xmm2, dword [0x100e0420]
subss xmm5, xmm3
movss dword [esp + 0x6c], xmm2
comiss xmm2, xmm5
movaps xmm1, xmm5
subss xmm1, xmm6
jbe 0x1005ae9c
movaps xmm3, xmm2
movss dword [esp + 0x74], xmm2
jmp 0x1005aea9
movaps xmm3, xmm0
minss xmm3, xmm5
movss dword [esp + 0x74], xmm3
divss xmm1, xmm3
comiss xmm2, xmm1
ja 0x1005aebf
movaps xmm2, xmm0
minss xmm2, xmm1
movss dword [esp + 0x6c], xmm2
mov byte [esp + 0xf], 1
mov byte [esp + 0xe], 1
jmp 0x1005aed3
mov al, byte [esp + 0xe]
mov byte [esp + 0x16], al
test byte [esp + 0x10], 8
jne 0x1005aedf
call fcn.1003c2a0
movss xmm2, dword [esp + 0x20]
cmp dword [esp + 0xdc], 0x10000
jne 0x1005b1fe
mov ecx, dword [0x101257f8]
lea edx, [esp + 0xa4]
movss xmm0, dword [esp + 0xd0]
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x198c]
mov ecx, 0x100ddcb8
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 + 0x70]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [esp + 0xa8], xmm0
call fcn.100505c0
mov eax, dword [0x101257f8]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0x19ac]
test ecx, ecx
je 0x1005b202
mov eax, dword [eax + 0x198c]
cmp ecx, dword [eax + 0x10c]
jne 0x1005b202
movss xmm0, dword [esp + 0x4c]
xorps xmm2, xmm2
movss xmm1, dword [0x100e04e4]
movss xmm3, dword [edx + 0xe4]
subss xmm0, xmm1
subss xmm3, dword [esp + 0x20]
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x1005b1e0
xorps xmm4, xmm4
jmp 0x1005b1e7
test eax, 0x2000000
je 0x1005aedf
movss xmm0, dword [esp + 0x4c]
lea edx, [esp + 0xa4]
mov ecx, 0x100ddcb0
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0xa8], xmm0
call fcn.100505c0
mov ecx, dword [0x101257f8]
mov edx, dword [ecx + 0x19ac]
test edx, edx
je 0x1005b0ae
mov eax, dword [ecx + 0x198c]
cmp edx, dword [eax + 0x10c]
jne 0x1005b0ae
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movss xmm2, dword [esp + 0x4c]
movss xmm1, dword [0x100e04e4]
subss xmm2, xmm1
movss xmm3, dword [eax + 0xe0]
subss xmm3, dword [esp + 0x38]
movss dword [esp + 0x5c], xmm2
divss xmm3, xmm2
comiss xmm0, xmm3
jbe 0x1005b071
movss dword [esp + 0x6c], xmm0
jmp 0x1005b07e
movaps xmm4, xmm1
minss xmm4, xmm3
movss dword [esp + 0x6c], xmm4
movss xmm3, dword [eax + 0xe4]
subss xmm3, dword [esp + 0x20]
divss xmm3, xmm2
comiss xmm0, xmm3
ja 0x1005b09c
movaps xmm0, xmm1
minss xmm0, xmm3
subss xmm1, xmm0
mov al, 1
mov byte [esp + 0xe], al
movss dword [esp + 0x74], xmm1
jmp 0x1005b0c6
movss xmm0, dword [esp + 0x4c]
subss xmm0, dword [0x100e04e4]
mov al, byte [esp + 0xe]
movss dword [esp + 0x5c], xmm0
test byte [esp + 0x10], 8
mov byte [esp + 0xf], al
mov byte [esp + 0x17], al
jne 0x1005b0e0
call fcn.1003c2a0
mov ecx, dword [0x101257f8]
mov eax, dword [ecx + 0x198c]
lea edx, [esp + 0xa4]
movss xmm0, dword [esp + 0x80]
movss xmm2, dword [esp + 0x20]
mov byte [eax + 0x7c], 1
mov eax, dword [ecx + 0x198c]
mov ecx, 0x100ddcc0
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 + 0x70]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x4c]
movss dword [esp + 0xa8], xmm0
call fcn.100505c0
mov eax, dword [0x101257f8]
mov ecx, dword [eax + 0x19ac]
test ecx, ecx
je 0x1005aedf
mov eax, dword [eax + 0x198c]
mov dl, byte [esp + 0xe]
movss xmm2, dword [esp + 0x20]
mov byte [esp + 0xf], dl
cmp ecx, dword [eax + 0x10c]
jne 0x1005aee5
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0xe4]
subss xmm1, xmm2
divss xmm1, dword [esp + 0x5c]
comiss xmm0, xmm1
ja 0x1005b1c3
movss xmm0, dword [0x100e04e4]
minss xmm0, xmm1
mov al, byte [esp + 0x17]
movss dword [esp + 0x48], xmm0
mov byte [esp + 0x16], 1
mov byte [esp + 0xe], 1
mov byte [esp + 0xf], al
jmp 0x1005aee5
movaps xmm4, xmm1
minss xmm4, xmm3
mov eax, dword [esp + 0x40]
movaps xmm0, xmm1
subss xmm0, xmm4
mov byte [esp + 0xe], 1
movss dword [eax + 0xc], xmm0
jmp 0x1005b202
mov edx, dword [esp + 0x18]
mov ecx, dword [0x101257f8]
mov eax, dword [ecx + 0x198c]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov eax, dword [ecx + 0x174]
add eax, 0xffffffff
mov dword [esp + 0x54], eax
mov dword [ecx + 0x174], eax
jne 0x1005b231
xor eax, eax
jmp 0x1005b243
mov edi, dword [esp + 0x54]
mov eax, dword [ecx + 0x17c]
mov eax, dword [eax + edi*4 - 4]
mov edi, dword [esp + 0x1c]
mov dword [ecx + 0x168], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x100
mov dword [esp + 0x60], ecx
jne 0x1005b274
movss xmm1, dword [edx + 0x154c]
xorps xmm0, xmm0
call fcn.1003bdb0
call fcn.1003bae0
mov eax, dword [esp + 0x10]
and eax, 0x80
mov dword [esp + 0x54], eax
jne 0x1005b2d6
mov ecx, dword [esp + 0x24]
cmp ecx, 0xffffffff
jae 0x1005b2d6
mov dl, byte [ecx]
test dl, dl
je 0x1005b29e
cmp dl, 0x23
jne 0x1005b298
cmp byte [ecx + 1], dl
je 0x1005b29e
inc ecx
cmp ecx, 0xffffffff
jb 0x1005b288
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
cmp eax, ecx
je 0x1005b2d6
cmp dword [esp + 0x60], 0
je 0x1005b2cd
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x154c]
call fcn.1003bdb0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
mov edx, ecx
mov ecx, eax
call fcn.1004f4f0
cmp dword [esp + 0x60], 0
jne 0x1005b4aa
mov ecx, 0x10
call fcn.1003b5b0
cmp dword [esp + 0x44], 0
mov eax, dword [esp + 0x40]
je 0x1005b300
movss xmm1, dword [0x100e04e4]
jmp 0x1005b305
movss xmm1, dword [eax + 0xc]
cmp dword [esp + 0x54], 0
movss xmm0, dword [eax]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0xa8], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0xac], xmm0
movss dword [esp + 0xb0], xmm1
je 0x1005b34b
push str.Current
call fcn.1004fb50
add esp, 4
movss xmm1, dword [esp + 0x70]
lea edx, [esp + 0xa4]
mov eax, dword [esp + 0x10]
movaps xmm0, xmm1
mulss xmm0, dword [0x100e0554]
and eax, 0xe0040
mov ecx, str.current
mov dword [esp + 0xc4], eax
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x54], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0x34], xmm0
push dword [esp + 0x34]
movss dword [esp + 0x90], xmm0
push dword [esp + 0x34]
push eax
call fcn.1005cac0
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x1005b46a
push str.Original
call fcn.1004fb50
mov eax, dword [ebp + 0xc]
add esp, 4
cmp dword [esp + 0x44], 0
je 0x1005b3d6
movss xmm1, dword [0x100e04e4]
jmp 0x1005b3db
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0xe4]
movss dword [esp + 0xe4], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0xe8], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0xec], xmm0
movss xmm0, dword [esp + 0x54]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x34], xmm0
push dword [esp + 0x34]
movss dword [esp + 0xf4], xmm1
push dword [esp + 0x34]
push dword [esp + 0xcc]
call fcn.1005cac0
add esp, 0xc
test al, al
je 0x1005b46a
push dword [esp + 0xe0]
push dword [ebp + 0xc]
push dword [esp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 0xe], 1
mov ecx, dword [0x101257f8]
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 0x1005b495
xor eax, eax
jmp 0x1005b49f
mov eax, dword [ecx + 0x17c]
mov eax, dword [eax + edx*4 - 4]
mov dword [ecx + 0x168], eax
call fcn.1003bc20
cmp byte [esp + 0x16], 0
jne 0x1005b4b8
cmp byte [esp + 0xf], 0
je 0x1005b516
movss xmm1, dword [esp + 0x74]
xorps xmm0, xmm0
comiss xmm1, xmm0
jbe 0x1005b4cb
movaps xmm2, xmm1
jmp 0x1005b4d3
movss xmm2, dword [0x100e0408]
movss xmm3, dword [esp + 0x6c]
comiss xmm3, xmm0
movss xmm1, dword [0x100e0410]
ja 0x1005b4e9
movaps xmm3, xmm1
movss xmm0, dword [esp + 0x48]
comiss xmm0, dword [0x100e04e4]
jb 0x1005b4fc
subss xmm0, xmm1
push dword [esp + 0x78]
mov edx, dword [esp + 0xd0]
movaps xmm1, xmm3
mov ecx, dword [esp + 0x44]
call fcn.100318a0
add esp, 4
test byte [esp + 0x10], 0x20
mov byte [esp + 0x17], 0
jne 0x1005b812
cmp dword [esp + 0xdc], 0x10000
jne 0x1005b53e
movss xmm0, dword [esp + 0xd0]
jmp 0x1005b547
movss xmm0, dword [esp + 0x80]
addss xmm0, dword [esp + 0x70]
mov ecx, dword [0x101257f8]
subss xmm0, dword [esp + 0x38]
mov eax, dword [ecx + 0x198c]
ucomiss xmm0, dword [0x100e03e8]
mov byte [eax + 0x7c], 1
mov ecx, dword [ecx + 0x198c]
mov dword [esp + 0x60], ecx
lahf
test ah, 0x44
jp 0x1005b582
movss xmm0, dword [ecx + 0x220]
movss dword [ecx + 0x16c], xmm0
add ecx, 0x180
mov dword [esp + 0x8c], ecx
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
cmp edx, eax
jne 0x1005b5ce
inc edx
mov dword [esp + 0x54], edx
test eax, eax
je 0x1005b5b7
cdq
sub eax, edx
mov edx, dword [esp + 0x54]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x1005b5bc
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.100417d0
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x60]
mov ecx, dword [ecx + 8]
mov eax, dword [eax + 0x16c]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x60]
inc dword [eax + 0x180]
mov eax, dword [esp + 0x10]
mov edx, eax
and edx, 0x18e001a
mov dword [esp + 0x24], edx
test eax, 0x100000
jne 0x1005b615
mov ecx, eax
and ecx, 0x700000
mov dword [esp + 0x44], ecx
jne 0x1005b675
mov dword [esp + 0x44], ecx
jmp 0x1005b61e
and eax, 0x700000
mov dword [esp + 0x44], eax
or edx, 0x100004
mov ecx, str.rgb
push edx
mov edx, dword [esp + 0x44]
call fcn.10059060
add esp, 4
test al, al
je 0x1005b669
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x19ac], 0
je 0x1005b655
cmp byte [eax + 0x19bd], 0
mov byte [esp + 0x17], 1
je 0x1005b65a
mov byte [esp + 0x17], 0
mov ecx, dword [esp + 0x44]
mov byte [esp + 0xe], 1
mov dword [esp + 0x44], ecx
jmp 0x1005b66d
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test eax, 0x200000
jne 0x1005b680
test ecx, ecx
jne 0x1005b6a4
or edx, 0x200004
mov ecx, str.hsv
push edx
mov edx, dword [esp + 0x44]
call fcn.10059060
mov ecx, dword [esp + 0x48]
add esp, 4
or byte [esp + 0xe], al
mov eax, dword [esp + 0x10]
test eax, 0x400000
jne 0x1005b6af
test ecx, ecx
jne 0x1005b6ce
mov eax, dword [esp + 0x24]
mov ecx, str.hex
mov edx, dword [esp + 0x40]
or eax, 0x400004
push eax
call fcn.10059060
add esp, 4
or byte [esp + 0xe], al
mov ecx, dword [0x101257f8]
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 0x1005b6ff
movss xmm0, dword [ecx + 0x220]
jmp 0x1005b70b
mov eax, dword [ecx + 0x188]
movss xmm0, dword [eax + edx*4 - 4]
cmp byte [esp + 0x17], 0
movss dword [ecx + 0x16c], xmm0
je 0x1005b812
mov ecx, dword [esp + 0x40]
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 0x1005b752
movss xmm6, dword [0x100e0698]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x1005b76f
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x100e0684]
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 [0x100e03fc]
movaps xmm7, xmm1
mulss xmm1, dword [0x100e0578]
divss xmm7, xmm0
addss xmm1, dword [0x100e03fc]
divss xmm3, xmm1
addss xmm3, xmm6
movaps xmm0, xmm3
call fcn.10009610
comiss xmm2, xmm0
jb 0x1005b812
movss xmm0, dword [esp + 0x48]
comiss xmm0, xmm2
jbe 0x1005b812
comiss xmm2, xmm4
jb 0x1005b7f1
movss xmm1, dword [esp + 0x74]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x1005b7ee
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x6c]
mulss xmm2, dword [0x100e04a8]
push edx
lea edx, [ecx + 4]
jmp 0x1005b80a
lea eax, [ecx + 4]
comiss xmm2, xmm7
jb 0x1005b812
movss xmm1, dword [esp + 0x6c]
movaps xmm2, xmm4
mulss xmm1, dword [0x100e04a8]
push edx
mov edx, eax
call fcn.100318a0
add esp, 4
movaps xmm0, xmmword [0x100e08d0]
lea eax, [esp + 0xac]
movss xmm2, dword [0x100e04e4]
lea edx, [esp + 0xa8]
movups xmmword [esp + 0xa4], xmm0
lea ecx, [esp + 0xa4]
movss xmm0, dword [esp + 0x48]
movaps xmm1, xmm2
push eax
call fcn.100318a0
movups xmm3, xmmword [esp + 0xa8]
add esp, 4
movss xmm2, dword [0x100e04e4]
xorps xmm1, xmm1
comiss xmm1, xmm3
jbe 0x1005b86d
xorps xmm0, xmm0
jmp 0x1005b874
movaps xmm0, xmm2
minss xmm0, xmm3
movss xmm3, dword [0x100e060c]
movss xmm7, dword [0x100e04a8]
movss xmm4, dword [esp + 0xa8]
comiss xmm1, xmm4
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si ecx, xmm0
jbe 0x1005b8a3
xorps xmm0, xmm0
jmp 0x1005b8aa
movaps xmm0, xmm2
minss xmm0, xmm4
movss xmm4, dword [esp + 0xac]
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si eax, xmm0
shl eax, 8
or ecx, eax
comiss xmm1, xmm4
jbe 0x1005b8ce
xorps xmm0, xmm0
jmp 0x1005b8d5
movaps xmm0, xmm2
minss xmm0, xmm4
movss xmm4, dword [esp + 0xb0]
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si eax, xmm0
shl eax, 0x10
or ecx, eax
comiss xmm1, xmm4
jbe 0x1005b8f9
xorps xmm0, xmm0
jmp 0x1005b900
movaps xmm0, xmm2
minss xmm0, xmm4
mov eax, dword [esp + 0x40]
mulss xmm0, xmm3
movss xmm4, dword [eax]
mov eax, dword [esp + 0xcc]
addss xmm0, xmm7
movss xmm5, dword [eax]
mov eax, dword [esp + 0x78]
cvttss2si edx, xmm0
movss xmm6, dword [eax]
shl edx, 0x18
or edx, ecx
comiss xmm1, xmm4
mov dword [esp + 0x24], edx
jbe 0x1005b93a
xorps xmm0, xmm0
jmp 0x1005b941
movaps xmm0, xmm2
minss xmm0, xmm4
comiss xmm1, xmm5
mulss xmm0, xmm3
addss xmm0, xmm7
cvttss2si ecx, xmm0
jbe 0x1005b957
xorps xmm0, xmm0
jmp 0x1005b95e
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 0x1005b979
xorps xmm0, xmm0
jmp 0x1005b980
movaps xmm0, xmm2
minss xmm0, xmm6
mulss xmm0, xmm3
mov dword [esp + 0xe4], 0xff0000ff
mov dword [esp + 0xe8], 0xff00ffff
mov dword [esp + 0xec], 0xff00ff00
addss xmm0, xmm7
mov dword [esp + 0xf0], 0xffffff00
mov dword [esp + 0xf4], 0xffff0000
mov dword [esp + 0xf8], 0xffff00ff
mov dword [esp + 0xfc], 0xff0000ff
mov dword [esp + 0x34], 0
cvttss2si eax, xmm0
mov dword [esp + 0x30], 0
shl eax, 0x10
or ecx, eax
or ecx, 0xff000000
cmp dword [esp + 0x68], 0
mov dword [esp + 0x5c], ecx
je 0x1005c440
movss xmm1, dword [esp + 0x64]
mov eax, 0x2aaaaaab
movss xmm3, dword [0x100e04fc]
movss xmm0, dword [esp + 0x50]
divss xmm3, xmm1
cvttss2si ecx, xmm1
addss xmm0, xmm1
movss dword [esp + 0x100], xmm3
imul ecx
movss dword [esp + 0x80], 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 + 0xc8], xmm4
mov edx, dword [esp + 0x1c]
cmp ecx, eax
cmovle ecx, eax
xor eax, eax
add edi, 0x54
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x10], edi
nop word [eax + eax]
movd xmm1, eax
lea eax, [esp + 0xb4]
cvtdq2ps xmm1, xmm1
mov esi, dword [edx + 0x18]
push ecx
push ecx
mov ecx, edx
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [0x100e0578]
divss xmm1, dword [0x100e0578]
addss xmm0, xmm0
movaps xmm2, xmm4
addss xmm1, xmm1
mulss xmm0, dword [0x100e0558]
mulss xmm1, dword [0x100e0558]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0x6c], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x84], xmm1
call fcn.1004ae40
movss xmm0, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
push ecx
movss dword [esp], xmm0
mov ecx, eax
push 0
push 0xffffffffffffffff
push dword [edi]
push dword [eax + 0x5c]
call fcn.10049d70
movss xmm0, dword [esp + 0x64]
cvtps2pd xmm0, xmm0
mov dword [edi], 0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x64]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x50]
addss xmm0, dword [esp + 0x88]
movss dword [esp + 0x54], 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 + 0x50]
addss xmm0, dword [esp + 0x98]
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0x78]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x78]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x50]
addss xmm0, dword [esp + 0x88]
movss dword [esp + 0x68], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm3, dword [esp + 0x68]
xorps xmm4, xmm4
movss xmm5, dword [esp + 0x54]
movss xmm6, dword [esp + 0x8c]
subss xmm3, xmm5
cvtsd2ss xmm4, xmm0
mov eax, dword [esp + 0x58]
movss xmm2, dword [0x100e04e4]
movaps xmm0, xmm3
mulss xmm4, dword [esp + 0x50]
movaps xmm7, xmm2
mov ecx, dword [esp + eax*4 + 0xe8]
mov eax, dword [esp + eax*4 + 0xe4]
mulss xmm0, xmm3
mov dword [esp + 0x64], ecx
addss xmm4, dword [esp + 0x98]
mov dword [esp + 0xc4], eax
subss xmm4, xmm6
movaps xmm1, xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
divss xmm7, xmm1
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x20]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0xcc], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0xcc]
jae 0x1005bd73
mov ecx, dword [esp + 0xc4]
movzx eax, cl
mov dword [esp + 0x78], eax
mov eax, ecx
shr eax, 8
movzx esi, al
mov eax, dword [esp + 0x64]
shr eax, 0x10
shr ecx, 0x10
movzx edx, cl
movzx ecx, al
mov eax, dword [esp + 0x64]
sub ecx, edx
shr eax, 8
mov dword [esp + 0x60], edx
movzx edx, al
mov eax, dword [esp + 0x64]
sub edx, esi
movzx edi, al
sub edi, dword [esp + 0x78]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x60]
nop word [eax + eax]
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
subss xmm0, xmm5
subss xmm1, xmm6
mulss xmm0, xmm3
mulss xmm1, xmm4
addss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, xmm7
comiss xmm0, xmm1
jbe 0x1005bcbe
xorps xmm2, xmm2
jmp 0x1005bcc2
minss xmm2, xmm1
movd xmm1, ecx
movaps xmm0, xmm2
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm1
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov esi, dword [esp + 0x44]
addss xmm0, xmm1
movd xmm1, edx
cvtdq2ps xmm1, xmm1
cvttss2si eax, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm1
shl eax, 8
movd xmm1, dword [esp + 0x68]
cvtdq2ps xmm1, xmm1
mov dword [esp + 0x18], eax
addss xmm0, xmm1
cvttss2si eax, xmm0
movd xmm0, edi
or dword [esp + 0x18], eax
shl dword [esp + 0x18], 8
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm0
movd xmm0, dword [esp + 0x78]
cvtdq2ps xmm0, xmm0
addss xmm2, xmm0
cvttss2si eax, xmm2
movss xmm2, dword [0x100e04e4]
or dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x10]
and eax, 0xff000000
or dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], eax
mov eax, esi
mov esi, dword [esp + 0x60]
add eax, 0x14
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0xcc]
jb 0x1005bc90
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
movss xmm3, dword [esp + 0x100]
inc eax
movss xmm4, dword [esp + 0xc8]
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x58], eax
cmp eax, 6
jl 0x1005ba80
movss xmm0, dword [esp + 0x48]
addss xmm0, xmm0
mulss xmm0, dword [0x100e0558]
movss dword [esp + 0x48], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm3, dword [esp + 0x48]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x50], xmm0
cvtps2pd xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cmp byte [esp + 0x16], 0
xorps xmm5, xmm5
movss xmm1, dword [esp + 0x80]
movss xmm3, dword [esp + 0x50]
movss xmm6, dword [esp + 0x88]
movss xmm4, dword [esp + 0x7c]
cvtsd2ss xmm5, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm3
mulss xmm1, xmm5
mulss xmm0, dword [0x100e04a8]
mulss xmm1, dword [0x100e04a8]
addss xmm0, xmm6
movss dword [esp + 0x64], xmm5
addss xmm1, dword [esp + 0x98]
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm1
je 0x1005be46
mulss xmm4, dword [0x100e04b8]
jmp 0x1005be4e
mulss xmm4, dword [0x100e04ac]
movaps xmm0, xmm4
movss dword [esp + 0x7c], xmm4
divss xmm0, dword [0x100e04f8]
cvttss2si eax, xmm0
cmp eax, 9
jge 0x1005be6f
mov eax, 9
jmp 0x1005be79
mov ecx, 0x20
cmp eax, ecx
cmovg eax, ecx
test dword [esp + 0x24], 0xff000000
movss xmm2, dword [0x100e0588]
mov esi, dword [esp + 0x84]
mov dword [esp + 0x58], eax
je 0x1005bf03
cmp eax, 2
jle 0x1005c007
movd xmm1, eax
xorps xmm3, xmm3
cvtdq2ps xmm1, xmm1
dec eax
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x40]
movaps xmm0, xmm1
subss xmm0, dword [0x100e04e4]
mulss xmm0, xmm2
movaps xmm2, xmm4
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.1004ae40
push dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, eax
push dword [edi]
push dword [eax + 0x5c]
call fcn.1004a920
movss xmm2, dword [0x100e0588]
movss xmm4, dword [esp + 0x7c]
mov eax, dword [esp + 0x58]
mov dword [edi], 0
jmp 0x1005bf0c
cmp eax, 2
jle 0x1005c007
movd xmm1, eax
lea ecx, [eax - 1]
cvtdq2ps xmm1, xmm1
push ecx
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x24]
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, dword [0x100e04e4]
mulss xmm0, xmm2
movaps xmm2, xmm4
addss xmm2, dword [0x100e04e4]
divss xmm0, xmm1
subss xmm2, dword [0x100e04a8]
movss dword [esp], xmm0
push eax
call fcn.1004ae40
mov eax, dword [esp + 0x1c]
push ecx
mov dword [esp], 0x3f800000
mov ecx, eax
push 1
push 0xff808080
push dword [edi]
push dword [eax + 0x5c]
call fcn.10049d70
mov eax, dword [esp + 0x58]
mov dword [edi], 0
cmp eax, 2
jle 0x1005bff2
movd xmm1, eax
xorps xmm3, xmm3
cvtdq2ps xmm1, xmm1
lea eax, [esp + 0x38]
push dword [esp + 0x68]
movaps xmm0, xmm1
movss xmm2, dword [esp + 0x80]
subss xmm0, dword [0x100e04e4]
subss xmm2, dword [0x100e04a8]
push ecx
mov ecx, dword [esp + 0x24]
mulss xmm0, dword [0x100e0588]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.1004ae40
mov eax, dword [esp + 0x1c]
push ecx
mov dword [esp], 0x3f800000
mov ecx, eax
push 1
push 0xffffffffffffffff
push dword [edi]
push dword [eax + 0x5c]
call fcn.10049d70
mov dword [edi], 0
movss xmm6, dword [esp + 0x88]
movss xmm5, dword [esp + 0x64]
movss xmm3, dword [esp + 0x50]
movss xmm4, dword [esp + 0x28]
movaps xmm2, xmm3
mulss xmm2, xmm4
xorps xmm1, xmm1
mov eax, dword [0x101257f8]
movaps xmm0, xmm5
mov ecx, dword [esp + 0x1c]
mulss xmm0, xmm1
push 6
push 6
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0xa8]
addss xmm2, xmm6
movss dword [esp + 0x30], xmm2
movaps xmm2, xmm5
mulss xmm2, xmm4
movaps xmm4, xmm3
mulss xmm4, dword [esp + 0xa8]
addss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x9c]
mulss xmm5, dword [esp + 0xa4]
addss xmm2, dword [esp + 0xa0]
movss dword [esp + 0x34], xmm2
movaps xmm2, xmm4
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x9c]
subss xmm4, xmm5
mulss xmm3, dword [esp + 0xa4]
addss xmm0, xmm1
addss xmm2, xmm6
addss xmm3, xmm1
addss xmm4, xmm6
addss xmm0, dword [esp + 0xa0]
movss dword [esp + 0x40], xmm2
addss xmm3, dword [esp + 0xa0]
movss dword [esp + 0x94], xmm4
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 0x18b4]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [eax + 0x18b8]
movss dword [esp + 0x58], xmm3
movss dword [esp + 0x98], xmm3
movss dword [esp + 0x5c], xmm0
call fcn.10049bc0
mov edx, dword [esp + 0x1c]
movss xmm2, dword [esp + 0x28]
movss xmm3, dword [esp + 0x2c]
movss xmm0, dword [esp + 0x68]
mov ecx, dword [edx + 0x38]
mov ax, word [edx + 0x30]
movss xmm1, dword [esp + 0x54]
movss xmm5, dword [esp + 0x38]
mov word [ecx], ax
mov eax, dword [edx + 0x34]
add dword [edx + 0x38], 2
mov ecx, dword [esp + 0x24]
movss xmm4, dword [esp + 0x3c]
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
mov eax, dword [edx + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edx + 0x34]
mov dword [eax + 0x10], ecx
mov eax, dword [edx + 0x38]
add dword [edx + 0x34], 0x14
inc dword [edx + 0x30]
mov ecx, dword [edx + 0x30]
mov word [eax], cx
mov eax, dword [edx + 0x34]
add dword [edx + 0x38], 2
movss dword [eax], xmm5
movss dword [eax + 4], xmm4
mov eax, dword [edx + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edx + 0x34]
mov ecx, dword [esp + 0x24]
movss xmm7, dword [esp + 0x8c]
movss xmm6, dword [esp + 0x50]
mov dword [eax + 0x10], ecx
add dword [edx + 0x34], 0x14
inc dword [edx + 0x30]
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x30]
mov word [eax], cx
add dword [edx + 0x38], 2
mov eax, dword [edx + 0x34]
movss dword [eax], xmm7
movss dword [eax + 4], xmm6
mov eax, dword [edx + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edx + 0x34]
mov dword [eax + 0x10], 0xffffffff
add dword [edx + 0x34], 0x14
inc dword [edx + 0x30]
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x30]
mov word [eax], cx
mov eax, dword [edx + 0x34]
add dword [edx + 0x38], 2
movss dword [eax], xmm2
movss dword [eax + 4], xmm3
mov eax, dword [edx + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edx + 0x34]
mov dword [eax + 0x10], 0
add dword [edx + 0x34], 0x14
inc dword [edx + 0x30]
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x30]
mov word [eax], cx
mov eax, dword [edx + 0x34]
add dword [edx + 0x38], 2
movss dword [eax], xmm5
movss dword [eax + 4], xmm4
mov eax, dword [edx + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edx + 0x34]
mov dword [eax + 0x10], 0xff000000
add dword [edx + 0x34], 0x14
inc dword [edx + 0x30]
mov eax, dword [edx + 0x38]
mov ecx, dword [edx + 0x30]
mov word [eax], cx
mov eax, dword [edx + 0x34]
add dword [edx + 0x38], 2
movss dword [eax], xmm7
movss dword [eax + 4], xmm6
mov eax, dword [edx + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edx + 0x34]
mov dword [eax + 0x10], 0
add dword [edx + 0x34], 0x14
inc dword [edx + 0x30]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
cmp ecx, eax
jne 0x1005c2ba
inc ecx
test eax, eax
je 0x1005c2a8
cdq
sub eax, edx
sar eax, 1
add eax, dword [edi + 4]
jmp 0x1005c2ad
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.10041bc0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
inc edi
mov dword [ecx], edi
mov eax, dword [ecx + 4]
cmp edi, eax
jne 0x1005c305
inc edi
test eax, eax
je 0x1005c2f1
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x1005c2f6
mov eax, 8
cmp eax, edi
cmovg edi, eax
push edi
call fcn.10041bc0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov ecx, dword [esp + 0x10]
mov edi, dword [ecx]
inc edi
mov dword [ecx], edi
mov eax, dword [ecx + 4]
cmp edi, eax
jne 0x1005c350
inc edi
test eax, eax
je 0x1005c33c
cdq
sub eax, edx
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x1005c341
mov eax, 8
cmp eax, edi
cmovg edi, eax
push edi
call fcn.10041bc0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
mov eax, dword [eax]
push ecx
mov dword [esp], 0x3fc00000
push 1
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, eax
push 0xff808080
inc dword [edi]
push dword [edi]
push dword [eax + 0x5c]
call fcn.10049d70
movss xmm0, dword [0x100e04e4]
xorps xmm1, xmm1
movaps xmm2, xmm0
mov dword [edi], 0
subss xmm2, dword [esp + 0x74]
comiss xmm1, xmm2
jbe 0x1005c3b7
xorps xmm4, xmm4
jmp 0x1005c3be
movaps xmm4, xmm0
minss xmm4, xmm2
movss xmm2, dword [esp + 0x6c]
comiss xmm1, xmm2
jbe 0x1005c3ce
xorps xmm3, xmm3
jmp 0x1005c3d5
movaps xmm3, xmm0
minss xmm3, xmm2
movss xmm0, dword [esp + 0x28]
subss xmm0, dword [esp + 0x8c]
movss xmm2, dword [esp + 0x2c]
subss xmm2, dword [esp + 0x50]
mov edi, dword [esp + 0x1c]
mulss xmm0, xmm3
mulss xmm2, xmm3
addss xmm0, dword [esp + 0x8c]
movss xmm3, dword [esp + 0x38]
addss xmm2, dword [esp + 0x50]
subss xmm3, xmm0
mulss xmm3, xmm4
addss xmm3, xmm0
movss xmm0, dword [esp + 0x3c]
subss xmm0, xmm2
movss dword [esp + 0x30], xmm3
mulss xmm0, xmm4
addss xmm0, xmm2
movss dword [esp + 0x34], xmm0
jmp 0x1005c780
test dword [esp + 0x10], 0x2000000
je 0x1005c780
movss xmm0, dword [esp + 0x58]
lea eax, [esp + 0xb4]
push 0xffffffffffffffff
push edx
movss dword [esp + 0xbc], xmm0
mov ecx, edi
movss xmm0, dword [esp + 0x28]
addss xmm0, dword [esp + 0x54]
push edx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
push eax
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0xd0], xmm0
call fcn.1004b620
movss xmm0, dword [esp + 0x58]
lea eax, [esp + 0xb4]
push 0xff000000
push 0xff000000
push 0
push 0
push eax
movss dword [esp + 0xc8], xmm0
lea eax, [esp + 0x4c]
movss xmm0, dword [esp + 0x38]
mov ecx, edi
push eax
movss dword [esp + 0xd0], xmm0
call fcn.1004b620
movss xmm0, dword [esp + 0x58]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x2c], xmm0
xorps xmm0, xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.10032210
movss xmm3, dword [esp + 0x7c]
xorps xmm0, xmm0
movss xmm1, dword [0x100e04e4]
add esp, 0x10
comiss xmm0, xmm3
jbe 0x1005c520
xorps xmm2, xmm2
jmp 0x1005c527
movaps xmm2, xmm1
minss xmm2, xmm3
movss xmm7, dword [esp + 0x4c]
movss xmm3, dword [esp + 0x38]
movss xmm4, dword [0x100e04a8]
mulss xmm2, xmm7
movss xmm5, dword [0x100e0524]
movss xmm6, dword [esp + 0x58]
addss xmm2, xmm3
addss xmm3, xmm5
subss xmm6, xmm5
addss xmm2, xmm4
cvttss2si eax, xmm2
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm3, xmm2
jbe 0x1005c575
movss dword [esp + 0x30], xmm3
jmp 0x1005c588
comiss xmm2, xmm6
jbe 0x1005c582
movss dword [esp + 0x30], xmm6
jmp 0x1005c588
movss dword [esp + 0x30], xmm2
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x74]
comiss xmm0, xmm2
jbe 0x1005c59b
xorps xmm1, xmm1
jmp 0x1005c59f
minss xmm1, xmm2
movss xmm3, dword [esp + 0x20]
mulss xmm1, xmm7
movss xmm0, dword [esp + 0x24]
subss xmm0, xmm5
addss xmm1, xmm3
addss xmm1, xmm4
cvttss2si eax, xmm1
movaps xmm1, xmm3
addss xmm1, xmm5
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x1005c5da
movss dword [esp + 0x34], xmm1
jmp 0x1005c5ed
comiss xmm2, xmm0
jbe 0x1005c5e7
movss dword [esp + 0x34], xmm0
jmp 0x1005c5ed
movss dword [esp + 0x34], xmm2
movss xmm0, dword [esp + 0xd8]
movaps xmm1, xmm7
divss xmm1, dword [0x100e0578]
mov esi, dword [esp + 0x1c]
xor ecx, ecx
movss dword [esp + 0xb4], xmm0
movss xmm0, dword [esp + 0x80]
movss dword [esp + 0x68], xmm1
movss dword [esp + 0xa4], xmm0
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0xe8]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0xbc]
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xc0], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0xec]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0xb8]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xc0], xmm0
call fcn.1004b620
movss xmm1, dword [esp + 0x68]
mov ecx, edi
movss xmm3, dword [esp + 0x20]
cmp ecx, 6
jl 0x1005c630
movss xmm0, dword [esp + 0xd8]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x80]
push dword [esp + 0x2c]
movss dword [esp + 0x3c], xmm0
movaps xmm0, xmm3
push dword [esp + 0x2c]
movss dword [esp + 0x44], xmm0
xorps xmm0, xmm0
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.10032210
mov esi, dword [esp + 0x94]
movss xmm1, dword [esp + 0x80]
addss xmm1, dword [0x100e0524]
mov edi, dword [esp + 0x2c]
mov ecx, edi
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x3c], xmm2
addss xmm0, dword [0x100e04e4]
push dword [esp + 0x3c]
movss xmm2, dword [esp + 0x94]
subss xmm2, dword [0x100e04e4]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x5c]
mulss xmm0, dword [esp + 0x60]
push dword [esp + 0x3c]
movss dword [esp + 0x50], xmm2
addss xmm0, dword [esp + 0x38]
addss xmm0, dword [0x100e04a8]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x54], xmm0
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.1005a3d0
add esp, 0x20
cmp byte [esp + 0xf], 0
je 0x1005c798
movss xmm0, dword [0x100e0590]
movss dword [esp + 0xd4], xmm0
movss xmm2, dword [esp + 0xd4]
lea eax, [esp + 0x30]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
mov ecx, edi
call fcn.1004ae40
push dword [esp + 0x5c]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.1004a920
movss xmm2, dword [esp + 0xd4]
lea eax, [esp + 0x30]
addss xmm2, dword [0x100e04e4]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
subss xmm2, dword [0x100e04a8]
mov ecx, edi
mov dword [edi + 0x54], 0
call fcn.1004ae40
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xff808080
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10049d70
movss xmm2, dword [esp + 0xd4]
lea eax, [esp + 0x30]
subss xmm2, dword [0x100e04a8]
push 0xb
push ecx
mov dword [esp], 0x40b84e89
xorps xmm3, xmm3
push eax
mov ecx, edi
mov dword [edi + 0x54], 0
call fcn.1004ae40
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xffffffffffffffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10049d70
cmp dword [esp + 0xdc], 0x10000
mov dword [edi + 0x54], 0
jne 0x1005ca19
mov eax, dword [esp + 0x40]
xorps xmm2, xmm2
movss xmm1, dword [eax + 0xc]
comiss xmm2, xmm1
jbe 0x1005c89e
movss dword [esp + 0x84], xmm2
jmp 0x1005c8b3
movss xmm0, dword [0x100e04e4]
minss xmm0, xmm1
movss dword [esp + 0x84], xmm0
movss xmm3, dword [esp + 0xd0]
or edx, 0xffffffff
movss xmm0, dword [esp + 0x20]
movaps xmm1, xmm3
addss xmm1, dword [esp + 0x70]
movss dword [esp + 0xb8], xmm0
xor ecx, ecx
addss xmm0, dword [esp + 0x4c]
mov dword [esp + 0x2c], 0
push dword [esp + 0x2c]
movss dword [esp + 0xc0], xmm1
subss xmm1, xmm3
mov dword [esp + 0x2c], 0
push dword [esp + 0x2c]
movss dword [esp + 0xc8], xmm0
push dword [esp + 0xc8]
mulss xmm1, dword [0x100e04a8]
push dword [esp + 0xc8]
movss dword [esp + 0xc4], xmm3
push dword [esp + 0xc8]
mov edi, dword [esp + 0xc8]
push edi
call fcn.1005a100
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 + 0x2c]
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.1004b620
push dword [esp + 0xc0]
xorps xmm0, xmm0
push dword [esp + 0xc0]
push dword [esp + 0xc0]
push edi
call fcn.10032210
movss xmm1, dword [0x100e04e4]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0x2c]
movaps xmm0, xmm2
movss dword [esp + 0x3c], xmm2
movss xmm2, dword [esp + 0xe0]
addss xmm0, xmm1
subss xmm2, xmm1
subss xmm1, dword [esp + 0x94]
push dword [esp + 0x3c]
movss dword [esp + 0x3c], xmm0
push dword [esp + 0x3c]
mulss xmm1, dword [esp + 0x64]
movss dword [esp + 0x50], xmm2
addss xmm1, dword [esp + 0x38]
addss xmm1, dword [0x100e04a8]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x88]
addss xmm1, dword [0x100e0524]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x54], xmm0
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.1005a3d0
add esp, 0x20
call fcn.1003bc20
cmp byte [esp + 0xe], 0
mov esi, dword [0x101257f8]
je 0x1005caa0
mov edi, dword [esp + 0xe0]
lea ecx, [esp + 0x108]
mov edx, dword [esp + 0x40]
sub edi, 4
jb 0x1005ca53
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1005ca58
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1005ca42
cmp edi, 0xfffffffc
je 0x1005ca9b
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1005ca85
cmp edi, 0xfffffffd
je 0x1005ca9b
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1005ca85
cmp edi, 0xfffffffe
je 0x1005ca9b
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1005ca85
cmp edi, 0xffffffff
je 0x1005ca9b
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1005ca9b
mov eax, dword [esi + 0x198c]
mov byte [esi + 0x19bf], 1
or dword [eax + 0x110], 4
jmp 0x1005caa0
mov byte [esp + 0xe], 0
mov ecx, dword [esi + 0x198c]
mov al, byte [esp + 0xe]
pop edi
pop esi
dec dword [ecx + 0x1c0]
mov esp, ebp
pop ebp
ret