Function at 0x100210c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
movups xmm0, xmmword [edx + 0x38]
movups xmmword [ecx + 0x1c], xmm0
movups xmm0, xmmword [edx + 0x1c]
movups xmm1, xmmword [edx + 0x2c]
movups xmmword [ecx + 0x10], xmm1
movups xmmword [ecx], xmm0
mov edi, dword [edx + 0xc]
cmp dword [edx + 0x10], edi
je 0x100211eb
add eax, 0xffffff7a
mov dword [ebp - 0x28], eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
xor edx, edx
mov dword [ebp - 0x2c], edx
lea eax, [esi + esi]
mov dword [ebp - 0x1c], eax
mov ecx, dword [edi + esi*8 + 4]
call fcn.10010102
mov edx, eax
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
movzx eax, al
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0x20], edi
ja 0x10021172
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [edi + eax*4 + 4]
cmp byte [eax + 4], 1
mov eax, dword [ebp - 0x10]
movzx eax, al
mov edi, 1
cmova eax, edi
mov dword [ebp - 0x10], eax
mov eax, ecx
test byte [ebp - 0x18], 1
cmovne eax, edi
jmp 0x1002118c
test byte [ebp - 0x18], 1
mov ecx, 1
cmovne eax, ecx
cmp dword [ebp + 0x14], 0x8f
jne 0x1002118c
mov dword [ebp - 0x14], eax
jmp 0x100211b4
mov ecx, dword [ebp + 0x18]
cmp byte [ecx + 5], 0
mov dword [ebp - 0x14], eax
jne 0x100211b4
mov edi, edx
call fcn.10010102
mov edx, edi
cmp edi, eax
mov ecx, dword [ebp - 0x18]
movzx ecx, cl
mov eax, 1
cmovae ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + ecx*4 + 4]
cmp byte [eax + 5], 0
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
inc esi
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub eax, edi
sar eax, 3
cmp esi, eax
jb 0x10021123
mov edi, edx
and bl, 1
jmp 0x100211ff
xor edi, edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor ebx, ebx
xor eax, eax
mov edx, dword [ebp + 0x18]
cmp byte [edx + 5], 0
je 0x10021222
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10021226
mov esi, str.array_constructor_needs_one_argument_per_array_element
cmp ecx, eax
jne 0x10021337
mov edx, edi
xor eax, eax
jmp 0x10021231
mov al, 1
jmp 0x1002122f
mov byte [edx + 5], 1
mov dword [edx + 8], eax
xor eax, eax
mov edx, edi
cmp dword [ebp + 0x14], 0x8f
je 0x10021247
mov esi, str.constructing_from_a_non_dereferenced_array
test bl, bl
jne 0x10021337
test byte [ebp - 0x10], al
je 0x10021265
mov ecx, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ecx + 0x10]
sub ecx, dword [esi + 0xc]
mov esi, str.constructing_matrix_from_matrix_can_only_take_one_argument
cmp ecx, 8
jne 0x10021337
mov esi, str.too_many_arguments
test byte [ebp - 0x14], 1
jne 0x10021337
cmp dword [ebp + 0x14], 0x8f
setne cl
xor al, 1
or al, cl
jne 0x100212ae
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 0x24]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar ecx, 2
sar eax, 3
mov esi, str.Number_of_constructor_parameters_does_not_match_the_number_of_structure_fields
cmp ecx, eax
jne 0x10021337
test byte [ebp - 0x10], 1
je 0x100212bd
mov eax, dword [ebp + 0x18]
cmp byte [eax + 4], 1
ja 0x100212fa
cmp dword [ebp + 0x14], 0x8f
je 0x100212de
cmp edx, 1
je 0x100212de
mov ecx, dword [ebp + 0x18]
call fcn.10010102
mov edx, edi
mov esi, str.not_enough_data_provided_for_construction
cmp edi, eax
jb 0x10021337
cmp dword [ebp + 0x14], 0x8f
jne 0x100212fa
mov ecx, dword [ebp + 0x18]
mov edi, edx
call fcn.10010102
mov esi, str.not_enough_data_provided_for_construction
cmp edi, eax
jb 0x10021337
mov ecx, dword [ebp + 0xc]
mov esi, str.constructor_argument_does_not_have_a_type
test ecx, ecx
je 0x10021337
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x10021337
mov al, byte [eax + 0x14]
cmp dword [ebp + 0x14], 0x8f
je 0x1002132a
mov ecx, eax
add cl, 0xf1
mov esi, str.cannot_convert_a_sampler
cmp cl, 0x11
jb 0x10021337
test al, al
je 0x10021332
xor eax, eax
jmp 0x1002134f
mov esi, str.cannot_convert_a_void
mov ecx, dword [ebp - 0x24]
push 0x102038e7
push str.constructor
push esi
push dword [ebp + 8]
call fcn.10020344
mov al, 1
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret 0x14