Function at 0x10020016
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1008b018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, edx
mov dword [ebp - 0x84], esi
mov edx, ecx
mov dword [ebp - 0x88], edi
sub esp, 0xc
mov dword [ebp - 0x7c], edx
mov ecx, esp
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0
movq xmm0, qword [edx + 0x5c]
mov eax, dword [edx + 0x64]
movq qword [ebp - 0x9c], xmm0
movq xmm0, qword [edx + 0x44]
mov dword [ebp - 0x94], eax
mov eax, dword [edx + 0x4c]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea eax, [ebp - 0xb0]
push eax
mov ecx, edi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x80], 0
call fcn.1001d960
movss xmm2, dword [ebp - 0x148]
add esp, 0x10
movss xmm3, dword [ebp - 0x158]
xorps xmm6, xmm6
movss xmm5, dword [ebp - 0x15c]
movq xmm0, qword [eax]
mov edi, dword [eax + 8]
movss xmm1, dword [ebp - 0x164]
movss xmm7, dword [ebp - 0x16c]
movss xmm4, dword [ebp - 0x170]
movq qword [ebp - 0x58], xmm0
movss xmm0, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [ebp - 0x150]
movss dword [ebp - 0x68], xmm0
movss xmm0, dword [ebp - 0x154]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [ebp - 0x160]
movss dword [ebp - 0x4c], xmm0
movss xmm0, dword [ebp - 0x168]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x8c], 0x46b
mov dword [ebp - 0x3c], eax
movss dword [ebp - 0x78], xmm2
movss dword [ebp - 0x34], xmm3
movss dword [ebp - 0x38], xmm5
movss dword [ebp - 0x28], xmm1
movss dword [ebp - 0x24], xmm0
movss dword [ebp - 0x44], xmm7
movss dword [ebp - 0x40], xmm4
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x74], ecx
cmp edx, edi
jge case.default.0x1002030d
mov al, byte [eax + edx]
xor edi, edi
movzx eax, al
inc edx
mov ecx, edx
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x90], ecx
lea esi, [eax - 1]
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x20], esi
cmp esi, 0x1e
mov esi, dword [ebp - 0x84]
mov dword [ebp - 0x18], eax
ja case.default.0x1001f831
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x100208dc]
jmp dword [eax*4 + 0x1002088c]
cmp dword [ebp - 0x60], edi
je 0x1001f84f
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edx, dword [ebp - 0x5c]
sar eax, 1
add edx, eax
mov dword [ebp - 0x5c], edx
jmp 0x1001f852
mov edx, dword [ebp - 0x5c]
lea eax, [edx + 7]
mov dword [ebp - 0x60], edi
mov edi, dword [ebp - 0x1c]
cdq
and edx, 7
add edx, eax
sar edx, 3
add edx, ecx
cmp edx, edi
jg 0x1001f872
test edx, edx
jns 0x1001fdd7
mov edx, edi
jmp 0x1001fdd7
mov eax, dword [ebp - 0x14]
cdq
sub eax, edx
mov edx, dword [ebp - 0x30]
sar eax, 1
add dword [ebp - 0x5c], eax
jmp 0x1001fdd4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], edi
cmp eax, 2
jl case.default.0x1002030d
movss xmm3, dword [esi + 8]
lea ecx, [esi + 0xc]
ucomiss xmm3, dword [esi + 0x10]
lea edi, [esi + 0x14]
mov dword [ebp - 0x18], ecx
movss xmm1, dword [ebp + eax*4 - 0x178]
movss xmm2, dword [ebp + eax*4 - 0x174]
lahf
test ah, 0x44
jp 0x1001f8d2
movss xmm0, dword [ecx]
ucomiss xmm0, dword [edi]
lahf
test ah, 0x44
jnp 0x1001f8f3
cvttss2si eax, dword [ecx]
push 0
push 0
push 0
push 0
mov dl, 2
mov ecx, esi
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
mov ecx, dword [ebp - 0x18]
add esp, 0x18
addss xmm2, dword [edi]
addss xmm1, dword [esi + 0x10]
push 0
push 0
push 0
cvttss2si eax, xmm2
push 0
mov dl, 1
movss dword [ecx], xmm2
mov ecx, esi
push eax
cvttss2si eax, xmm1
movss dword [esi + 0x10], xmm1
push eax
movss dword [esi + 8], xmm1
movss dword [edi], xmm2
call fcn.1001f3b0
add esp, 0x18
jmp 0x1001fdc2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], edi
cmp eax, 1
jl case.default.0x1002030d
movss xmm2, dword [esi + 8]
lea ecx, [esi + 0xc]
ucomiss xmm2, dword [esi + 0x10]
lea edi, [esi + 0x14]
mov dword [ebp - 0x18], ecx
movss xmm1, dword [ebp + eax*4 - 0x174]
lahf
test ah, 0x44
jp 0x1001f96e
movss xmm0, dword [ecx]
ucomiss xmm0, dword [edi]
lahf
test ah, 0x44
jnp 0x1001f98f
cvttss2si eax, dword [ecx]
push 0
push 0
push 0
push 0
mov dl, 2
mov ecx, esi
push eax
cvttss2si eax, xmm2
push eax
call fcn.1001f3b0
mov ecx, dword [ebp - 0x18]
add esp, 0x18
addss xmm1, dword [edi]
movss xmm0, dword [esi + 0x10]
push 0
push 0
addss xmm0, xmm6
cvttss2si eax, xmm1
push 0
push 0
movss dword [esi + 0x10], xmm0
push eax
movss dword [esi + 8], xmm0
movss dword [edi], xmm1
movss dword [ecx], xmm1
cvttss2si eax, xmm0
mov dl, 1
push eax
mov ecx, esi
call fcn.1001f3b0
add esp, 0x18
movss xmm0, dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
jmp 0x1001fdd4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], edi
cmp eax, 1
jl case.default.0x1002030d
movss xmm2, dword [esi + 8]
lea ecx, [esi + 0xc]
ucomiss xmm2, dword [esi + 0x10]
lea edi, [esi + 0x14]
mov dword [ebp - 0x18], ecx
movss xmm1, dword [ebp + eax*4 - 0x174]
lahf
test ah, 0x44
jp 0x1001fa1b
movss xmm0, dword [ecx]
ucomiss xmm0, dword [edi]
lahf
test ah, 0x44
jnp 0x1001fa3c
cvttss2si eax, dword [ecx]
push 0
push 0
push 0
push 0
mov dl, 2
mov ecx, esi
push eax
cvttss2si eax, xmm2
push eax
call fcn.1001f3b0
mov ecx, dword [ebp - 0x18]
add esp, 0x18
movss xmm0, dword [edi]
addss xmm1, dword [esi + 0x10]
addss xmm0, xmm6
push 0
push 0
push 0
push 0
cvttss2si eax, xmm0
movss dword [esi + 0x10], xmm1
push eax
movss dword [esi + 8], xmm1
movss dword [edi], xmm0
movss dword [ecx], xmm0
cvttss2si eax, xmm1
jmp 0x1001f9bf
cmp dword [ebp - 0x14], 2
jl case.default.0x1002030d
mov dword [ebp - 0x18], 1
lea edi, [ebp - 0x16c]
nop dword [eax + eax]
movss xmm0, dword [edi]
mov dl, 2
addss xmm0, dword [esi + 0x14]
movss xmm1, dword [edi - 4]
mov ecx, esi
addss xmm1, dword [esi + 0x10]
push 0
push 0
cvttss2si eax, xmm0
push 0
push 0
movss dword [esi + 0x10], xmm1
push eax
cvttss2si eax, xmm1
movss dword [esi + 0x14], xmm0
push eax
call fcn.1001f3b0
mov eax, dword [ebp - 0x18]
add esp, 0x18
add eax, 2
add edi, 8
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x14]
jl 0x1001fa90
movss xmm0, dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
jmp 0x1001fdd4
mov eax, dword [ebp - 0x14]
cmp eax, 1
jl case.default.0x1002030d
lea ecx, [esi + 0x10]
jmp 0x1001fb53
cmp dword [ebp - 0x14], 1
jl case.default.0x1002030d
lea eax, [esi + 0x10]
mov dword [ebp - 0x18], eax
movss xmm0, dword [esi + 0x14]
mov dl, 2
movss xmm1, dword [ebp + edi*4 - 0x170]
addss xmm0, xmm6
addss xmm1, dword [eax]
push 0
push 0
push 0
push 0
movss dword [eax], xmm1
mov ecx, esi
cvttss2si eax, xmm0
movss dword [esi + 0x14], xmm0
push eax
cvttss2si eax, xmm1
push eax
call fcn.1001f3b0
mov eax, dword [ebp - 0x14]
add esp, 0x18
mov ecx, dword [ebp - 0x18]
inc edi
mov dword [ebp - 0x18], ecx
cmp edi, eax
jge 0x1001f9cc
movss xmm0, dword [ebp + edi*4 - 0x170]
mov dl, 2
addss xmm0, dword [esi + 0x14]
movss xmm1, dword [ecx]
push 0
push 0
addss xmm1, xmm6
cvttss2si eax, xmm0
push 0
push 0
movss dword [ecx], xmm1
mov ecx, esi
push eax
cvttss2si eax, xmm1
movss dword [esi + 0x14], xmm0
push eax
call fcn.1001f3b0
inc edi
add esp, 0x18
cmp edi, dword [ebp - 0x14]
jge 0x1001f9cc
mov eax, dword [ebp - 0x18]
jmp 0x1001fb0f
cmp dword [ebp - 0x14], 4
jl case.default.0x1002030d
lea edx, [esi + 0x10]
jmp 0x1001fc68
mov eax, dword [ebp - 0x14]
cmp eax, 4
jl case.default.0x1002030d
lea edx, [esi + 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], edx
sub eax, edi
mov ecx, edi
cmp eax, 5
jne 0x1001fbe8
movss xmm7, dword [ebp + ecx*4 - 0x160]
jmp 0x1001fbeb
movaps xmm7, xmm6
movss xmm4, dword [ebp + ecx*4 - 0x170]
addss xmm4, dword [esi + 0x14]
mov eax, dword [ebp - 0x20]
movss xmm5, dword [eax]
movaps xmm0, xmm4
addss xmm0, dword [ebp + ecx*4 - 0x168]
addss xmm5, xmm6
cvttss2si eax, xmm0
movaps xmm2, xmm5
movaps xmm1, xmm0
addss xmm2, dword [ebp + ecx*4 - 0x16c]
push eax
addss xmm1, xmm7
cvttss2si eax, xmm2
movaps xmm3, xmm2
movss dword [esi + 0x14], xmm1
addss xmm3, dword [ebp + ecx*4 - 0x164]
push eax
cvttss2si eax, xmm4
mov ecx, esi
movss dword [edx], xmm3
mov dl, 4
push eax
cvttss2si eax, xmm5
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
mov edx, dword [ebp - 0x18]
add esp, 0x18
add edi, 4
mov ecx, dword [ebp - 0x14]
lea eax, [edi + 3]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
cmp eax, ecx
jge 0x100207f7
mov eax, ecx
sub eax, edi
cmp eax, 5
jne 0x1001fc90
movss xmm1, dword [ebp + edi*4 - 0x160]
jmp 0x1001fc93
movaps xmm1, xmm6
movss xmm5, dword [ebp + edi*4 - 0x170]
mov ecx, esi
addss xmm5, dword [edx]
movss xmm4, dword [esi + 0x14]
mov dl, 4
mov eax, dword [ebp - 0x20]
addss xmm4, xmm6
movaps xmm2, xmm5
addss xmm2, dword [ebp + edi*4 - 0x16c]
movaps xmm0, xmm4
addss xmm0, dword [ebp + edi*4 - 0x168]
movaps xmm3, xmm2
addss xmm3, xmm1
movaps xmm1, xmm0
addss xmm1, dword [ebp + edi*4 - 0x164]
movss dword [eax], xmm3
cvttss2si eax, xmm0
movss dword [esi + 0x14], xmm1
push eax
cvttss2si eax, xmm2
push eax
cvttss2si eax, xmm4
push eax
cvttss2si eax, xmm5
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
mov ecx, dword [ebp - 0x14]
add edi, 4
mov edx, dword [ebp - 0x18]
add esp, 0x18
mov dword [ebp - 0x20], edx
lea eax, [edi + 3]
cmp eax, ecx
jge 0x100207f7
mov eax, ecx
jmp 0x1001fbd4
cmp dword [ebp - 0x14], 6
jl case.default.0x1002030d
mov dword [ebp - 0x20], 5
lea edi, [ebp - 0x16c]
nop
movss xmm4, dword [esi + 0x14]
mov dl, 4
addss xmm4, dword [edi]
movss xmm5, dword [edi - 4]
mov ecx, esi
addss xmm5, dword [esi + 0x10]
movaps xmm0, xmm4
addss xmm0, dword [edi + 8]
movaps xmm2, xmm5
addss xmm2, dword [edi + 4]
cvttss2si eax, xmm0
movaps xmm1, xmm0
movaps xmm3, xmm2
push eax
addss xmm1, dword [edi + 0x10]
cvttss2si eax, xmm2
addss xmm3, dword [edi + 0xc]
push eax
cvttss2si eax, xmm4
movss dword [esi + 0x10], xmm3
push eax
cvttss2si eax, xmm5
movss dword [esi + 0x14], xmm1
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
mov eax, dword [ebp - 0x20]
add esp, 0x18
add eax, 6
add edi, 0x18
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x14]
jl 0x1001fd40
movss xmm5, dword [ebp - 0x38]
movss xmm4, dword [ebp - 0x40]
movss xmm0, dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
movss xmm3, dword [ebp - 0x34]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movss xmm2, dword [ebp - 0x78]
xor eax, eax
cmp dword [ebp - 0x70], eax
cmove eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x3c]
jmp 0x1001f7e3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jl case.default.0x1002030d
add eax, 0xfffffffe
mov dword [ebp - 0x18], eax
cmp eax, 5
jle 0x1001fec4
mov dword [ebp - 0x20], 5
nop dword [eax]
nop dword [eax + eax]
movss xmm4, dword [ebp + edi*4 - 0x16c]
mov dl, 4
addss xmm4, dword [esi + 0x14]
movss xmm5, dword [ebp + edi*4 - 0x170]
mov ecx, esi
addss xmm5, dword [esi + 0x10]
movaps xmm0, xmm4
addss xmm0, dword [ebp + edi*4 - 0x164]
movaps xmm2, xmm5
addss xmm2, dword [ebp + edi*4 - 0x168]
cvttss2si eax, xmm0
movaps xmm1, xmm0
movaps xmm3, xmm2
push eax
addss xmm1, dword [ebp + edi*4 - 0x15c]
cvttss2si eax, xmm2
addss xmm3, dword [ebp + edi*4 - 0x160]
push eax
cvttss2si eax, xmm4
movss dword [esi + 0x10], xmm3
push eax
cvttss2si eax, xmm5
movss dword [esi + 0x14], xmm1
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
mov eax, dword [ebp - 0x20]
add esp, 0x18
add eax, 6
add edi, 6
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x18]
jl 0x1001fe20
movss xmm4, dword [ebp - 0x40]
movss xmm3, dword [ebp - 0x34]
movss xmm5, dword [ebp - 0x38]
lea eax, [edi + 1]
cmp eax, dword [ebp - 0x14]
jge case.default.0x1002030d
movss xmm0, dword [ebp + edi*4 - 0x16c]
mov dl, 2
addss xmm0, dword [esi + 0x14]
movss xmm1, dword [ebp + edi*4 - 0x170]
addss xmm1, dword [esi + 0x10]
push 0
push 0
cvttss2si eax, xmm0
push 0
push 0
movss dword [esi + 0x10], xmm1
push eax
movss dword [esi + 0x14], xmm0
cvttss2si eax, xmm1
jmp 0x1001f9c1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jl case.default.0x1002030d
add eax, 0xfffffffa
mov dword [ebp - 0x18], eax
cmp eax, 1
jle 0x1001ff85
mov dword [ebp - 0x20], 1
nop dword [eax]
movss xmm0, dword [ebp + edi*4 - 0x16c]
mov dl, 2
addss xmm0, dword [esi + 0x14]
movss xmm1, dword [ebp + edi*4 - 0x170]
mov ecx, esi
addss xmm1, dword [esi + 0x10]
push 0
push 0
cvttss2si eax, xmm0
push 0
push 0
movss dword [esi + 0x10], xmm1
push eax
cvttss2si eax, xmm1
movss dword [esi + 0x14], xmm0
push eax
call fcn.1001f3b0
mov eax, dword [ebp - 0x20]
add esp, 0x18
add eax, 2
add edi, 2
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x18]
jl 0x1001ff30
lea eax, [edi + 5]
cmp eax, dword [ebp - 0x14]
jge case.default.0x1002030d
movss xmm4, dword [ebp + edi*4 - 0x16c]
mov dl, 4
addss xmm4, dword [esi + 0x14]
movss xmm5, dword [ebp + edi*4 - 0x170]
mov ecx, esi
addss xmm5, dword [esi + 0x10]
movaps xmm0, xmm4
addss xmm0, dword [ebp + edi*4 - 0x164]
movaps xmm2, xmm5
addss xmm2, dword [ebp + edi*4 - 0x168]
cvttss2si eax, xmm0
movaps xmm1, xmm0
movaps xmm3, xmm2
push eax
addss xmm1, dword [ebp + edi*4 - 0x15c]
cvttss2si eax, xmm2
addss xmm3, dword [ebp + edi*4 - 0x160]
push eax
cvttss2si eax, xmm4
movss dword [esi + 0x10], xmm3
push eax
cvttss2si eax, xmm5
movss dword [esi + 0x14], xmm1
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
add esp, 0x18
jmp 0x1001fdb8
mov eax, dword [ebp - 0x14]
cmp eax, 4
jl case.default.0x1002030d
mov edi, eax
movaps xmm3, xmm6
and edi, 1
je 0x1002002f
movaps xmm3, xmm4
lea ecx, [edi + 3]
mov dword [ebp - 0x20], ecx
cmp ecx, eax
jge 0x1001fdcf
lea edi, [ebp + edi*4 - 0x168]
nop dword [eax]
nop dword [eax + eax]
cmp dword [ebp - 0x18], 0x1b
movss xmm7, dword [esi + 0x10]
movss xmm4, dword [esi + 0x14]
movss xmm5, dword [edi]
movss xmm2, dword [edi - 8]
movss xmm1, dword [edi - 4]
movss xmm0, dword [edi + 4]
jne 0x10020096
addss xmm2, xmm7
addss xmm4, xmm3
addss xmm1, xmm2
movaps xmm3, xmm4
addss xmm3, xmm5
addss xmm0, xmm1
movaps xmm5, xmm0
movaps xmm0, xmm3
addss xmm0, xmm6
jmp 0x100200b7
addss xmm7, xmm3
addss xmm4, xmm2
addss xmm1, xmm7
movaps xmm2, xmm7
movaps xmm3, xmm4
addss xmm3, xmm5
movaps xmm5, xmm1
addss xmm5, xmm6
addss xmm0, xmm3
cvttss2si eax, xmm3
mov dl, 4
mov ecx, esi
movss dword [esi + 0x10], xmm5
push eax
cvttss2si eax, xmm1
movss dword [esi + 0x14], xmm0
push eax
cvttss2si eax, xmm4
push eax
cvttss2si eax, xmm2
push eax
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm5
push eax
call fcn.1001f3b0
mov ecx, dword [ebp - 0x20]
add esp, 0x18
add ecx, 4
add edi, 0x10
movaps xmm3, xmm6
mov dword [ebp - 0x20], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x10020050
movss xmm7, dword [ebp - 0x44]
jmp 0x1001fdb8
cmp dword [ebp - 0x80], edi
jne case.0x1001f831.29
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x7c], edi
je 0x10020146
mov edx, dword [ebp - 0x88]
lea ecx, [ebp - 0x180]
push ecx
mov ecx, eax
call fcn.1001f4d0
add esp, 4
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x9c], xmm0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x80], 1
mov eax, dword [ebp - 0x14]
cmp eax, 1
jl case.default.0x1002030d
mov edx, dword [ebp - 0x64]
dec eax
mov dword [ebp - 0x14], eax
cmp edx, 0xa
jge case.default.0x1002030d
movq xmm0, qword [ebp - 0x58]
lea eax, [edx + edx*2]
mov ecx, dword [ebp - 0x1c]
inc edx
cmp dword [ebp - 0x18], 0xa
movq qword [ebp + eax*4 - 0x208], xmm0
mov dword [ebp + eax*4 - 0x200], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], edx
cvttss2si edi, dword [ebp + eax*4 - 0x170]
jne 0x100201a2
lea edx, [ebp - 0x9c]
jmp 0x100201a8
mov edx, dword [ebp - 0x7c]
add edx, 0x50
movq xmm0, qword [edx]
xor ecx, ecx
mov edx, dword [edx + 8]
mov eax, edx
test edx, edx
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x20], edx
cmovns eax, ecx
mov dword [ebp - 0xc], eax
cmp eax, edx
jl 0x100201cb
xor cl, cl
jmp 0x100201d5
mov ecx, dword [ebp - 0x10]
mov cl, byte [ecx + eax]
inc eax
mov dword [ebp - 0xc], eax
movzx ecx, cl
cmp eax, edx
jl 0x100201e0
xor al, al
jmp 0x100201f3
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + eax]
inc eax
mov byte [ebp - 0x29], dl
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 0x29]
shl ecx, 8
movzx eax, al
or ecx, eax
mov eax, 0x6b
cmp ecx, 0x846c
jb 0x1002020f
mov eax, 0x8000
jmp 0x1002021c
cmp ecx, 0x4d8
cmovae eax, dword [ebp - 0x8c]
add edi, eax
js 0x10020257
cmp edi, ecx
jge 0x10020257
movq xmm0, qword [ebp - 0x10]
sub esp, 0xc
mov eax, esp
mov ecx, edi
movq qword [eax], xmm0
mov dword [eax + 8], edx
lea eax, [ebp - 0x190]
push eax
call fcn.1001d960
add esp, 0x10
movq xmm0, qword [eax]
mov edi, dword [eax + 8]
movq qword [ebp - 0xb0], xmm0
jmp 0x10020275
mov dword [ebp - 0xb0], 0
xor edi, edi
mov dword [ebp - 0xac], 0
movq xmm0, qword [ebp - 0xb0]
mov dword [ebp - 0x1c], edi
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], edi
test edi, edi
je case.default.0x1002030d
mov eax, dword [ebp - 0x58]
xor edx, edx
movss xmm0, dword [ebp - 0x24]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x3c], eax
jmp 0x1001fdd7
mov eax, dword [ebp - 0x64]
test eax, eax
jle case.default.0x1002030d
dec eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x74]
lea eax, [eax + eax*2]
movq xmm0, qword [ebp + eax*4 - 0x214]
mov edi, dword [ebp + eax*4 - 0x20c]
movq qword [ebp - 0x58], xmm0
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
movss xmm0, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x3c], eax
jmp 0x1001fdd7
mov edi, dword [ebp - 0x1c]
cmp ecx, edi
jl 0x100202f2
xor dl, dl
jmp 0x100202fe
mov eax, dword [ebp - 0x3c]
mov dl, byte [eax + ecx]
lea eax, [ecx + 1]
mov dword [ebp - 0x30], eax
movzx eax, dl
add eax, 0xffffffde
cmp eax, 3
ja case.default.0x1002030d
jmp dword [eax*4 + 0x100208fc]
cmp dword [ebp - 0x14], 7
jl case.default.0x1002030d
movaps xmm5, xmm4
movaps xmm2, xmm7
movss xmm4, dword [esi + 0x14]
movaps xmm3, xmm1
addss xmm5, dword [esi + 0x10]
addss xmm4, xmm6
mov dl, 4
mov ecx, esi
addss xmm2, xmm5
addss xmm0, xmm4
addss xmm3, xmm2
cvttss2si eax, xmm0
movaps xmm1, xmm0
movss dword [esi + 0x10], xmm3
push eax
cvttss2si eax, xmm2
addss xmm1, xmm6
push eax
cvttss2si eax, xmm4
movss dword [esi + 0x14], xmm1
push eax
cvttss2si eax, xmm5
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
movss xmm4, dword [esi + 0x14]
movss xmm3, dword [ebp - 0x4c]
addss xmm4, xmm6
addss xmm3, dword [esi + 0x10]
movss xmm5, dword [ebp - 0x38]
movss xmm1, dword [ebp - 0x34]
movaps xmm0, xmm4
subss xmm0, dword [ebp - 0x24]
addss xmm5, xmm3
movaps xmm2, xmm0
addss xmm1, xmm5
addss xmm2, xmm6
jmp 0x10020627
cmp dword [ebp - 0x14], 0xd
jl case.default.0x1002030d
movaps xmm5, xmm4
movss xmm3, dword [ebp - 0x4c]
addss xmm5, dword [esi + 0x10]
movaps xmm4, xmm7
movaps xmm2, xmm0
addss xmm4, dword [esi + 0x14]
movaps xmm0, xmm1
mov dl, 4
movss xmm1, dword [ebp - 0x38]
mov ecx, esi
addss xmm2, xmm5
addss xmm0, xmm4
addss xmm3, xmm2
cvttss2si eax, xmm0
addss xmm1, xmm0
movss dword [esi + 0x10], xmm3
push eax
cvttss2si eax, xmm2
movss dword [esi + 0x14], xmm1
push eax
cvttss2si eax, xmm4
push eax
cvttss2si eax, xmm5
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
movss xmm3, dword [ebp - 0x34]
movss xmm4, dword [ebp - 0x48]
addss xmm3, dword [esi + 0x10]
addss xmm4, dword [esi + 0x14]
movss xmm5, dword [ebp - 0x68]
movss xmm0, dword [ebp - 0x6c]
movss xmm1, dword [ebp - 0x78]
movss xmm2, dword [ebp - 0x144]
addss xmm5, xmm3
addss xmm0, xmm4
addss xmm1, xmm5
addss xmm2, xmm0
jmp 0x10020627
cmp dword [ebp - 0x14], 9
jl case.default.0x1002030d
movaps xmm5, xmm4
movss xmm3, dword [ebp - 0x4c]
addss xmm5, dword [esi + 0x10]
movaps xmm4, xmm7
movaps xmm2, xmm0
addss xmm4, dword [esi + 0x14]
movaps xmm0, xmm1
mov dl, 4
mov ecx, esi
addss xmm2, xmm5
addss xmm0, xmm4
addss xmm3, xmm2
cvttss2si eax, xmm0
movaps xmm1, xmm0
movss dword [esi + 0x10], xmm3
push eax
cvttss2si eax, xmm2
addss xmm1, xmm6
push eax
cvttss2si eax, xmm4
movss dword [esi + 0x14], xmm1
push eax
cvttss2si eax, xmm5
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
movss xmm4, dword [esi + 0x14]
movss xmm0, dword [ebp - 0x28]
addss xmm4, xmm6
movss xmm3, dword [ebp - 0x38]
addss xmm0, xmm7
addss xmm3, dword [esi + 0x10]
movss xmm2, dword [ebp - 0x48]
movss xmm5, dword [ebp - 0x34]
movss xmm1, dword [ebp - 0x68]
addss xmm2, xmm4
addss xmm0, dword [ebp - 0x48]
addss xmm5, xmm3
movss dword [ebp - 0x74], xmm2
subss xmm2, xmm0
movss xmm0, dword [ebp - 0x74]
addss xmm1, xmm5
jmp 0x10020627
cmp dword [ebp - 0x14], 0xb
jl case.default.0x1002030d
movaps xmm7, xmm2
movaps xmm2, xmm4
addss xmm2, xmm0
movss dword [ebp - 0x20], xmm7
addss xmm2, dword [ebp - 0x4c]
addss xmm2, xmm3
movaps xmm3, xmm1
addss xmm3, dword [ebp - 0x44]
addss xmm2, dword [ebp - 0x68]
addss xmm3, xmm5
movaps xmm1, xmm2
addss xmm3, dword [ebp - 0x48]
andps xmm1, xmmword [0x100802c0]
addss xmm3, dword [ebp - 0x6c]
movaps xmm0, xmm3
andps xmm0, xmmword [0x100802c0]
comiss xmm1, xmm0
jbe 0x10020577
movaps xmm7, xmm3
xorps xmm7, xmmword [0x100802d0]
jmp 0x10020586
movaps xmm0, xmm2
xorps xmm0, xmmword [0x100802d0]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [ebp - 0x28]
movaps xmm5, xmm4
movss xmm4, dword [ebp - 0x44]
mov dl, 4
addss xmm4, dword [esi + 0x14]
addss xmm5, dword [esi + 0x10]
movss xmm2, dword [ebp - 0x24]
mov ecx, esi
movss xmm1, dword [ebp - 0x38]
movss xmm3, dword [ebp - 0x4c]
addss xmm0, xmm4
addss xmm2, xmm5
cvttss2si eax, xmm0
addss xmm1, xmm0
push eax
cvttss2si eax, xmm2
addss xmm3, xmm2
movss dword [esi + 0x14], xmm1
push eax
cvttss2si eax, xmm4
movss dword [esi + 0x10], xmm3
push eax
cvttss2si eax, xmm5
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, xmm3
push eax
call fcn.1001f3b0
movss xmm4, dword [ebp - 0x48]
movss xmm3, dword [ebp - 0x34]
addss xmm4, dword [esi + 0x14]
addss xmm3, dword [esi + 0x10]
movss xmm0, dword [ebp - 0x6c]
movss xmm5, dword [ebp - 0x68]
addss xmm0, xmm4
addss xmm5, xmm3
movaps xmm2, xmm0
movaps xmm1, xmm5
addss xmm2, xmm7
addss xmm1, dword [ebp - 0x20]
movss xmm7, dword [ebp - 0x44]
add esp, 0x18
movss dword [esi + 0x10], xmm1
cvttss2si eax, xmm0
mov dl, 4
mov ecx, esi
movss dword [esi + 0x14], xmm2
push eax
cvttss2si eax, xmm5
push eax
cvttss2si eax, xmm4
push eax
cvttss2si eax, xmm3
push eax
cvttss2si eax, xmm2
push eax
cvttss2si eax, xmm1
push eax
call fcn.1001f3b0
movss xmm4, dword [ebp - 0x40]
add esp, 0x18
movss xmm0, dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x28]
movss xmm3, dword [ebp - 0x34]
movss xmm5, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
jmp 0x1001fdd7
mov eax, dword [ebp - 0x18]
cmp eax, 0xff
je 0x100206ca
cmp eax, 0x1c
je 0x10020697
cmp eax, 0x20
jb case.default.0x1002030d
mov ecx, dword [ebp - 0x1c]
dec edx
cmp edx, ecx
jg 0x100206a6
mov dword [ebp - 0x54], edx
test edx, edx
jns 0x100206a9
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x58]
call fcn.1001d650
mov edi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
cwde
mov dword [ebp - 0x1c], edi
movd xmm0, eax
mov eax, dword [ebp - 0x58]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x3c], eax
jmp 0x10020743
mov edi, dword [ebp - 0x1c]
cmp ecx, edi
jl 0x100206db
mov eax, dword [ebp - 0x90]
xor cl, cl
jmp 0x100206ec
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + 1]
mov al, byte [eax + ecx]
mov byte [ebp - 0x29], al
mov eax, edx
mov cl, byte [ebp - 0x29]
movzx ecx, cl
cmp eax, edi
jl 0x100206f7
xor al, al
jmp 0x100206fe
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + edx]
inc edx
shl ecx, 8
movzx eax, al
or ecx, eax
cmp edx, edi
jl 0x1002070e
xor al, al
jmp 0x10020715
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + edx]
inc edx
shl ecx, 8
movzx eax, al
or ecx, eax
cmp edx, edi
jl 0x10020725
xor al, al
jmp 0x1002072c
mov eax, dword [ebp - 0x3c]
mov al, byte [eax + edx]
inc edx
shl ecx, 8
movzx eax, al
or ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x100800a0]
mov eax, dword [ebp - 0x14]
cmp eax, 0x30
jge case.default.0x1002030d
movss dword [ebp + eax*4 - 0x170], xmm0
inc eax
movss xmm0, dword [ebp - 0x148]
movss xmm3, dword [ebp - 0x158]
movss xmm5, dword [ebp - 0x15c]
movss xmm2, dword [ebp - 0x160]
movss xmm1, dword [ebp - 0x164]
movss xmm7, dword [ebp - 0x16c]
movss xmm4, dword [ebp - 0x170]
movss dword [ebp - 0x78], xmm0
movss xmm0, dword [ebp - 0x14c]
movss dword [ebp - 0x6c], xmm0
movss xmm0, dword [ebp - 0x150]
movss dword [ebp - 0x68], xmm0
movss xmm0, dword [ebp - 0x154]
movss dword [ebp - 0x48], xmm0
movss xmm0, dword [ebp - 0x168]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x70], 0
movss dword [ebp - 0x34], xmm3
movss dword [ebp - 0x38], xmm5
movss dword [ebp - 0x4c], xmm2
movss dword [ebp - 0x28], xmm1
movss dword [ebp - 0x24], xmm0
movss dword [ebp - 0x44], xmm7
movss dword [ebp - 0x40], xmm4
jmp 0x1001fdd7
movss xmm4, dword [ebp - 0x40]
movss xmm0, dword [ebp - 0x24]
movss xmm1, dword [ebp - 0x28]
movss xmm7, dword [ebp - 0x44]
movss xmm3, dword [ebp - 0x34]
movss xmm5, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
jmp 0x1001fdda
movss xmm1, dword [esi + 8]
ucomiss xmm1, dword [esi + 0x10]
lahf
test ah, 0x44
jp 0x1002083e
movss xmm0, dword [esi + 0xc]
ucomiss xmm0, dword [esi + 0x14]
lahf
test ah, 0x44
jnp 0x1002085d
cvttss2si eax, dword [esi + 0xc]
push 0
push 0
push 0
push 0
mov dl, 2
mov ecx, esi
push eax
cvttss2si eax, xmm1
push eax
call fcn.1001f3b0
add esp, 0x18
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004a7ae
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1004a7ae
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret