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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x1030e040]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [0x10317358]
mov dword [esp + 0x68], eax
push edi
mov edi, edx
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0x3f34]
mov edx, ecx
mov dword [esp + 0xb4], edi
mov dword [esp + 0x3c], edx
mov byte [eax + 0xe1], 1
mov eax, dword [esi + 0x3f34]
mov dword [esp + 0x9c], eax
cmp byte [eax + 0xe4], 0
je 0x100cecd5
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1013cfec
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x2a4]
mov dword [esp + 0x20], eax
call fcn.1005f3e0
mov ecx, edx
movss dword [esp + 0x54], xmm0
mov dword [esi + 0x4794], 0
mov dword [esi + 0x4798], 0
call fcn.1005c2b0
mov eax, dword [esi + 0x5b00]
mov dword [esp + 0xdc], eax
test eax, eax
jne 0x100ced33
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 0x11c]
mov eax, dword [eax + 0x124]
mov eax, dword [eax + ecx*4 - 4]
mov dword [esi + 0x5b00], eax
call fcn.1005f5c0
mov ecx, dword [ebp + 8]
mov edx, ecx
or edx, 0x10
test ecx, 0x100
cmovne edx, ecx
mov dword [esp + 0xb8], edx
test dl, 8
jne 0x100ced63
mov ecx, edi
call fcn.100d28f0
mov edx, dword [esp + 0xb8]
mov esi, 0xa900000
test edx, 0x6000000
jne 0x100ced8e
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x5afc]
test eax, 0x6000000
mov ecx, esi
cmovne ecx, eax
and ecx, 0x6000000
or ecx, edx
jmp 0x100ced90
mov ecx, edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0xc], ecx
test ecx, 0x18000000
jne 0x100cedba
mov eax, dword [edx + 0x5afc]
test eax, 0x18000000
cmovne esi, eax
and esi, 0x18000000
or ecx, esi
mov dword [esp + 0xc], ecx
test cl, 8
jne 0x100cedd0
mov eax, dword [edx + 0x5afc]
and eax, 0x10000
or ecx, eax
mov dword [esp + 0xc], ecx
mov eax, ecx
movss xmm2, dword [edx + 0x3880]
and eax, 2
and ecx, 0x10002
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xd8], ecx
movss xmm0, dword [eax + 0x12c]
movss xmm3, dword [eax + 0x128]
mov eax, dword [0x10317358]
movss dword [esp + 0x2c], xmm0
movss dword [esp + 0x64], xmm0
movaps xmm0, xmm2
movss dword [esp + 0x60], xmm3
movss xmm4, dword [eax + 0x386c]
addss xmm4, xmm4
addss xmm4, dword [eax + 0x3c9c]
xor eax, eax
cmp ecx, 0x10000
sete al
inc eax
addss xmm0, xmm4
movss dword [esp + 0x68], xmm4
movd xmm1, eax
xor eax, eax
cvtdq2ps xmm1, xmm1
cmp dword [esp + 0xd4], eax
sete al
mulss xmm1, xmm0
lea eax, [eax*4 + 0xc]
movss xmm0, dword [esp + 0x54]
push eax
subss xmm0, xmm1
movaps xmm1, xmm4
lea eax, [esp + 0x130]
push edi
push eax
maxss xmm1, xmm0
movaps xmm0, xmm3
addss xmm0, xmm1
movss dword [esp + 0x28], xmm1
addss xmm0, xmm2
movss dword [esp + 0x9c], xmm0
addss xmm0, xmm4
addss xmm0, xmm2
movss dword [esp + 0xd4], xmm0
movaps xmm0, xmm4
mulss xmm0, dword [0x102f3878]
cvttss2si esi, xmm0
mov dword [esp + 0xd8], esi
call sub.VCRUNTIME140.dll_memcpy
movss xmm1, dword [esp + 0x28]
add esp, 0xc
movaps xmm4, xmm1
mov dword [esp + 0x34], 0
mulss xmm4, dword [0x102f389c]
movaps xmm2, xmm1
mulss xmm2, dword [0x102f3858]
movaps xmm0, xmm4
movss dword [esp + 0x9c], xmm4
addss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x7c], xmm2
movaps xmm3, xmm4
subss xmm3, xmm2
movaps xmm2, xmm1
addss xmm2, dword [esp + 0x68]
movss dword [esp + 0xc0], xmm0
movss dword [esp + 0x110], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x102f3844]
movaps xmm1, xmm3
mulss xmm2, dword [0x102f389c]
cvttss2si eax, xmm0
addss xmm2, dword [esp + 0x60]
movss dword [esp + 0x80], xmm3
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc4], xmm2
subss xmm1, xmm0
movss dword [esp + 0x10c], xmm2
movss dword [esp + 0x30], xmm1
movss xmm7, dword [edi + 8]
movaps xmm0, xmm1
mulss xmm0, dword [0x102f3b50]
movaps xmm2, xmm1
mov eax, dword [esp + 0xc]
mulss xmm2, dword [0x102f3b64]
movss xmm6, dword [0x102f39e4]
movss xmm5, dword [0x102f3804]
movss dword [esp + 0xa4], xmm0
movss dword [esp + 0x11c], xmm0
movss dword [esp + 0xfc], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [0x102f38dc]
movss xmm1, dword [edi + 4]
movss dword [esp + 0x84], xmm2
movss dword [esp + 0x120], xmm2
movss dword [esp + 0xa8], xmm0
movss dword [esp + 0x100], xmm0
movss xmm0, dword [edi]
movss dword [esp + 0x10], xmm0
movaps xmm2, xmm0
movss dword [esp + 0x98], xmm2
movss dword [esp + 0x88], xmm2
movaps xmm2, xmm1
movss dword [esp + 0x70], xmm2
movss dword [esp + 0x94], xmm2
movaps xmm2, xmm7
movss dword [esp + 0x28], xmm1
movss dword [esp + 0x58], xmm7
movss dword [esp + 0x50], xmm2
movss dword [esp + 0x8c], xmm2
movss dword [esp + 0xd0], xmm6
test eax, 0x8000000
je 0x100cf119
comiss xmm7, xmm1
xorps xmm3, xmm3
movaps xmm2, xmm1
movaps xmm4, xmm7
jbe 0x100cf075
movss xmm3, dword [0x102f3b68]
movaps xmm2, xmm7
movaps xmm4, xmm1
comiss xmm2, xmm0
movaps xmm7, xmm0
movss dword [esp + 0x58], xmm7
jbe 0x100cf09e
movaps xmm7, xmm2
movaps xmm2, xmm0
movss xmm0, dword [0x102f3b4c]
subss xmm0, xmm3
movss dword [esp + 0x58], xmm7
movaps xmm3, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x10], xmm7
minss xmm0, xmm4
movaps xmm1, xmm7
subss xmm2, xmm4
mov ecx, edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
subss xmm1, xmm0
push eax
lea edx, [esp + 0x20]
movaps xmm0, xmm1
mulss xmm0, xmm6
addss xmm0, xmm5
divss xmm2, xmm0
movaps xmm0, xmm7
addss xmm0, xmm5
addss xmm2, xmm3
divss xmm1, xmm0
andps xmm2, xmmword [0x102f3f30]
movss dword [esp + 0x20], xmm2
movss dword [esp + 0x30], xmm1
call fcn.100cd5d0
movss xmm0, dword [esp + 0x20]
add esp, 8
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x28], xmm0
jmp 0x100cf16e
test eax, 0x10000000
je 0x100cf16e
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0x98]
lea ecx, [esp + 0x8c]
call fcn.1004c340
movss xmm0, dword [esp + 0x8c]
add esp, 4
movss dword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0x94]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x50], xmm0
mov ecx, dword [0x10317358]
lea edx, [ecx + 0x48a0]
mov byte [esp + 9], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0xb], 0
mov eax, dword [ecx + 0x478c]
or eax, 8
mov dword [esp + 0x18], edx
mov dword [ecx + 0x478c], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0xb8], eax
cmp dword [edx], ecx
jne 0x100cf1d6
test ecx, ecx
je 0x100cf1bd
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ecx
jmp 0x100cf1c2
mov eax, 8
mov ecx, dword [edx]
inc ecx
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edx
call fcn.10048870
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
mov eax, dword [edx + 8]
mov esi, dword [esp + 0xb8]
mov dword [eax + ecx*4], esi
inc dword [edx]
mov eax, dword [esp + 0xc]
test eax, 0x4000000
je 0x100cf810
movss xmm1, dword [esp + 0x1c]
lea edx, [esp + 0x40]
mov ecx, dword [esp + 0x24]
movaps xmm0, xmm1
push 0
movss dword [esp + 0x48], xmm1
addss xmm0, dword [ecx + 0x3880]
mov ecx, 0x102edd8c
addss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x44], xmm0
call fcn.100bee60
mov eax, dword [0x10317358]
add esp, 4
mov ecx, dword [eax + 0x3f80]
test ecx, ecx
je 0x100cf6b0
cmp ecx, dword [eax + 0x47ac]
jne 0x100cf6b0
mov eax, dword [esp + 0x24]
movss xmm0, dword [eax + 0x36b8]
subss xmm0, dword [esp + 0xc0]
movss xmm1, dword [eax + 0x36b4]
subss xmm1, dword [esp + 0xc4]
movss xmm4, dword [eax + 0xdc0]
movss xmm3, dword [eax + 0xdc4]
subss xmm4, dword [esp + 0xc4]
subss xmm3, dword [esp + 0xc0]
movaps xmm2, xmm0
movss dword [esp + 0x74], xmm0
mulss xmm2, xmm0
movaps xmm0, xmm1
mulss xmm0, xmm1
movss dword [esp + 0x54], xmm1
movss xmm1, dword [0x102f38f4]
addss xmm2, xmm0
movss dword [esp + 0x18], xmm4
movss xmm0, dword [esp + 0x80]
subss xmm0, xmm1
movss dword [esp + 0x78], xmm3
mulss xmm0, xmm0
comiss xmm2, xmm0
jb 0x100cf35a
movss xmm0, dword [esp + 0x9c]
addss xmm0, xmm1
mulss xmm0, xmm0
comiss xmm0, xmm2
jb 0x100cf35a
cvtps2pd xmm0, xmm3
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
cvtps2pd xmm0, xmm4
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
call sub.api_ms_win_crt_math_l1_1_0.dll__CIatan2
movss xmm2, dword [0x102f39bc]
xorps xmm0, xmm0
fstp qword [esp + 0x40]
movsd xmm1, qword [esp + 0x40]
cvtpd2ps xmm1, xmm1
divss xmm1, xmm2
mulss xmm1, dword [0x102f389c]
comiss xmm0, xmm1
movss dword [esp + 0x10], xmm1
jbe 0x100cf352
addss xmm1, dword [0x102f38f4]
movss dword [esp + 0x10], xmm1
mov al, 1
mov byte [esp + 9], al
jmp 0x100cf36c
mov al, byte [esp + 9]
movss xmm2, dword [0x102f39bc]
movss xmm1, dword [esp + 0x10]
movaps xmm0, xmm1
mov byte [esp + 0x17], al
xorps xmm0, xmmword [0x102f3f60]
addss xmm0, xmm0
mulss xmm0, xmm2
cvtss2sd xmm0, xmm0
movsd qword [esp + 0x40], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
movss dword [esp + 0xb8], xmm0
movsd xmm0, qword [esp + 0x40]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm6, dword [esp + 0xb8]
xorps xmm5, xmm5
cvtsd2ss xmm5, xmm0
movss xmm1, dword [esp + 0xa4]
movaps xmm3, xmm6
mulss xmm3, dword [esp + 0x54]
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x74]
movaps xmm4, xmm6
mulss xmm4, dword [esp + 0x74]
subss xmm3, xmm0
movss dword [esp + 0xac], xmm5
movaps xmm0, xmm5
movss xmm7, dword [esp + 0x30]
mulss xmm0, dword [esp + 0x54]
movaps xmm5, xmm1
subss xmm5, xmm1
movaps xmm2, xmm3
addss xmm4, xmm0
movss xmm0, dword [esp + 0x84]
subss xmm0, dword [esp + 0xa8]
subss xmm2, xmm1
subss xmm7, dword [esp + 0xa4]
movss dword [esp + 0x54], xmm5
movss dword [esp + 0xb8], xmm0
movaps xmm1, xmm2
mulss xmm1, xmm0
movaps xmm0, xmm4
subss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x5c], xmm7
mulss xmm0, xmm5
xorps xmm5, xmm5
subss xmm1, xmm0
xorps xmm0, xmm0
subss xmm0, dword [esp + 0x84]
comiss xmm5, xmm1
movaps xmm1, xmm0
movss dword [esp + 0x74], xmm0
movaps xmm0, xmm4
mulss xmm1, xmm2
seta cl
subss xmm0, dword [esp + 0x84]
mulss xmm0, xmm7
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x100cf6a8
movss xmm0, dword [esp + 0xa8]
subss xmm4, xmm5
subss xmm3, dword [esp + 0x30]
subss xmm0, xmm5
mulss xmm3, xmm0
movss xmm0, dword [esp + 0xa4]
subss xmm0, dword [esp + 0x30]
mulss xmm0, xmm4
subss xmm3, xmm0
comiss xmm5, xmm3
seta al
cmp cl, al
jne 0x100cf6a8
movss xmm1, dword [esp + 0xac]
movaps xmm7, xmm6
mulss xmm7, dword [esp + 0x18]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x18]
mulss xmm0, dword [esp + 0x78]
mulss xmm6, dword [esp + 0x78]
movss xmm4, dword [esp + 0xa4]
subss xmm7, xmm0
addss xmm6, xmm1
movaps xmm1, xmm7
movss dword [esp + 0x40], xmm7
subss xmm1, xmm4
movaps xmm0, xmm6
movss dword [esp + 0x44], xmm6
subss xmm0, dword [esp + 0xa8]
mulss xmm1, dword [esp + 0xb8]
mulss xmm0, dword [esp + 0x54]
subss xmm1, xmm0
movaps xmm0, xmm6
subss xmm0, dword [esp + 0x84]
comiss xmm5, xmm1
mulss xmm0, dword [esp + 0x5c]
movaps xmm1, xmm7
subss xmm1, xmm4
seta cl
mulss xmm1, dword [esp + 0x74]
subss xmm1, xmm0
comiss xmm5, xmm1
seta al
cmp al, cl
jne 0x100cf5b3
movss xmm0, dword [esp + 0xa8]
movaps xmm2, xmm7
subss xmm2, dword [esp + 0x30]
subss xmm0, xmm5
movaps xmm1, xmm4
subss xmm1, dword [esp + 0x30]
mulss xmm2, xmm0
movaps xmm0, xmm6
subss xmm0, xmm5
mulss xmm1, xmm0
subss xmm2, xmm1
comiss xmm5, xmm2
seta al
cmp cl, al
je 0x100cf5f0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x100]
push eax
lea eax, [esp + 0x124]
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0xc4]
call fcn.1004b6d0
movss xmm4, dword [esp + 0xb0]
add esp, 0xc
xorps xmm5, xmm5
movss xmm7, dword [eax]
movss xmm6, dword [eax + 4]
movss xmm3, dword [esp + 0xa8]
subss xmm6, xmm5
subss xmm7, dword [esp + 0x30]
movaps xmm1, xmm4
subss xmm3, xmm5
movss xmm4, dword [esp + 0x84]
subss xmm1, dword [esp + 0x30]
subss xmm4, xmm5
movaps xmm2, xmm3
mulss xmm3, xmm7
mulss xmm2, xmm1
mulss xmm6, xmm1
movaps xmm0, xmm4
mulss xmm0, xmm1
subss xmm3, xmm6
mulss xmm7, xmm4
subss xmm2, xmm0
movss xmm1, dword [0x102f38f4]
movaps xmm5, xmm1
subss xmm6, xmm7
divss xmm3, xmm2
divss xmm6, xmm2
subss xmm5, xmm3
movss xmm3, dword [0x102f381c]
movss dword [esp + 0x28], xmm3
comiss xmm3, xmm5
movaps xmm2, xmm5
subss xmm2, xmm6
jbe 0x100cf679
movaps xmm0, xmm3
jmp 0x100cf680
movaps xmm0, xmm1
minss xmm0, xmm5
divss xmm2, xmm0
movss dword [esp + 0x58], xmm0
comiss xmm3, xmm2
ja 0x100cf69c
movaps xmm3, xmm1
minss xmm3, xmm2
movss dword [esp + 0x28], xmm3
mov byte [esp + 0xb], 1
mov byte [esp + 9], 1
jmp 0x100cf6b0
mov al, byte [esp + 9]
mov byte [esp + 0x17], al
mov eax, dword [esp + 0xc]
test al, 8
jne 0x100cf733
mov eax, dword [0x10317358]
mov ecx, 1
mov esi, dword [eax + 0x3f34]
mov dword [esp + 0x5c], esi
call fcn.1005cb20
test al, al
je 0x100cf733
mov ecx, 0x20
call fcn.10050d30
test al, al
je 0x100cf733
mov ecx, dword [esi + 0x11c]
xor edx, edx
mov eax, dword [esi + 0x124]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.1004bb50
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
cmp dword [eax + 0x3f68], esi
jne 0x100cf727
push ecx
push str.context
mov edx, 0xb
mov ecx, esi
call fcn.1007a060
add esp, 8
mov edx, 1
mov ecx, esi
call fcn.10060170
movss xmm3, dword [esp + 0x2c]
movss xmm4, dword [esp + 0x1c]
cmp dword [esp + 0xd8], 0x10000
mov esi, dword [esp + 0xcc]
jne 0x100cfb0f
mov ecx, dword [0x10317358]
lea edx, [esp + 0x40]
movss xmm0, dword [esp + 0xc8]
push 0
movss dword [esp + 0x48], xmm4
mov eax, dword [ecx + 0x3f34]
mov byte [eax + 0xe1], 1
mov eax, dword [ecx + 0x3f34]
mov ecx, str.alpha
movss dword [eax + 0x128], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [eax + 0x12c], xmm3
mov byte [eax + 0x169], 1
movss dword [esp + 0x44], xmm0
call fcn.100bee60
mov eax, dword [0x10317358]
add esp, 4
mov ecx, dword [eax + 0x3f80]
test ecx, ecx
je 0x100cfb0f
cmp ecx, dword [eax + 0x47ac]
jne 0x100cfb0f
mov eax, dword [esp + 0x24]
xorps xmm2, xmm2
movss xmm0, dword [esp + 0x1c]
movss xmm1, dword [0x102f38f4]
subss xmm0, xmm1
movss xmm3, dword [eax + 0xdc4]
subss xmm3, dword [esp + 0x2c]
divss xmm3, xmm0
comiss xmm2, xmm3
jbe 0x100cfaf7
xorps xmm4, xmm4
jmp 0x100cfafe
test eax, 0x2000000
je 0x100cf733
movss xmm0, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push 0
mov ecx, 0x102edd90
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x48], xmm0
call fcn.100bee60
mov ecx, dword [0x10317358]
add esp, 4
mov eax, dword [ecx + 0x3f80]
test eax, eax
je 0x100cf981
cmp eax, dword [ecx + 0x47ac]
jne 0x100cf981
mov eax, dword [esp + 0x24]
xorps xmm0, xmm0
movss xmm4, dword [esp + 0x1c]
movss xmm1, dword [0x102f38f4]
subss xmm4, xmm1
movss xmm2, dword [eax + 0xdc0]
subss xmm2, dword [esp + 0x60]
divss xmm2, xmm4
comiss xmm0, xmm2
jbe 0x100cf898
movss dword [esp + 0x28], xmm0
jmp 0x100cf8a5
movaps xmm3, xmm1
minss xmm3, xmm2
movss dword [esp + 0x28], xmm3
movss xmm2, dword [eax + 0xdc4]
subss xmm2, dword [esp + 0x2c]
divss xmm2, xmm4
comiss xmm0, xmm2
jbe 0x100cf8c1
xorps xmm3, xmm3
jmp 0x100cf8c8
movaps xmm3, xmm1
minss xmm3, xmm2
mov eax, dword [ecx + 0x5b04]
movaps xmm2, xmm1
subss xmm2, xmm3
movss dword [esp + 0x58], xmm2
cmp eax, dword [ecx + 0x5b00]
jne 0x100cf979
movss xmm2, dword [edi]
comiss xmm0, xmm2
movss xmm4, dword [edi + 4]
movss xmm5, dword [edi + 8]
jbe 0x100cf8ff
xorps xmm3, xmm3
jmp 0x100cf906
movaps xmm3, xmm1
minss xmm3, xmm2
comiss xmm0, xmm4
movss xmm6, dword [0x102f3abc]
movss xmm2, dword [0x102f389c]
mulss xmm3, xmm6
addss xmm3, xmm2
cvttss2si edx, xmm3
jbe 0x100cf92c
xorps xmm3, xmm3
jmp 0x100cf933
movaps xmm3, xmm1
minss xmm3, xmm4
mulss xmm3, xmm6
addss xmm3, xmm2
cvttss2si eax, xmm3
shl eax, 8
or edx, eax
comiss xmm0, xmm5
jbe 0x100cf94e
xorps xmm1, xmm1
jmp 0x100cf952
minss xmm1, xmm5
mulss xmm1, xmm6
addss xmm1, xmm2
cvttss2si eax, xmm1
shl eax, 0x10
or eax, edx
cmp dword [ecx + 0x5b10], eax
jne 0x100cf979
movss xmm0, dword [ecx + 0x5b08]
movss dword [esp + 0x10], xmm0
mov al, 1
mov byte [esp + 9], al
jmp 0x100cf985
mov al, byte [esp + 9]
mov byte [esp + 0xb], al
mov byte [esp + 0xa], al
mov eax, dword [esp + 0xc]
test al, 8
jne 0x100cfa11
mov esi, dword [ecx + 0x3f34]
mov ecx, 1
mov dword [esp + 0x5c], esi
call fcn.1005cb20
test al, al
je 0x100cfa0b
mov ecx, 0x20
call fcn.10050d30
test al, al
je 0x100cfa0b
mov ecx, dword [esi + 0x11c]
xor edx, edx
mov eax, dword [esi + 0x124]
push dword [eax + ecx*4 - 4]
mov ecx, str.context
call fcn.1004bb50
mov esi, eax
add esp, 4
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
cmp dword [eax + 0x3f68], esi
jne 0x100cf9ff
push ecx
push str.context
mov edx, 0xb
mov ecx, esi
call fcn.1007a060
add esp, 8
mov edx, 1
mov ecx, esi
call fcn.10060170
mov ecx, dword [0x10317358]
mov eax, dword [ecx + 0x3f34]
lea edx, [esp + 0x40]
movss xmm0, dword [esp + 0x90]
push 0
mov byte [eax + 0xe1], 1
mov eax, dword [ecx + 0x3f34]
mov ecx, 0x102edd94
movss dword [eax + 0x128], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [eax + 0x12c], xmm0
movss xmm0, dword [esp + 0x6c]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x20]
mov byte [eax + 0x169], 1
movss dword [esp + 0x48], xmm0
call fcn.100bee60
mov eax, dword [0x10317358]
add esp, 4
mov ecx, dword [eax + 0x3f80]
test ecx, ecx
je 0x100cf733
mov dl, byte [esp + 9]
mov byte [esp + 0xb], dl
cmp ecx, dword [eax + 0x47ac]
jne 0x100cf733
mov ecx, dword [esp + 0x24]
movss xmm4, dword [esp + 0x1c]
movss xmm3, dword [esp + 0x2c]
movaps xmm0, xmm4
movss xmm1, dword [0x102f38f4]
movss xmm2, dword [ecx + 0xdc4]
subss xmm0, xmm1
subss xmm2, xmm3
divss xmm2, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm2
ja 0x100cfada
movaps xmm0, xmm1
minss xmm0, xmm2
mov al, byte [esp + 0xa]
movss dword [esp + 0x10], xmm0
mov byte [esp + 0x17], 1
mov byte [esp + 9], 1
mov byte [esp + 0xb], al
jmp 0x100cf73f
movaps xmm4, xmm1
minss xmm4, xmm3
movaps xmm0, xmm1
mov byte [esp + 9], 1
subss xmm0, xmm4
movss dword [edi + 0xc], xmm0
mov edx, dword [0x10317358]
dec dword [edx + 0x48a0]
mov eax, dword [edx + 0x48a8]
mov ecx, dword [edx + 0x48a0]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x478c], eax
mov edx, dword [esp + 0xc]
test edx, 0x100
jne 0x100cfb5a
mov eax, dword [esp + 0x24]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x3880]
call fcn.1005efa0
call fcn.1005f5c0
mov edx, dword [esp + 0xc]
test dl, dl
js 0x100cfbc2
mov ecx, dword [esp + 0x3c]
cmp ecx, 0xffffffff
jae 0x100cfbc2
mov al, byte [ecx]
mov byte [esp + 0xa], al
test al, al
je 0x100cfb80
cmp al, 0x23
jne 0x100cfb7a
cmp byte [ecx + 1], al
je 0x100cfb80
inc ecx
cmp ecx, 0xffffffff
jb 0x100cfb67
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
cmp eax, ecx
je 0x100cfbc2
test edx, 0x100
je 0x100cfbb0
mov eax, dword [esp + 0x24]
xorps xmm0, xmm0
movss xmm1, dword [eax + 0x3880]
call fcn.1005efa0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov edx, ecx
mov ecx, eax
push 0
call fcn.100bd360
mov edx, dword [esp + 0x10]
add esp, 4
test edx, 0x100
jne 0x100cfdff
mov eax, dword [0x10317358]
mov ecx, dword [eax + 0x478c]
or ecx, 0x10
mov dword [eax + 0x478c], ecx
add eax, 0x48a0
mov dword [esp + 0xac], ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [eax + 4]
mov dword [esp + 0x5c], ecx
cmp dword [eax], ecx
jne 0x100cfc39
mov edx, dword [eax]
inc edx
mov dword [esp + 0x78], edx
test ecx, ecx
je 0x100cfc1f
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
mov ecx, eax
mov eax, dword [esp + 0x3c]
sar ecx, 1
add ecx, dword [esp + 0x5c]
jmp 0x100cfc24
mov ecx, 8
cmp ecx, edx
cmovg edx, ecx
mov ecx, eax
push edx
call fcn.10048870
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov esi, dword [esp + 0xac]
mov dword [eax + ecx*4], esi
mov eax, dword [esp + 0x3c]
inc dword [eax]
test dl, 2
je 0x100cfc5d
movss xmm1, dword [0x102f38f4]
jmp 0x100cfc62
movss xmm1, dword [edi + 0xc]
movss xmm0, dword [edi]
mov esi, dword [esp + 0xcc]
movss dword [esp + 0xfc], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x100], xmm0
movss xmm0, dword [edi + 8]
movss dword [esp + 0x104], xmm0
movss dword [esp + 0x108], xmm1
test dl, dl
jns 0x100cfcb0
push str.Current
call fcn.100bda30
mov edx, dword [esp + 0x10]
add esp, 4
movss xmm1, dword [esp + 0x68]
lea ecx, [esp + 0x40]
movaps xmm0, xmm1
and edx, 0x180e0040
mulss xmm0, dword [0x102f39b8]
push ecx
mov dword [esp + 0xb0], edx
mov ecx, str.current
push edx
movss dword [esp + 0x64], xmm0
lea edx, [esp + 0x104]
movss dword [esp + 0x48], xmm0
movaps xmm0, xmm1
addss xmm0, xmm1
movss dword [esp + 0x80], xmm0
movss dword [esp + 0x4c], xmm0
call fcn.100d1600
add esp, 8
cmp dword [esp + 0x6c], 0
je 0x100cfdd4
push str.Original
call fcn.100bda30
mov eax, dword [esp + 0x10]
add esp, 4
test al, 2
mov eax, dword [esp + 0x6c]
je 0x100cfd38
movss xmm1, dword [0x102f38f4]
jmp 0x100cfd3d
movss xmm1, dword [eax + 0xc]
movss xmm0, dword [eax]
lea edx, [esp + 0x11c]
movss dword [esp + 0x11c], xmm0
mov ecx, str.original
movss xmm0, dword [eax + 4]
movss dword [esp + 0x120], xmm0
movss xmm0, dword [eax + 8]
lea eax, [esp + 0x40]
movss dword [esp + 0x124], xmm0
movss xmm0, dword [esp + 0x5c]
push eax
push dword [esp + 0xb0]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [esp + 0x80]
movss dword [esp + 0x130], xmm1
movss dword [esp + 0x4c], xmm0
call fcn.100d1600
add esp, 8
test al, al
je 0x100cfdd4
xor eax, eax
cmp dword [esp + 0xd4], eax
sete al
lea eax, [eax*4 + 0xc]
push eax
push dword [esp + 0x70]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + 9], 1
mov edx, dword [0x10317358]
dec dword [edx + 0x48a0]
mov eax, dword [edx + 0x48a8]
mov ecx, dword [edx + 0x48a0]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x478c], eax
call fcn.1005f6f0
mov edx, dword [esp + 0xc]
cmp byte [esp + 0x17], 0
jne 0x100cfe11
cmp byte [esp + 0xb], 0
je 0x100cfed1
test edx, 0x8000000
je 0x100cfea9
movss xmm2, dword [esp + 0x58]
lea eax, [edi + 8]
movss xmm1, dword [esp + 0x28]
lea edx, [edi + 4]
movss xmm0, dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.1004c340
mov ecx, dword [esp + 0x28]
add esp, 4
movss xmm0, dword [esp + 0x10]
mov dword [esp + 0x4c], 0
mov eax, dword [ecx + 0x5b00]
movss dword [ecx + 0x5b08], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [ecx + 0x5b0c], xmm0
mov dword [ecx + 0x5b04], eax
lea ecx, [esp + 0x40]
movss xmm0, dword [edi]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [edi + 4]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [edi + 8]
movss dword [esp + 0x48], xmm0
call fcn.1004c290
mov ecx, dword [esp + 0x24]
mov dword [ecx + 0x5b10], eax
jmp 0x100cfed1
test edx, 0x10000000
je 0x100cfed1
movss xmm0, dword [esp + 0x10]
movss dword [edi], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [edi + 4], xmm0
movss xmm0, dword [esp + 0x58]
movss dword [edi + 8], xmm0
mov eax, dword [esp + 0xc]
mov byte [esp + 0xa], 0
test al, 0x20
jne 0x100d0116
cmp dword [esp + 0xd8], 0x10000
jne 0x100cfefa
movss xmm0, dword [esp + 0xc8]
jmp 0x100cff03
movss xmm0, dword [esp + 0x90]
addss xmm0, dword [esp + 0x68]
subss xmm0, dword [esp + 0x60]
call fcn.1005f1b0
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0x198e001a
mov dword [esp + 0x3c], ecx
test eax, 0x100000
jne 0x100cff32
test eax, 0x700000
jne 0x100cff79
or ecx, 0x100004
mov edx, edi
push ecx
mov ecx, str.rgb
call fcn.100cd6d0
add esp, 4
test al, al
je 0x100cff71
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x3f80], 0
je 0x100cff67
cmp byte [eax + 0x3f8d], 0
mov byte [esp + 0xa], 1
je 0x100cff6c
mov byte [esp + 0xa], 0
mov byte [esp + 9], 1
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0xc]
test eax, 0x200000
jne 0x100cff87
test eax, 0x700000
jne 0x100cffa5
or ecx, 0x200004
mov edx, edi
push ecx
mov ecx, str.hsv
call fcn.100cd6d0
add esp, 4
or byte [esp + 9], al
mov eax, dword [esp + 0xc]
test eax, 0x400000
jne 0x100cffb3
test eax, 0x700000
jne 0x100cffd0
mov eax, dword [esp + 0x3c]
mov edx, edi
or eax, 0x400004
mov ecx, str.hex
push eax
call fcn.100cd6d0
add esp, 4
or byte [esp + 9], al
cmp byte [esp + 0xa], 0
mov ecx, dword [0x10317358]
mov eax, dword [ecx + 0x3f34]
mov byte [eax + 0xe1], 1
mov edx, dword [ecx + 0x3f34]
mov ecx, dword [edx + 0x1e0]
mov eax, dword [edx + 0x1e8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edx + 0x1d8], eax
lea eax, [ecx - 1]
mov dword [edx + 0x1e0], eax
mov eax, dword [esp + 0xc]
je 0x100d0116
test eax, 0x8000000
je 0x100d0116
movss xmm3, dword [edi + 4]
xorps xmm2, xmm2
movss xmm5, dword [edi + 8]
xorps xmm6, xmm6
comiss xmm5, xmm3
movss xmm4, dword [edi]
jbe 0x100d004c
movss xmm6, dword [0x102f3b68]
movaps xmm0, xmm3
movaps xmm3, xmm5
movaps xmm5, xmm0
comiss xmm3, xmm4
jbe 0x100d0069
movaps xmm0, xmm4
movaps xmm4, xmm3
movaps xmm3, xmm0
movss xmm0, dword [0x102f3b4c]
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 [0x102f3804]
movaps xmm7, xmm1
mulss xmm1, dword [0x102f39e4]
divss xmm7, xmm0
addss xmm1, dword [0x102f3804]
divss xmm3, xmm1
addss xmm3, xmm6
movss xmm6, dword [0x102f3f30]
andps xmm3, xmm6
comiss xmm2, xmm3
jb 0x100d011e
movss xmm0, dword [esp + 0x10]
comiss xmm0, xmm2
jbe 0x100d011e
comiss xmm2, xmm4
jb 0x100d00eb
movss xmm1, dword [esp + 0x58]
ucomiss xmm1, xmm4
lahf
test ah, 0x44
jnp 0x100d00e7
movaps xmm2, xmm1
movss xmm1, dword [esp + 0x28]
mulss xmm2, dword [0x102f389c]
jmp 0x100d0101
mov eax, dword [esp + 0xc]
comiss xmm2, xmm7
jb 0x100d011e
movss xmm1, dword [esp + 0x28]
movaps xmm2, xmm4
mulss xmm1, dword [0x102f389c]
lea eax, [edi + 8]
mov ecx, edi
push eax
lea edx, [edi + 4]
call fcn.1004c340
mov eax, dword [esp + 0x10]
add esp, 4
movss xmm6, dword [0x102f3f30]
cmp byte [esp + 9], 0
je 0x100d029d
test eax, 0x8000000
je 0x100d0222
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 + 0x98], xmm7
movss dword [esp + 0x70], xmm0
movss dword [esp + 0x50], xmm1
jbe 0x100d0173
movss xmm4, dword [0x102f3b68]
movaps xmm2, xmm1
movaps xmm5, xmm0
comiss xmm2, xmm7
movaps xmm3, xmm7
movss dword [esp + 0x58], xmm3
jbe 0x100d019c
movss xmm0, dword [0x102f3b4c]
movaps xmm3, xmm2
subss xmm0, xmm4
movss dword [esp + 0x58], xmm3
movaps xmm2, xmm7
movaps xmm4, xmm0
movaps xmm0, xmm2
movss dword [esp + 0x10], xmm3
minss xmm0, xmm5
movaps xmm1, xmm3
subss xmm2, xmm5
mov ecx, edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
subss xmm1, xmm0
push eax
lea edx, [esp + 0x20]
movaps xmm0, xmm1
mulss xmm0, dword [0x102f39e4]
addss xmm0, dword [0x102f3804]
divss xmm2, xmm0
movaps xmm0, xmm3
addss xmm0, dword [0x102f3804]
addss xmm2, xmm4
divss xmm1, xmm0
andps xmm2, xmm6
movss dword [esp + 0x20], xmm2
movss dword [esp + 0x30], xmm1
call fcn.100cd5d0
movss xmm3, dword [esp + 0x20]
add esp, 8
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x10], xmm3
movss dword [esp + 0x28], xmm0
jmp 0x100d02a3
test eax, 0x10000000
je 0x100d029d
movss xmm1, dword [edi + 8]
lea eax, [esp + 0x8c]
movss xmm3, dword [edi + 4]
lea edx, [esp + 0x94]
movss xmm0, dword [edi]
lea ecx, [esp + 0x88]
movss dword [esp + 0x58], xmm1
movaps xmm2, xmm1
push eax
movaps xmm1, xmm3
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x2c], xmm3
call fcn.1004c340
movss xmm0, dword [esp + 0x8c]
add esp, 4
movss dword [esp + 0x98], xmm0
movss xmm0, dword [esp + 0x94]
movss dword [esp + 0x70], xmm0
movss xmm0, dword [esp + 0x8c]
movss dword [esp + 0x50], xmm0
movss xmm3, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
xorps xmm0, xmm0
movss xmm2, dword [eax + 0x382c]
comiss xmm0, xmm2
movss xmm0, dword [0x102f38f4]
jbe 0x100d02c4
xorps xmm1, xmm1
jmp 0x100d02cb
movaps xmm1, xmm0
minss xmm1, xmm2
mulss xmm1, dword [0x102f3abc]
mov dword [esp + 0x40], 0x3f800000
movss dword [esp + 0x4c], xmm2
movaps xmm2, xmm0
mov dword [esp + 0x44], 0x3f800000
addss xmm1, dword [0x102f389c]
mov dword [esp + 0x48], 0x3f800000
cvttss2si edx, xmm1
movaps xmm1, xmm0
movaps xmm0, xmm3
shl edx, 0x18
mov eax, edx
mov dword [esp + 0x54], edx
or eax, 0xffffff
mov ecx, edx
mov dword [esp + 0x18], eax
or ecx, 0xff
mov eax, edx
mov dword [esp + 0xe0], ecx
or eax, 0x808080
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x6c], eax
lea ecx, [esp + 0x40]
mov eax, edx
or eax, 0xffff
mov dword [esp + 0xe4], eax
mov eax, edx
or eax, 0xff00
mov dword [esp + 0xe8], eax
mov eax, edx
or eax, 0xffff00
mov dword [esp + 0xec], eax
mov eax, edx
or eax, 0xff0000
mov dword [esp + 0xf0], eax
mov eax, edx
or eax, 0xff00ff
lea edx, [esp + 0x44]
mov dword [esp + 0xf4], eax
lea eax, [esp + 0x48]
push eax
call fcn.1004c340
movss xmm1, dword [esp + 0x44]
xorps xmm0, xmm0
movss xmm2, dword [0x102f38f4]
add esp, 4
comiss xmm0, xmm1
jbe 0x100d03af
xorps xmm3, xmm3
jmp 0x100d03b6
movaps xmm3, xmm2
minss xmm3, xmm1
movss xmm5, dword [0x102f3abc]
movss xmm1, dword [0x102f389c]
movss xmm4, dword [esp + 0x44]
comiss xmm0, xmm4
mulss xmm3, xmm5
addss xmm3, xmm1
cvttss2si ecx, xmm3
jbe 0x100d03e2
xorps xmm3, xmm3
jmp 0x100d03e9
movaps xmm3, xmm2
minss xmm3, xmm4
movss xmm4, dword [esp + 0x48]
mulss xmm3, xmm5
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm0, xmm4
jbe 0x100d040a
xorps xmm3, xmm3
jmp 0x100d0411
movaps xmm3, xmm2
minss xmm3, xmm4
movss xmm4, dword [esp + 0x4c]
mulss xmm3, xmm5
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 0x10
or ecx, eax
comiss xmm0, xmm4
jbe 0x100d0432
xorps xmm3, xmm3
jmp 0x100d0439
movaps xmm3, xmm2
minss xmm3, xmm4
movss xmm4, dword [esp + 0x98]
mulss xmm3, xmm5
addss xmm3, xmm1
cvttss2si edx, xmm3
shl edx, 0x18
or edx, ecx
comiss xmm0, xmm4
mov dword [esp + 0x74], edx
jbe 0x100d0461
xorps xmm3, xmm3
jmp 0x100d0468
movaps xmm3, xmm2
minss xmm3, xmm4
movss xmm4, dword [esp + 0x70]
comiss xmm0, xmm4
mulss xmm3, xmm5
addss xmm3, xmm1
cvttss2si ecx, xmm3
jbe 0x100d0484
xorps xmm3, xmm3
jmp 0x100d048b
movaps xmm3, xmm2
minss xmm3, xmm4
movss xmm4, dword [esp + 0x50]
mulss xmm3, xmm5
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 8
or ecx, eax
comiss xmm0, xmm4
jbe 0x100d04ac
xorps xmm3, xmm3
jmp 0x100d04b3
movaps xmm3, xmm2
minss xmm3, xmm4
mulss xmm3, xmm5
addss xmm3, xmm1
cvttss2si eax, xmm3
shl eax, 0x10
or ecx, eax
mov eax, dword [esp + 0x24]
movss xmm3, dword [eax + 0x382c]
comiss xmm0, xmm3
ja 0x100d04dc
movaps xmm0, xmm2
minss xmm0, xmm3
mulss xmm0, xmm5
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
addss xmm0, xmm1
cvttss2si eax, xmm0
shl eax, 0x18
or eax, ecx
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc]
test eax, 0x4000000
je 0x100d0df3
movss xmm0, dword [esp + 0x9c]
movaps xmm3, xmm1
movss xmm4, dword [esp + 0x80]
mov eax, 0x2aaaaaab
divss xmm3, xmm0
mov esi, dword [esp + 0x20]
addss xmm4, xmm0
cvttss2si ecx, xmm0
mulss xmm4, xmm1
imul ecx
movss dword [esp + 0xfc], xmm3
movss dword [esp + 0x11c], xmm4
mov eax, 4
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, eax
cmovle ecx, eax
xor eax, eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x50], eax
movd xmm1, eax
lea eax, [esp + 0x10c]
cvtdq2ps xmm1, xmm1
mov edi, dword [esi + 0x18]
push ecx
push ecx
mov ecx, esi
movaps xmm0, xmm1
addss xmm1, xmm2
divss xmm0, dword [0x102f39e4]
divss xmm1, dword [0x102f39e4]
addss xmm0, xmm0
movaps xmm2, xmm4
addss xmm1, xmm1
mulss xmm0, dword [0x102f39bc]
mulss xmm1, dword [0x102f39bc]
subss xmm0, xmm3
addss xmm1, xmm3
movaps xmm3, xmm0
movss dword [esp + 0x44], xmm0
movss dword [esp], xmm1
push eax
movss dword [esp + 0x7c], xmm1
call fcn.10085ca0
movss xmm0, dword [esp + 0x7c]
push ecx
movss dword [esp], xmm0
mov ecx, esi
push 0
push dword [esp + 0x20]
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.10084720
movss xmm0, dword [esp + 0x3c]
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 + 0x3c]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x80]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x88], 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 + 0x80]
addss xmm0, dword [esp + 0xc0]
movss dword [esp + 0x94], xmm0
movss xmm0, dword [esp + 0x70]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm1, dword [esp + 0x70]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x80]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0x3c], xmm0
cvtps2pd xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
movss xmm2, dword [esp + 0x3c]
subss xmm2, dword [esp + 0x88]
cvtsd2ss xmm0, xmm0
mov eax, dword [esp + 0x50]
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + eax*4 + 0xe0]
mulss xmm0, dword [esp + 0x80]
mov eax, dword [esi + 0x18]
movss dword [esp + 0x3c], xmm2
addss xmm0, dword [esp + 0xc0]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
subss xmm0, dword [esp + 0x94]
movaps xmm1, xmm0
movss dword [esp + 0x90], xmm0
mulss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
movss xmm2, dword [0x102f38f4]
addss xmm1, xmm0
movaps xmm0, xmm2
divss xmm0, xmm1
movss dword [esp + 0xc], xmm0
mov dword [esp + 0x5c], eax
movzx eax, cl
mov dword [esp + 0x8c], eax
mov eax, ecx
shr eax, 8
movzx eax, al
mov dword [esp + 0x98], eax
shr ecx, 0x10
movzx eax, cl
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + eax*4 + 0xe4]
movzx eax, cl
sub eax, dword [esp + 0x8c]
mov dword [esp + 0xac], eax
mov eax, ecx
shr eax, 8
movzx eax, al
sub eax, dword [esp + 0x98]
shr ecx, 0x10
mov dword [esp + 0x78], eax
lea eax, [edi + edi*4]
mov edi, dword [esp + 0x5c]
lea edx, [edx + eax*4]
movzx ecx, cl
sub ecx, dword [esp + 0x70]
cmp edx, edi
jae 0x100d0864
movd xmm4, dword [esp + 0x70]
movd xmm5, dword [esp + 0x78]
movd xmm6, dword [esp + 0x98]
movd xmm7, dword [esp + 0xac]
mov esi, dword [esp + 0x8c]
movd xmm3, ecx
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm5, xmm5
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
nop dword [eax + eax]
movss xmm0, dword [edx]
movss xmm1, dword [edx + 4]
subss xmm1, dword [esp + 0x94]
subss xmm0, dword [esp + 0x88]
mulss xmm1, dword [esp + 0x90]
mulss xmm0, dword [esp + 0x3c]
addss xmm1, xmm0
xorps xmm0, xmm0
mulss xmm1, dword [esp + 0xc]
comiss xmm0, xmm1
jbe 0x100d0801
xorps xmm2, xmm2
jmp 0x100d0805
minss xmm2, xmm1
movaps xmm0, xmm2
mulss xmm0, xmm3
addss xmm0, xmm4
cvttss2si ecx, xmm0
movaps xmm0, xmm2
mulss xmm2, xmm7
shl ecx, 8
mulss xmm0, xmm5
addss xmm0, xmm6
cvttss2si eax, xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
or ecx, eax
shl ecx, 8
addss xmm2, xmm0
cvttss2si eax, xmm2
movss xmm2, dword [0x102f38f4]
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 0x100d07c0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x50]
movss xmm4, dword [esp + 0x11c]
inc eax
movss xmm3, dword [esp + 0xfc]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x50], eax
cmp eax, 6
jl 0x100d0572
movss xmm0, dword [esp + 0x10]
mulss xmm0, dword [0x102f3988]
mulss xmm0, dword [0x102f39bc]
movss dword [esp + 0x10], xmm0
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
movss xmm3, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
movss dword [esp + 0x50], xmm0
cvtps2pd xmm0, xmm3
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cmp byte [esp + 0x17], 0
xorps xmm2, xmm2
movss xmm3, dword [esp + 0x80]
addss xmm3, dword [esp + 0x9c]
cvtsd2ss xmm2, xmm0
movss xmm0, dword [esp + 0x50]
mulss xmm0, xmm3
movss dword [esp + 0x60], xmm2
mulss xmm0, dword [0x102f389c]
addss xmm0, dword [esp + 0xc4]
movss dword [esp + 0xfc], xmm0
movaps xmm0, xmm2
mulss xmm0, xmm3
mulss xmm0, dword [0x102f389c]
addss xmm0, dword [esp + 0xc0]
movss dword [esp + 0x100], xmm0
movss xmm0, dword [esp + 0x7c]
je 0x100d0943
mulss xmm0, dword [0x102f38a8]
jmp 0x100d094b
mulss xmm0, dword [0x102f38a0]
mov edi, dword [esp + 0x20]
movaps xmm1, xmm0
mov ecx, edi
movss dword [esp + 0x7c], xmm0
call fcn.10084340
movss xmm2, dword [esp + 0x7c]
mov ecx, edi
push eax
push dword [esp + 0x78]
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x104]
push eax
call fcn.100871f0
test dword [esp + 0x6c], 0xff000000
movss xmm5, dword [esp + 0x7c]
movss xmm2, dword [0x102f38f4]
movaps xmm4, xmm5
mov esi, dword [esp + 0xcc]
addss xmm4, xmm2
movss xmm3, dword [0x102f389c]
je 0x100d0a76
comiss xmm3, xmm4
ja 0x100d0a76
mov eax, dword [esp + 0x9c]
test eax, eax
jg 0x100d09e6
push ecx
subss xmm4, xmm3
mov ecx, edi
push 0x30
push 0
lea eax, [esp + 0x108]
push eax
movaps xmm2, xmm4
call fcn.10085850
dec dword [edi + 0x54]
jmp 0x100d0a3e
cmp eax, 3
jge 0x100d09f2
mov ecx, 3
jmp 0x100d0a01
mov ecx, eax
cmp eax, 0x200
mov eax, 0x200
cmovg ecx, eax
movd xmm1, ecx
lea eax, [ecx - 1]
cvtdq2ps xmm1, xmm1
push eax
push ecx
mov ecx, edi
lea eax, [esp + 0x104]
subss xmm4, xmm3
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, xmm2
movaps xmm2, xmm4
mulss xmm0, dword [0x102f39ec]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.10085ca0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push dword [esp + 0x74]
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10084720
movss xmm2, dword [0x102f38f4]
movss xmm3, dword [0x102f389c]
movss xmm5, dword [esp + 0x7c]
mov dword [edi + 0x54], 0
test dword [esp + 0x18], 0xff000000
je 0x100d0b2e
comiss xmm3, xmm5
ja 0x100d0b2e
mov eax, dword [esp + 0x9c]
test eax, eax
jg 0x100d0ab8
push ecx
subss xmm5, xmm3
mov ecx, edi
push 0x30
push 0
lea eax, [esp + 0x108]
push eax
movaps xmm2, xmm5
call fcn.10085850
dec dword [edi + 0x54]
jmp 0x100d0b0c
cmp eax, 3
jge 0x100d0ac4
mov eax, 3
jmp 0x100d0ad1
cmp eax, 0x200
mov ecx, 0x200
cmovg eax, ecx
movd xmm1, eax
subss xmm5, xmm3
cvtdq2ps xmm1, xmm1
dec eax
push eax
lea eax, [esp + 0x100]
push ecx
xorps xmm3, xmm3
mov ecx, edi
movaps xmm0, xmm1
subss xmm0, xmm2
movaps xmm2, xmm5
mulss xmm0, dword [0x102f39ec]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.10085ca0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push dword [esp + 0x20]
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.10084720
mov dword [edi + 0x54], 0
movss xmm3, dword [esp + 0x50]
xorps xmm1, xmm1
movss xmm5, dword [esp + 0x60]
movaps xmm2, xmm3
mulss xmm2, dword [esp + 0x30]
movaps xmm0, xmm5
mov eax, dword [0x10317358]
mov ecx, edi
movss xmm6, dword [esp + 0xc4]
movaps xmm4, xmm3
mulss xmm0, xmm1
push 3
movss xmm7, dword [esp + 0xc4]
mulss xmm4, dword [esp + 0xa8]
push 3
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, xmm1
movaps xmm1, xmm5
mulss xmm1, dword [esp + 0xac]
addss xmm2, xmm6
movss dword [esp + 0x124], xmm2
movss dword [esp + 0xa4], xmm2
movaps xmm2, xmm5
mulss xmm2, dword [esp + 0x38]
addss xmm2, xmm0
movaps xmm0, xmm5
mulss xmm0, dword [esp + 0x8c]
mulss xmm5, dword [esp + 0xb0]
addss xmm2, xmm7
movss dword [esp + 0x80], xmm2
movss dword [esp + 0xa8], xmm2
movaps xmm2, xmm4
subss xmm2, xmm0
movaps xmm0, xmm3
mulss xmm0, dword [esp + 0x8c]
subss xmm4, xmm5
mulss xmm3, dword [esp + 0xb0]
addss xmm0, xmm1
addss xmm4, xmm6
addss xmm3, xmm1
addss xmm2, xmm6
addss xmm0, xmm7
movss dword [esp + 0x64], xmm4
addss xmm3, xmm7
movss dword [esp + 0xb4], xmm4
movss dword [esp + 0x38], xmm2
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [eax + 0x3ca4]
movss dword [esp + 0x68], xmm0
movss xmm0, dword [eax + 0x3ca8]
movss dword [esp + 0x58], xmm3
movss dword [esp + 0xb8], xmm3
movss dword [esp + 0x104], xmm0
call fcn.10084500
mov ecx, dword [edi + 0x38]
mov ax, word [edi + 0x28]
mov edx, dword [esp + 0xa0]
movss xmm0, dword [esp + 0x60]
movss xmm1, dword [esp + 0xfc]
mov word [ecx], ax
mov eax, dword [edi + 0x34]
add dword [edi + 0x38], 2
mov ecx, dword [esp + 0x9c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
mov edx, dword [esp + 0x34]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], ecx
mov eax, dword [edi + 0x38]
inc dword [edi + 0x28]
add dword [edi + 0x34], 0x14
mov ecx, dword [edi + 0x28]
mov word [eax], cx
add dword [edi + 0x38], 2
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0x34]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xb0]
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 + 0xac]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x34]
push ecx
mov dword [esp], 0x3fc00000
push dword [esp + 0x70]
movss dword [eax + 8], xmm0
movss dword [eax + 0xc], xmm1
mov eax, dword [edi + 0x34]
mov dword [eax + 0x10], ecx
lea eax, [esp + 0xb4]
add dword [edi + 0x34], 0x14
mov ecx, edi
inc dword [edi + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.10086f00
movss xmm1, dword [0x102f38f4]
xorps xmm0, xmm0
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x58]
comiss xmm0, xmm2
jbe 0x100d0d74
xorps xmm3, xmm3
jmp 0x100d0d7b
movaps xmm3, xmm1
minss xmm3, xmm2
movss xmm2, dword [esp + 0x28]
comiss xmm0, xmm2
jbe 0x100d0d8b
xorps xmm1, xmm1
jmp 0x100d0d8f
minss xmm1, xmm2
movss xmm0, dword [esp + 0x11c]
subss xmm0, dword [esp + 0x5c]
movss xmm2, dword [esp + 0x30]
mulss xmm0, xmm1
addss xmm0, dword [esp + 0x5c]
subss xmm2, xmm0
mulss xmm2, xmm3
addss xmm2, xmm0
movss xmm0, dword [esp + 0x78]
subss xmm0, dword [esp + 0x50]
movss dword [esp + 0x40], xmm2
mulss xmm0, xmm1
movss xmm1, dword [esp + 0x34]
addss xmm0, dword [esp + 0x50]
subss xmm1, xmm0
mulss xmm1, xmm3
addss xmm1, xmm0
movss dword [esp + 0x44], xmm1
jmp 0x100d1144
test eax, 0x2000000
je 0x100d114b
movss xmm1, dword [esp + 0x60]
movss xmm2, dword [esp + 0x1c]
movaps xmm0, xmm1
mov eax, dword [esp + 0x18]
addss xmm0, xmm2
mov ecx, dword [esp + 0x20]
addss xmm1, xmm2
push eax
push edx
push edx
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x38]
push eax
addss xmm0, xmm2
movss dword [esp + 0x84], xmm1
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x74]
push eax
movss dword [esp + 0x4c], xmm0
call fcn.10086d80
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x10c]
movss xmm0, dword [esp + 0x74]
push ecx
push ecx
mov ecx, dword [esp + 0x28]
push 0
push 0
push eax
movss dword [esp + 0x120], xmm0
lea eax, [esp + 0x74]
movss xmm0, dword [esp + 0x48]
push eax
movss dword [esp + 0x128], xmm0
call fcn.10086d80
movss xmm0, dword [esp + 0x74]
movss dword [esp + 0xfc], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esp + 0x100], xmm0
xorps xmm0, xmm0
push dword [esp + 0x100]
push dword [esp + 0x100]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.1004e8c0
movss xmm3, dword [esp + 0x38]
xorps xmm0, xmm0
movss xmm1, dword [0x102f38f4]
add esp, 0x10
comiss xmm0, xmm3
jbe 0x100d0ee7
xorps xmm2, xmm2
jmp 0x100d0eee
movaps xmm2, xmm1
minss xmm2, xmm3
movss xmm7, dword [esp + 0x1c]
movss xmm5, dword [esp + 0x60]
movss xmm3, dword [0x102f389c]
mulss xmm2, xmm7
movss xmm6, dword [0x102f3988]
addss xmm2, xmm5
addss xmm2, xmm3
cvttss2si eax, xmm2
movaps xmm2, xmm5
addss xmm5, xmm7
addss xmm2, xmm6
movd xmm4, eax
cvtdq2ps xmm4, xmm4
subss xmm5, xmm6
comiss xmm2, xmm4
jbe 0x100d0f3d
movss dword [esp + 0x40], xmm2
jmp 0x100d0f50
comiss xmm4, xmm5
jbe 0x100d0f4a
movss dword [esp + 0x40], xmm5
jmp 0x100d0f50
movss dword [esp + 0x40], xmm4
movaps xmm2, xmm1
subss xmm2, dword [esp + 0x58]
comiss xmm0, xmm2
jbe 0x100d0f63
xorps xmm1, xmm1
jmp 0x100d0f67
minss xmm1, xmm2
movss xmm4, dword [esp + 0x2c]
mulss xmm1, xmm7
movss xmm0, dword [esp + 0x34]
subss xmm0, xmm6
addss xmm1, xmm4
addss xmm1, xmm3
cvttss2si eax, xmm1
movaps xmm1, xmm4
addss xmm1, xmm6
movd xmm2, eax
cvtdq2ps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x100d0fa2
movss dword [esp + 0x44], xmm1
jmp 0x100d0fb5
comiss xmm2, xmm0
jbe 0x100d0faf
movss dword [esp + 0x44], xmm0
jmp 0x100d0fb5
movss dword [esp + 0x44], xmm2
movss xmm2, dword [esp + 0x90]
movaps xmm1, xmm7
divss xmm1, dword [0x102f39e4]
mov esi, dword [esp + 0x20]
xor ecx, ecx
movaps xmm0, xmm2
movss dword [esp + 0x30], xmm2
addss xmm0, dword [esp + 0x68]
movss dword [esp + 0x60], xmm1
movss dword [esp + 0x10c], xmm0
nop dword [eax]
mov eax, dword [esp + ecx*4 + 0xe4]
lea edi, [ecx + 1]
movd xmm0, edi
cvtdq2ps xmm0, xmm0
push eax
push eax
lea eax, [esp + 0x114]
mulss xmm0, xmm1
addss xmm0, xmm4
movss dword [esp + 0x118], xmm0
movd xmm0, ecx
mov ecx, dword [esp + ecx*4 + 0xe8]
cvtdq2ps xmm0, xmm0
push ecx
push ecx
push eax
lea eax, [esp + 0x44]
mov ecx, esi
push eax
mulss xmm0, xmm1
addss xmm0, xmm4
movss dword [esp + 0x4c], xmm0
call fcn.10086d80
movss xmm1, dword [esp + 0x60]
mov ecx, edi
movss xmm4, dword [esp + 0x2c]
cmp ecx, 6
jl 0x100d0ff0
movss xmm3, dword [esp + 0x90]
movaps xmm2, xmm4
movaps xmm0, xmm2
movss dword [esp + 0x64], xmm2
addss xmm0, dword [esp + 0x1c]
movaps xmm1, xmm3
movss dword [esp + 0x60], xmm3
addss xmm1, dword [esp + 0x68]
movss dword [esp + 0x34], xmm0
xorps xmm0, xmm0
push dword [esp + 0x34]
movss dword [esp + 0x34], xmm1
push dword [esp + 0x34]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.1004e8c0
mov esi, dword [esp + 0xdc]
movss xmm1, dword [esp + 0x78]
addss xmm1, dword [0x102f3988]
mov ecx, dword [esp + 0x30]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
movaps xmm0, xmm2
movss dword [esp + 0x44], xmm2
addss xmm0, dword [0x102f38f4]
movss xmm2, dword [esp + 0xa0]
push dword [esp + 0x44]
subss xmm2, dword [0x102f38f4]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x24]
mulss xmm0, dword [esp + 0x30]
push dword [esp + 0x44]
movss dword [esp + 0x78], xmm2
addss xmm0, dword [esp + 0x44]
addss xmm0, dword [0x102f389c]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x3c]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x382c]
movss dword [esp + 0x7c], xmm0
push dword [esp + 0x7c]
push dword [esp + 0x7c]
call fcn.100cea50
add esp, 0x20
mov edi, dword [esp + 0xb4]
cmp byte [esp + 0xb], 0
je 0x100d1165
movss xmm0, dword [0x102f3a00]
movss dword [esp + 0xd0], xmm0
jmp 0x100d116d
movss xmm0, dword [0x102f39e4]
mov ecx, dword [esp + 0x20]
movaps xmm1, xmm0
call fcn.10084340
movss xmm2, dword [esp + 0xd0]
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0xbc]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x48]
push eax
call fcn.100871f0
test dword [esp + 0x6c], 0xff000000
movss xmm5, dword [esp + 0xd0]
movss xmm2, dword [0x102f38f4]
movaps xmm4, xmm5
movss xmm3, dword [0x102f389c]
addss xmm4, xmm2
je 0x100d129a
comiss xmm3, xmm4
ja 0x100d129a
mov eax, dword [esp + 0x54]
test eax, eax
jg 0x100d11fe
push ecx
mov ecx, dword [esp + 0x24]
subss xmm4, xmm3
push 0x30
push 0
lea eax, [esp + 0x4c]
push eax
movaps xmm2, xmm4
call fcn.10085850
mov eax, dword [esp + 0x20]
dec dword [eax + 0x54]
jmp 0x100d1259
cmp eax, 3
jge 0x100d120a
mov ecx, 3
jmp 0x100d1219
mov ecx, eax
cmp eax, 0x200
mov eax, 0x200
cmovg ecx, eax
movd xmm1, ecx
lea eax, [ecx - 1]
cvtdq2ps xmm1, xmm1
push eax
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x48]
subss xmm4, xmm3
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, xmm2
movaps xmm2, xmm4
mulss xmm0, dword [0x102f39ec]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.10085ca0
mov eax, dword [esp + 0x20]
push ecx
mov dword [esp], 0x3f800000
mov ecx, eax
push 1
push dword [esp + 0x74]
push dword [eax + 0x54]
push dword [eax + 0x5c]
call fcn.10084720
mov ecx, dword [esp + 0x20]
movss xmm2, dword [0x102f38f4]
movss xmm3, dword [0x102f389c]
movss xmm5, dword [esp + 0xd0]
mov dword [ecx + 0x54], 0
jmp 0x100d129e
mov ecx, dword [esp + 0x20]
test dword [esp + 0x18], 0xff000000
je 0x100d1356
comiss xmm3, xmm5
ja 0x100d1356
mov eax, dword [esp + 0x54]
test eax, eax
jg 0x100d12dc
push ecx
subss xmm5, xmm3
push 0x30
push 0
lea eax, [esp + 0x4c]
push eax
movaps xmm2, xmm5
call fcn.10085850
mov eax, dword [esp + 0x20]
dec dword [eax + 0x54]
jmp 0x100d132f
cmp eax, 3
jge 0x100d12e8
mov eax, 3
jmp 0x100d12f5
cmp eax, 0x200
mov edx, 0x200
cmovg eax, edx
movd xmm1, eax
subss xmm5, xmm3
cvtdq2ps xmm1, xmm1
dec eax
push eax
lea eax, [esp + 0x44]
push ecx
xorps xmm3, xmm3
movaps xmm0, xmm1
subss xmm0, xmm2
movaps xmm2, xmm5
mulss xmm0, dword [0x102f39ec]
divss xmm0, xmm1
movss dword [esp], xmm0
push eax
call fcn.10085ca0
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp], 0x3f800000
push 1
push ecx
push dword [eax + 0x54]
mov ecx, eax
push dword [eax + 0x5c]
call fcn.10084720
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x54], 0
cmp dword [esp + 0xd8], 0x10000
jne 0x100d1502
movss xmm2, dword [edi + 0xc]
xorps xmm1, xmm1
comiss xmm1, xmm2
jbe 0x100d137c
movss dword [esp + 0x54], xmm1
jmp 0x100d138e
movss xmm0, dword [0x102f38f4]
minss xmm0, xmm2
movss dword [esp + 0x54], xmm0
movss xmm3, dword [esp + 0xc8]
xor edx, edx
movss xmm0, dword [esp + 0x2c]
movaps xmm2, xmm3
addss xmm2, dword [esp + 0x68]
movss dword [esp + 0x110], xmm0
addss xmm0, dword [esp + 0x1c]
mov dword [esp + 0x34], 0
push dword [esp + 0x34]
mov dword [esp + 0x34], 0
push dword [esp + 0x34]
movss dword [esp + 0x11c], xmm2
subss xmm2, xmm3
movss dword [esp + 0x120], xmm0
push dword [esp + 0x120]
movss dword [esp + 0x118], xmm3
xorps xmm3, xmm3
push dword [esp + 0x120]
mov edi, dword [esp + 0x11c]
push dword [esp + 0x120]
mulss xmm2, dword [0x102f389c]
push edi
push 0
call fcn.1008cda0
mov ecx, dword [esp + 0xd4]
add esp, 0x1c
mov eax, ecx
and eax, 0xffffff
push eax
push eax
push ecx
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x120]
push eax
call fcn.10086d80
push dword [esp + 0x118]
xorps xmm0, xmm0
push dword [esp + 0x118]
push dword [esp + 0x118]
push edi
call fcn.1004e8c0
movss xmm1, dword [0x102f38f4]
movd xmm2, esi
cvtdq2ps xmm2, xmm2
mov ecx, dword [esp + 0x30]
movaps xmm0, xmm2
movss dword [esp + 0x44], xmm2
movss xmm2, dword [esp + 0xd8]
addss xmm0, xmm1
subss xmm2, xmm1
subss xmm1, dword [esp + 0x64]
push dword [esp + 0x44]
movss dword [esp + 0x44], xmm0
push dword [esp + 0x44]
mulss xmm1, dword [esp + 0x34]
movss dword [esp + 0x58], xmm2
addss xmm1, dword [esp + 0x44]
addss xmm1, dword [0x102f389c]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x80]
addss xmm1, dword [0x102f3988]
movd xmm0, eax
mov eax, dword [esp + 0x3c]
cvtdq2ps xmm0, xmm0
movss xmm2, dword [eax + 0x382c]
movss dword [esp + 0x5c], xmm0
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.100cea50
add esp, 0x20
call fcn.1005f6f0
mov dl, byte [esp + 9]
mov edi, dword [0x10317358]
test dl, dl
je 0x100d15f3
mov ecx, dword [esp + 0xb4]
lea esi, [esp + 0x12c]
xor edx, edx
cmp dword [esp + 0xd4], edx
sete dl
lea edx, [edx*4 + 0xc]
sub edx, 4
jb 0x100d1551
nop
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x100d155a
add esi, 4
add ecx, 4
sub edx, 4
jae 0x100d1540
cmp edx, 0xfffffffc
je 0x100d15f1
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x100d158b
cmp edx, 0xfffffffd
je 0x100d15f1
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x100d158b
cmp edx, 0xfffffffe
je 0x100d15f1
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x100d158b
cmp edx, 0xffffffff
je 0x100d15f1
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x100d15f1
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x47ac]
test ecx, ecx
je 0x100d15b7
mov edx, dword [edi + 0x3f80]
cmp edx, ecx
je 0x100d15a7
test edx, edx
jne 0x100d15b0
mov word [edi + 0x3f90], 0x101
or dword [edi + 0x47b4], 4
mov dl, byte [esp + 9]
cmp dword [esp + 0xdc], 0
jne 0x100d15cf
mov dword [eax + 0x5b00], 0
mov ecx, dword [edi + 0x3f34]
mov al, dl
pop edi
pop esi
dec dword [ecx + 0x11c]
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.1013cfec
mov esp, ebp
pop ebp
ret
xor dl, dl
mov eax, dword [esp + 0x24]
jmp 0x100d15bb