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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x140
mov eax, dword [0x1004f00c]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xac], ecx
mov ecx, dword [0x1004fc68]
mov dword [esp + 0xa8], eax
push esi
push edi
mov eax, dword [ecx + 0x3f8c]
mov dword [esp + 0x88], edx
mov dword [esp + 0x40], ecx
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3f8c]
mov dword [esp + 0x80], eax
cmp byte [eax + 0xb3], 0
je 0x1003e1a7
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.1004437c
mov esp, ebp
pop ebp
ret
test byte [ecx + 0x48e8], 1
mov edx, dword [eax + 0x270]
mov dword [esp + 0x28], edx
je 0x1003e1c4
movss xmm1, dword [ecx + 0x48f8]
jmp 0x1003e1cc
movss xmm1, dword [eax + 0x1ac]
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1003e20d
cmp dword [eax + 0x198], 0
jne 0x1003e1eb
cmp dword [ecx + 0x4ce0], 0
mov edx, 0x234
je 0x1003e1f0
mov edx, 0x204
movss xmm0, dword [eax + edx]
subss xmm0, dword [eax + 0xf8]
addss xmm0, xmm1
movss xmm1, dword [0x1004c7a8]
maxss xmm1, xmm0
mov edx, dword [ecx + 0x48ec]
mov eax, dword [ecx + 0x48dc]
mov dword [ecx + 0x48e8], 0
mov dword [ecx + 0x48ec], 0
mov edi, dword [ecx + 0x3f8c]
shr edx, 7
shr eax, 7
or dl, al
mov ecx, dword [edi + 0xec]
and edx, 0xffffff01
mov eax, dword [edi + 0xf4]
mov dword [esp + 0x2c], edx
xor edx, edx
cvttss2si esi, xmm1
push dword [eax + ecx*4 - 4]
mov ecx, dword [esp + 0xb8]
call fcn.1000a400
mov ecx, dword [edi]
add esp, 4
mov dword [esp + 0x6c], eax
cmp dword [ecx + 0x3fc4], eax
jne 0x1003e293
push ecx
push dword [esp + 0xb8]
mov edx, 0xb
mov ecx, eax
call fcn.10020990
mov eax, dword [esp + 0x74]
add esp, 8
mov dword [esp + 0x6c], eax
lea ecx, [edi + 0xec]
lea eax, [esp + 0x6c]
push eax
call fcn.10020f50
mov edx, dword [esp + 0x40]
mov eax, dword [edx + 0x5c98]
mov dword [esp + 0x104], eax
test eax, eax
jne 0x1003e2d9
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0xec]
mov eax, dword [eax + 0xf4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x5c98], eax
call fcn.10019330
mov ecx, dword [ebp + 8]
mov eax, ecx
mov edi, dword [esp + 0x88]
mov edx, ecx
or edx, 0x10
and eax, 0x100
cmovne edx, ecx
mov dword [esp + 0xd0], edx
test dl, 8
jne 0x1003e311
mov ecx, edi
call fcn.10041aa0
mov edx, dword [esp + 0xd0]
test edx, 0x6000000
jne 0x1003e33f
mov edx, dword [esp + 0x40]
mov ecx, 0xa900000
mov eax, dword [edx + 0x5c94]
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, dword [esp + 0xd0]
jmp 0x1003e345
mov ecx, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
test ecx, 0x18000000
jne 0x1003e37c
mov eax, dword [edx + 0x5c94]
mov edi, 0xa900000
test eax, 0x18000000
cmovne edi, eax
mov eax, edi
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x88]
and eax, 0x18000000
or ecx, eax
mov dword [esp + 0x10], ecx
test cl, 8
jne 0x1003e392
mov eax, dword [edx + 0x5c94]
and eax, 0x10000
or ecx, eax
mov dword [esp + 0x10], ecx
mov eax, ecx
movss xmm2, dword [edx + 0x38fc]
and eax, 2
and ecx, 0x10002
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xd0], ecx
movss xmm0, dword [eax + 0xfc]
movss xmm3, dword [eax + 0xf8]
mov eax, dword [0x1004fc68]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x48], xmm0
movaps xmm0, xmm2
movss dword [esp + 0x44], 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 + 0x84], xmm4
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
cmp dword [esp + 0xdc], eax
sete al
mulss xmm1, xmm0
lea eax, [eax*4 + 0xc]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push eax
lea eax, [esp + 0x138]
push edi
push eax
subss xmm0, xmm1
movaps xmm1, xmm4
maxss xmm1, xmm0
movaps xmm0, xmm3
addss xmm0, xmm1
movss dword [esp + 0x2c], xmm1
movss dword [esp + 0x88], xmm0
addss xmm0, xmm2
movss dword [esp + 0xf0], xmm0
addss xmm0, xmm4
movss dword [esp + 0x104], xmm0
addss xmm0, xmm2
movss dword [esp + 0xfc], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x1004c740]
cvttss2si esi, xmm0
mov dword [esp + 0x78], esi
call sub.VCRUNTIME140.dll_memcpy
movss xmm2, dword [esp + 0x2c]
add esp, 0xc
movaps xmm3, xmm2
movaps xmm1, xmm2
mulss xmm3, dword [0x1004c764]
mulss xmm1, dword [0x1004c730]
movaps xmm0, xmm3
movss dword [esp + 0xa0], xmm3
addss xmm0, dword [esp + 0x24]
movss dword [esp + 0x64], xmm1
movaps xmm4, xmm3
subss xmm4, xmm1
movaps xmm1, xmm2
addss xmm1, dword [esp + 0x84]
movss dword [esp + 0xd8], xmm0
movss dword [esp + 0xbc], xmm0
movaps xmm0, xmm2
mulss xmm0, dword [0x1004c724]
mulss xmm1, dword [0x1004c764]
cvttss2si eax, xmm0
addss xmm1, dword [esp + 0x44]
movss dword [esp + 0xcc], xmm4
movd xmm0, eax
movss dword [esp + 0xd4], xmm1
movss dword [esp + 0xb8], xmm1
movaps xmm1, xmm4
cvtdq2ps xmm0, xmm0
movss xmm4, dword [edi + 4]
subss xmm1, xmm0
mov eax, dword [esp + 0x10]
mov ecx, eax
movss xmm6, dword [0x1004c704]
and ecx, 0x8000000
mov dword [esp + 0x3c], 0
movss dword [esp + 0x1c], xmm4
movaps xmm0, xmm1
movss dword [esp + 0x38], xmm1
mulss xmm0, dword [0x1004c898]
movaps xmm2, xmm1
mov dword [esp + 0x80], ecx
mulss xmm2, dword [0x1004c8a4]
movss dword [esp + 0xec], xmm0
movss dword [esp + 0x58], xmm0
movss dword [esp + 0x118], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x1004c794]
movss xmm1, dword [edi + 8]
movss dword [esp + 0xe8], xmm2
movss dword [esp + 0x5c], xmm2
movss dword [esp + 0x8c], xmm0
movss dword [esp + 0x11c], xmm0
movss xmm0, dword [edi]
movaps xmm2, xmm0
movss dword [esp + 0x14], xmm0
movss dword [esp + 0xa4], xmm2
movss dword [esp + 0xac], xmm2
movaps xmm2, xmm4
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x94], xmm2
movaps xmm2, xmm1
movss dword [esp + 0x50], xmm1
movss dword [esp + 0x4c], xmm2
movss dword [esp + 0x90], xmm2
je 0x1003e6e8
comiss xmm1, xmm4
xorps xmm3, xmm3
movaps xmm2, xmm4
movaps xmm5, xmm1
jbe 0x1003e640
movss xmm3, dword [0x1004c8a8]
movaps xmm2, xmm1
movaps xmm5, xmm4
comiss xmm2, xmm0
movaps xmm4, xmm0
movss dword [esp + 0x50], xmm4
jbe 0x1003e669
movaps xmm4, xmm2
movaps xmm2, xmm0
movss xmm0, dword [0x1004c894]
subss xmm0, xmm3
movss dword [esp + 0x50], xmm4
movaps xmm3, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x14], xmm4
minss xmm0, xmm5
movaps xmm1, xmm4
subss xmm2, xmm5
mov ecx, edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
subss xmm1, xmm0
push eax
lea edx, [esp + 0x38]
movaps xmm0, xmm1
mulss xmm0, dword [0x1004c808]
addss xmm0, xmm6
divss xmm2, xmm0
movaps xmm0, xmm4
addss xmm0, xmm6
addss xmm2, xmm3
divss xmm1, xmm0
andps xmm2, xmmword [0x1004d010]
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x24], xmm1
call fcn.1003cd60
movss xmm0, dword [esp + 0x38]
add esp, 8
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x1c], xmm0
jmp 0x1003e743
test eax, 0x10000000
je 0x1003e743
lea eax, [esp + 0x90]
movaps xmm2, xmm1
push eax
lea edx, [esp + 0x98]
movaps xmm1, xmm4
lea ecx, [esp + 0xb0]
call fcn.1000aa70
movss xmm0, dword [esp + 0xb0]
add esp, 4
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x94]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x90]
movss dword [esp + 0x4c], xmm0
mov ecx, dword [0x1004fc68]
mov byte [esp + 0xe], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0xf], 0
mov eax, dword [ecx + 0x48dc]
or eax, 8
mov dword [ecx + 0x48dc], eax
add ecx, 0x49f0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
call fcn.10020f50
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x4000000
mov dword [esp + 0x98], ecx
je 0x1003ed47
movss xmm1, dword [esp + 0x20]
lea edx, [esp + 0x70]
mov eax, dword [esp + 0x40]
movaps xmm0, xmm1
push ecx
mov ecx, 0x1004c4c0
movss dword [esp + 0x78], xmm1
addss xmm0, dword [eax + 0x38fc]
addss xmm0, dword [esp + 0x88]
movss dword [esp + 0x74], xmm0
call fcn.10033310
mov eax, dword [0x1004fc68]
add esp, 4
mov ecx, dword [eax + 0x3fdc]
test ecx, ecx
je 0x1003ec63
cmp ecx, dword [eax + 0x4908]
jne 0x1003ec63
cmp byte [esp + 0x2c], 0
jne 0x1003ec63
mov eax, dword [esp + 0x40]
movss xmm0, dword [eax + 0x37d4]
subss xmm0, dword [esp + 0xd8]
movss xmm1, dword [eax + 0x37d0]
subss xmm1, dword [esp + 0xd4]
movss xmm2, dword [eax + 0xe00]
movss xmm4, dword [eax + 0xe04]
subss xmm2, dword [esp + 0xd4]
subss xmm4, dword [esp + 0xd8]
movaps xmm3, xmm0
movss dword [esp + 0xe0], xmm0
mulss xmm3, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x30], xmm1
movss xmm1, dword [0x1004c7a8]
addss xmm3, xmm0
movss dword [esp + 0xf4], xmm2
movss xmm0, dword [esp + 0xcc]
subss xmm0, xmm1
movss dword [esp + 0xfc], xmm4
mulss xmm0, xmm0
comiss xmm3, xmm0
jb 0x1003e90a
movss xmm0, dword [esp + 0xa0]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm3
jb 0x1003e90a
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x70], xmm0
fld qword [esp + 0x70]
cvtps2pd xmm0, xmm2
movsd qword [esp + 0x70], xmm0
fld qword [esp + 0x70]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [esp + 0x70]
movsd xmm1, qword [esp + 0x70]
xorps xmm0, xmm0
cvtpd2ps xmm1, xmm1
divss xmm1, dword [0x1004c7e8]
mulss xmm1, dword [0x1004c764]
comiss xmm0, xmm1
movss dword [esp + 0x14], xmm1
jbe 0x1003e902
addss xmm1, dword [0x1004c7a8]
movss dword [esp + 0x14], xmm1
mov cl, 1
mov byte [esp + 0xe], cl
jmp 0x1003e914
mov cl, byte [esp + 0xe]
movss xmm1, dword [esp + 0x14]
movaps xmm0, xmm1
mov byte [esp + 0x1a], cl
xorps xmm0, xmmword [0x1004d020]
addss xmm0, xmm0
mulss xmm0, dword [0x1004c7e8]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x70], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x2c], xmm0
movsd xmm0, qword [esp + 0x70]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm3, dword [esp + 0x30]
xorps xmm5, xmm5
movss xmm1, dword [esp + 0xe0]
movaps xmm4, xmm3
mulss xmm4, dword [esp + 0x2c]
movss xmm7, dword [esp + 0xe8]
movss xmm6, dword [esp + 0xec]
cvtsd2ss xmm5, xmm0
movaps xmm0, xmm1
movaps xmm2, xmm6
mulss xmm1, dword [esp + 0x2c]
subss xmm2, xmm6
mulss xmm0, xmm5
mulss xmm3, xmm5
subss xmm4, xmm0
movss dword [esp + 0xa8], xmm2
movaps xmm0, xmm7
movss dword [esp + 0x108], xmm5
subss xmm0, dword [esp + 0x8c]
addss xmm3, xmm1
movss xmm5, dword [esp + 0x38]
subss xmm5, xmm6
movaps xmm1, xmm4
subss xmm1, xmm6
movss dword [esp + 0xe0], xmm0
movss dword [esp + 0x68], xmm5
mulss xmm1, xmm0
movaps xmm0, xmm3
subss xmm0, dword [esp + 0x8c]
mulss xmm0, xmm2
xorps xmm2, xmm2
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, xmm7
comiss xmm2, xmm1
movaps xmm1, xmm4
movss dword [esp + 0x9c], xmm0
subss xmm1, xmm6
seta cl
mulss xmm1, xmm0
movaps xmm0, xmm3
subss xmm0, xmm7
mulss xmm0, xmm5
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp al, cl
jne 0x1003ec5b
movss xmm7, dword [esp + 0x8c]
subss xmm3, xmm2
subss xmm4, dword [esp + 0x38]
movaps xmm0, xmm6
subss xmm7, xmm2
subss xmm0, dword [esp + 0x38]
mulss xmm4, xmm7
mulss xmm3, xmm0
movss dword [esp + 0x70], xmm7
movss dword [esp + 0x30], xmm0
subss xmm4, xmm3
comiss xmm2, xmm4
seta al
cmp cl, al
jne 0x1003ec5b
movss xmm5, dword [esp + 0xf4]
movss xmm1, dword [esp + 0xfc]
movaps xmm6, xmm5
movss xmm4, dword [esp + 0x108]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x2c]
mulss xmm6, dword [esp + 0x2c]
movss xmm3, dword [esp + 0xec]
mulss xmm0, xmm4
mulss xmm5, xmm4
subss xmm6, xmm0
addss xmm5, xmm1
movaps xmm1, xmm6
movss dword [esp + 0x108], xmm6
subss xmm1, xmm3
movaps xmm0, xmm5
movss dword [esp + 0x10c], xmm5
subss xmm0, dword [esp + 0x8c]
mulss xmm1, dword [esp + 0xe0]
mulss xmm0, dword [esp + 0xa8]
subss xmm1, xmm0
movaps xmm0, xmm5
subss xmm0, dword [esp + 0xe8]
comiss xmm2, xmm1
mulss xmm0, dword [esp + 0x68]
movaps xmm1, xmm6
subss xmm1, xmm3
seta cl
mulss xmm1, dword [esp + 0x9c]
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp al, cl
jne 0x1003eb5f
movaps xmm1, xmm6
movaps xmm0, xmm5
subss xmm1, dword [esp + 0x38]
subss xmm0, xmm2
mulss xmm1, xmm7
mulss xmm0, dword [esp + 0x30]
subss xmm1, xmm0
comiss xmm2, xmm1
seta al
cmp cl, al
je 0x1003eba2
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x11c]
push eax
lea eax, [esp + 0x60]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x108]
call fcn.10009ff0
movss xmm7, dword [esp + 0x7c]
add esp, 0xc
movss xmm3, dword [esp + 0xec]
xorps xmm2, xmm2
movss xmm6, dword [eax]
movss xmm5, dword [eax + 4]
subss xmm6, dword [esp + 0x38]
movaps xmm4, xmm3
subss xmm5, xmm2
movss xmm3, dword [esp + 0xe8]
subss xmm4, dword [esp + 0x38]
subss xmm3, xmm2
movaps xmm1, xmm6
mulss xmm1, xmm7
movaps xmm2, xmm4
movaps xmm0, xmm3
mulss xmm2, xmm7
mulss xmm0, dword [esp + 0x30]
mulss xmm6, xmm3
subss xmm2, xmm0
movss xmm3, dword [0x1004c718]
movaps xmm0, xmm5
movss dword [esp + 0x1c], xmm3
mulss xmm0, dword [esp + 0x30]
mulss xmm5, xmm4
subss xmm1, xmm0
movss xmm0, dword [0x1004c7a8]
movaps xmm7, xmm0
subss xmm5, xmm6
divss xmm1, xmm2
divss xmm5, xmm2
subss xmm7, xmm1
comiss xmm3, xmm7
movaps xmm1, xmm7
subss xmm1, xmm5
jbe 0x1003ec2c
movaps xmm2, xmm3
jmp 0x1003ec33
movaps xmm2, xmm0
minss xmm2, xmm7
divss xmm1, xmm2
movss dword [esp + 0x50], xmm2
comiss xmm3, xmm1
ja 0x1003ec4f
movaps xmm3, xmm0
minss xmm3, xmm1
movss dword [esp + 0x1c], xmm3
mov byte [esp + 0xf], 1
mov byte [esp + 0xe], 1
jmp 0x1003ec63
mov al, byte [esp + 0xe]
mov byte [esp + 0x1a], al
test byte [esp + 0x10], 8
jne 0x1003ec6f
call fcn.1001a5b0
movss xmm3, dword [esp + 0x24]
movss xmm4, dword [esp + 0x20]
cmp dword [esp + 0xd0], 0x10000
jne 0x1003efef
mov ecx, dword [0x1004fc68]
lea edx, [esp + 0x58]
movss xmm0, dword [esp + 0xf0]
push ecx
movss dword [esp + 0x60], 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 + 0x88]
movss dword [eax + 0xfc], xmm3
mov byte [eax + 0x139], 1
movss dword [esp + 0x5c], xmm0
call fcn.10033310
mov eax, dword [0x1004fc68]
add esp, 4
mov ecx, dword [eax + 0x3fdc]
test ecx, ecx
je 0x1003efef
cmp ecx, dword [eax + 0x4908]
jne 0x1003efef
mov eax, dword [esp + 0x40]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x20]
movss xmm1, dword [0x1004c7a8]
subss xmm0, xmm1
movss xmm3, dword [eax + 0xe04]
subss xmm3, dword [esp + 0x24]
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x1003efd7
xorps xmm4, xmm4
jmp 0x1003efde
test eax, 0x2000000
je 0x1003ec6f
movss xmm0, dword [esp + 0x20]
lea edx, [esp + 0x58]
push ecx
mov ecx, 0x1004c4c4
movss dword [esp + 0x5c], xmm0
movss dword [esp + 0x60], xmm0
call fcn.10033310
mov ecx, dword [0x1004fc68]
add esp, 4
mov eax, dword [ecx + 0x3fdc]
test eax, eax
je 0x1003eec2
cmp eax, dword [ecx + 0x4908]
jne 0x1003eec2
cmp byte [esp + 0x2c], 0
jne 0x1003eec2
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movss xmm3, dword [esp + 0x20]
movss xmm1, dword [0x1004c7a8]
subss xmm3, xmm1
movss xmm2, dword [eax + 0xe00]
subss xmm2, dword [esp + 0x44]
divss xmm2, xmm3
comiss xmm0, xmm2
jbe 0x1003edd9
movss dword [esp + 0x1c], xmm0
jmp 0x1003ede6
movaps xmm4, xmm1
minss xmm4, xmm2
movss dword [esp + 0x1c], xmm4
movss xmm2, dword [eax + 0xe04]
subss xmm2, dword [esp + 0x24]
divss xmm2, xmm3
comiss xmm0, xmm2
jbe 0x1003ee02
xorps xmm3, xmm3
jmp 0x1003ee09
movaps xmm3, xmm1
minss xmm3, xmm2
mov eax, dword [ecx + 0x5c9c]
movaps xmm2, xmm1
subss xmm2, xmm3
movss dword [esp + 0x50], xmm2
cmp eax, dword [ecx + 0x5c98]
jne 0x1003eeba
movss xmm3, dword [edi]
comiss xmm0, xmm3
movss xmm4, dword [edi + 4]
movss xmm5, dword [edi + 8]
jbe 0x1003ee40
xorps xmm2, xmm2
jmp 0x1003ee47
movaps xmm2, xmm1
minss xmm2, xmm3
comiss xmm0, xmm4
movss xmm6, dword [0x1004c84c]
movss xmm3, dword [0x1004c764]
mulss xmm2, xmm6
addss xmm2, xmm3
cvttss2si edx, xmm2
jbe 0x1003ee6d
xorps xmm2, xmm2
jmp 0x1003ee74
movaps xmm2, xmm1
minss xmm2, xmm4
mulss xmm2, xmm6
addss xmm2, xmm3
cvttss2si eax, xmm2
shl eax, 8
or edx, eax
comiss xmm0, xmm5
jbe 0x1003ee8f
xorps xmm1, xmm1
jmp 0x1003ee93
minss xmm1, xmm5
mulss xmm1, xmm6
addss xmm1, xmm3
cvttss2si eax, xmm1
shl eax, 0x10
or eax, edx
cmp dword [ecx + 0x5ca8], eax
jne 0x1003eeba
movss xmm0, dword [ecx + 0x5ca0]
movss dword [esp + 0x14], xmm0
mov al, 1
mov byte [esp + 0xe], al
jmp 0x1003eec6
mov al, byte [esp + 0xe]
test byte [esp + 0x10], 8
mov byte [esp + 0xf], al
mov byte [esp + 0x1b], al
jne 0x1003eee0
call fcn.1001a5b0
mov ecx, dword [0x1004fc68]
mov eax, dword [ecx + 0x3f8c]
lea edx, [esp + 0x58]
movss xmm0, dword [esp + 0xe4]
push ecx
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3f8c]
mov ecx, 0x1004c4c8
movss dword [eax + 0xf8], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [eax + 0xfc], xmm0
movss xmm0, dword [esp + 0x88]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x24]
mov byte [eax + 0x139], 1
movss dword [esp + 0x60], xmm0
call fcn.10033310
mov eax, dword [0x1004fc68]
add esp, 4
mov ecx, dword [eax + 0x3fdc]
test ecx, ecx
je 0x1003ec6f
mov dl, byte [esp + 0xe]
mov byte [esp + 0xf], dl
cmp ecx, dword [eax + 0x4908]
jne 0x1003ec6f
cmp byte [esp + 0x2c], 0
movss xmm3, dword [esp + 0x24]
movss xmm4, dword [esp + 0x20]
mov byte [esp + 0xf], dl
jne 0x1003ec7b
mov eax, dword [esp + 0x40]
movaps xmm0, xmm4
movss xmm1, dword [0x1004c7a8]
subss xmm0, xmm1
movss xmm2, dword [eax + 0xe04]
subss xmm2, xmm3
divss xmm2, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
ja 0x1003efba
movaps xmm0, xmm1
minss xmm0, xmm2
mov al, byte [esp + 0x1b]
movss dword [esp + 0x14], xmm0
mov byte [esp + 0x1a], 1
mov byte [esp + 0xe], 1
mov byte [esp + 0xf], al
jmp 0x1003ec7b
movaps xmm4, xmm1
minss xmm4, xmm3
movaps xmm0, xmm1
mov byte [esp + 0xe], 1
subss xmm0, xmm4
movss dword [edi + 0xc], xmm0
mov edx, dword [0x1004fc68]
dec dword [edx + 0x49f0]
mov ecx, dword [edx + 0x49f0]
mov eax, dword [edx + 0x49f8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x48dc], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x100
mov dword [esp + 0x2c], ecx
jne 0x1003f044
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x38fc]
call fcn.100191b0
call fcn.10019330
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
and eax, 0x80
mov dword [esp + 0x68], eax
jne 0x1003f0ab
mov edx, dword [esp + 0xb4]
mov edi, edx
cmp edx, 0xffffffff
jae 0x1003f0a4
nop dword [eax]
mov al, byte [edi]
test al, al
je 0x1003f075
cmp al, 0x23
jne 0x1003f06f
cmp byte [edi + 1], al
je 0x1003f075
inc edi
cmp edi, 0xffffffff
jb 0x1003f060
cmp edx, edi
je 0x1003f0a4
test ecx, ecx
je 0x1003f091
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x38fc]
call fcn.100191b0
mov ecx, dword [esp + 0xb4]
mov edx, edi
push 0
call fcn.10031d00
add esp, 4
mov edi, dword [esp + 0x88]
cmp dword [esp + 0x2c], 0
jne 0x1003f294
mov ecx, dword [0x1004fc68]
mov eax, dword [ecx + 0x48dc]
or eax, 0x10
mov dword [ecx + 0x48dc], eax
add ecx, 0x49f0
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
push eax
call fcn.10020f50
cmp dword [esp + 0xdc], 0
je 0x1003f0f3
movss xmm1, dword [0x1004c7a8]
jmp 0x1003f0f8
movss xmm1, dword [edi + 0xc]
cmp dword [esp + 0x68], 0
movss xmm0, dword [edi]
movss dword [esp + 0x118], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x11c], xmm0
movss xmm0, dword [edi + 8]
movss dword [esp + 0x120], xmm0
movss dword [esp + 0x124], xmm1
je 0x1003f13e
push str.Current
call fcn.100323d0
add esp, 4
movss xmm1, dword [esp + 0x84]
lea ecx, [esp + 0x58]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x118]
movaps xmm0, xmm1
and eax, 0x180e0040
mulss xmm0, dword [0x1004c7e4]
push ecx
push eax
mov ecx, str.current
mov dword [esp + 0xa4], eax
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x60], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0x70], xmm0
movss dword [esp + 0x64], xmm0
call fcn.10040ae0
add esp, 8
cmp dword [esp + 0xb0], 0
je 0x1003f26d
push str.Original
call fcn.100323d0
mov eax, dword [esp + 0xb4]
add esp, 4
cmp dword [esp + 0xdc], 0
je 0x1003f1d1
movss xmm1, dword [0x1004c7a8]
jmp 0x1003f1d6
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 + 0x58]
movss dword [esp + 0x110], xmm0
movss xmm0, dword [esp + 0x70]
push eax
push dword [esp + 0xa0]
movss dword [esp + 0x60], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [esp + 0x11c], xmm1
movss dword [esp + 0x64], xmm0
call fcn.10040ae0
add esp, 8
test al, al
je 0x1003f26d
xor eax, eax
cmp dword [esp + 0xdc], eax
sete al
lea eax, [eax*4 + 0xc]
push eax
push dword [esp + 0xb4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 0xe], 1
mov edx, dword [0x1004fc68]
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.10019490
cmp byte [esp + 0x1a], 0
jne 0x1003f2a6
cmp byte [esp + 0xf], 0
je 0x1003f390
cmp dword [esp + 0x80], 0
je 0x1003f3b9
movss xmm2, dword [esp + 0x50]
lea eax, [edi + 8]
movss xmm1, dword [esp + 0x1c]
lea edx, [edi + 4]
movss xmm0, dword [esp + 0x14]
mov ecx, edi
push eax
call fcn.1000aa70
mov ecx, dword [esp + 0x44]
add esp, 4
movss xmm0, dword [esp + 0x14]
movss xmm1, dword [0x1004c7a8]
mov eax, dword [ecx + 0x5c98]
movss dword [ecx + 0x5ca0], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [ecx + 0x5ca4], xmm0
xorps xmm0, xmm0
mov dword [ecx + 0x5c9c], eax
movss xmm3, dword [edi]
comiss xmm0, xmm3
movss xmm4, dword [edi + 4]
movss xmm5, dword [edi + 8]
jbe 0x1003f326
xorps xmm2, xmm2
jmp 0x1003f32d
movaps xmm2, xmm1
minss xmm2, xmm3
comiss xmm0, xmm4
movss xmm6, dword [0x1004c84c]
movss xmm3, dword [0x1004c764]
mulss xmm2, xmm6
addss xmm2, xmm3
cvttss2si edx, xmm2
jbe 0x1003f353
xorps xmm2, xmm2
jmp 0x1003f35a
movaps xmm2, xmm1
minss xmm2, xmm4
mulss xmm2, xmm6
addss xmm2, xmm3
cvttss2si eax, xmm2
shl eax, 8
or edx, eax
comiss xmm0, xmm5
jbe 0x1003f375
xorps xmm1, xmm1
jmp 0x1003f379
minss xmm1, xmm5
mulss xmm1, xmm6
addss xmm1, xmm3
cvttss2si eax, xmm1
shl eax, 0x10
or eax, edx
mov dword [ecx + 0x5ca8], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x1b], 0
test al, 0x20
jne 0x1003f7a8
cmp dword [esp + 0xd0], 0x10000
jne 0x1003f3e6
movss xmm0, dword [esp + 0xf0]
jmp 0x1003f3ef
mov eax, dword [esp + 0x10]
test eax, 0x10000000
je 0x1003f394
movss xmm0, dword [esp + 0x14]
movss dword [edi], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [edi + 4], xmm0
movss xmm0, dword [esp + 0x50]
movss dword [edi + 8], xmm0
jmp 0x1003f394
movss xmm0, dword [esp + 0xe4]
mov eax, dword [0x1004fc68]
addss xmm0, dword [esp + 0x84]
mov dword [esp + 0xa8], eax
mov eax, dword [eax + 0x3f8c]
mov dword [esp + 0x68], eax
subss xmm0, dword [esp + 0x44]
lea ecx, [eax + 0x1ac]
mov dword [esp + 0x9c], ecx
push ecx
lea ecx, [eax + 0x1b4]
movss dword [esp + 0x74], xmm0
call fcn.10020f50
movss xmm0, dword [esp + 0x70]
ucomiss xmm0, dword [0x1004c6f0]
lahf
test ah, 0x44
jp 0x1003f452
mov eax, dword [esp + 0x68]
movss xmm0, dword [eax + 0x24c]
mov eax, dword [esp + 0x9c]
movss dword [eax], xmm0
mov eax, dword [esp + 0xa8]
and dword [eax + 0x48e8], 0xfffffffe
mov eax, dword [esp + 0x10]
mov edx, eax
and edx, 0x198e005a
mov dword [esp + 0x2c], edx
test eax, 0x100000
jne 0x1003f496
mov ecx, eax
and ecx, 0x700000
mov dword [esp + 0x30], ecx
jne 0x1003f4f4
mov dword [esp + 0x30], ecx
jmp 0x1003f49f
and eax, 0x700000
mov dword [esp + 0x30], eax
or edx, 0x100004
mov ecx, str.rgb
push edx
mov edx, edi
call fcn.1003ce60
add esp, 4
test al, al
je 0x1003f4e8
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x3fdc], 0
je 0x1003f4d4
cmp byte [eax + 0x3fe9], 0
mov byte [esp + 0x1b], 1
je 0x1003f4d9
mov byte [esp + 0x1b], 0
mov ecx, dword [esp + 0x30]
mov byte [esp + 0xe], 1
mov dword [esp + 0x30], ecx
jmp 0x1003f4ec
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
test eax, 0x200000
jne 0x1003f4ff
test ecx, ecx
jne 0x1003f521
or edx, 0x200004
mov ecx, str.hsv
push edx
mov edx, edi
call fcn.1003ce60
mov ecx, dword [esp + 0x34]
add esp, 4
or byte [esp + 0xe], al
mov eax, dword [esp + 0x10]
test eax, 0x400000
jne 0x1003f52c
test ecx, ecx
jne 0x1003f549
mov eax, dword [esp + 0x2c]
mov edx, edi
or eax, 0x400004
mov ecx, str.hex
push eax
call fcn.1003ce60
add esp, 4
or byte [esp + 0xe], al
cmp byte [esp + 0x1b], 0
mov ecx, dword [0x1004fc68]
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 dword [edx + 0x1b4], eax
lea edx, [edi + 4]
je 0x1003f677
cmp dword [esp + 0x80], 0
je 0x1003f677
movss xmm3, dword [edx]
lea ecx, [edi + 8]
movss xmm5, dword [ecx]
xorps xmm2, xmm2
comiss xmm5, xmm3
movss xmm4, dword [edi]
xorps xmm6, xmm6
jbe 0x1003f5c8
movss xmm6, dword [0x1004c8a8]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x1003f5e5
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x1004c894]
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 [0x1004c704]
movaps xmm7, xmm1
mulss xmm1, dword [0x1004c808]
divss xmm7, xmm0
addss xmm1, dword [0x1004c704]
divss xmm3, xmm1
addss xmm3, xmm6
movss xmm6, dword [0x1004d010]
andps xmm3, xmm6
comiss xmm2, xmm3
jb 0x1003f67f
movss xmm0, dword [esp + 0x14]
comiss xmm0, xmm2
jbe 0x1003f67f
comiss xmm2, xmm4
jb 0x1003f789
movss xmm1, dword [esp + 0x50]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x1003f789
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x1c]
mulss xmm2, dword [0x1004c764]
push ecx
mov ecx, edi
call fcn.1000aa70
add esp, 4
lea edx, [edi + 4]
movss xmm6, dword [0x1004d010]
mov eax, dword [esp + 0x10]
cmp byte [esp + 0xe], 0
je 0x1003f832
cmp dword [esp + 0x80], 0
je 0x1003f7b8
movss xmm0, dword [edx]
xorps xmm3, xmm3
movss xmm1, dword [edi + 8]
movaps xmm2, xmm0
comiss xmm1, xmm0
movss xmm7, dword [edi]
movaps xmm5, xmm1
movss dword [esp + 0xa4], xmm7
movss dword [esp + 0x54], xmm0
movss dword [esp + 0x4c], xmm1
jbe 0x1003f6da
movss xmm3, dword [0x1004c8a8]
movaps xmm2, xmm1
movaps xmm5, xmm0
comiss xmm2, xmm7
movaps xmm4, xmm7
movss dword [esp + 0x50], xmm4
jbe 0x1003f703
movss xmm0, dword [0x1004c894]
movaps xmm4, xmm2
subss xmm0, xmm3
movss dword [esp + 0x50], xmm4
movaps xmm2, xmm7
movaps xmm3, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x14], xmm4
minss xmm0, xmm5
movaps xmm1, xmm4
subss xmm2, xmm5
mov ecx, edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
subss xmm1, xmm0
push eax
lea edx, [esp + 0x38]
movaps xmm0, xmm1
mulss xmm0, dword [0x1004c808]
addss xmm0, dword [0x1004c704]
divss xmm2, xmm0
movaps xmm0, xmm4
addss xmm0, dword [0x1004c704]
addss xmm2, xmm3
divss xmm1, xmm0
andps xmm2, xmm6
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x24], xmm1
call fcn.1003cd60
movss xmm1, dword [esp + 0x38]
add esp, 8
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x14], xmm1
movss dword [esp + 0x1c], xmm0
jmp 0x1003f838
comiss xmm2, xmm7
jb 0x1003f67f
movss xmm1, dword [esp + 0x1c]
movaps xmm2, xmm4
mulss xmm1, dword [0x1004c764]
jmp 0x1003f669
movss xmm6, dword [0x1004d010]
lea edx, [edi + 4]
jmp 0x1003f683
test eax, 0x10000000
je 0x1003f832
movss xmm1, dword [edi + 8]
lea eax, [esp + 0x90]
movss xmm3, dword [edx]
lea ecx, [esp + 0xac]
movss xmm0, dword [edi]
lea edx, [esp + 0x94]
movss dword [esp + 0x50], xmm1
movaps xmm2, xmm1
push eax
movaps xmm1, xmm3
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x20], xmm3
call fcn.1000aa70
movss xmm0, dword [esp + 0xb0]
add esp, 4
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x94]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esp + 0x90]
movss dword [esp + 0x4c], xmm0
movss xmm1, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
xorps xmm0, xmm0
movss xmm2, dword [edi + 0x38a8]
comiss xmm0, xmm2
ja 0x1003f858
movss xmm0, dword [0x1004c7a8]
minss xmm0, xmm2
mulss xmm0, dword [0x1004c84c]
addss xmm0, dword [0x1004c764]
cvttss2si edx, xmm0
cvtps2pd xmm0, xmm1
shl edx, 0x18
mov eax, edx
mov dword [esp + 0xb4], edx
or eax, 0xffffff
mov ecx, edx
mov dword [esp + 0x94], eax
or ecx, 0xff
mov eax, edx
mov dword [esp + 0x118], ecx
or eax, 0x808080
mov dword [esp + 0x130], ecx
mov dword [esp + 0x90], eax
mov eax, edx
or eax, 0xffff
movsd qword [esp + 0x58], xmm0
fld qword [esp + 0x58]
mov dword [esp + 0x11c], eax
mov eax, edx
or eax, 0xff00
fld1
mov dword [esp + 0x120], eax
mov eax, edx
or eax, 0xffff00
mov dword [esp + 0x124], eax
mov eax, edx
or eax, 0xff0000
mov dword [esp + 0x128], eax
mov eax, edx
or eax, 0xff00ff
mov dword [esp + 0x12c], eax
call sub.api_ms_win_crt_math_l1_1_0.dll__CIfmod
fstp qword [esp + 0x58]
movsd xmm1, qword [esp + 0x58]
cvtpd2ps xmm1, xmm1
movss xmm2, dword [0x1004c7a8]
divss xmm1, dword [0x1004c73c]
movaps xmm3, xmm2
cvttss2si eax, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
subss xmm3, xmm1
movaps xmm1, xmm2
subss xmm1, xmm3
cmp eax, 5
ja case.0x1003f942.5
jmp dword [eax*4 + 0x10040ac4]
movaps xmm5, xmm1
xorps xmm1, xmm1
jmp 0x1003f98b
movaps xmm4, xmm3
movaps xmm5, xmm2
xorps xmm1, xmm1
jmp 0x1003f978
xorps xmm4, xmm4
movaps xmm5, xmm2
jmp 0x1003f98e
xorps xmm4, xmm4
movaps xmm5, xmm3
movaps xmm1, xmm2
jmp 0x1003f98e
movaps xmm4, xmm1
xorps xmm5, xmm5
movaps xmm1, xmm2
xorps xmm0, xmm0
comiss xmm0, xmm4
jbe 0x1003f991
xorps xmm3, xmm3
jmp 0x1003f998
xorps xmm5, xmm5
movaps xmm1, xmm3
movaps xmm4, xmm2
xorps xmm0, xmm0
movaps xmm3, xmm2
minss xmm3, xmm4
comiss xmm0, xmm5
movss xmm7, dword [0x1004c84c]
movss xmm6, dword [0x1004c764]
mulss xmm3, xmm7
addss xmm3, xmm6
cvttss2si ecx, xmm3
jbe 0x1003f9be
xorps xmm3, xmm3
jmp 0x1003f9c5
movaps xmm3, xmm2
minss xmm3, xmm5
mulss xmm3, xmm7
addss xmm3, xmm6
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm0, xmm1
jbe 0x1003f9e0
xorps xmm3, xmm3
jmp 0x1003f9e7
movaps xmm3, xmm2
minss xmm3, xmm1
movss xmm4, dword [edi + 0x38a8]
mulss xmm3, xmm7
addss xmm3, xmm6
cvttss2si eax, xmm3
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm4
jbe 0x1003fa11
movaps xmm3, xmm2
xorps xmm1, xmm1
minss xmm3, xmm4
jmp 0x1003fa1b
movaps xmm1, xmm2
minss xmm1, xmm4
movaps xmm3, xmm1
movss xmm5, dword [esp + 0xa4]
mulss xmm1, xmm7
addss xmm1, xmm6
cvttss2si edx, xmm1
shl edx, 0x18
or edx, ecx
comiss xmm0, xmm5
mov dword [esp + 0xb0], edx
jbe 0x1003fa46
xorps xmm1, xmm1
jmp 0x1003fa4d
movaps xmm1, xmm2
minss xmm1, xmm5
movss xmm5, dword [esp + 0x54]
comiss xmm0, xmm5
mulss xmm1, xmm7
addss xmm1, xmm6
cvttss2si ecx, xmm1
jbe 0x1003fa69
xorps xmm1, xmm1
jmp 0x1003fa70
movaps xmm1, xmm2
minss xmm1, xmm5
movss xmm5, dword [esp + 0x4c]
mulss xmm1, xmm7
addss xmm1, xmm6
cvttss2si eax, xmm1
shl eax, 8
or ecx, eax
comiss xmm0, xmm5
jbe 0x1003fa91
xorps xmm1, xmm1
jmp 0x1003fa98
movaps xmm1, xmm2
minss xmm1, xmm5
mulss xmm1, xmm7
addss xmm1, xmm6
cvttss2si eax, xmm1
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm4
jbe 0x1003fab1
xorps xmm3, xmm3
mulss xmm3, xmm7
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
addss xmm3, xmm6
cvttss2si eax, xmm3
shl eax, 0x18
or eax, ecx
cmp dword [esp + 0x98], 0
mov dword [esp + 0x2c], eax
je 0x100402b3
movss xmm1, dword [esp + 0xa0]
movaps xmm3, xmm6
movss xmm0, dword [esp + 0xcc]
mov eax, 0x2aaaaaab
divss xmm3, xmm1
mov esi, dword [esp + 0x28]
addss xmm0, xmm1
cvttss2si ecx, xmm1
movaps xmm4, xmm0
movss dword [esp + 0x108], xmm3
imul ecx
mulss xmm4, xmm6
movss dword [esp + 0xe0], xmm0
mov eax, 4
movss dword [esp + 0xfc], xmm4
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, eax
cmovle ecx, eax
xor eax, eax
mov dword [esp + 0xf4], ecx
mov dword [esp + 0x4c], eax
movd xmm1, eax
lea eax, [esp + 0xb8]
cvtdq2ps xmm1, xmm1
mov edi, dword [esi + 0x18]
push ecx
push ecx
mov ecx, esi
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [0x1004c808]
divss xmm1, dword [0x1004c808]
addss xmm0, xmm0
movaps xmm2, xmm4
addss xmm1, xmm1
mulss xmm0, dword [0x1004c7e8]
mulss xmm1, dword [0x1004c7e8]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0xa8], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x88], xmm1
call fcn.1002aee0
movss xmm0, dword [esp + 0x64]
push ecx
movss dword [esp], xmm0
mov ecx, esi
push 0
push dword [esp + 0x9c]
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.10029af0
movss xmm0, dword [esp + 0xa0]
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 + 0xa0]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0xcc]
addss xmm0, dword [esp + 0xd4]
movss dword [esp + 0xac], 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 + 0xcc]
addss xmm0, dword [esp + 0xd8]
movss dword [esp + 0xa4], xmm0
movss xmm0, dword [esp + 0x7c]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x7c]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0xcc]
addss xmm0, dword [esp + 0xd4]
movss dword [esp + 0x80], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm2, dword [esp + 0x80]
subss xmm2, dword [esp + 0xac]
cvtsd2ss xmm0, xmm0
mov eax, dword [esp + 0x4c]
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + eax*4 + 0x118]
mulss xmm0, dword [esp + 0xcc]
mov eax, dword [esi + 0x18]
movss dword [esp + 0x80], xmm2
addss xmm0, dword [esp + 0xd8]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
subss xmm0, dword [esp + 0xa4]
movaps xmm1, xmm0
movss dword [esp + 0x9c], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm2, dword [0x1004c7a8]
addss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
movss dword [esp + 0xa8], xmm0
mov dword [esp + 0x98], eax
movzx eax, cl
mov dword [esp + 0x54], eax
mov eax, ecx
shr eax, 8
movzx eax, al
mov dword [esp + 0x7c], eax
shr ecx, 0x10
movzx eax, cl
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + eax*4 + 0x11c]
movzx eax, cl
sub eax, dword [esp + 0x54]
mov dword [esp + 0x68], eax
mov eax, ecx
shr eax, 8
movzx eax, al
sub eax, dword [esp + 0x7c]
shr ecx, 0x10
mov dword [esp + 0x70], eax
lea eax, [edi + edi*4]
mov edi, dword [esp + 0x98]
lea edx, [edx + eax*4]
movzx ecx, cl
sub ecx, dword [esp + 0xa0]
cmp edx, edi
jae 0x1003fe5d
movd xmm4, dword [esp + 0xa0]
movd xmm5, dword [esp + 0x70]
movd xmm6, dword [esp + 0x7c]
movd xmm7, dword [esp + 0x68]
mov esi, dword [esp + 0x54]
movd xmm3, ecx
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
nop word [eax + eax]
movss xmm0, dword [edx]
movss xmm1, dword [edx + 4]
subss xmm1, dword [esp + 0xa4]
subss xmm0, dword [esp + 0xac]
mulss xmm1, dword [esp + 0x9c]
mulss xmm0, dword [esp + 0x80]
addss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, dword [esp + 0xa8]
comiss xmm0, xmm1
jbe 0x1003fdf7
xorps xmm2, xmm2
jmp 0x1003fdfb
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 [0x1004c7a8]
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 0x1003fdb0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
movss xmm3, dword [esp + 0x108]
inc eax
movss xmm4, dword [esp + 0xfc]
mov ecx, dword [esp + 0xf4]
mov dword [esp + 0x4c], eax
cmp eax, 6
jl 0x1003fb52
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x1004c7d0]
mulss xmm0, dword [0x1004c7e8]
movss dword [esp + 0x14], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm3, dword [esp + 0x14]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x54], xmm0
cvtps2pd xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cmp byte [esp + 0x1a], 0
xorps xmm1, xmm1
movss xmm2, dword [esp + 0xe0]
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, dword [esp + 0x54]
mulss xmm2, xmm1
mulss xmm0, dword [0x1004c764]
mulss xmm2, dword [0x1004c764]
addss xmm0, dword [esp + 0xd4]
movss dword [esp + 0x98], xmm1
addss xmm2, dword [esp + 0xd8]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x48], xmm2
je 0x1003ff2f
mulss xmm0, dword [0x1004c770]
jmp 0x1003ff37
mulss xmm0, dword [0x1004c768]
movaps xmm1, xmm0
movss dword [esp + 0x4c], xmm0
mov ecx, esi
call fcn.100296b0
movss xmm2, dword [esp + 0x4c]
mov edi, eax
push edi
push dword [esp + 0xb4]
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.1002b8f0
movss xmm2, dword [esp + 0x4c]
lea eax, [esp + 0x44]
addss xmm2, dword [0x1004c7a8]
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push edi
push dword [esp + 0x98]
push eax
call fcn.1002b830
mov esi, dword [esp + 0x94]
lea eax, [esp + 0x44]
movss xmm2, dword [esp + 0x4c]
push ecx
mov dword [esp], 0x3f800000
push edi
mov edi, dword [esp + 0x30]
mov ecx, edi
push esi
push eax
call fcn.1002b830
movss xmm3, dword [esp + 0x54]
xorps xmm1, xmm1
movss xmm5, dword [esp + 0x98]
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x38]
movaps xmm0, xmm5
mov eax, dword [0x1004fc68]
movss xmm6, dword [esp + 0xd4]
movaps xmm4, xmm3
mulss xmm0, xmm1
movss xmm7, dword [esp + 0xd8]
mulss xmm4, dword [esp + 0xec]
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0xec]
addss xmm2, xmm6
movss dword [esp + 0x68], xmm2
movss dword [esp + 0x44], xmm2
movaps xmm2, xmm5
mulss xmm2, dword [esp + 0x38]
addss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0xe8]
mulss xmm5, dword [esp + 0x8c]
addss xmm2, xmm7
movss dword [esp + 0xa8], xmm2
movss dword [esp + 0x48], xmm2
movaps xmm2, xmm4
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0xe8]
subss xmm4, xmm5
mulss xmm3, dword [esp + 0x8c]
addss xmm0, xmm1
addss xmm4, xmm6
addss xmm3, xmm1
addss xmm2, xmm6
addss xmm0, xmm7
movss dword [esp + 0x9c], xmm4
addss xmm3, xmm7
movss dword [esp + 0x108], xmm4
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 0x3cfc]
movss dword [esp + 0x54], xmm3
movss dword [esp + 0x10c], xmm3
movss dword [esp + 0x98], xmm0
mov ecx, edi
movss xmm0, dword [eax + 0x3d00]
push 3
push 3
movss dword [esp + 0x78], xmm0
call fcn.10029910
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
mov edx, dword [esp + 0x48]
movss xmm0, dword [esp + 0x98]
mov word [ecx], ax
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
mov ecx, dword [esp + 0x44]
movss xmm1, dword [esp + 0x70]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0xb0]
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
add dword [edi + 0x34], 0x14
mov eax, dword [edi + 0x38]
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 + 0x38]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x10c]
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 + 0x108]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], esi
add dword [edi + 0x34], 0x14
inc dword [edi + 0x28]
test dword [esp + 0x90], 0xff000000
mov esi, dword [esp + 0x6c]
je 0x1004020d
lea eax, [esp + 0x44]
push eax
lea ecx, [edi + 0x54]
call fcn.10020da0
lea eax, [esp + 0x38]
push eax
lea ecx, [edi + 0x54]
call fcn.10020da0
lea eax, [esp + 0x108]
push eax
lea ecx, [edi + 0x54]
call fcn.10020da0
push ecx
mov dword [esp], 0x3fc00000
mov ecx, edi
push 1
push dword [esp + 0x98]
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10029af0
mov dword [edi + 0x54], 0
movss xmm2, dword [0x1004c7a8]
xorps xmm0, xmm0
movaps xmm1, xmm2
subss xmm1, dword [esp + 0x50]
comiss xmm0, xmm1
jbe 0x1004022b
xorps xmm4, xmm4
jmp 0x10040232
movaps xmm4, xmm2
minss xmm4, xmm1
movss xmm1, dword [esp + 0x1c]
comiss xmm0, xmm1
jbe 0x10040242
xorps xmm3, xmm3
jmp 0x10040249
movaps xmm3, xmm2
minss xmm3, xmm1
movss xmm0, dword [esp + 0x68]
subss xmm0, dword [esp + 0x9c]
movss xmm1, dword [esp + 0xa8]
subss xmm1, dword [esp + 0x54]
mulss xmm0, xmm3
mulss xmm1, xmm3
addss xmm0, dword [esp + 0x9c]
movss xmm3, dword [esp + 0x38]
addss xmm1, dword [esp + 0x54]
subss xmm3, xmm0
mulss xmm3, xmm4
addss xmm3, xmm0
movss xmm0, dword [esp + 0x3c]
subss xmm0, xmm1
movss dword [esp + 0x30], xmm3
mulss xmm0, xmm4
addss xmm0, xmm1
movss dword [esp + 0x34], xmm0
jmp 0x10040617
test dword [esp + 0x10], 0x2000000
je 0x10040613
mov eax, dword [esp + 0x94]
movss xmm0, dword [esp + 0x7c]
mov ecx, dword [esp + 0x28]
push eax
push edx
push edx
movss dword [esp + 0xc4], xmm0
movss xmm0, dword [esp + 0x30]
addss xmm0, dword [esp + 0x2c]
push eax
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x58]
push eax
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0xd4], xmm0
call fcn.1002b6b0
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0xb8]
movss xmm0, dword [esp + 0x7c]
push ecx
push ecx
mov ecx, dword [esp + 0x30]
push 0
push 0
push eax
movss dword [esp + 0xcc], xmm0
lea eax, [esp + 0x58]
movss xmm0, dword [esp + 0xa0]
push eax
movss dword [esp + 0xd4], xmm0
call fcn.1002b6b0
movss xmm0, dword [esp + 0x7c]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x3c], xmm0
xorps xmm0, xmm0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x50]
push dword [esp + 0x50]
call fcn.1000b6d0
movss xmm3, dword [esp + 0x2c]
xorps xmm0, xmm0
movss xmm1, dword [0x1004c7a8]
add esp, 0x10
comiss xmm0, xmm3
jbe 0x100403a4
xorps xmm2, xmm2
jmp 0x100403ab
movaps xmm2, xmm1
minss xmm2, xmm3
movss xmm7, dword [esp + 0x20]
movss xmm5, dword [esp + 0x44]
movss xmm3, dword [0x1004c764]
mulss xmm2, xmm7
movss xmm4, dword [0x1004c7d0]
movss xmm6, dword [esp + 0x7c]
addss xmm2, xmm5
addss xmm5, xmm4
subss xmm6, xmm4
addss xmm2, xmm3
cvttss2si eax, xmm2
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm5, xmm2
jbe 0x100403f9
movss dword [esp + 0x30], xmm5
jmp 0x1004040c
comiss xmm2, xmm6
jbe 0x10040406
movss dword [esp + 0x30], xmm6
jmp 0x1004040c
movss dword [esp + 0x30], xmm2
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x50]
comiss xmm0, xmm2
jbe 0x1004041f
xorps xmm1, xmm1
jmp 0x10040423
minss xmm1, xmm2
movss xmm5, dword [esp + 0x24]
mulss xmm1, xmm7
movss xmm0, dword [esp + 0x8c]
subss xmm0, xmm4
addss xmm1, xmm5
addss xmm1, xmm3
cvttss2si eax, xmm1
movaps xmm1, xmm5
addss xmm1, xmm4
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x10040461
movss dword [esp + 0x34], xmm1
jmp 0x10040474
comiss xmm2, xmm0
jbe 0x1004046e
movss dword [esp + 0x34], xmm0
jmp 0x10040474
movss dword [esp + 0x34], xmm2
movss xmm0, dword [esp + 0xf8]
movaps xmm1, xmm7
divss xmm1, dword [0x1004c808]
mov esi, dword [esp + 0x28]
xor ecx, ecx
movss dword [esp + 0xb8], xmm0
movss xmm0, dword [esp + 0xe4]
movss dword [esp + 0x98], xmm1
movss dword [esp + 0x58], xmm0
nop
mov eax, dword [esp + ecx*4 + 0x11c]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0xc0]
mulss xmm0, xmm1
addss xmm0, xmm5
movss dword [esp + 0xc4], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0x120]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm5
movss dword [esp + 0x74], xmm0
call fcn.1002b6b0
movss xmm1, dword [esp + 0x98]
mov ecx, edi
movss xmm5, dword [esp + 0x24]
cmp ecx, 6
jl 0x100404b0
movss xmm0, dword [esp + 0xf8]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0xe4]
push dword [esp + 0x3c]
movss dword [esp + 0x48], xmm0
movaps xmm0, xmm5
push dword [esp + 0x3c]
movss dword [esp + 0x50], xmm0
xorps xmm0, xmm0
push dword [esp + 0x50]
push dword [esp + 0x50]
call fcn.1000b6d0
mov esi, dword [esp + 0x7c]
movss xmm1, dword [esp + 0x94]
addss xmm1, dword [0x1004c7d0]
mov edi, dword [esp + 0x38]
mov ecx, edi
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x4c], xmm2
addss xmm0, dword [0x1004c7a8]
push dword [esp + 0x4c]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esp + 0xf8]
subss xmm0, dword [0x1004c7a8]
push dword [esp + 0x4c]
movss dword [esp + 0x5c], xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, dword [esp + 0x38]
addss xmm0, dword [esp + 0x3c]
addss xmm0, dword [0x1004c764]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x58]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x38a8]
movss dword [esp + 0x60], xmm0
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.1003de80
movss xmm2, dword [0x1004c7a8]
add esp, 0x20
jmp 0x10040617
mov edi, dword [esp + 0x28]
cmp byte [esp + 0xf], 0
movss xmm4, dword [esp + 0x64]
je 0x1004062e
mulss xmm4, dword [0x1004c768]
jmp 0x10040636
mulss xmm4, dword [0x1004c750]
mov ecx, dword [edi + 0x2c]
movaps xmm0, xmm4
addss xmm0, dword [0x1004c7a4]
movss dword [esp + 0x64], xmm4
mov edx, 0x200
cvttss2si eax, xmm0
cmp eax, 0x3f
ja 0x10040665
movzx edi, byte [ecx + eax + 0x1bc]
jmp 0x100406f3
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 [0x1004c7e8]
sub esp, 8
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp + 0xc0], xmm0
fld qword [esp + 0xc0]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movss xmm4, dword [esp + 0x6c]
add esp, 8
fstp qword [esp + 0xb8]
movsd xmm0, qword [esp + 0xb8]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
mov edx, 0x200
mov edi, eax
and edi, 0xfffffffe
cmp edi, 4
jge 0x100406ea
mov edi, 4
jmp 0x100406f3
cmp edi, 0x200
cmovg edi, edx
test dword [esp + 0x2c], 0xff000000
je 0x100407a9
movss xmm0, dword [0x1004c764]
comiss xmm0, xmm4
ja 0x100407a9
test edi, edi
jg 0x10040735
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x34]
push 0x30
push 0
push eax
movaps xmm2, xmm4
call fcn.1002ab90
mov eax, dword [esp + 0x28]
dec dword [eax + 0x54]
jmp 0x1004078a
cmp edi, 3
jge 0x10040741
mov eax, 3
jmp 0x1004074c
cmp edi, 0x200
mov eax, edi
cmovg eax, edx
movd xmm1, eax
xorps xmm3, xmm3
cvtdq2ps xmm1, xmm1
dec eax
push eax
lea eax, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
movaps xmm2, xmm4
movaps xmm0, xmm1
subss xmm0, dword [0x1004c7a8]
mulss xmm0, dword [0x1004c80c]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.1002aee0
mov eax, dword [esp + 0x28]
push dword [esp + 0x2c]
mov ecx, dword [eax + 0x54]
push ecx
push dword [eax + 0x5c]
mov ecx, eax
call fcn.1002a7c0
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x54], 0
jmp 0x100407ad
mov ecx, dword [esp + 0x28]
movss xmm2, dword [esp + 0x64]
lea eax, [esp + 0x30]
addss xmm2, dword [0x1004c7a8]
push ecx
mov dword [esp], 0x3f800000
push edi
push dword [esp + 0x98]
push eax
call fcn.1002b830
movss xmm2, dword [esp + 0x64]
lea eax, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp], 0x3f800000
push edi
push dword [esp + 0x9c]
push eax
call fcn.1002b830
cmp dword [esp + 0xd0], 0x10000
jne 0x100409b5
mov edx, dword [esp + 0x88]
xorps xmm1, xmm1
movss xmm2, dword [edx + 0xc]
comiss xmm1, xmm2
jbe 0x10040826
movss dword [esp + 0x6c], xmm1
jmp 0x10040838
movss xmm0, dword [0x1004c7a8]
minss xmm0, xmm2
movss dword [esp + 0x6c], xmm0
movss xmm3, dword [esp + 0xf0]
xor edx, edx
movss xmm0, dword [esp + 0x24]
movaps xmm2, xmm3
addss xmm2, dword [esp + 0x84]
mov ecx, dword [esp + 0x28]
movss dword [esp + 0xbc], xmm0
addss xmm0, dword [esp + 0x20]
mov dword [esp + 0x3c], 0
push dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
push dword [esp + 0x3c]
movss dword [esp + 0xc8], xmm2
subss xmm2, xmm3
movss dword [esp + 0xcc], xmm0
push dword [esp + 0xcc]
movss dword [esp + 0xc4], xmm3
xorps xmm3, xmm3
push dword [esp + 0xcc]
mov edi, dword [esp + 0xc8]
push dword [esp + 0xcc]
mulss xmm2, dword [0x1004c764]
push edi
push 0
call fcn.1002f7a0
mov ecx, dword [esp + 0x48]
add esp, 0x1c
mov eax, ecx
and eax, 0xffffff
push eax
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.1002b6b0
push dword [esp + 0xc4]
xorps xmm0, xmm0
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push edi
call fcn.1000b6d0
movss xmm1, dword [0x1004c7a8]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
movaps xmm0, xmm2
movss dword [esp + 0x4c], xmm2
addss xmm0, xmm1
movss xmm2, dword [edi + 0x38a8]
push dword [esp + 0x4c]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esp + 0x104]
subss xmm0, xmm1
subss xmm1, dword [esp + 0x80]
push dword [esp + 0x4c]
movss dword [esp + 0x5c], xmm0
mulss xmm1, dword [esp + 0x38]
addss xmm1, dword [esp + 0x3c]
addss xmm1, dword [0x1004c764]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x9c]
addss xmm1, dword [0x1004c7d0]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x60], xmm0
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.1003de80
add esp, 0x20
jmp 0x100409b9
mov edi, dword [esp + 0x40]
call fcn.10019490
mov dl, byte [esp + 0xe]
test dl, dl
je 0x10040aba
mov esi, dword [esp + 0x88]
lea edx, [esp + 0x134]
xor ecx, ecx
cmp dword [esp + 0xdc], ecx
sete cl
lea ecx, [ecx*4 + 0xc]
sub ecx, 4
jb 0x10040a01
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10040a0a
add edx, 4
add esi, 4
sub ecx, 4
jae 0x100409f0
cmp ecx, 0xfffffffc
je 0x10040ab8
mov al, byte [edx]
cmp al, byte [esi]
jne 0x10040a47
cmp ecx, 0xfffffffd
je 0x10040ab8
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x10040a47
cmp ecx, 0xfffffffe
je 0x10040ab8
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x10040a47
cmp ecx, 0xffffffff
je 0x10040ab8
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x10040ab8
mov ecx, dword [edi + 0x4908]
mov eax, dword [0x1004fc68]
test ecx, ecx
je 0x10040a7e
cmp word [eax + 0x5d1e], 0
jg 0x10040a7e
mov edx, dword [eax + 0x3fdc]
cmp edx, ecx
je 0x10040a6e
test edx, edx
jne 0x10040a77
mov word [eax + 0x3fec], 0x101
or dword [eax + 0x4910], 4
mov dl, byte [esp + 0xe]
cmp dword [esp + 0x104], 0
jne 0x10040a96
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 + 0x13c]
xor ecx, esp
call fcn.1004437c
mov esp, ebp
pop ebp
ret
xor dl, dl
mov eax, dword [0x1004fc68]
jmp 0x10040a82