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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x4ba040]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x6c], ecx
mov ecx, dword [0x4bead0]
mov dword [esp + 0x88], eax
push esi
push edi
mov eax, dword [ecx + 0x3f8c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], ecx
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3f8c]
mov dword [esp + 0xbc], eax
cmp byte [eax + 0xb3], 0
je 0x4873e1
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0049c694
mov esp, ebp
pop ebp
ret
test byte [ecx + 0x48e8], 1
mov edi, dword [eax + 0x270]
mov dword [esp + 0x54], edi
je 0x4873fe
movss xmm1, dword [ecx + 0x48f8]
jmp 0x487406
movss xmm1, dword [eax + 0x1ac]
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x487448
cmp dword [eax + 0x198], 0
jne 0x487426
cmp dword [ecx + 0x4ce0], 0
lea edx, [eax + 0x234]
je 0x48742c
lea edx, [eax + 0x204]
movss xmm0, dword [edx]
subss xmm0, dword [eax + 0xf8]
addss xmm0, xmm1
movss xmm1, dword [0x4b6ac4]
maxss xmm1, xmm0
mov edx, dword [ecx + 0x48ec]
mov eax, dword [ecx + 0x48dc]
shr edx, 7
shr eax, 7
or dl, al
mov dword [ecx + 0x48e8], 0
and edx, 0xffffff01
mov dword [ecx + 0x48ec], 0
mov ecx, dword [esp + 0x74]
cvttss2si esi, xmm1
mov dword [esp + 0x20], edx
call fcn.00413920
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + 0x5c98]
mov dword [esp + 0xd8], eax
test eax, eax
jne 0x4874b9
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax + 0xec]
mov eax, dword [eax + 0xf4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x5c98], eax
call fcn.00416bb0
mov edx, dword [ebp + 8]
mov ecx, edx
or ecx, 0x10
test edx, 0x100
cmovne ecx, edx
mov dword [esp + 0xa4], ecx
test cl, 8
jne 0x4874ed
mov edx, ecx
mov ecx, dword [esp + 0x2c]
call fcn.0048b0e0
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x4c]
test ecx, 0x6000000
jne 0x487519
mov eax, dword [edx + 0x5c94]
mov ecx, 0xa900000
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, dword [esp + 0xa4]
mov dword [esp + 0xc], ecx
test ecx, 0x18000000
jne 0x487550
mov eax, dword [edx + 0x5c94]
mov edi, 0xa900000
test eax, 0x18000000
cmovne edi, eax
mov eax, edi
mov dword [esp + 0x9c], edi
mov edi, dword [esp + 0x54]
and eax, 0x18000000
or ecx, eax
mov dword [esp + 0xc], ecx
test cl, 8
jne 0x487566
mov eax, dword [edx + 0x5c94]
and eax, 0x10000
or ecx, eax
mov dword [esp + 0xc], ecx
mov eax, ecx
movss xmm2, dword [edx + 0x38fc]
and eax, 2
and ecx, 0x10002
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0xd0], ecx
movss xmm0, dword [eax + 0xfc]
movss xmm3, dword [eax + 0xf8]
mov eax, dword [0x4bead0]
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x5c], xmm0
movaps xmm0, xmm2
movss dword [esp + 0x58], xmm3
movss xmm4, dword [eax + 0x38e8]
addss xmm4, xmm4
addss xmm4, dword [eax + 0x3cf4]
xor eax, eax
cmp ecx, 0x10000
sete al
inc eax
addss xmm0, xmm4
movss dword [esp + 0x70], xmm4
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
cmp dword [esp + 0xa4], eax
sete al
mulss xmm1, xmm0
lea eax, [eax*4 + 0xc]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push eax
lea eax, [esp + 0x130]
push dword [esp + 0x30]
subss xmm0, xmm1
movaps xmm1, xmm4
push eax
maxss xmm1, xmm0
movaps xmm0, xmm3
addss xmm0, xmm1
movss dword [esp + 0x34], xmm1
addss xmm0, xmm2
movss dword [esp + 0x98], xmm0
addss xmm0, xmm4
addss xmm0, xmm2
movss dword [esp + 0xd8], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x4b6a50]
cvttss2si esi, xmm0
mov dword [esp + 0xc8], esi
call sub.VCRUNTIME140.dll_memcpy
movss xmm2, dword [esp + 0x34]
add esp, 0xc
movaps xmm4, xmm2
movaps xmm1, xmm2
mulss xmm4, dword [0x4b6a7c]
mulss xmm1, dword [0x4b6a38]
movaps xmm0, xmm4
movss dword [esp + 0xd4], xmm4
addss xmm0, dword [esp + 0x30]
movss dword [esp + 0x6c], xmm1
movaps xmm3, xmm4
subss xmm3, xmm1
movaps xmm1, xmm2
addss xmm1, dword [esp + 0x70]
movss dword [esp + 0xc4], xmm0
movss dword [esp + 0xfc], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x4b6a28]
mulss xmm1, dword [0x4b6a7c]
cvttss2si eax, xmm0
addss xmm1, dword [esp + 0x58]
movss dword [esp + 0x94], xmm3
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc8], xmm1
movss dword [esp + 0xf8], xmm1
movaps xmm1, xmm3
subss xmm1, xmm0
movss dword [esp + 0x38], xmm1
mov eax, dword [esp + 0x2c]
movaps xmm0, xmm1
mulss xmm0, dword [0x4b6cb0]
movaps xmm2, xmm1
mov ecx, dword [esp + 0xc]
mulss xmm2, dword [0x4b6cbc]
mov dword [esp + 0x3c], 0
movss xmm7, dword [eax + 8]
movss xmm5, dword [0x4b69fc]
movss dword [esp + 0xb0], xmm0
movss dword [esp + 0x108], xmm0
movss dword [esp + 0x118], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x4b6aac]
movss xmm1, dword [eax + 4]
movss dword [esp + 0x98], xmm2
movss dword [esp + 0x10c], xmm2
movss dword [esp + 0xac], xmm0
movss dword [esp + 0x11c], xmm0
movss xmm0, dword [eax]
movss dword [esp + 0x1c], xmm0
movaps xmm2, xmm0
movss dword [esp + 0x7c], xmm2
movss dword [esp + 0x80], xmm2
movaps xmm2, xmm1
movss dword [esp + 0x50], xmm2
movss dword [esp + 0x88], xmm2
movaps xmm2, xmm7
movss dword [esp + 0x34], xmm1
movss dword [esp + 0x64], xmm7
movss dword [esp + 0x44], xmm2
movss dword [esp + 0x84], xmm2
test ecx, 0x8000000
je 0x4878a8
comiss xmm7, xmm1
xorps xmm3, xmm3
movaps xmm2, xmm1
movaps xmm4, xmm7
jbe 0x487800
movss xmm3, dword [0x4b6cc0]
movaps xmm2, xmm7
movaps xmm4, xmm1
comiss xmm2, xmm0
movaps xmm7, xmm0
movss dword [esp + 0x64], xmm7
jbe 0x487829
movaps xmm7, xmm2
movaps xmm2, xmm0
movss xmm0, dword [0x4b6cac]
subss xmm0, xmm3
movss dword [esp + 0x64], xmm7
movaps xmm3, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x1c], xmm7
minss xmm0, xmm4
movaps xmm1, xmm7
subss xmm2, xmm4
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
subss xmm1, xmm0
push ecx
lea edx, [esp + 0x50]
mov ecx, eax
movaps xmm0, xmm1
mulss xmm0, dword [0x4b6b94]
addss xmm0, xmm5
divss xmm2, xmm0
movaps xmm0, xmm7
addss xmm0, xmm5
addss xmm2, xmm3
divss xmm1, xmm0
andps xmm2, xmmword [0x4b6f10]
movss dword [esp + 0x50], xmm2
movss dword [esp + 0x3c], xmm1
call fcn.00485ca0
movss xmm0, dword [esp + 0x50]
add esp, 8
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esp + 0x34], xmm0
jmp 0x4878fb
test ecx, 0x10000000
je 0x4878fb
lea eax, [esp + 0x84]
push eax
lea edx, [esp + 0x8c]
lea ecx, [esp + 0x84]
call fcn.00404850
movss xmm0, dword [esp + 0x84]
add esp, 4
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x88]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0x84]
movss dword [esp + 0x44], xmm0
mov ecx, dword [0x4bead0]
lea edx, [ecx + 0x49f0]
mov byte [esp + 9], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0xa], 0
mov eax, dword [ecx + 0x48dc]
or eax, 8
mov dword [esp + 0x48], edx
mov dword [ecx + 0x48dc], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x9c], eax
cmp dword [edx], ecx
jne 0x487967
test ecx, ecx
je 0x48794a
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x48]
sar eax, 1
add eax, ecx
jmp 0x48794f
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.00428f20
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov esi, dword [esp + 0x9c]
mov dword [eax + ecx*4], esi
inc dword [edx]
mov eax, dword [esp + 0xc]
test eax, 0x4000000
je 0x487fbb
movss xmm1, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov eax, dword [esp + 0x4c]
movaps xmm0, xmm1
push 0
mov ecx, 0x4b668c
movss dword [esp + 0x18], xmm1
addss xmm0, dword [eax + 0x38fc]
addss xmm0, dword [esp + 0x74]
movss dword [esp + 0x14], xmm0
call fcn.004776c0
mov eax, dword [0x4bead0]
add esp, 4
mov ecx, dword [eax + 0x3fdc]
test ecx, ecx
je 0x487e5a
cmp ecx, dword [eax + 0x4908]
jne 0x487e5a
cmp byte [esp + 0x20], 0
jne 0x487e5a
mov eax, dword [esp + 0x4c]
movss xmm0, dword [eax + 0x37d4]
subss xmm0, dword [esp + 0xc4]
movss xmm1, dword [eax + 0x37d0]
subss xmm1, dword [esp + 0xc8]
movss xmm4, dword [eax + 0xe00]
movss xmm3, dword [eax + 0xe04]
subss xmm4, dword [esp + 0xc8]
subss xmm3, dword [esp + 0xc4]
movaps xmm2, xmm0
movss dword [esp + 0x20], xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0xa8], xmm1
movss xmm1, dword [0x4b6ac4]
addss xmm2, xmm0
movss dword [esp + 0x48], xmm4
movss xmm0, dword [esp + 0x94]
subss xmm0, xmm1
movss dword [esp + 0x78], xmm3
mulss xmm0, xmm0
comiss xmm2, xmm0
jb 0x487af5
movss xmm0, dword [esp + 0xd4]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm2
jb 0x487af5
cvtps2pd xmm0, xmm3
movsd qword [esp + 0x10], xmm0
fld qword [esp + 0x10]
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x10], xmm0
fld qword [esp + 0x10]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [esp + 0x10]
movsd xmm1, qword [esp + 0x10]
xorps xmm0, xmm0
cvtpd2ps xmm1, xmm1
divss xmm1, dword [0x4b6b64]
mulss xmm1, dword [0x4b6a7c]
comiss xmm0, xmm1
movss dword [esp + 0x1c], xmm1
jbe 0x487aed
addss xmm1, dword [0x4b6ac4]
movss dword [esp + 0x1c], xmm1
mov dl, 1
mov byte [esp + 9], dl
jmp 0x487aff
mov dl, byte [esp + 9]
movss xmm1, dword [esp + 0x1c]
movaps xmm0, xmm1
mov byte [esp + 0x27], dl
xorps xmm0, xmmword [0x4b6f40]
addss xmm0, xmm0
mulss xmm0, dword [0x4b6b64]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x9c], xmm0
movsd xmm0, qword [esp + 0x10]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm6, dword [esp + 0x9c]
xorps xmm5, xmm5
cvtsd2ss xmm5, xmm0
movss xmm1, dword [esp + 0xb0]
movaps xmm3, xmm6
mulss xmm3, dword [esp + 0xa8]
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x20]
movaps xmm4, xmm6
mulss xmm4, dword [esp + 0x20]
subss xmm3, xmm0
movss dword [esp + 0xb4], xmm5
movaps xmm0, xmm5
movss xmm7, dword [esp + 0x38]
mulss xmm0, dword [esp + 0xa8]
movaps xmm5, xmm1
subss xmm5, xmm1
movaps xmm2, xmm3
addss xmm4, xmm0
movss xmm0, dword [esp + 0x98]
subss xmm0, dword [esp + 0xac]
subss xmm2, xmm1
subss xmm7, dword [esp + 0xb0]
movss dword [esp + 0xa8], xmm5
movss dword [esp + 0x9c], xmm0
movaps xmm1, xmm2
mulss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0xac]
movss dword [esp + 0x68], xmm7
mulss xmm0, xmm5
xorps xmm5, xmm5
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0x98]
comiss xmm5, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x20], xmm0
movaps xmm0, xmm4
mulss xmm1, xmm2
seta cl
subss xmm0, dword [esp + 0x98]
mulss xmm0, xmm7
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x487e52
movss xmm0, dword [esp + 0xac]
subss xmm4, xmm5
subss xmm3, dword [esp + 0x38]
subss xmm0, xmm5
mulss xmm3, xmm0
movss xmm0, dword [esp + 0xb0]
subss xmm0, dword [esp + 0x38]
mulss xmm0, xmm4
subss xmm3, xmm0
comiss xmm5, xmm3
seta al
cmp cl, al
jne 0x487e52
movss xmm1, dword [esp + 0xb4]
movaps xmm7, xmm6
mulss xmm7, dword [esp + 0x48]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x48]
mulss xmm0, dword [esp + 0x78]
mulss xmm6, dword [esp + 0x78]
movss xmm4, dword [esp + 0xb0]
subss xmm7, xmm0
addss xmm6, xmm1
movaps xmm1, xmm7
movss dword [esp + 0x10], xmm7
subss xmm1, xmm4
movaps xmm0, xmm6
movss dword [esp + 0x14], xmm6
subss xmm0, dword [esp + 0xac]
mulss xmm1, dword [esp + 0x9c]
mulss xmm0, dword [esp + 0xa8]
subss xmm1, xmm0
movaps xmm0, xmm6
subss xmm0, dword [esp + 0x98]
comiss xmm5, xmm1
mulss xmm0, dword [esp + 0x68]
movaps xmm1, xmm7
subss xmm1, xmm4
seta cl
mulss xmm1, dword [esp + 0x20]
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x487d58
movss xmm3, dword [esp + 0x38]
movaps xmm2, xmm7
movss xmm0, dword [esp + 0xac]
subss xmm2, xmm3
subss xmm0, xmm5
movaps xmm1, xmm4
subss xmm1, xmm3
mulss xmm2, xmm0
movaps xmm0, xmm6
subss xmm0, xmm5
mulss xmm1, xmm0
subss xmm2, xmm1
comiss xmm5, xmm2
seta al
cmp cl, al
je 0x487d9b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x110]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0xa8]
call fcn.00403b90
movss xmm3, dword [esp + 0x44]
add esp, 0xc
movss xmm4, dword [esp + 0xb0]
xorps xmm5, xmm5
movss xmm7, dword [eax]
movss xmm6, dword [eax + 4]
movss xmm1, dword [esp + 0xac]
subss xmm7, xmm3
movaps xmm2, xmm4
subss xmm1, xmm5
movss xmm4, dword [esp + 0x98]
subss xmm2, xmm3
subss xmm4, xmm5
subss xmm6, xmm5
movaps xmm3, xmm2
movaps xmm0, xmm4
mulss xmm3, xmm1
mulss xmm0, xmm2
mulss xmm6, xmm2
subss xmm3, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm1
mulss xmm7, xmm4
subss xmm0, xmm6
movss xmm1, dword [0x4b6ac4]
movss xmm4, dword [0x4b6a10]
movaps xmm2, xmm1
subss xmm6, xmm7
movss dword [esp + 0x34], xmm4
divss xmm0, xmm3
divss xmm6, xmm3
subss xmm2, xmm0
comiss xmm4, xmm2
movaps xmm0, xmm2
subss xmm0, xmm6
jbe 0x487e23
movaps xmm3, xmm4
jmp 0x487e2a
movaps xmm3, xmm1
minss xmm3, xmm2
divss xmm0, xmm3
movss dword [esp + 0x64], xmm3
comiss xmm4, xmm0
ja 0x487e46
movaps xmm4, xmm1
minss xmm4, xmm0
movss dword [esp + 0x34], xmm4
mov byte [esp + 0xa], 1
mov byte [esp + 9], 1
jmp 0x487e5a
mov al, byte [esp + 9]
mov byte [esp + 0x27], al
mov ecx, dword [esp + 0xc]
test cl, 8
jne 0x487ede
mov eax, dword [0x4bead0]
mov ecx, 1
mov esi, dword [eax + 0x3f8c]
mov dword [esp + 0x68], esi
call fcn.00414570
test al, al
je 0x487ede
mov ecx, 0x20
call fcn.004094b0
test al, al
je 0x487ede
mov ecx, dword [esi + 0xec]
xor edx, edx
mov eax, dword [esi + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.00404090
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
cmp dword [eax + 0x3fc4], esi
jne 0x487ed2
push ecx
push str.context
mov edx, 0xb
mov ecx, esi
call fcn.00427b90
add esp, 8
mov edx, 1
mov ecx, esi
call fcn.004178b0
movss xmm3, dword [esp + 0x30]
movss xmm4, dword [esp + 0x28]
cmp dword [esp + 0xd0], 0x10000
mov esi, dword [esp + 0xbc]
jne 0x4882e2
mov ecx, dword [0x4bead0]
lea edx, [esp + 0x10]
movss xmm0, dword [esp + 0xcc]
push 0
movss dword [esp + 0x18], xmm4
mov eax, dword [ecx + 0x3f8c]
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3f8c]
mov ecx, str.alpha
movss dword [eax + 0xf8], xmm0
movss xmm0, dword [esp + 0x74]
movss dword [eax + 0xfc], xmm3
mov byte [eax + 0x139], 1
movss dword [esp + 0x14], xmm0
call fcn.004776c0
mov eax, dword [0x4bead0]
add esp, 4
mov ecx, dword [eax + 0x3fdc]
test ecx, ecx
je 0x4882e2
cmp ecx, dword [eax + 0x4908]
jne 0x4882e2
mov eax, dword [esp + 0x4c]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x28]
movss xmm1, dword [0x4b6ac4]
subss xmm0, xmm1
movss xmm3, dword [eax + 0xe04]
subss xmm3, dword [esp + 0x30]
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x4882c6
xorps xmm4, xmm4
jmp 0x4882cd
test eax, 0x2000000
je 0x487ede
movss xmm0, dword [esp + 0x28]
lea edx, [esp + 0x10]
push 0
mov ecx, 0x4b6690
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x18], xmm0
call fcn.004776c0
mov ecx, dword [0x4bead0]
add esp, 4
mov eax, dword [ecx + 0x3fdc]
test eax, eax
je 0x48813b
cmp eax, dword [ecx + 0x4908]
jne 0x48813b
cmp byte [esp + 0x20], 0
jne 0x48813b
mov eax, dword [esp + 0x4c]
xorps xmm0, xmm0
movss xmm3, dword [esp + 0x28]
movss xmm1, dword [0x4b6ac4]
subss xmm3, xmm1
movss xmm2, dword [eax + 0xe00]
subss xmm2, dword [esp + 0x58]
divss xmm2, xmm3
comiss xmm0, xmm2
jbe 0x48804e
movss dword [esp + 0x34], xmm0
jmp 0x48805b
movaps xmm4, xmm1
minss xmm4, xmm2
movss dword [esp + 0x34], xmm4
movss xmm2, dword [eax + 0xe04]
subss xmm2, dword [esp + 0x30]
divss xmm2, xmm3
comiss xmm0, xmm2
jbe 0x488077
xorps xmm3, xmm3
jmp 0x48807e
movaps xmm3, xmm1
minss xmm3, xmm2
mov eax, dword [ecx + 0x5c9c]
movaps xmm2, xmm1
subss xmm2, xmm3
movss dword [esp + 0x64], xmm2
cmp eax, dword [ecx + 0x5c98]
jne 0x488133
mov eax, dword [esp + 0x2c]
movss xmm2, dword [eax]
comiss xmm0, xmm2
movss xmm4, dword [eax + 4]
movss xmm5, dword [eax + 8]
jbe 0x4880b9
xorps xmm3, xmm3
jmp 0x4880c0
movaps xmm3, xmm1
minss xmm3, xmm2
comiss xmm0, xmm4
movss xmm6, dword [0x4b6c40]
movss xmm2, dword [0x4b6a7c]
mulss xmm3, xmm6
addss xmm3, xmm2
cvttss2si edx, xmm3
jbe 0x4880e6
xorps xmm3, xmm3
jmp 0x4880ed
movaps xmm3, xmm1
minss xmm3, xmm4
mulss xmm3, xmm6
addss xmm3, xmm2
cvttss2si eax, xmm3
shl eax, 8
or edx, eax
comiss xmm0, xmm5
jbe 0x488108
xorps xmm1, xmm1
jmp 0x48810c
minss xmm1, xmm5
mulss xmm1, xmm6
addss xmm1, xmm2
cvttss2si eax, xmm1
shl eax, 0x10
or eax, edx
cmp dword [ecx + 0x5ca8], eax
jne 0x488133
movss xmm0, dword [ecx + 0x5ca0]
movss dword [esp + 0x1c], xmm0
mov al, 1
mov byte [esp + 9], al
jmp 0x48813f
mov al, byte [esp + 9]
mov ecx, dword [esp + 0xc]
mov byte [esp + 0xa], al
mov byte [esp + 0xb], al
test cl, 8
jne 0x4881cb
mov eax, dword [0x4bead0]
mov ecx, 1
mov esi, dword [eax + 0x3f8c]
mov dword [esp + 0x68], esi
call fcn.00414570
test al, al
je 0x4881cb
mov ecx, 0x20
call fcn.004094b0
test al, al
je 0x4881cb
mov ecx, dword [esi + 0xec]
xor edx, edx
mov eax, dword [esi + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.00404090
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
cmp dword [eax + 0x3fc4], esi
jne 0x4881bf
push ecx
push str.context
mov edx, 0xb
mov ecx, esi
call fcn.00427b90
add esp, 8
mov edx, 1
mov ecx, esi
call fcn.004178b0
mov ecx, dword [0x4bead0]
lea edx, [esp + 0x10]
movss xmm0, dword [esp + 0x8c]
push 0
mov eax, dword [ecx + 0x3f8c]
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3f8c]
mov ecx, 0x4b6694
movss dword [eax + 0xf8], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [eax + 0xfc], xmm0
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x2c]
mov byte [eax + 0x139], 1
movss dword [esp + 0x18], xmm0
call fcn.004776c0
mov eax, dword [0x4bead0]
add esp, 4
mov ecx, dword [eax + 0x3fdc]
test ecx, ecx
je 0x487ede
mov dl, byte [esp + 9]
mov byte [esp + 0xa], dl
cmp ecx, dword [eax + 0x4908]
jne 0x487ede
cmp byte [esp + 0x20], 0
movss xmm3, dword [esp + 0x30]
movss xmm4, dword [esp + 0x28]
mov byte [esp + 0xa], dl
jne 0x487eea
mov eax, dword [esp + 0x4c]
movaps xmm0, xmm4
movss xmm1, dword [0x4b6ac4]
subss xmm0, xmm1
movss xmm2, dword [eax + 0xe04]
subss xmm2, xmm3
divss xmm2, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
ja 0x4882a9
movaps xmm0, xmm1
minss xmm0, xmm2
mov al, byte [esp + 0xb]
movss dword [esp + 0x1c], xmm0
mov byte [esp + 0x27], 1
mov byte [esp + 9], 1
mov byte [esp + 0xa], al
jmp 0x487eea
movaps xmm4, xmm1
minss xmm4, xmm3
mov eax, dword [esp + 0x2c]
movaps xmm0, xmm1
subss xmm0, xmm4
mov byte [esp + 9], 1
movss dword [eax + 0xc], xmm0
mov edx, dword [0x4bead0]
dec dword [edx + 0x49f0]
mov eax, dword [edx + 0x49f8]
mov ecx, dword [edx + 0x49f0]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x48dc], eax
mov edx, dword [esp + 0xc]
test edx, 0x100
jne 0x48832d
mov eax, dword [esp + 0x4c]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x38fc]
call fcn.004165f0
call fcn.00416bb0
mov edx, dword [esp + 0xc]
test dl, dl
js 0x48839b
mov ecx, dword [esp + 0x74]
cmp ecx, 0xffffffff
jae 0x48839b
nop word [eax + eax]
mov al, byte [ecx]
mov byte [esp + 0xb], al
test al, al
je 0x488359
cmp al, 0x23
jne 0x488353
cmp byte [ecx + 1], al
je 0x488359
inc ecx
cmp ecx, 0xffffffff
jb 0x488340
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], ecx
cmp eax, ecx
je 0x48839b
test edx, 0x100
je 0x488389
mov eax, dword [esp + 0x4c]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x38fc]
call fcn.004165f0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x74]
mov edx, ecx
mov ecx, eax
push 0
call fcn.00475c00
mov edx, dword [esp + 0x10]
add esp, 4
test edx, 0x100
jne 0x4885e6
mov eax, dword [0x4bead0]
mov ecx, dword [eax + 0x48dc]
or ecx, 0x10
mov dword [eax + 0x48dc], ecx
add eax, 0x49f0
mov dword [esp + 0xb4], ecx
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 4]
mov dword [esp + 0x68], ecx
cmp dword [eax], ecx
jne 0x488412
mov edx, dword [eax]
inc edx
mov dword [esp + 0x78], edx
test ecx, ecx
je 0x4883f8
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
mov ecx, eax
mov eax, dword [esp + 0x20]
sar ecx, 1
add ecx, dword [esp + 0x68]
jmp 0x4883fd
mov ecx, 8
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
push edx
call fcn.00428f20
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov edi, dword [esp + 0xb4]
mov dword [eax + ecx*4], edi
mov eax, dword [esp + 0x20]
inc dword [eax]
mov eax, dword [esp + 0x2c]
test dl, 2
je 0x48843a
movss xmm1, dword [0x4b6ac4]
jmp 0x48843f
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
mov edi, dword [esp + 0x54]
movss dword [esp + 0x118], xmm0
movss xmm0, dword [eax + 4]
movss dword [esp + 0x11c], xmm0
movss xmm0, dword [eax + 8]
movss dword [esp + 0x120], xmm0
movss dword [esp + 0x124], xmm1
test dl, dl
jns 0x48848a
push str.Current
call fcn.004762d0
mov edx, dword [esp + 0x10]
add esp, 4
movss xmm1, dword [esp + 0x70]
lea ecx, [esp + 0x10]
movaps xmm0, xmm1
and edx, 0x180e0040
mulss xmm0, dword [0x4b6b5c]
push ecx
mov dword [esp + 0xb8], edx
mov ecx, str.current
push edx
movss dword [esp + 0x70], xmm0
lea edx, [esp + 0x120]
movss dword [esp + 0x18], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x1c], xmm0
call fcn.00489fd0
add esp, 8
cmp dword [esp + 0x90], 0
je 0x4885bb
push str.Original
call fcn.004762d0
mov ecx, dword [esp + 0x10]
add esp, 4
mov eax, dword [esp + 0x90]
test cl, 2
je 0x488519
movss xmm1, dword [0x4b6ac4]
jmp 0x48851e
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0x108]
movss dword [esp + 0x108], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0x10c], xmm0
movss xmm0, dword [eax + 8]
lea eax, [esp + 0x10]
movss dword [esp + 0x110], xmm0
movss xmm0, dword [esp + 0x68]
push eax
push dword [esp + 0xb8]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x80]
movss dword [esp + 0x11c], xmm1
movss dword [esp + 0x1c], xmm0
call fcn.00489fd0
add esp, 8
test al, al
je 0x4885bb
xor eax, eax
cmp dword [esp + 0xa4], eax
sete al
lea eax, [eax*4 + 0xc]
push eax
push dword [esp + 0x94]
push dword [esp + 0x34]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 9], 1
mov edx, dword [0x4bead0]
dec dword [edx + 0x49f0]
mov eax, dword [edx + 0x49f8]
mov ecx, dword [edx + 0x49f0]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x48dc], eax
call fcn.00416d30
mov edx, dword [esp + 0xc]
cmp byte [esp + 0x27], 0
jne 0x4885f8
cmp byte [esp + 0xa], 0
je 0x488714
test edx, 0x8000000
je 0x4886e8
mov ecx, dword [esp + 0x2c]
movss xmm2, dword [esp + 0x64]
movss xmm1, dword [esp + 0x34]
movss xmm0, dword [esp + 0x1c]
lea eax, [ecx + 8]
push eax
lea edx, [ecx + 4]
call fcn.00404850
mov edx, dword [esp + 0x50]
add esp, 4
movss xmm0, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
movss xmm1, dword [0x4b6ac4]
mov eax, dword [edx + 0x5c98]
movss dword [edx + 0x5ca0], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [edx + 0x5ca4], xmm0
xorps xmm0, xmm0
mov dword [edx + 0x5c9c], eax
movss xmm2, dword [ecx]
comiss xmm0, xmm2
movss xmm4, dword [ecx + 4]
movss xmm5, dword [ecx + 8]
jbe 0x48867c
xorps xmm3, xmm3
jmp 0x488683
movaps xmm3, xmm1
minss xmm3, xmm2
comiss xmm0, xmm4
movss xmm6, dword [0x4b6c40]
movss xmm2, dword [0x4b6a7c]
mulss xmm3, xmm6
addss xmm3, xmm2
cvttss2si ecx, xmm3
jbe 0x4886a9
xorps xmm3, xmm3
jmp 0x4886b0
movaps xmm3, xmm1
minss xmm3, xmm4
mulss xmm3, xmm6
addss xmm3, xmm2
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm0, xmm5
jbe 0x4886cb
xorps xmm1, xmm1
jmp 0x4886cf
minss xmm1, xmm5
mulss xmm1, xmm6
addss xmm1, xmm2
cvttss2si eax, xmm1
shl eax, 0x10
or eax, ecx
mov dword [edx + 0x5ca8], eax
jmp 0x488714
test edx, 0x10000000
je 0x488714
mov eax, dword [esp + 0x2c]
movss xmm0, dword [esp + 0x1c]
movss dword [eax], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [eax + 4], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [eax + 8], xmm0
mov eax, dword [esp + 0xc]
mov byte [esp + 0xb], 0
test al, 0x20
jne 0x488961
cmp dword [esp + 0xd0], 0x10000
jne 0x48873d
movss xmm0, dword [esp + 0xcc]
jmp 0x488746
movss xmm0, dword [esp + 0x8c]
addss xmm0, dword [esp + 0x70]
subss xmm0, dword [esp + 0x58]
call fcn.004167e0
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0x198e005a
mov dword [esp + 0x20], ecx
test eax, 0x100000
jne 0x488775
test eax, 0x700000
jne 0x4887be
mov edx, dword [esp + 0x2c]
or ecx, 0x100004
push ecx
mov ecx, str.rgb
call fcn.00485dc0
add esp, 4
test al, al
je 0x4887b6
mov eax, dword [esp + 0x4c]
cmp dword [eax + 0x3fdc], 0
je 0x4887ac
cmp byte [eax + 0x3fe9], 0
mov byte [esp + 0xb], 1
je 0x4887b1
mov byte [esp + 0xb], 0
mov byte [esp + 9], 1
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
test eax, 0x200000
jne 0x4887cc
test eax, 0x700000
jne 0x4887ec
mov edx, dword [esp + 0x2c]
or ecx, 0x200004
push ecx
mov ecx, str.hsv
call fcn.00485dc0
add esp, 4
or byte [esp + 9], al
mov eax, dword [esp + 0xc]
test eax, 0x400000
jne 0x4887fa
test eax, 0x700000
jne 0x488819
mov eax, dword [esp + 0x20]
mov ecx, str.hex
mov edx, dword [esp + 0x2c]
or eax, 0x400004
push eax
call fcn.00485dc0
add esp, 4
or byte [esp + 9], al
cmp byte [esp + 0xb], 0
mov ecx, dword [0x4bead0]
mov eax, dword [ecx + 0x3f8c]
mov byte [eax + 0xb0], 1
mov edx, dword [ecx + 0x3f8c]
mov ecx, dword [edx + 0x1b4]
mov eax, dword [edx + 0x1bc]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x1ac], eax
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0x1b4], eax
mov eax, dword [esp + 0xc]
je 0x488965
test eax, 0x8000000
je 0x488965
movss xmm3, dword [ecx + 4]
xorps xmm2, xmm2
movss xmm5, dword [ecx + 8]
xorps xmm6, xmm6
comiss xmm5, xmm3
movss xmm4, dword [ecx]
jbe 0x488899
movss xmm6, dword [0x4b6cc0]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x4888b6
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x4b6cac]
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 [0x4b69fc]
movaps xmm7, xmm1
mulss xmm1, dword [0x4b6b94]
divss xmm7, xmm0
addss xmm1, dword [0x4b69fc]
divss xmm3, xmm1
addss xmm3, xmm6
movss xmm6, dword [0x4b6f10]
andps xmm3, xmm6
comiss xmm2, xmm3
jb 0x48896d
movss xmm0, dword [esp + 0x1c]
comiss xmm0, xmm2
jbe 0x48896d
comiss xmm2, xmm4
jb 0x488938
movss xmm1, dword [esp + 0x64]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x488934
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x34]
mulss xmm2, dword [0x4b6a7c]
jmp 0x48894e
mov eax, dword [esp + 0xc]
comiss xmm2, xmm7
jb 0x48896d
movss xmm1, dword [esp + 0x34]
movaps xmm2, xmm4
mulss xmm1, dword [0x4b6a7c]
lea eax, [ecx + 8]
push eax
lea edx, [ecx + 4]
call fcn.00404850
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, dword [esp + 0x2c]
movss xmm6, dword [0x4b6f10]
cmp byte [esp + 9], 0
je 0x488ae1
test eax, 0x8000000
je 0x488a69
movss xmm0, dword [ecx + 4]
xorps xmm3, xmm3
movss xmm1, dword [ecx + 8]
movaps xmm2, xmm0
comiss xmm1, xmm0
movss xmm7, dword [ecx]
movaps xmm5, xmm1
movss dword [esp + 0x7c], xmm7
movss dword [esp + 0x50], xmm0
movss dword [esp + 0x44], xmm1
jbe 0x4889bf
movss xmm3, dword [0x4b6cc0]
movaps xmm2, xmm1
movaps xmm5, xmm0
comiss xmm2, xmm7
movaps xmm4, xmm7
movss dword [esp + 0x64], xmm4
jbe 0x4889e8
movss xmm0, dword [0x4b6cac]
movaps xmm4, xmm2
subss xmm0, xmm3
movss dword [esp + 0x64], xmm4
movaps xmm2, xmm7
movaps xmm3, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x1c], xmm4
minss xmm0, xmm5
movaps xmm1, xmm4
subss xmm2, xmm5
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x38]
subss xmm1, xmm0
push eax
lea edx, [esp + 0x50]
movaps xmm0, xmm1
mulss xmm0, dword [0x4b6b94]
addss xmm0, dword [0x4b69fc]
divss xmm2, xmm0
movaps xmm0, xmm4
addss xmm0, dword [0x4b69fc]
addss xmm2, xmm3
divss xmm1, xmm0
andps xmm2, xmm6
movss dword [esp + 0x50], xmm2
movss dword [esp + 0x3c], xmm1
call fcn.00485ca0
movss xmm1, dword [esp + 0x50]
add esp, 8
movss xmm0, dword [esp + 0x34]
movss dword [esp + 0x1c], xmm1
movss dword [esp + 0x34], xmm0
jmp 0x488ae7
test eax, 0x10000000
je 0x488ae1
movss xmm1, dword [ecx + 8]
lea eax, [esp + 0x84]
movss xmm3, dword [ecx + 4]
lea edx, [esp + 0x88]
movss xmm0, dword [ecx]
movaps xmm2, xmm1
movss dword [esp + 0x64], xmm1
lea ecx, [esp + 0x80]
push eax
movaps xmm1, xmm3
movss dword [esp + 0x20], xmm0
movss dword [esp + 0x38], xmm3
call fcn.00404850
movss xmm0, dword [esp + 0x84]
add esp, 4
movss dword [esp + 0x7c], xmm0
movss xmm0, dword [esp + 0x88]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0x84]
movss dword [esp + 0x44], xmm0
movss xmm1, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
xorps xmm0, xmm0
movss xmm2, dword [eax + 0x38a8]
comiss xmm0, xmm2
ja 0x488b07
movss xmm0, dword [0x4b6ac4]
minss xmm0, xmm2
mulss xmm0, dword [0x4b6c40]
addss xmm0, dword [0x4b6a7c]
cvttss2si edx, xmm0
cvtps2pd xmm0, xmm1
shl edx, 0x18
mov eax, edx
mov dword [esp + 0x9c], edx
or eax, 0xffffff
mov ecx, edx
mov dword [esp + 0x48], eax
or ecx, 0xff
mov eax, edx
mov dword [esp + 0xdc], ecx
or eax, 0x808080
mov dword [esp + 0xf4], ecx
mov dword [esp + 0x74], eax
mov eax, edx
or eax, 0xffff
movsd qword [esp + 0x10], xmm0
fld qword [esp + 0x10]
mov dword [esp + 0xe0], eax
mov eax, edx
or eax, 0xff00
fld1
mov dword [esp + 0xe4], eax
mov eax, edx
or eax, 0xffff00
mov dword [esp + 0xe8], eax
mov eax, edx
or eax, 0xff0000
mov dword [esp + 0xec], eax
mov eax, edx
or eax, 0xff00ff
mov dword [esp + 0xf0], eax
call sub.api_ms_win_crt_math_l1_1_0.dll__CIfmod
fstp qword [esp + 0x10]
movsd xmm1, qword [esp + 0x10]
cvtpd2ps xmm1, xmm1
movss xmm2, dword [0x4b6ac4]
divss xmm1, dword [0x4b6a4c]
movaps xmm4, xmm2
movaps xmm3, xmm2
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
subss xmm4, xmm1
subss xmm3, xmm4
cmp eax, 5
ja case.0x488beb.5
jmp dword [eax*4 + 0x489fb0]
movaps xmm5, xmm3
xorps xmm3, xmm3
jmp 0x488c29
movaps xmm1, xmm4
movaps xmm5, xmm2
xorps xmm3, xmm3
jmp 0x488c2c
xorps xmm1, xmm1
movaps xmm5, xmm2
jmp 0x488c2c
xorps xmm1, xmm1
movaps xmm5, xmm4
movaps xmm3, xmm2
jmp 0x488c2c
movaps xmm1, xmm3
xorps xmm5, xmm5
movaps xmm3, xmm2
jmp 0x488c2c
xorps xmm5, xmm5
movaps xmm3, xmm4
movaps xmm1, xmm2
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x488c39
xorps xmm4, xmm4
jmp 0x488c40
movaps xmm4, xmm2
minss xmm4, xmm1
comiss xmm0, xmm5
movss xmm6, dword [0x4b6c40]
movss xmm1, dword [0x4b6a7c]
mulss xmm4, xmm6
addss xmm4, xmm1
cvttss2si ecx, xmm4
jbe 0x488c66
xorps xmm4, xmm4
jmp 0x488c6d
movaps xmm4, xmm2
minss xmm4, xmm5
mulss xmm4, xmm6
addss xmm4, xmm1
cvttss2si eax, xmm4
shl eax, 8
or ecx, eax
comiss xmm0, xmm3
jbe 0x488c88
xorps xmm4, xmm4
jmp 0x488c8f
movaps xmm4, xmm2
minss xmm4, xmm3
mulss xmm4, xmm6
addss xmm4, xmm1
cvttss2si eax, xmm4
shl eax, 0x10
or ecx, eax
mov eax, dword [esp + 0x4c]
movss xmm4, dword [eax + 0x38a8]
comiss xmm0, xmm4
jbe 0x488cb6
xorps xmm3, xmm3
jmp 0x488cbd
movaps xmm3, xmm2
minss xmm3, xmm4
movss xmm5, dword [esp + 0x7c]
mulss xmm3, xmm6
addss xmm3, xmm1
cvttss2si edx, xmm3
shl edx, 0x18
or edx, ecx
comiss xmm0, xmm5
mov dword [esp + 0xa8], edx
jbe 0x488ce5
xorps xmm3, xmm3
jmp 0x488cec
movaps xmm3, xmm2
minss xmm3, xmm5
movss xmm5, dword [esp + 0x50]
comiss xmm0, xmm5
mulss xmm3, xmm6
addss xmm3, xmm1
cvttss2si ecx, xmm3
jbe 0x488d08
xorps xmm3, xmm3
jmp 0x488d0f
movaps xmm3, xmm2
minss xmm3, xmm5
movss xmm5, dword [esp + 0x44]
mulss xmm3, xmm6
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm0, xmm5
jbe 0x488d30
xorps xmm3, xmm3
jmp 0x488d37
movaps xmm3, xmm2
minss xmm3, xmm5
mulss xmm3, xmm6
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm4
ja 0x488d54
movaps xmm0, xmm2
minss xmm0, xmm4
mulss xmm0, xmm6
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
addss xmm0, xmm1
cvttss2si eax, xmm0
shl eax, 0x18
or eax, ecx
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xc]
test eax, 0x4000000
je 0x489678
movss xmm0, dword [esp + 0xd4]
movaps xmm3, xmm1
movss xmm4, dword [esp + 0x94]
mov eax, 0x2aaaaaab
divss xmm3, xmm0
mov esi, dword [esp + 0x54]
addss xmm4, xmm0
cvttss2si ecx, xmm0
mulss xmm4, xmm1
imul ecx
movss dword [esp + 0x118], xmm3
movss dword [esp + 0x108], xmm4
mov eax, 4
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, eax
cmovle ecx, eax
xor eax, eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x44], eax
nop word [eax + eax]
movd xmm1, eax
lea eax, [esp + 0xf8]
cvtdq2ps xmm1, xmm1
mov edi, dword [esi + 0x18]
push ecx
push ecx
mov ecx, esi
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [0x4b6b94]
divss xmm1, dword [0x4b6b94]
addss xmm0, xmm0
movaps xmm2, xmm4
addss xmm1, xmm1
mulss xmm0, dword [0x4b6b64]
mulss xmm1, dword [0x4b6b64]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0x28], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x5c], xmm1
call fcn.00460ca0
movss xmm0, dword [esp + 0x6c]
push ecx
movss dword [esp], xmm0
mov ecx, esi
push 0
push dword [esp + 0x50]
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.0045f840
movss xmm0, dword [esp + 0x20]
cvtps2pd xmm0, xmm0
mov dword [esi + 0x54], 0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x20]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x94]
addss xmm0, dword [esp + 0xc8]
movss dword [esp + 0x90], 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 + 0x94]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x80], xmm0
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 + 0x94]
addss xmm0, dword [esp + 0xc8]
movss dword [esp + 0x20], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm2, dword [esp + 0x20]
subss xmm2, dword [esp + 0x90]
cvtsd2ss xmm0, xmm0
mov eax, dword [esp + 0x44]
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + eax*4 + 0xdc]
mulss xmm0, dword [esp + 0x94]
mov eax, dword [esi + 0x18]
movss dword [esp + 0x20], xmm2
addss xmm0, dword [esp + 0xc4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
subss xmm0, dword [esp + 0x80]
movaps xmm1, xmm0
movss dword [esp + 0x8c], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm2, dword [0x4b6ac4]
addss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
movss dword [esp + 0xc], xmm0
mov dword [esp + 0x68], eax
movzx eax, cl
mov dword [esp + 0x88], eax
mov eax, ecx
shr eax, 8
movzx eax, al
mov dword [esp + 0x84], eax
shr ecx, 0x10
movzx eax, cl
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + eax*4 + 0xe0]
movzx eax, cl
sub eax, dword [esp + 0x88]
mov dword [esp + 0xb4], eax
mov eax, ecx
shr eax, 8
movzx eax, al
sub eax, dword [esp + 0x84]
shr ecx, 0x10
mov dword [esp + 0x78], eax
lea eax, [edi + edi*4]
mov edi, dword [esp + 0x68]
lea edx, [edx + eax*4]
movzx ecx, cl
sub ecx, dword [esp + 0x50]
cmp edx, edi
jae 0x4890dd
movd xmm4, dword [esp + 0x50]
movd xmm5, dword [esp + 0x78]
movd xmm6, dword [esp + 0x84]
movd xmm7, dword [esp + 0xb4]
mov esi, dword [esp + 0x88]
movd xmm3, ecx
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
movss xmm0, dword [edx]
movss xmm1, dword [edx + 4]
subss xmm1, dword [esp + 0x80]
subss xmm0, dword [esp + 0x90]
mulss xmm1, dword [esp + 0x8c]
mulss xmm0, dword [esp + 0x20]
addss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, dword [esp + 0xc]
comiss xmm0, xmm1
jbe 0x489077
xorps xmm2, xmm2
jmp 0x48907b
minss xmm2, xmm1
movaps xmm0, xmm3
movd xmm1, esi
mulss xmm0, xmm2
cvtdq2ps xmm1, xmm1
addss xmm0, xmm4
cvttss2si ecx, xmm0
movaps xmm0, xmm5
mulss xmm0, xmm2
shl ecx, 8
addss xmm0, xmm6
cvttss2si eax, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm2
or ecx, eax
shl ecx, 8
movss xmm2, dword [0x4b6ac4]
addss xmm0, xmm1
cvttss2si eax, xmm0
or ecx, eax
mov eax, dword [edx + 0x10]
and eax, 0xff000000
or ecx, eax
mov dword [edx + 0x10], ecx
add edx, 0x14
cmp edx, edi
jb 0x489036
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
movss xmm4, dword [esp + 0x108]
inc eax
movss xmm3, dword [esp + 0x118]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x44], eax
cmp eax, 6
jl 0x488df0
movss xmm0, dword [esp + 0x1c]
mulss xmm0, dword [0x4b6b38]
mulss xmm0, dword [0x4b6b64]
movss dword [esp + 0x1c], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm3, dword [esp + 0x1c]
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 + 0x27], 0
xorps xmm2, xmm2
movss xmm3, dword [esp + 0x94]
addss xmm3, dword [esp + 0xd4]
cvtsd2ss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x50]
mulss xmm3, xmm2
mulss xmm0, dword [0x4b6a7c]
mulss xmm3, dword [0x4b6a7c]
addss xmm0, dword [esp + 0xc8]
movss dword [esp + 0x118], xmm2
addss xmm3, dword [esp + 0xc4]
movss dword [esp + 0x108], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x10c], xmm3
je 0x4891bb
mulss xmm0, dword [0x4b6a88]
jmp 0x4891c3
mulss xmm0, dword [0x4b6a80]
movaps xmm1, xmm0
movss dword [esp + 0x44], xmm0
mov ecx, esi
call fcn.0045f570
movss xmm2, dword [esp + 0x44]
mov edi, eax
push edi
push dword [esp + 0xac]
lea eax, [esp + 0x110]
mov dword [esp + 0x60], edi
push eax
mov ecx, esi
call fcn.00462710
test dword [esp + 0x74], 0xff000000
movss xmm4, dword [esp + 0x44]
movss xmm2, dword [0x4b6ac4]
movaps xmm5, xmm4
mov esi, dword [esp + 0xbc]
addss xmm5, xmm2
movss xmm3, dword [0x4b6a7c]
je 0x4892ee
comiss xmm3, xmm5
ja 0x4892ee
test edi, edi
jg 0x489259
mov edi, dword [esp + 0x54]
subss xmm5, xmm3
push ecx
push 0x30
push 0
lea eax, [esp + 0x114]
mov ecx, edi
push eax
movaps xmm2, xmm5
call fcn.004608c0
dec dword [edi + 0x54]
jmp 0x4892b4
cmp edi, 3
jge 0x489265
mov eax, 3
jmp 0x489275
cmp edi, 0x200
mov eax, edi
mov ecx, 0x200
cmovg eax, ecx
movd xmm1, eax
subss xmm5, xmm3
cvtdq2ps xmm1, xmm1
mov edi, dword [esp + 0x54]
dec eax
push eax
push ecx
lea eax, [esp + 0x110]
mov ecx, edi
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, xmm2
movaps xmm2, xmm5
mulss xmm0, dword [0x4b6b9c]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.00460ca0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push dword [esp + 0x7c]
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.0045f840
movss xmm2, dword [0x4b6ac4]
movss xmm4, dword [esp + 0x44]
movss xmm3, dword [0x4b6a7c]
mov dword [edi + 0x54], 0
jmp 0x4892f2
mov edi, dword [esp + 0x54]
test dword [esp + 0x48], 0xff000000
je 0x4893a7
comiss xmm3, xmm4
ja 0x4893a7
mov eax, dword [esp + 0x58]
test eax, eax
jg 0x489331
push ecx
subss xmm4, xmm3
mov ecx, edi
push 0x30
push 0
lea eax, [esp + 0x114]
push eax
movaps xmm2, xmm4
call fcn.004608c0
dec dword [edi + 0x54]
jmp 0x489385
cmp eax, 3
jge 0x48933d
mov eax, 3
jmp 0x48934a
cmp eax, 0x200
mov ecx, 0x200
cmovg eax, ecx
movd xmm1, eax
subss xmm4, xmm3
cvtdq2ps xmm1, xmm1
dec eax
push eax
lea eax, [esp + 0x10c]
push ecx
xorps xmm3, xmm3
mov ecx, edi
movaps xmm0, xmm1
subss xmm0, xmm2
movaps xmm2, xmm4
mulss xmm0, dword [0x4b6b9c]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.00460ca0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push dword [esp + 0x50]
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.0045f840
mov dword [edi + 0x54], 0
movss xmm3, dword [esp + 0x50]
xorps xmm1, xmm1
movss xmm5, dword [esp + 0x118]
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x38]
movaps xmm0, xmm5
mov eax, dword [0x4bead0]
mov ecx, edi
movss xmm6, dword [esp + 0xc8]
movaps xmm4, xmm3
mulss xmm0, xmm1
push 3
movss xmm7, dword [esp + 0xc8]
mulss xmm4, dword [esp + 0xb4]
push 3
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0xb8]
addss xmm2, xmm6
movss dword [esp + 0x110], xmm2
movss dword [esp + 0xc4], xmm2
movaps xmm2, xmm5
mulss xmm2, dword [esp + 0x40]
addss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0xa0]
mulss xmm5, dword [esp + 0xb4]
addss xmm2, xmm7
movss dword [esp + 0x80], xmm2
movss dword [esp + 0xc8], xmm2
movaps xmm2, xmm4
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0xa0]
subss xmm4, xmm5
mulss xmm3, dword [esp + 0xb4]
addss xmm0, xmm1
addss xmm4, xmm6
addss xmm3, xmm1
addss xmm2, xmm6
addss xmm0, xmm7
movss dword [esp + 0x70], xmm4
addss xmm3, xmm7
movss dword [esp + 0xbc], xmm4
movss dword [esp + 0x40], xmm2
movss dword [esp + 0x44], xmm0
movss xmm0, dword [eax + 0x3cfc]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [eax + 0x3d00]
movss dword [esp + 0x58], xmm3
movss dword [esp + 0xc0], xmm3
movss dword [esp + 0x120], xmm0
call fcn.0045f620
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
mov edx, dword [esp + 0xc0]
movss xmm0, dword [esp + 0x58]
movss xmm1, dword [esp + 0x118]
mov word [ecx], ax
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
mov ecx, dword [esp + 0xbc]
mov dword [eax], ecx
mov ecx, dword [esp + 0xa8]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
mov edx, dword [esp + 0x3c]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x38]
inc dword [edi + 0x28]
add dword [edi + 0x34], 0x14
mov ecx, dword [edi + 0x28]
mov word [eax], cx
add dword [edi + 0x38], 2
mov ecx, dword [esp + 0x38]
mov eax, dword [edi + 0x34]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xb8]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x38]
add dword [edi + 0x34], 0x14
inc dword [edi + 0x28]
mov ecx, dword [edi + 0x28]
mov word [eax], cx
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
mov ecx, dword [esp + 0xb4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
push ecx
mov dword [esp], 0x3fc00000
push dword [esp + 0x78]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], ecx
lea eax, [esp + 0xbc]
add dword [edi + 0x34], 0x14
mov ecx, edi
inc dword [edi + 0x28]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.004624e0
movss xmm2, dword [0x4b6ac4]
xorps xmm0, xmm0
movaps xmm1, xmm2
subss xmm1, dword [esp + 0x64]
comiss xmm0, xmm1
jbe 0x4895f6
xorps xmm4, xmm4
jmp 0x4895fd
movaps xmm4, xmm2
minss xmm4, xmm1
movss xmm3, dword [esp + 0x34]
comiss xmm0, xmm3
jbe 0x48960d
xorps xmm1, xmm1
jmp 0x489614
movaps xmm1, xmm2
minss xmm1, xmm3
movss xmm0, dword [esp + 0x108]
subss xmm0, dword [esp + 0x68]
movss xmm3, dword [esp + 0x38]
mulss xmm0, xmm1
addss xmm0, dword [esp + 0x68]
subss xmm3, xmm0
mulss xmm3, xmm4
addss xmm3, xmm0
movss xmm0, dword [esp + 0x78]
subss xmm0, dword [esp + 0x50]
movss dword [esp + 0x10], xmm3
mulss xmm0, xmm1
movss xmm1, dword [esp + 0x3c]
addss xmm0, dword [esp + 0x50]
subss xmm1, xmm0
mulss xmm1, xmm4
addss xmm1, xmm0
movss dword [esp + 0x14], xmm1
jmp 0x4899d4
test eax, 0x2000000
je 0x4899d4
movss xmm0, dword [esp + 0x58]
mov ecx, edi
addss xmm0, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
push eax
push edx
push edx
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x3c]
addss xmm0, dword [esp + 0x34]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x6c]
push eax
movss dword [esp + 0x54], xmm0
call fcn.00462210
mov ecx, dword [esp + 0x9c]
lea eax, [esp + 0xf8]
movss xmm0, dword [esp + 0x58]
addss xmm0, dword [esp + 0x28]
push ecx
push ecx
push 0
push 0
push eax
movss dword [esp + 0x10c], xmm0
lea eax, [esp + 0x6c]
movss xmm0, dword [esp + 0x50]
mov ecx, edi
push eax
movss dword [esp + 0x114], xmm0
call fcn.00462210
movss xmm0, dword [esp + 0x58]
addss xmm0, dword [esp + 0x28]
movss dword [esp + 0x118], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x11c], xmm0
xorps xmm0, xmm0
push dword [esp + 0x11c]
push dword [esp + 0x11c]
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.00406e40
movss xmm2, dword [esp + 0x44]
xorps xmm0, xmm0
movss xmm1, dword [0x4b6ac4]
add esp, 0x10
comiss xmm0, xmm2
jbe 0x489765
xorps xmm3, xmm3
jmp 0x48976c
movaps xmm3, xmm1
minss xmm3, xmm2
movss xmm7, dword [esp + 0x28]
movss xmm5, dword [esp + 0x58]
movss xmm2, dword [0x4b6a7c]
mulss xmm3, xmm7
movss xmm6, dword [0x4b6b38]
addss xmm3, xmm5
addss xmm3, xmm2
cvttss2si eax, xmm3
movaps xmm3, xmm5
addss xmm5, xmm7
addss xmm3, xmm6
movd xmm4, eax
cvtdq2ps xmm4, xmm4
subss xmm5, xmm6
comiss xmm3, xmm4
jbe 0x4897bb
movss dword [esp + 0x10], xmm3
jmp 0x4897ce
comiss xmm4, xmm5
jbe 0x4897c8
movss dword [esp + 0x10], xmm5
jmp 0x4897ce
movss dword [esp + 0x10], xmm4
movaps xmm3, xmm1
subss xmm3, dword [esp + 0x64]
comiss xmm0, xmm3
jbe 0x4897e1
xorps xmm1, xmm1
jmp 0x4897e5
minss xmm1, xmm3
movss xmm3, dword [esp + 0x30]
mulss xmm1, xmm7
movss xmm0, dword [esp + 0x3c]
subss xmm0, xmm6
addss xmm1, xmm3
addss xmm1, xmm2
cvttss2si eax, xmm1
movaps xmm1, xmm3
addss xmm1, xmm6
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x489820
movss dword [esp + 0x14], xmm1
jmp 0x489833
comiss xmm2, xmm0
jbe 0x48982d
movss dword [esp + 0x14], xmm0
jmp 0x489833
movss dword [esp + 0x14], xmm2
movss xmm2, dword [esp + 0x8c]
movaps xmm1, xmm7
divss xmm1, dword [0x4b6b94]
mov esi, dword [esp + 0x54]
xor ecx, ecx
movaps xmm0, xmm2
movss dword [esp + 0x38], xmm2
addss xmm0, dword [esp + 0x70]
movss dword [esp + 0x58], xmm1
movss dword [esp + 0xf8], xmm0
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0xe0]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x100]
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0x104], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0xe4]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0x54], xmm0
call fcn.00462210
movss xmm1, dword [esp + 0x58]
mov ecx, edi
movss xmm3, dword [esp + 0x30]
cmp ecx, 6
jl 0x489870
movss xmm2, dword [esp + 0x30]
movss xmm3, dword [esp + 0x8c]
movaps xmm0, xmm2
addss xmm0, dword [esp + 0x28]
movaps xmm1, xmm3
movss dword [esp + 0x5c], xmm2
addss xmm1, dword [esp + 0x70]
movss dword [esp + 0x58], xmm3
movss dword [esp + 0x3c], xmm0
xorps xmm0, xmm0
push dword [esp + 0x3c]
movss dword [esp + 0x3c], xmm1
push dword [esp + 0x3c]
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.00406e40
mov esi, dword [esp + 0xcc]
movss xmm1, dword [esp + 0x80]
addss xmm1, dword [0x4b6b38]
mov edi, dword [esp + 0x64]
mov ecx, edi
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x4c], xmm2
addss xmm0, dword [0x4b6ac4]
movss xmm2, dword [esp + 0x9c]
push dword [esp + 0x4c]
subss xmm2, dword [0x4b6ac4]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esp + 0x30]
mulss xmm0, dword [esp + 0x3c]
push dword [esp + 0x4c]
movss dword [esp + 0x70], xmm2
addss xmm0, dword [esp + 0x48]
addss xmm0, dword [0x4b6a7c]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x64]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x38a8]
movss dword [esp + 0x74], xmm0
push dword [esp + 0x74]
push dword [esp + 0x74]
call fcn.00487160
movss xmm2, dword [0x4b6ac4]
add esp, 0x20
cmp byte [esp + 0xa], 0
movss xmm4, dword [esp + 0x6c]
je 0x4899eb
mulss xmm4, dword [0x4b6a80]
jmp 0x4899f3
mulss xmm4, dword [0x4b6a6c]
mov ecx, dword [edi + 0x2c]
movaps xmm0, xmm4
addss xmm0, dword [0x4b6ac0]
movss dword [esp + 0x6c], xmm4
cvttss2si eax, xmm0
cmp eax, 0x3f
ja 0x489a22
movzx eax, byte [eax + ecx + 0x1bc]
mov edx, 0x200
jmp 0x489aad
movss xmm1, dword [ecx + 0x14]
movaps xmm0, xmm2
minss xmm1, xmm4
divss xmm1, xmm4
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x4b6b64]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x100], xmm0
fld qword [esp + 0x100]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movss xmm4, dword [esp + 0x74]
add esp, 8
fstp qword [esp + 0xf8]
movsd xmm0, qword [esp + 0xf8]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
mov edx, 0x200
and eax, 0xfffffffe
cmp eax, 4
jge 0x489aa5
mov eax, 4
jmp 0x489aad
cmp eax, 0x200
cmovg eax, edx
test dword [esp + 0x7c], 0xff000000
movss xmm3, dword [0x4b6a7c]
mov dword [esp + 0x44], eax
je 0x489b5d
comiss xmm3, xmm4
ja 0x489b5d
test eax, eax
jg 0x489aed
push ecx
push 0x30
push 0
lea eax, [esp + 0x1c]
movaps xmm2, xmm4
push eax
mov ecx, edi
call fcn.004608c0
dec dword [edi + 0x54]
jmp 0x489b3d
cmp eax, 3
jge 0x489af9
mov ecx, 3
jmp 0x489b03
cmp eax, 0x200
mov ecx, eax
cmovg ecx, edx
movd xmm1, ecx
lea eax, [ecx - 1]
cvtdq2ps xmm1, xmm1
push eax
push ecx
lea eax, [esp + 0x18]
mov ecx, edi
xorps xmm3, xmm3
movaps xmm2, xmm4
movaps xmm0, xmm1
subss xmm0, dword [0x4b6ac4]
mulss xmm0, dword [0x4b6b9c]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.00460ca0
push dword [esp + 0x7c]
mov ecx, edi
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.00460500
movss xmm3, dword [0x4b6a7c]
mov dword [edi + 0x54], 0
test dword [esp + 0x74], 0xff000000
movss xmm5, dword [esp + 0x6c]
movss xmm2, dword [0x4b6ac4]
movaps xmm4, xmm5
addss xmm4, xmm2
je 0x489c33
comiss xmm3, xmm4
ja 0x489c33
mov eax, dword [esp + 0x44]
test eax, eax
jg 0x489bae
push ecx
subss xmm4, xmm3
mov ecx, edi
push 0x30
push 0
lea eax, [esp + 0x1c]
push eax
movaps xmm2, xmm4
call fcn.004608c0
dec dword [edi + 0x54]
jmp 0x489c03
cmp eax, 3
jge 0x489bba
mov ecx, 3
jmp 0x489bc9
mov ecx, eax
cmp eax, 0x200
mov eax, 0x200
cmovg ecx, eax
movd xmm1, ecx
lea eax, [ecx - 1]
cvtdq2ps xmm1, xmm1
push eax
push ecx
mov ecx, edi
lea eax, [esp + 0x18]
subss xmm4, xmm3
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, xmm2
movaps xmm2, xmm4
mulss xmm0, dword [0x4b6b9c]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.00460ca0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push dword [esp + 0x7c]
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.0045f840
movss xmm2, dword [0x4b6ac4]
movss xmm5, dword [esp + 0x6c]
mov dword [edi + 0x54], 0
test dword [esp + 0x48], 0xff000000
movss xmm3, dword [0x4b6a7c]
je 0x489cf2
comiss xmm3, xmm5
ja 0x489cf2
mov eax, dword [esp + 0x44]
test eax, eax
jg 0x489c77
push ecx
subss xmm5, xmm3
mov ecx, edi
push 0x30
push 0
lea eax, [esp + 0x1c]
push eax
movaps xmm2, xmm5
call fcn.004608c0
dec dword [edi + 0x54]
jmp 0x489cc8
cmp eax, 3
jge 0x489c83
mov eax, 3
jmp 0x489c90
cmp eax, 0x200
mov ecx, 0x200
cmovg eax, ecx
movd xmm1, eax
subss xmm5, xmm3
cvtdq2ps xmm1, xmm1
dec eax
push eax
lea eax, [esp + 0x14]
push ecx
xorps xmm3, xmm3
mov ecx, edi
movaps xmm0, xmm1
subss xmm0, xmm2
movaps xmm2, xmm5
mulss xmm0, dword [0x4b6b9c]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.00460ca0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push dword [esp + 0x50]
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.0045f840
movss xmm3, dword [0x4b6a7c]
mov dword [edi + 0x54], 0
cmp dword [esp + 0xd0], 0x10000
jne 0x489ead
mov eax, dword [esp + 0x2c]
xorps xmm1, xmm1
movss xmm2, dword [eax + 0xc]
comiss xmm1, xmm2
jbe 0x489d1f
movss dword [esp + 0x9c], xmm1
jmp 0x489d34
movss xmm0, dword [0x4b6ac4]
minss xmm0, xmm2
movss dword [esp + 0x9c], xmm0
movss xmm4, dword [esp + 0xcc]
xor edx, edx
movss xmm0, dword [esp + 0x30]
movaps xmm2, xmm4
addss xmm2, dword [esp + 0x70]
mov ecx, dword [esp + 0x54]
movss dword [esp + 0xfc], xmm0
addss xmm0, dword [esp + 0x28]
mov dword [esp + 0x3c], 0
push dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
push dword [esp + 0x3c]
movss dword [esp + 0x108], xmm2
subss xmm2, xmm4
movss dword [esp + 0x10c], xmm0
push dword [esp + 0x10c]
movss dword [esp + 0x104], xmm4
push dword [esp + 0x10c]
mov edi, dword [esp + 0x108]
push dword [esp + 0x10c]
mulss xmm2, xmm3
xorps xmm3, xmm3
push edi
push 0
call fcn.00467ba0
mov ecx, dword [esp + 0x98]
add esp, 0x1c
mov eax, ecx
and eax, 0xffffff
push eax
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.00462210
push dword [esp + 0x104]
xorps xmm0, xmm0
push dword [esp + 0x104]
push dword [esp + 0x104]
push edi
call fcn.00406e40
movss xmm1, dword [0x4b6ac4]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
movaps xmm0, xmm2
movss dword [esp + 0x4c], xmm2
movss xmm2, dword [esp + 0xdc]
addss xmm0, xmm1
subss xmm2, xmm1
subss xmm1, dword [esp + 0xac]
push dword [esp + 0x4c]
movss dword [esp + 0x4c], xmm0
push dword [esp + 0x4c]
mulss xmm1, dword [esp + 0x40]
movss dword [esp + 0x28], xmm2
movss xmm2, dword [edi + 0x38a8]
addss xmm1, dword [esp + 0x48]
addss xmm1, dword [0x4b6a7c]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x88]
addss xmm1, dword [0x4b6b38]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x2c], xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00487160
add esp, 0x20
jmp 0x489eb1
mov edi, dword [esp + 0x4c]
call fcn.00416d30
mov dl, byte [esp + 9]
test dl, dl
je 0x489fa7
mov ecx, dword [esp + 0x2c]
lea esi, [esp + 0x12c]
xor edx, edx
cmp dword [esp + 0xa4], edx
sete dl
lea edx, [edx*4 + 0xc]
sub edx, 4
jb 0x489ef6
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x489eff
add esi, 4
add ecx, 4
sub edx, 4
jae 0x489ee5
cmp edx, 0xfffffffc
je 0x489fa5
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x489f34
cmp edx, 0xfffffffd
je 0x489fa5
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x489f34
cmp edx, 0xfffffffe
je 0x489fa5
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x489f34
cmp edx, 0xffffffff
je 0x489fa5
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x489fa5
mov ecx, dword [edi + 0x4908]
mov eax, dword [0x4bead0]
test ecx, ecx
je 0x489f6b
cmp word [eax + 0x5d1e], 0
jg 0x489f6b
mov edx, dword [eax + 0x3fdc]
cmp edx, ecx
je 0x489f5b
test edx, edx
jne 0x489f64
mov word [eax + 0x3fec], 0x101
or dword [eax + 0x4910], 4
mov dl, byte [esp + 9]
cmp dword [esp + 0xd8], 0
jne 0x489f83
mov dword [edi + 0x5c98], 0
mov ecx, dword [eax + 0x3f8c]
mov al, dl
pop edi
pop esi
dec dword [ecx + 0xec]
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0049c694
mov esp, ebp
pop ebp
ret
xor dl, dl
mov eax, dword [0x4bead0]
jmp 0x489f6f