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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x10061040]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x60], ecx
mov ecx, dword [0x1010ec9c]
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [ecx + 0x3fa8]
mov edi, edx
mov dword [esp + 0xa8], edi
mov dword [esp + 0x48], ecx
mov byte [eax + 0xb0], 1
mov edx, dword [ecx + 0x3fa8]
mov dword [esp + 0xac], edx
cmp byte [edx + 0xb3], 0
je 0x1003df93
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.10054550
mov esp, ebp
pop ebp
ret
test byte [ecx + 0x48d0], 1
mov eax, dword [edx + 0x26c]
mov dword [esp + 0x4c], eax
je 0x1003dfb0
movss xmm1, dword [ecx + 0x48d8]
jmp 0x1003dfb8
movss xmm1, dword [edx + 0x1a8]
xorps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x1003dffa
cmp dword [edx + 0x198], 0
jne 0x1003dfd8
cmp dword [ecx + 0x4c94], 0
lea eax, [edx + 0x230]
je 0x1003dfde
lea eax, [edx + 0x200]
movss xmm0, dword [eax]
subss xmm0, dword [edx + 0xf8]
addss xmm0, xmm1
movss xmm1, dword [0x1005d9a4]
maxss xmm1, xmm0
mov dword [ecx + 0x48d0], 0
mov dword [ecx + 0x48d4], 0
mov ecx, dword [esp + 0x68]
cvttss2si esi, xmm1
call fcn.10011e60
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x5c34]
mov dword [esp + 0x120], eax
test eax, eax
jne 0x1003e04d
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0xec]
mov eax, dword [eax + 0xf4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x5c34], eax
call fcn.10014790
mov edx, dword [ebp + 8]
mov ecx, edx
or ecx, 0x10
test edx, 0x100
cmovne ecx, edx
mov dword [esp + 0x80], ecx
test cl, 8
jne 0x1003e07f
mov edx, ecx
mov ecx, edi
call fcn.10041720
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x48]
test ecx, 0x6000000
jne 0x1003e0ab
mov eax, dword [edx + 0x5c30]
mov ecx, 0xa900000
test eax, 0x6000000
cmovne ecx, eax
and ecx, 0x6000000
or ecx, dword [esp + 0x80]
mov dword [esp + 0x10], ecx
test ecx, 0x18000000
jne 0x1003e0e5
mov eax, dword [edx + 0x5c30]
mov edi, 0xa900000
test eax, 0x18000000
cmovne edi, eax
mov eax, edi
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0xa8]
and eax, 0x18000000
or ecx, eax
mov dword [esp + 0x10], ecx
test cl, 8
jne 0x1003e0fb
mov eax, dword [edx + 0x5c30]
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 + 0x80], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0xb0], ecx
movss xmm0, dword [eax + 0xfc]
movss xmm3, dword [eax + 0xf8]
mov eax, dword [0x1010ec9c]
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x2c], xmm0
movaps xmm0, xmm2
movss dword [esp + 0x28], xmm3
movss xmm4, dword [eax + 0x38e8]
addss xmm4, xmm4
addss xmm4, dword [eax + 0x3d14]
xor eax, eax
cmp ecx, 0x10000
sete al
inc eax
addss xmm0, xmm4
movss dword [esp + 0x60], xmm4
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
cmp dword [esp + 0x80], eax
sete al
mulss xmm1, xmm0
lea eax, [eax*4 + 0xc]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
push eax
lea eax, [esp + 0x128]
push edi
push eax
subss xmm0, xmm1
movaps xmm1, xmm4
maxss xmm1, xmm0
movaps xmm0, xmm3
addss xmm0, xmm1
movss dword [esp + 0x40], xmm1
addss xmm0, xmm2
movss dword [esp + 0xdc], xmm0
addss xmm0, xmm4
addss xmm0, xmm2
movss dword [esp + 0x104], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x1005d94c]
cvttss2si esi, xmm0
mov dword [esp + 0xd8], esi
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [esp + 0x40]
add esp, 0xc
movaps xmm4, xmm1
movaps xmm2, xmm1
mulss xmm4, dword [0x1005d964]
mulss xmm2, dword [0x1005d93c]
movaps xmm0, xmm4
movss dword [esp + 0x24], xmm4
addss xmm0, dword [esp + 0x44]
movss dword [esp + 0x6c], xmm2
movaps xmm3, xmm4
subss xmm3, xmm2
movaps xmm2, xmm1
addss xmm2, dword [esp + 0x60]
movss dword [esp + 0xd4], xmm0
movss dword [esp + 0xec], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x1005d928]
movaps xmm1, xmm3
mulss xmm2, dword [0x1005d964]
cvttss2si eax, xmm0
addss xmm2, dword [esp + 0x28]
movss dword [esp + 0x84], xmm3
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc4], xmm2
subss xmm1, xmm0
movss dword [esp + 0xe8], xmm2
movss dword [esp + 0x38], xmm1
movss xmm7, dword [edi + 8]
movaps xmm0, xmm1
mulss xmm0, dword [0x1005db08]
movaps xmm2, xmm1
mov eax, dword [esp + 0x10]
mulss xmm2, dword [0x1005db14]
mov dword [esp + 0x3c], 0
movss xmm5, dword [0x1005da08]
movss xmm6, dword [0x1005d904]
movss dword [esp + 0xa0], xmm0
movss dword [esp + 0x90], xmm0
movss dword [esp + 0x104], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x1005d994]
movss xmm1, dword [edi + 4]
movss dword [esp + 0x88], xmm2
movss dword [esp + 0x94], xmm2
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0x108], xmm0
movss xmm0, dword [edi]
movss dword [esp + 0x14], xmm0
movaps xmm2, xmm0
movss dword [esp + 0x8c], xmm2
movss dword [esp + 0x7c], xmm2
movaps xmm2, xmm1
movss dword [esp + 0x78], xmm2
movss dword [esp + 0x70], xmm2
movaps xmm2, xmm7
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x58], xmm7
movss dword [esp + 0x5c], xmm2
movss dword [esp + 0x74], xmm2
movss dword [esp + 0xac], xmm5
test eax, 0x8000000
je 0x1003e439
comiss xmm7, xmm1
xorps xmm3, xmm3
movaps xmm2, xmm1
movaps xmm4, xmm7
jbe 0x1003e395
movss xmm3, dword [0x1005db18]
movaps xmm2, xmm7
movaps xmm4, xmm1
comiss xmm2, xmm0
movaps xmm7, xmm0
movss dword [esp + 0x58], xmm7
jbe 0x1003e3be
movaps xmm7, xmm2
movaps xmm2, xmm0
movss xmm0, dword [0x1005db04]
subss xmm0, xmm3
movss dword [esp + 0x58], xmm7
movaps xmm3, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x14], xmm7
minss xmm0, xmm4
movaps xmm1, xmm7
subss xmm2, xmm4
mov ecx, edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
subss xmm1, xmm0
push eax
lea edx, [esp + 0x28]
movaps xmm0, xmm1
mulss xmm0, xmm5
addss xmm0, xmm6
divss xmm2, xmm0
movaps xmm0, xmm7
addss xmm0, xmm6
addss xmm2, xmm3
divss xmm1, xmm0
andps xmm2, xmmword [0x1005e050]
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x24], xmm1
call fcn.1003cad0
movss xmm0, dword [esp + 0x28]
add esp, 8
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x20], xmm0
jmp 0x1003e485
test eax, 0x10000000
je 0x1003e485
lea eax, [esp + 0x74]
movaps xmm2, xmm7
push eax
lea edx, [esp + 0x74]
lea ecx, [esp + 0x80]
call fcn.10006680
movss xmm0, dword [esp + 0x80]
add esp, 4
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0x5c], xmm0
mov ecx, dword [0x1010ec9c]
lea edx, [ecx + 0x49c4]
mov byte [esp + 0xd], 0
mov byte [esp + 0x1b], 0
mov byte [esp + 0xf], 0
mov eax, dword [ecx + 0x48c8]
or eax, 8
mov dword [esp + 0x1c], edx
mov dword [ecx + 0x48c8], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0xc8], eax
cmp dword [edx], ecx
jne 0x1003e4f4
test ecx, ecx
je 0x1003e4d4
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
add eax, ecx
jmp 0x1003e4d9
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.1001c260
mov edi, dword [esp + 0xa8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov esi, dword [esp + 0xc8]
mov dword [eax + ecx*4], esi
inc dword [edx]
mov eax, dword [esp + 0x10]
test eax, 0x4000000
je 0x1003ead6
movss xmm1, dword [esp + 0x34]
lea edx, [esp + 0x50]
mov eax, dword [esp + 0x48]
movaps xmm0, xmm1
push ecx
mov ecx, 0x1005d048
movss dword [esp + 0x58], xmm1
addss xmm0, dword [eax + 0x38fc]
addss xmm0, dword [esp + 0x64]
movss dword [esp + 0x54], xmm0
call fcn.10031c20
mov eax, dword [0x1010ec9c]
add esp, 4
mov ecx, dword [eax + 0x3ff8]
test ecx, ecx
je 0x1003e9eb
cmp ecx, dword [eax + 0x48f0]
jne 0x1003e9eb
mov eax, dword [esp + 0x48]
movss xmm0, dword [eax + 0x37d4]
subss xmm0, dword [esp + 0xd4]
movss xmm1, dword [eax + 0x37d0]
subss xmm1, dword [esp + 0xc4]
movss xmm4, dword [eax + 0xe00]
movss xmm3, dword [eax + 0xe04]
subss xmm4, dword [esp + 0xc4]
subss xmm3, dword [esp + 0xd4]
movaps xmm2, xmm0
movss dword [esp + 0xfc], xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x1c], xmm1
movss xmm1, dword [0x1005d9a4]
addss xmm2, xmm0
movss dword [esp + 0xd8], xmm4
movss xmm0, dword [esp + 0x84]
subss xmm0, xmm1
movss dword [esp + 0xbc], xmm3
mulss xmm0, xmm0
comiss xmm2, xmm0
jb 0x1003e679
movss xmm0, dword [esp + 0x24]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm2
jb 0x1003e679
cvtps2pd xmm0, xmm3
movsd qword [esp + 0x50], xmm0
fld qword [esp + 0x50]
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x50], xmm0
fld qword [esp + 0x50]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
fstp qword [esp + 0x50]
movsd xmm1, qword [esp + 0x50]
xorps xmm0, xmm0
cvtpd2ps xmm1, xmm1
divss xmm1, dword [0x1005d9f0]
mulss xmm1, dword [0x1005d964]
comiss xmm0, xmm1
movss dword [esp + 0x14], xmm1
jbe 0x1003e671
addss xmm1, dword [0x1005d9a4]
movss dword [esp + 0x14], xmm1
mov al, 1
mov byte [esp + 0xd], al
jmp 0x1003e683
mov al, byte [esp + 0xd]
movss xmm1, dword [esp + 0x14]
movaps xmm0, xmm1
mov byte [esp + 0x1b], al
xorps xmm0, xmmword [0x1005e060]
addss xmm0, xmm0
mulss xmm0, dword [0x1005d9f0]
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x50], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xc8], xmm0
movsd xmm0, qword [esp + 0x50]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm6, dword [esp + 0xc8]
xorps xmm5, xmm5
cvtsd2ss xmm5, xmm0
movss xmm1, dword [esp + 0xa0]
movaps xmm3, xmm6
mulss xmm3, dword [esp + 0x1c]
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0xfc]
movaps xmm4, xmm6
mulss xmm4, dword [esp + 0xfc]
subss xmm3, xmm0
movss dword [esp + 0xb4], xmm5
movaps xmm0, xmm5
movss xmm7, dword [esp + 0x38]
mulss xmm0, dword [esp + 0x1c]
movaps xmm5, xmm1
subss xmm5, xmm1
movaps xmm2, xmm3
addss xmm4, xmm0
movss xmm0, dword [esp + 0x88]
subss xmm0, dword [esp + 0xa4]
subss xmm2, xmm1
subss xmm7, dword [esp + 0xa0]
movss dword [esp + 0xc8], xmm5
movss dword [esp + 0xfc], xmm0
movaps xmm1, xmm2
mulss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0xa4]
movss dword [esp + 0x50], xmm7
mulss xmm0, xmm5
xorps xmm5, xmm5
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0x88]
comiss xmm5, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm4
mulss xmm1, xmm2
seta cl
subss xmm0, dword [esp + 0x88]
mulss xmm0, xmm7
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x1003e9e3
movss xmm0, dword [esp + 0xa4]
subss xmm4, xmm5
subss xmm3, dword [esp + 0x38]
subss xmm0, xmm5
mulss xmm3, xmm0
movss xmm0, dword [esp + 0xa0]
subss xmm0, dword [esp + 0x38]
mulss xmm0, xmm4
subss xmm3, xmm0
comiss xmm5, xmm3
seta al
cmp cl, al
jne 0x1003e9e3
movss xmm3, dword [esp + 0xb4]
movaps xmm7, xmm6
movss xmm1, dword [esp + 0xbc]
movaps xmm0, xmm3
mulss xmm7, dword [esp + 0xd8]
mulss xmm3, dword [esp + 0xd8]
movss xmm4, dword [esp + 0xa0]
mulss xmm0, xmm1
mulss xmm6, xmm1
subss xmm7, xmm0
addss xmm6, xmm3
movaps xmm1, xmm7
movss dword [esp + 0xbc], xmm7
subss xmm1, xmm4
movaps xmm0, xmm6
movss dword [esp + 0xc0], xmm6
subss xmm0, dword [esp + 0xa4]
mulss xmm1, dword [esp + 0xfc]
mulss xmm0, dword [esp + 0xc8]
subss xmm1, xmm0
movaps xmm0, xmm6
subss xmm0, dword [esp + 0x88]
comiss xmm5, xmm1
mulss xmm0, dword [esp + 0x50]
movaps xmm1, xmm7
subss xmm1, xmm4
seta cl
mulss xmm1, dword [esp + 0x1c]
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x1003e8eb
movss xmm0, dword [esp + 0xa4]
movaps xmm2, xmm7
subss xmm2, dword [esp + 0x38]
subss xmm0, xmm5
movaps xmm1, xmm4
subss xmm1, dword [esp + 0x38]
mulss xmm2, xmm0
movaps xmm0, xmm6
subss xmm0, xmm5
mulss xmm1, xmm0
subss xmm2, xmm1
comiss xmm5, xmm2
seta al
cmp cl, al
je 0x1003e92b
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x98]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0xe4]
call fcn.10005c80
movss xmm4, dword [esp + 0xac]
add esp, 0xc
xorps xmm5, xmm5
movss xmm7, dword [eax]
movss xmm6, dword [eax + 4]
movss xmm3, dword [esp + 0xa4]
subss xmm6, xmm5
subss xmm7, dword [esp + 0x38]
subss xmm3, xmm5
movaps xmm1, xmm4
movss xmm4, dword [esp + 0x88]
subss xmm1, dword [esp + 0x38]
subss xmm4, xmm5
movaps xmm2, xmm3
mulss xmm3, xmm7
mulss xmm6, xmm1
movaps xmm0, xmm4
mulss xmm2, xmm1
mulss xmm0, xmm1
subss xmm3, xmm6
mulss xmm7, xmm4
subss xmm2, xmm0
movss xmm0, dword [0x1005d9a4]
movaps xmm5, xmm0
subss xmm6, xmm7
divss xmm3, xmm2
divss xmm6, xmm2
movss xmm2, dword [0x1005d918]
subss xmm5, xmm3
movss dword [esp + 0x20], xmm2
comiss xmm2, xmm5
movaps xmm3, xmm5
subss xmm3, xmm6
jbe 0x1003e9b4
movaps xmm1, xmm2
jmp 0x1003e9bb
movaps xmm1, xmm0
minss xmm1, xmm5
divss xmm3, xmm1
movss dword [esp + 0x58], xmm1
comiss xmm2, xmm3
ja 0x1003e9d7
movaps xmm2, xmm0
minss xmm2, xmm3
movss dword [esp + 0x20], xmm2
mov byte [esp + 0xf], 1
mov byte [esp + 0xd], 1
jmp 0x1003e9eb
mov al, byte [esp + 0xd]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x10]
test al, 8
jne 0x1003e9f8
call fcn.10015950
movss xmm3, dword [esp + 0x44]
movss xmm4, dword [esp + 0x34]
cmp dword [esp + 0xb0], 0x10000
jne 0x1003ed74
mov ecx, dword [0x1010ec9c]
lea edx, [esp + 0x90]
movss xmm0, dword [esp + 0xf8]
push ecx
movss dword [esp + 0x98], xmm4
mov eax, dword [ecx + 0x3fa8]
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3fa8]
mov ecx, str.alpha
movss dword [eax + 0xf8], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [eax + 0xfc], xmm3
mov byte [eax + 0x139], 1
movss dword [esp + 0x94], xmm0
call fcn.10031c20
mov eax, dword [0x1010ec9c]
add esp, 4
mov ecx, dword [eax + 0x3ff8]
test ecx, ecx
je 0x1003ed74
cmp ecx, dword [eax + 0x48f0]
jne 0x1003ed74
mov eax, dword [esp + 0x48]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x34]
movss xmm1, dword [0x1005d9a4]
subss xmm0, xmm1
movss xmm3, dword [eax + 0xe04]
subss xmm3, dword [esp + 0x44]
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x1003ed5c
xorps xmm4, xmm4
jmp 0x1003ed63
test eax, 0x2000000
je 0x1003e9f8
movss xmm0, dword [esp + 0x34]
lea edx, [esp + 0x90]
push ecx
mov ecx, 0x1005d04c
movss dword [esp + 0x94], xmm0
movss dword [esp + 0x98], xmm0
call fcn.10031c20
mov ecx, dword [0x1010ec9c]
add esp, 4
mov eax, dword [ecx + 0x3ff8]
test eax, eax
je 0x1003ec4f
cmp eax, dword [ecx + 0x48f0]
jne 0x1003ec4f
mov eax, dword [esp + 0x48]
xorps xmm0, xmm0
movss xmm4, dword [esp + 0x34]
movss xmm1, dword [0x1005d9a4]
subss xmm4, xmm1
movss xmm3, dword [eax + 0xe00]
subss xmm3, dword [esp + 0x28]
divss xmm3, xmm4
comiss xmm0, xmm3
jbe 0x1003eb66
movss dword [esp + 0x20], xmm0
jmp 0x1003eb73
movaps xmm2, xmm1
minss xmm2, xmm3
movss dword [esp + 0x20], xmm2
movss xmm2, dword [eax + 0xe04]
subss xmm2, dword [esp + 0x44]
divss xmm2, xmm4
comiss xmm0, xmm2
jbe 0x1003eb8f
xorps xmm3, xmm3
jmp 0x1003eb96
movaps xmm3, xmm1
minss xmm3, xmm2
mov eax, dword [ecx + 0x5c38]
movaps xmm2, xmm1
subss xmm2, xmm3
movss dword [esp + 0x58], xmm2
cmp eax, dword [ecx + 0x5c34]
jne 0x1003ec47
movss xmm3, dword [edi]
comiss xmm0, xmm3
movss xmm4, dword [edi + 4]
movss xmm5, dword [edi + 8]
jbe 0x1003ebcd
xorps xmm2, xmm2
jmp 0x1003ebd4
movaps xmm2, xmm1
minss xmm2, xmm3
comiss xmm0, xmm4
movss xmm6, dword [0x1005daa4]
movss xmm3, dword [0x1005d964]
mulss xmm2, xmm6
addss xmm2, xmm3
cvttss2si edx, xmm2
jbe 0x1003ebfa
xorps xmm2, xmm2
jmp 0x1003ec01
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 0x1003ec1c
xorps xmm1, xmm1
jmp 0x1003ec20
minss xmm1, xmm5
mulss xmm1, xmm6
addss xmm1, xmm3
cvttss2si eax, xmm1
shl eax, 0x10
or eax, edx
cmp dword [ecx + 0x5c44], eax
jne 0x1003ec47
movss xmm0, dword [ecx + 0x5c3c]
movss dword [esp + 0x14], xmm0
mov al, 1
mov byte [esp + 0xd], al
jmp 0x1003ec53
mov al, byte [esp + 0xd]
mov byte [esp + 0xf], al
mov byte [esp + 0xe], al
mov eax, dword [esp + 0x10]
test al, 8
jne 0x1003ec6e
call fcn.10015950
mov ecx, dword [0x1010ec9c]
mov eax, dword [ecx + 0x3fa8]
lea edx, [esp + 0x90]
movss xmm0, dword [esp + 0xd0]
push ecx
mov byte [eax + 0xb0], 1
mov eax, dword [ecx + 0x3fa8]
mov ecx, 0x1005d050
movss dword [eax + 0xf8], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [eax + 0xfc], xmm0
movss xmm0, dword [esp + 0x64]
movss dword [esp + 0x94], xmm0
movss xmm0, dword [esp + 0x38]
mov byte [eax + 0x139], 1
movss dword [esp + 0x98], xmm0
call fcn.10031c20
mov eax, dword [0x1010ec9c]
add esp, 4
mov ecx, dword [eax + 0x3ff8]
test ecx, ecx
je 0x1003e9f8
mov dl, byte [esp + 0xd]
mov byte [esp + 0xf], dl
cmp ecx, dword [eax + 0x48f0]
jne 0x1003e9f8
mov eax, dword [esp + 0x48]
movss xmm4, dword [esp + 0x34]
movss xmm3, dword [esp + 0x44]
movaps xmm0, xmm4
movss xmm1, dword [0x1005d9a4]
movss xmm2, dword [eax + 0xe04]
subss xmm0, xmm1
subss xmm2, xmm3
divss xmm2, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
ja 0x1003ed3f
movaps xmm0, xmm1
minss xmm0, xmm2
mov al, byte [esp + 0xe]
movss dword [esp + 0x14], xmm0
mov byte [esp + 0x1b], 1
mov byte [esp + 0xd], 1
mov byte [esp + 0xf], al
jmp 0x1003ea04
movaps xmm4, xmm1
minss xmm4, xmm3
movaps xmm0, xmm1
mov byte [esp + 0xd], 1
subss xmm0, xmm4
movss dword [edi + 0xc], xmm0
mov edx, dword [0x1010ec9c]
dec dword [edx + 0x49c4]
mov eax, dword [edx + 0x49cc]
mov ecx, dword [edx + 0x49c4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x48c8], eax
mov edx, dword [esp + 0x10]
test edx, 0x100
jne 0x1003edbf
mov eax, dword [esp + 0x48]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x38fc]
call fcn.10014510
call fcn.10014790
mov edx, dword [esp + 0x10]
test dl, dl
js 0x1003ee2b
mov ecx, dword [esp + 0x68]
cmp ecx, 0xffffffff
jae 0x1003ee2b
nop dword [eax]
mov al, byte [ecx]
mov byte [esp + 0xe], al
test al, al
je 0x1003ede9
cmp al, 0x23
jne 0x1003ede3
cmp byte [ecx + 1], al
je 0x1003ede9
inc ecx
cmp ecx, 0xffffffff
jb 0x1003edd0
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
cmp eax, ecx
je 0x1003ee2b
test edx, 0x100
je 0x1003ee19
mov eax, dword [esp + 0x48]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x38fc]
call fcn.10014510
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
mov edx, ecx
mov ecx, eax
push 0
call fcn.10030960
mov edx, dword [esp + 0x14]
add esp, 4
test edx, 0x100
jne 0x1003f079
mov eax, dword [0x1010ec9c]
mov ecx, dword [eax + 0x48c8]
or ecx, 0x10
mov dword [eax + 0x48c8], ecx
add eax, 0x49c4
mov dword [esp + 0xb4], ecx
mov dword [esp + 0x68], eax
mov ecx, dword [eax + 4]
mov dword [esp + 0x50], ecx
cmp dword [eax], ecx
jne 0x1003eea8
mov edx, dword [eax]
inc edx
mov dword [esp + 0xbc], edx
test ecx, ecx
je 0x1003ee8e
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0xbc]
mov ecx, eax
mov eax, dword [esp + 0x68]
sar ecx, 1
add ecx, dword [esp + 0x50]
jmp 0x1003ee93
mov ecx, 8
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
push edx
call fcn.1001c260
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov esi, dword [esp + 0xb4]
mov dword [eax + ecx*4], esi
mov eax, dword [esp + 0x68]
inc dword [eax]
test dl, 2
je 0x1003eecc
movss xmm1, dword [0x1005d9a4]
jmp 0x1003eed1
movss xmm1, dword [edi + 0xc]
movss xmm0, dword [edi]
movss dword [esp + 0x104], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x108], xmm0
movss xmm0, dword [edi + 8]
movss dword [esp + 0x10c], xmm0
movss dword [esp + 0x110], xmm1
test dl, dl
jns 0x1003ef18
push str.Current
call fcn.10031020
mov edx, dword [esp + 0x14]
add esp, 4
movss xmm1, dword [esp + 0x60]
lea ecx, [esp + 0x90]
movaps xmm0, xmm1
and edx, 0x180e0040
mulss xmm0, dword [0x1005d9ec]
push ecx
mov dword [esp + 0xb8], edx
mov ecx, str.current
push edx
movss dword [esp + 0x58], xmm0
lea edx, [esp + 0x10c]
movss dword [esp + 0x98], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0xc4], xmm0
movss dword [esp + 0x9c], xmm0
call fcn.10040720
add esp, 8
cmp dword [esp + 0x64], 0
je 0x1003f04e
push str.Original
call fcn.10031020
mov eax, dword [esp + 0x14]
add esp, 4
test al, 2
mov eax, dword [esp + 0x64]
je 0x1003efa9
movss xmm1, dword [0x1005d9a4]
jmp 0x1003efae
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0xd8]
movss dword [esp + 0xd8], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0xdc], xmm0
movss xmm0, dword [eax + 8]
lea eax, [esp + 0x90]
movss dword [esp + 0xe0], xmm0
movss xmm0, dword [esp + 0x50]
push eax
push dword [esp + 0xb8]
movss dword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0xc4]
movss dword [esp + 0xec], xmm1
movss dword [esp + 0x9c], xmm0
call fcn.10040720
add esp, 8
test al, al
je 0x1003f04e
xor eax, eax
cmp dword [esp + 0x80], eax
sete al
lea eax, [eax*4 + 0xc]
push eax
push dword [esp + 0x68]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 0xd], 1
mov edx, dword [0x1010ec9c]
dec dword [edx + 0x49c4]
mov eax, dword [edx + 0x49cc]
mov ecx, dword [edx + 0x49c4]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x48c8], eax
call fcn.100148f0
mov edx, dword [esp + 0x10]
cmp byte [esp + 0x1b], 0
jne 0x1003f08b
cmp byte [esp + 0xf], 0
je 0x1003f19d
test edx, 0x8000000
je 0x1003f175
movss xmm2, dword [esp + 0x58]
lea eax, [edi + 8]
movss xmm1, dword [esp + 0x20]
lea edx, [edi + 4]
movss xmm0, dword [esp + 0x14]
mov ecx, edi
push eax
call fcn.10006680
mov ecx, dword [esp + 0x4c]
add esp, 4
movss xmm0, dword [esp + 0x14]
movss xmm1, dword [0x1005d9a4]
mov eax, dword [ecx + 0x5c34]
movss dword [ecx + 0x5c3c], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [ecx + 0x5c40], xmm0
xorps xmm0, xmm0
mov dword [ecx + 0x5c38], eax
movss xmm3, dword [edi]
comiss xmm0, xmm3
movss xmm4, dword [edi + 4]
movss xmm5, dword [edi + 8]
jbe 0x1003f109
xorps xmm2, xmm2
jmp 0x1003f110
movaps xmm2, xmm1
minss xmm2, xmm3
comiss xmm0, xmm4
movss xmm6, dword [0x1005daa4]
movss xmm3, dword [0x1005d964]
mulss xmm2, xmm6
addss xmm2, xmm3
cvttss2si edx, xmm2
jbe 0x1003f136
xorps xmm2, xmm2
jmp 0x1003f13d
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 0x1003f158
xorps xmm1, xmm1
jmp 0x1003f15c
minss xmm1, xmm5
mulss xmm1, xmm6
addss xmm1, xmm3
cvttss2si eax, xmm1
shl eax, 0x10
or eax, edx
mov dword [ecx + 0x5c44], eax
jmp 0x1003f19d
test edx, 0x10000000
je 0x1003f19d
movss xmm0, dword [esp + 0x14]
movss dword [edi], xmm0
movss xmm0, dword [esp + 0x20]
movss dword [edi + 4], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [edi + 8], xmm0
mov eax, dword [esp + 0x10]
mov byte [esp + 0xe], 0
test al, 0x20
jne 0x1003f3e2
cmp dword [esp + 0xb0], 0x10000
jne 0x1003f1c6
movss xmm0, dword [esp + 0xf8]
jmp 0x1003f1cf
movss xmm0, dword [esp + 0xd0]
addss xmm0, dword [esp + 0x60]
subss xmm0, dword [esp + 0x28]
call fcn.10014620
mov eax, dword [esp + 0x10]
mov ecx, eax
and ecx, 0x198e005a
mov dword [esp + 0x64], ecx
test eax, 0x100000
jne 0x1003f1fe
test eax, 0x700000
jne 0x1003f245
or ecx, 0x100004
mov edx, edi
push ecx
mov ecx, str.rgb
call fcn.1003cbd0
add esp, 4
test al, al
je 0x1003f23d
mov eax, dword [esp + 0x48]
cmp dword [eax + 0x3ff8], 0
je 0x1003f233
cmp byte [eax + 0x4005], 0
mov byte [esp + 0xe], 1
je 0x1003f238
mov byte [esp + 0xe], 0
mov byte [esp + 0xd], 1
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
test eax, 0x200000
jne 0x1003f253
test eax, 0x700000
jne 0x1003f271
or ecx, 0x200004
mov edx, edi
push ecx
mov ecx, str.hsv
call fcn.1003cbd0
add esp, 4
or byte [esp + 0xd], al
mov eax, dword [esp + 0x10]
test eax, 0x400000
jne 0x1003f27f
test eax, 0x700000
jne 0x1003f29c
mov eax, dword [esp + 0x64]
mov edx, edi
or eax, 0x400004
mov ecx, str.hex
push eax
call fcn.1003cbd0
add esp, 4
or byte [esp + 0xd], al
cmp byte [esp + 0xe], 0
mov ecx, dword [0x1010ec9c]
mov eax, dword [ecx + 0x3fa8]
mov byte [eax + 0xb0], 1
mov edx, dword [ecx + 0x3fa8]
mov ecx, dword [edx + 0x1b0]
mov eax, dword [edx + 0x1b8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x1a8], eax
lea eax, [ecx - 1]
mov dword [edx + 0x1b0], eax
mov eax, dword [esp + 0x10]
je 0x1003f3e2
test eax, 0x8000000
je 0x1003f3e2
movss xmm3, dword [edi + 4]
xorps xmm2, xmm2
movss xmm5, dword [edi + 8]
xorps xmm6, xmm6
comiss xmm5, xmm3
movss xmm4, dword [edi]
jbe 0x1003f318
movss xmm6, dword [0x1005db18]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x1003f335
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x1005db04]
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 [0x1005d904]
movaps xmm7, xmm1
mulss xmm1, dword [0x1005da08]
divss xmm7, xmm0
addss xmm1, dword [0x1005d904]
divss xmm3, xmm1
addss xmm3, xmm6
movss xmm6, dword [0x1005e050]
andps xmm3, xmm6
comiss xmm2, xmm3
jb 0x1003f3ea
movss xmm0, dword [esp + 0x14]
comiss xmm0, xmm2
jbe 0x1003f3ea
comiss xmm2, xmm4
jb 0x1003f3b7
movss xmm1, dword [esp + 0x58]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x1003f3b3
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x20]
mulss xmm2, dword [0x1005d964]
jmp 0x1003f3cd
mov eax, dword [esp + 0x10]
comiss xmm2, xmm7
jb 0x1003f3ea
movss xmm1, dword [esp + 0x20]
movaps xmm2, xmm4
mulss xmm1, dword [0x1005d964]
lea eax, [edi + 8]
mov ecx, edi
push eax
lea edx, [edi + 4]
call fcn.10006680
mov eax, dword [esp + 0x14]
add esp, 4
movss xmm6, dword [0x1005e050]
cmp byte [esp + 0xd], 0
je 0x1003f557
test eax, 0x8000000
je 0x1003f4eb
movss xmm0, dword [edi + 4]
xorps xmm4, xmm4
movss xmm1, dword [edi + 8]
movaps xmm2, xmm0
comiss xmm1, xmm0
movss xmm7, dword [edi]
movaps xmm5, xmm1
movss dword [esp + 0x8c], xmm7
movss dword [esp + 0x78], xmm0
movss dword [esp + 0x5c], xmm1
jbe 0x1003f43f
movss xmm4, dword [0x1005db18]
movaps xmm2, xmm1
movaps xmm5, xmm0
comiss xmm2, xmm7
movaps xmm3, xmm7
movss dword [esp + 0x58], xmm3
jbe 0x1003f468
movss xmm0, dword [0x1005db04]
movaps xmm3, xmm2
subss xmm0, xmm4
movss dword [esp + 0x58], xmm3
movaps xmm2, xmm7
movaps xmm4, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x14], xmm3
minss xmm0, xmm5
movaps xmm1, xmm3
subss xmm2, xmm5
mov ecx, edi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
subss xmm1, xmm0
push eax
lea edx, [esp + 0x28]
movaps xmm0, xmm1
mulss xmm0, dword [0x1005da08]
addss xmm0, dword [0x1005d904]
divss xmm2, xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x1005d904]
addss xmm2, xmm4
divss xmm1, xmm0
andps xmm2, xmm6
movss dword [esp + 0x28], xmm2
movss dword [esp + 0x24], xmm1
call fcn.1003cad0
movss xmm3, dword [esp + 0x28]
add esp, 8
movss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x14], xmm3
movss dword [esp + 0x20], xmm0
jmp 0x1003f55d
test eax, 0x10000000
je 0x1003f557
movss xmm1, dword [edi + 8]
lea eax, [esp + 0x74]
movss xmm3, dword [edi + 4]
lea edx, [esp + 0x70]
movss xmm0, dword [edi]
lea ecx, [esp + 0x7c]
movss dword [esp + 0x58], xmm1
movaps xmm2, xmm1
push eax
movaps xmm1, xmm3
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x24], xmm3
call fcn.10006680
movss xmm0, dword [esp + 0x80]
add esp, 4
movss dword [esp + 0x8c], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [esp + 0x78], xmm0
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0x5c], xmm0
movss xmm3, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
xorps xmm0, xmm0
movss xmm2, dword [eax + 0x38a8]
comiss xmm0, xmm2
movss xmm0, dword [0x1005d9a4]
jbe 0x1003f57e
xorps xmm1, xmm1
jmp 0x1003f585
movaps xmm1, xmm0
minss xmm1, xmm2
mulss xmm1, dword [0x1005daa4]
mov dword [esp + 0x90], 0x3f800000
movss dword [esp + 0x9c], xmm2
movaps xmm2, xmm0
mov dword [esp + 0x94], 0x3f800000
addss xmm1, dword [0x1005d964]
mov dword [esp + 0x98], 0x3f800000
cvttss2si edx, xmm1
movaps xmm1, xmm0
movaps xmm0, xmm3
shl edx, 0x18
mov eax, edx
mov dword [esp + 0x68], edx
or eax, 0xffffff
mov ecx, edx
mov dword [esp + 0x70], eax
or ecx, 0xff
mov eax, edx
mov dword [esp + 0x104], ecx
or eax, 0x808080
mov dword [esp + 0x11c], ecx
mov dword [esp + 0x74], eax
lea ecx, [esp + 0x90]
mov eax, edx
or eax, 0xffff
mov dword [esp + 0x108], eax
mov eax, edx
or eax, 0xff00
mov dword [esp + 0x10c], eax
mov eax, edx
or eax, 0xffff00
mov dword [esp + 0x110], eax
mov eax, edx
or eax, 0xff0000
mov dword [esp + 0x114], eax
mov eax, edx
or eax, 0xff00ff
lea edx, [esp + 0x94]
mov dword [esp + 0x118], eax
lea eax, [esp + 0x98]
push eax
call fcn.10006680
movss xmm1, dword [esp + 0x94]
xorps xmm2, xmm2
movss xmm3, dword [0x1005d9a4]
add esp, 4
comiss xmm2, xmm1
jbe 0x1003f681
xorps xmm0, xmm0
jmp 0x1003f688
movaps xmm0, xmm3
minss xmm0, xmm1
movss xmm4, dword [0x1005daa4]
movss xmm5, dword [0x1005d964]
movss xmm1, dword [esp + 0x94]
comiss xmm2, xmm1
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si ecx, xmm0
jbe 0x1003f6b7
xorps xmm0, xmm0
jmp 0x1003f6be
movaps xmm0, xmm3
minss xmm0, xmm1
movss xmm1, dword [esp + 0x98]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si eax, xmm0
shl eax, 8
or ecx, eax
comiss xmm2, xmm1
jbe 0x1003f6e2
xorps xmm0, xmm0
jmp 0x1003f6e9
movaps xmm0, xmm3
minss xmm0, xmm1
movss xmm1, dword [esp + 0x9c]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si eax, xmm0
shl eax, 0x10
or ecx, eax
comiss xmm2, xmm1
jbe 0x1003f70d
xorps xmm0, xmm0
jmp 0x1003f714
movaps xmm0, xmm3
minss xmm0, xmm1
movss xmm1, dword [esp + 0x8c]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si eax, xmm0
shl eax, 0x18
or eax, ecx
comiss xmm2, xmm1
mov dword [esp + 0x7c], eax
jbe 0x1003f73c
xorps xmm0, xmm0
jmp 0x1003f743
movaps xmm0, xmm3
minss xmm0, xmm1
movss xmm1, dword [esp + 0x78]
comiss xmm2, xmm1
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si ecx, xmm0
jbe 0x1003f75f
xorps xmm0, xmm0
jmp 0x1003f766
movaps xmm0, xmm3
minss xmm0, xmm1
movss xmm1, dword [esp + 0x5c]
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si eax, xmm0
shl eax, 8
or ecx, eax
comiss xmm2, xmm1
jbe 0x1003f787
xorps xmm0, xmm0
jmp 0x1003f78e
movaps xmm0, xmm3
minss xmm0, xmm1
mulss xmm0, xmm4
addss xmm0, xmm5
cvttss2si eax, xmm0
shl eax, 0x10
or ecx, eax
mov eax, dword [esp + 0x48]
movss xmm1, dword [eax + 0x38a8]
comiss xmm2, xmm1
jbe 0x1003f7b5
xorps xmm0, xmm0
jmp 0x1003f7bc
movaps xmm0, xmm3
minss xmm0, xmm1
mov eax, dword [esp + 0x10]
mulss xmm0, xmm4
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
addss xmm0, xmm5
cvttss2si edx, xmm0
shl edx, 0x18
or edx, ecx
mov dword [esp + 0x78], edx
test eax, 0x4000000
je 0x1003ff8e
movss xmm0, dword [esp + 0x24]
movaps xmm4, xmm5
movss xmm2, dword [esp + 0x84]
mov eax, 0x2aaaaaab
divss xmm4, xmm0
mov esi, dword [esp + 0x4c]
addss xmm2, xmm0
cvttss2si ecx, xmm0
mulss xmm2, xmm5
imul ecx
movss dword [esp + 0xbc], xmm4
movss dword [esp + 0x50], xmm2
mov ecx, 4
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ecx
cmovle eax, ecx
xor ecx, ecx
mov dword [esp + 0xb4], eax
mov dword [esp + 0x5c], ecx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
mov edi, dword [esi + 0x18]
push eax
push ecx
lea eax, [esp + 0xf0]
mov ecx, esi
movaps xmm0, xmm1
addss xmm1, xmm3
divss xmm0, dword [0x1005da08]
divss xmm1, dword [0x1005da08]
addss xmm0, xmm0
addss xmm1, xmm1
mulss xmm0, dword [0x1005d9f0]
mulss xmm1, dword [0x1005d9f0]
subss xmm0, xmm4
addss xmm1, xmm4
movaps xmm3, xmm0
movss dword [esp + 0x94], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x70], xmm1
call fcn.10026be0
movss xmm0, dword [esp + 0x6c]
push ecx
movss dword [esp], xmm0
mov ecx, esi
push 0
push dword [esp + 0x78]
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.100256f0
movss xmm0, dword [esp + 0x8c]
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 + 0x8c]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x84]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0xfc], 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 + 0x84]
addss xmm0, dword [esp + 0xd4]
movss dword [esp + 0x100], xmm0
movss xmm0, dword [esp + 0x64]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x64]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x84]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x28], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov eax, dword [esp + 0x5c]
mov edx, edi
cvtsd2ss xmm0, xmm0
mov ecx, esi
mulss xmm0, dword [esp + 0x84]
addss xmm0, dword [esp + 0xd4]
movss dword [esp + 0x2c], xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x108]
push dword [esp + 0x108]
push dword [esp + eax*4 + 0x118]
push dword [esp + eax*4 + 0x118]
push dword [esi + 0x18]
call fcn.100284a0
mov ecx, dword [esp + 0x78]
add esp, 0x1c
movss xmm3, dword [0x1005d9a4]
inc ecx
movss xmm2, dword [esp + 0x50]
cmp ecx, 6
movss xmm4, dword [esp + 0xbc]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x5c], ecx
jl 0x1003f852
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x1005d9d8]
mulss xmm0, dword [0x1005d9f0]
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 + 0x1c], xmm0
cvtps2pd xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cmp byte [esp + 0x1b], 0
xorps xmm3, xmm3
movss xmm4, dword [esp + 0x84]
addss xmm4, dword [esp + 0x24]
cvtsd2ss xmm3, xmm0
movss xmm0, dword [esp + 0x1c]
mulss xmm0, xmm4
movss xmm2, dword [esp + 0x6c]
movss dword [esp + 0x50], xmm3
mulss xmm0, dword [0x1005d964]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x28], xmm0
movaps xmm0, xmm3
mulss xmm0, xmm4
mulss xmm0, dword [0x1005d964]
addss xmm0, dword [esp + 0xd4]
movss dword [esp + 0x2c], xmm0
je 0x1003faaa
mulss xmm2, dword [0x1005d970]
jmp 0x1003fab2
mulss xmm2, dword [0x1005d968]
mov ecx, dword [esi + 0x2c]
movaps xmm0, xmm2
addss xmm0, dword [0x1005d9a0]
movss dword [esp + 0x6c], xmm2
cvttss2si eax, xmm0
cmp eax, 0x3f
ja 0x1003fad9
movzx edi, byte [ecx + eax + 0x1bc]
jmp 0x1003fb3f
movss xmm1, dword [ecx + 0x14]
minss xmm1, xmm2
movss xmm0, dword [0x1005d9a4]
divss xmm1, xmm2
subss xmm0, xmm1
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_acos_precise
movss xmm1, dword [0x1005d9f0]
cvtsd2ss xmm0, xmm0
divss xmm1, xmm0
movaps xmm0, xmm1
call fcn.10001700
movss xmm2, dword [esp + 0x6c]
cvttss2si eax, xmm0
inc eax
cdq
sub eax, edx
mov edi, eax
and edi, 0xfffffffe
cmp edi, 4
jge 0x1003fb31
mov edi, 4
jmp 0x1003fb3f
cmp edi, 0x200
mov eax, 0x200
cmovg edi, eax
push edi
push dword [esp + 0x80]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.10027c10
movss xmm2, dword [esp + 0x6c]
lea eax, [esp + 0x28]
addss xmm2, dword [0x1005d9a4]
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push edi
push dword [esp + 0x7c]
push eax
call fcn.10027b50
movss xmm2, dword [esp + 0x6c]
lea eax, [esp + 0x28]
push ecx
mov dword [esp], 0x3f800000
mov ecx, esi
push edi
mov edi, dword [esp + 0x78]
push edi
push eax
call fcn.10027b50
movss xmm3, dword [esp + 0x1c]
xorps xmm1, xmm1
movss xmm4, dword [esp + 0x50]
movaps xmm2, xmm3
movss xmm5, dword [esp + 0x38]
movaps xmm0, xmm4
movss xmm6, dword [esp + 0xc4]
mov ecx, esi
mulss xmm2, xmm5
mov eax, dword [0x1010ec9c]
mulss xmm0, xmm1
push 3
movss xmm7, dword [esp + 0xd8]
push 3
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm4
mulss xmm1, dword [esp + 0xa8]
addss xmm2, xmm6
movss dword [esp + 0x40], xmm2
movaps xmm2, xmm4
mulss xmm2, xmm5
movaps xmm5, xmm3
mulss xmm5, dword [esp + 0xa8]
addss xmm2, xmm0
movaps xmm0, xmm4
mulss xmm0, dword [esp + 0x90]
mulss xmm4, dword [esp + 0xac]
addss xmm2, xmm7
movss dword [esp + 0x44], xmm2
movaps xmm2, xmm5
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x90]
subss xmm5, xmm4
mulss xmm3, dword [esp + 0xac]
addss xmm0, xmm1
addss xmm2, xmm6
addss xmm3, xmm1
addss xmm5, xmm6
addss xmm0, xmm7
movss dword [esp + 0x30], xmm2
addss xmm3, xmm7
movss dword [esp + 0xbc], xmm5
movss dword [esp + 0x34], xmm0
movss xmm0, dword [eax + 0x3d1c]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [eax + 0x3d20]
movss dword [esp + 0x24], xmm3
movss dword [esp + 0xc0], xmm3
movss dword [esp + 0xc4], xmm0
call fcn.100254d0
mov ecx, dword [esi + 0x38]
mov ax, word [esi + 0x28]
mov word [ecx], ax
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss xmm4, dword [esp + 0x38]
movss xmm5, dword [esp + 0x3c]
movss dword [eax], xmm4
movss dword [eax + 4], xmm5
mov eax, dword [esi + 0x34]
movss xmm0, dword [esp + 0x50]
movss xmm1, dword [esp + 0xbc]
mov ecx, dword [esp + 0x7c]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
movss xmm2, dword [esp + 0x28]
movss xmm7, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
add dword [esi + 0x34], 0x14
mov eax, dword [esi + 0x38]
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
mov ecx, dword [esp + 0x68]
movss dword [eax], xmm2
movss dword [eax + 4], xmm7
mov eax, dword [esi + 0x34]
movss xmm2, dword [esp + 0xb4]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], ecx
mov eax, dword [esi + 0x38]
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
mov ecx, dword [esi + 0x28]
mov word [eax], cx
mov eax, dword [esi + 0x34]
add dword [esi + 0x38], 2
movss dword [eax], xmm2
movss xmm2, dword [esp + 0x1c]
movss dword [eax + 4], xmm2
mov eax, dword [esi + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [esi + 0x34]
mov dword [eax + 0x10], edi
add dword [esi + 0x34], 0x14
inc dword [esi + 0x28]
test dword [esp + 0x74], 0xff000000
je 0x1003fee4
mov eax, esi
add eax, 0x54
mov dword [esp + 0x5c], eax
mov edi, dword [eax + 4]
mov edx, dword [eax]
cmp edx, edi
jne 0x1003fddd
inc edx
mov dword [esp + 0x50], edx
test edi, edi
je 0x1003fdc7
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x50]
mov ecx, eax
mov eax, dword [esp + 0x5c]
sar ecx, 1
add ecx, edi
jmp 0x1003fdcc
mov ecx, 8
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
push edx
call fcn.1001cbf0
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov eax, esi
mov ecx, dword [esp + 0x5c]
add eax, 0x54
mov dword [esp + 0x24], eax
mov edx, dword [ecx]
inc edx
mov dword [ecx], edx
mov edi, dword [ecx + 4]
cmp edx, edi
jne 0x1003fe38
lea ecx, [edx + 1]
test edi, edi
je 0x1003fe1c
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1003fe21
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.1001cbf0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ecx, dword [ecx + 8]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov eax, esi
mov ecx, dword [esp + 0x24]
add eax, 0x54
mov dword [esp + 0x24], eax
mov edx, dword [ecx]
inc edx
mov dword [ecx], edx
mov edi, dword [eax + 4]
cmp edx, edi
jne 0x1003fe8f
lea ecx, [edx + 1]
test edi, edi
je 0x1003fe77
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1003fe7c
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.1001cbf0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
push ecx
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
mov edi, esi
mov eax, dword [esp + 0x28]
mov ecx, edi
mov dword [esp], 0x3fc00000
push 1
push dword [esp + 0x7c]
inc dword [eax]
push dword [eax]
push dword [edi + 0x5c]
call fcn.100256f0
movss xmm4, dword [esp + 0x38]
movss xmm5, dword [esp + 0x3c]
movss xmm7, dword [esp + 0x2c]
mov dword [edi + 0x54], 0
movss xmm3, dword [0x1005d9a4]
xorps xmm2, xmm2
movaps xmm0, xmm3
subss xmm0, dword [esp + 0x58]
comiss xmm2, xmm0
jbe 0x1003ff02
xorps xmm1, xmm1
jmp 0x1003ff09
movaps xmm1, xmm3
minss xmm1, xmm0
movss xmm6, dword [esp + 0x20]
comiss xmm2, xmm6
jbe 0x1003ff19
xorps xmm0, xmm0
jmp 0x1003ff20
movaps xmm0, xmm3
minss xmm0, xmm6
subss xmm5, dword [esp + 0x1c]
subss xmm4, dword [esp + 0xb4]
mov edi, dword [esp + 0xa8]
mov edx, dword [esp + 0x78]
mulss xmm5, xmm0
mulss xmm4, xmm0
addss xmm5, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x28]
addss xmm4, dword [esp + 0xb4]
subss xmm7, xmm5
subss xmm0, xmm4
mulss xmm7, xmm1
mulss xmm0, xmm1
addss xmm7, xmm5
movss xmm5, dword [0x1005d964]
addss xmm0, xmm4
movss dword [esp + 0xdc], xmm7
movss dword [esp + 0xd8], xmm0
jmp 0x10040306
test eax, 0x2000000
je 0x100402fe
movss xmm1, dword [esp + 0x28]
movss xmm2, dword [esp + 0x34]
movaps xmm0, xmm1
mov ecx, dword [esp + 0x70]
addss xmm0, xmm2
mov eax, dword [esp + 0x7c]
addss xmm1, xmm2
push ecx
push eax
push eax
movss dword [esp + 0x44], xmm0
lea eax, [esp + 0x44]
movss xmm0, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x5c]
addss xmm0, xmm2
push eax
lea eax, [esp + 0x3c]
movss dword [esp + 0x38], xmm1
push eax
movss dword [esp + 0x54], xmm0
call fcn.100278c0
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0xe8]
movss xmm0, dword [esp + 0x24]
push ecx
push ecx
mov ecx, dword [esp + 0x54]
push 0
push 0
push eax
movss dword [esp + 0xfc], xmm0
lea eax, [esp + 0x3c]
movss xmm0, dword [esp + 0x50]
push eax
movss dword [esp + 0x104], xmm0
call fcn.100278c0
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x50], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x54], xmm0
xorps xmm0, xmm0
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.100071f0
movss xmm3, dword [esp + 0x30]
xorps xmm0, xmm0
movss xmm1, dword [0x1005d9a4]
add esp, 0x10
comiss xmm0, xmm3
jbe 0x10040077
xorps xmm2, xmm2
jmp 0x1004007e
movaps xmm2, xmm1
minss xmm2, xmm3
movss xmm6, dword [esp + 0x34]
movss xmm7, dword [esp + 0x28]
movss xmm4, dword [0x1005d964]
mulss xmm2, xmm6
movss xmm5, dword [0x1005d9d8]
addss xmm2, xmm7
addss xmm2, xmm4
cvttss2si eax, xmm2
movaps xmm2, xmm7
addss xmm7, xmm6
addss xmm2, xmm5
movd xmm3, eax
cvtdq2ps xmm3, xmm3
subss xmm7, xmm5
comiss xmm2, xmm3
jbe 0x100400d0
movss dword [esp + 0xd8], xmm2
jmp 0x100400e9
comiss xmm3, xmm7
jbe 0x100400e0
movss dword [esp + 0xd8], xmm7
jmp 0x100400e9
movss dword [esp + 0xd8], xmm3
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x58]
comiss xmm0, xmm2
jbe 0x100400fc
xorps xmm1, xmm1
jmp 0x10040100
minss xmm1, xmm2
movss xmm3, dword [esp + 0x44]
mulss xmm1, xmm6
movss xmm0, dword [esp + 0x3c]
subss xmm0, xmm5
addss xmm1, xmm3
addss xmm1, xmm4
cvttss2si eax, xmm1
movaps xmm1, xmm3
addss xmm1, xmm5
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x1004013e
movss dword [esp + 0xdc], xmm1
jmp 0x10040157
comiss xmm2, xmm0
jbe 0x1004014e
movss dword [esp + 0xdc], xmm0
jmp 0x10040157
movss dword [esp + 0xdc], xmm2
movss xmm2, dword [esp + 0xd0]
movaps xmm1, xmm6
divss xmm1, dword [0x1005da08]
mov esi, dword [esp + 0x4c]
xor ecx, ecx
movaps xmm0, xmm2
movss dword [esp + 0x90], xmm2
addss xmm0, dword [esp + 0x60]
movss dword [esp + 0x50], xmm1
movss dword [esp + 0xe8], xmm0
mov eax, dword [esp + ecx*4 + 0x108]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0xf0]
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xf4], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0x10c]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0xa4]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm3
movss dword [esp + 0xac], xmm0
call fcn.100278c0
movss xmm1, dword [esp + 0x50]
mov ecx, edi
movss xmm3, dword [esp + 0x44]
cmp ecx, 6
jl 0x10040192
movss xmm2, dword [esp + 0x44]
movss xmm3, dword [esp + 0xd0]
movaps xmm0, xmm2
addss xmm0, dword [esp + 0x34]
movaps xmm1, xmm3
movss dword [esp + 0x2c], xmm2
addss xmm1, dword [esp + 0x60]
movss dword [esp + 0x28], 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 + 0x34]
push dword [esp + 0x34]
call fcn.100071f0
movd xmm2, dword [esp + 0xdc]
mov ecx, esi
cvtdq2ps xmm2, xmm2
movss xmm1, dword [esp + 0x70]
movaps xmm0, xmm2
movss dword [esp + 0x4c], xmm2
addss xmm0, dword [0x1005d9a4]
movss xmm2, dword [esp + 0xe0]
push dword [esp + 0x4c]
subss xmm2, dword [0x1005d9a4]
addss xmm1, dword [0x1005d9d8]
movss dword [esp + 0x4c], xmm0
movss xmm0, dword [esp + 0x28]
mulss xmm0, dword [esp + 0x48]
push dword [esp + 0x4c]
movss dword [esp + 0x40], xmm2
addss xmm0, dword [esp + 0x5c]
addss xmm0, dword [0x1005d964]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x60]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x38a8]
movss dword [esp + 0x44], xmm0
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.1003dd20
movss xmm5, dword [0x1005d964]
add esp, 0x20
mov edi, dword [esp + 0xa8]
mov edx, dword [esp + 0x78]
movss xmm3, dword [0x1005d9a4]
cmp byte [esp + 0xf], 0
je 0x10040328
movss xmm4, dword [0x1005da1c]
movss dword [esp + 0xac], xmm4
mov dword [esp + 0x24], 0xa
jmp 0x10040338
movss xmm4, dword [0x1005da08]
mov dword [esp + 0x24], 6
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x24]
mov eax, dword [ecx + 0x2c]
movzx eax, byte [esi + eax + 0x1bc]
mov esi, dword [esp + 0xcc]
mov dword [esp + 0x24], eax
test edx, 0xff000000
je 0x10040403
comiss xmm5, xmm4
ja 0x10040403
test eax, eax
jg 0x1004038d
push ecx
push 0x30
push 0
lea eax, [esp + 0xe4]
movaps xmm2, xmm4
push eax
call fcn.10026770
mov eax, dword [esp + 0x4c]
dec dword [eax + 0x54]
jmp 0x100403e3
cmp eax, 3
jge 0x10040399
mov edx, 3
jmp 0x100403a8
mov edx, eax
cmp eax, 0x200
mov eax, 0x200
cmovg edx, eax
movd xmm1, edx
lea eax, [edx - 1]
cvtdq2ps xmm1, xmm1
push eax
push ecx
lea eax, [esp + 0xe0]
movaps xmm2, xmm4
movaps xmm0, xmm1
subss xmm0, xmm3
xorps xmm3, xmm3
mulss xmm0, dword [0x1005da0c]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.10026be0
mov eax, dword [esp + 0x4c]
push dword [esp + 0x78]
mov ecx, eax
push dword [eax + 0x54]
push dword [eax + 0x5c]
call fcn.100263b0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
mov dword [ecx + 0x54], 0
movss xmm2, dword [esp + 0xac]
addss xmm2, dword [0x1005d9a4]
push ecx
mov dword [esp], 0x3f800000
push eax
push dword [esp + 0x7c]
lea eax, [esp + 0xe4]
push eax
call fcn.10027b50
movss xmm2, dword [esp + 0xac]
lea eax, [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0x50]
mov dword [esp], 0x3f800000
push dword [esp + 0x28]
push dword [esp + 0x78]
push eax
call fcn.10027b50
cmp dword [esp + 0xb0], 0x10000
jne 0x10040610
movss xmm2, dword [edi + 0xc]
xorps xmm1, xmm1
comiss xmm1, xmm2
jbe 0x10040481
movss dword [esp + 0xb0], xmm1
jmp 0x10040496
movss xmm0, dword [0x1005d9a4]
minss xmm0, xmm2
movss dword [esp + 0xb0], xmm0
movss xmm3, dword [esp + 0xf8]
xor edx, edx
movss xmm0, dword [esp + 0x44]
movaps xmm2, xmm3
addss xmm2, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
movss dword [esp + 0xec], xmm0
addss xmm0, dword [esp + 0x34]
mov dword [esp + 0x3c], 0
push dword [esp + 0x3c]
mov dword [esp + 0x3c], 0
push dword [esp + 0x3c]
movss dword [esp + 0xf8], xmm2
subss xmm2, xmm3
movss dword [esp + 0xfc], xmm0
push dword [esp + 0xfc]
movss dword [esp + 0xf4], xmm3
xorps xmm3, xmm3
push dword [esp + 0xfc]
mov edi, dword [esp + 0xf8]
push dword [esp + 0xfc]
mulss xmm2, dword [0x1005d964]
push edi
push 0
call fcn.1002c4a0
mov ecx, dword [esp + 0x94]
add esp, 0x1c
mov eax, ecx
and eax, 0xffffff
push eax
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.100278c0
push dword [esp + 0xf4]
xorps xmm0, xmm0
push dword [esp + 0xf4]
push dword [esp + 0xf4]
push edi
call fcn.100071f0
movss xmm1, dword [0x1005d9a4]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
movaps xmm0, xmm2
movss dword [esp + 0x4c], xmm2
movss xmm2, dword [esp + 0x108]
addss xmm0, xmm1
subss xmm2, xmm1
subss xmm1, dword [esp + 0xc0]
push dword [esp + 0x4c]
movss dword [esp + 0x4c], xmm0
push dword [esp + 0x4c]
mulss xmm1, dword [esp + 0x4c]
movss dword [esp + 0x40], xmm2
movss xmm2, dword [edi + 0x38a8]
addss xmm1, dword [esp + 0x5c]
addss xmm1, dword [0x1005d964]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x78]
addss xmm1, dword [0x1005d9d8]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x44], xmm0
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.1003dd20
add esp, 0x20
jmp 0x10040614
mov edi, dword [esp + 0x48]
call fcn.100148f0
mov dl, byte [esp + 0xd]
test dl, dl
je 0x10040712
mov ecx, dword [esp + 0xa8]
lea esi, [esp + 0x124]
xor edx, edx
cmp dword [esp + 0x80], edx
sete dl
lea edx, [edx*4 + 0xc]
sub edx, 4
jb 0x10040661
nop dword [eax + eax]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x1004066a
add esi, 4
add ecx, 4
sub edx, 4
jae 0x10040650
cmp edx, 0xfffffffc
je 0x10040710
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x1004069f
cmp edx, 0xfffffffd
je 0x10040710
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x1004069f
cmp edx, 0xfffffffe
je 0x10040710
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x1004069f
cmp edx, 0xffffffff
je 0x10040710
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x10040710
mov ecx, dword [edi + 0x48f0]
mov eax, dword [0x1010ec9c]
test ecx, ecx
je 0x100406d6
cmp word [eax + 0x5cba], 0
jg 0x100406d6
mov edx, dword [eax + 0x3ff8]
cmp edx, ecx
je 0x100406c6
test edx, edx
jne 0x100406cf
mov word [eax + 0x4008], 0x101
or dword [eax + 0x48f8], 4
mov dl, byte [esp + 0xd]
cmp dword [esp + 0x120], 0
jne 0x100406ee
mov dword [edi + 0x5c34], 0
mov ecx, dword [eax + 0x3fa8]
mov al, dl
pop edi
pop esi
dec dword [ecx + 0xec]
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.10054550
mov esp, ebp
pop ebp
ret
xor dl, dl
mov eax, dword [0x1010ec9c]
jmp 0x100406da