Function at 0x100b6d10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x18]
add eax, 0x38
push edi
mov edi, ecx
mov ecx, esi
push eax
mov dword [ebp - 0x20], edi
call fcn.100ad8f0
mov eax, dword [ebp + 0x14]
xor cl, cl
add eax, 0xffffff90
movzx ecx, cl
cmp eax, 2
mov dword [ebp - 4], 0
mov edx, 1
mov dword [ebp - 0x18], 0
cmovbe ecx, edx
mov al, dl
mov dword [ebp - 0x1c], ecx
xor bl, bl
mov ecx, dword [ebp + 0x10]
xor dl, dl
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x18], edx
mov byte [ebp - 8], bl
mov eax, dword [ecx + 0x2c]
sub eax, dword [ecx + 0x28]
sar eax, 3
mov byte [ebp - 0x10], bl
test eax, eax
je 0x100b6e49
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi + 0x28]
lea eax, [eax + ecx*8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], eax
call fcn.100bf040
add dword [ebp - 4], eax
cmp byte [ebp - 0x1c], 0
je 0x100b6dbd
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
cmp byte [eax + 0x18], 1
jbe 0x100b6dbd
mov ecx, dword [ebp - 8]
cmp byte [eax + 0x19], 1
mov eax, 1
movzx ecx, cl
cmova ecx, eax
mov dword [ebp - 8], ecx
jmp 0x100b6dc2
mov eax, 1
mov edx, dword [ebp + 0x18]
test bl, bl
movzx edx, dl
cmovne edx, eax
cmp dword [ebp + 0x14], 0x73
mov dword [ebp + 0x18], edx
je 0x100b6df4
cmp byte [esi + 0x1a], 0
jne 0x100b6df4
mov ecx, esi
call fcn.100bf040
cmp dword [ebp - 4], eax
mov eax, 1
mov edx, dword [ebp + 0x18]
movzx ebx, bl
cmovae ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
cmp dword [eax + 8], 3
cmovne ecx, dword [ebp - 0x14]
cmp byte [eax + 0x1a], 0
mov eax, 1
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
cmovne ecx, eax
mov eax, dword [edi + 0x2c]
sub eax, dword [edi + 0x28]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x18]
inc ecx
sar eax, 3
mov dword [ebp - 0x18], ecx
cmp ecx, eax
jb 0x100b6d80
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x20]
test al, al
je 0x100b6e50
mov dword [esi + 8], 3
mov al, byte [esi + 0x1a]
mov ebx, dword [ebp + 0x10]
mov byte [ebp + 0x1b], al
test al, al
je 0x100b6e82
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x28]
sar eax, 3
cmp dword [esi + 0x1c], eax
je 0x100b6e7f
push 0x1010e340
push str.constructor
push str.array_constructor_needs_one_argument_per_array_element
jmp 0x100b6fd4
mov al, byte [ebp + 0x1b]
cmp byte [ebp - 0x10], 0
je 0x100b6ea2
cmp dword [ebp + 0x14], 0x73
je 0x100b6ea2
push 0x1010e340
push str.constructor
push str.constructing_from_a_non_dereferenced_array
jmp 0x100b6fd4
mov ecx, dword [ebp - 8]
test cl, cl
je 0x100b6ecf
test al, al
jne 0x100b6ecf
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x28]
and eax, 0xfffffff8
cmp eax, 8
je 0x100b6ecf
push 0x1010e340
push str.constructor
push str.constructing_matrix_from_matrix_can_only_take_one_argument
jmp 0x100b6fd4
test dl, dl
je 0x100b6ee7
push 0x1010e340
push str.constructor
push str.too_many_arguments
jmp 0x100b6fd4
mov eax, dword [ebp + 0x14]
cmp eax, 0x73
jne 0x100b6f2c
cmp byte [ebp + 0x1b], 0
jne 0x100b6f2c
mov eax, dword [esi + 0x24]
mov edx, dword [ebx + 0x2c]
sub edx, dword [ebx + 0x28]
sar edx, 1
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
xor edx, eax
test edx, 0xfffffffc
je 0x100b6f26
push 0x1010e340
push str.constructor
push str.Number_of_constructor_parameters_does_not_match_the_number_of_structure_fields
jmp 0x100b6fd4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
cmp byte [esi + 0x18], 1
jbe 0x100b6f3c
cmp byte [esi + 0x19], 1
jbe 0x100b6f3c
test cl, cl
jne 0x100b6f54
cmp eax, 0x73
je 0x100b6f86
mov ebx, dword [ebp - 4]
cmp ebx, 1
je 0x100b6f54
mov ecx, esi
call fcn.100bf040
cmp ebx, eax
jb 0x100b6f92
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100b6fc5
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x100b6fc5
cmp dword [ebp + 0x14], 0x73
je 0x100b6fa3
mov ecx, dword [eax + 0x14]
add ecx, 0xfffffff9
cmp ecx, 0x10
ja 0x100b6fa3
push 0x1010e340
push str.constructor
push str.cannot_convert_a_sampler
jmp 0x100b6fd4
mov ecx, esi
call fcn.100bf040
cmp dword [ebp - 4], eax
jae 0x100b6f54
push 0x1010e340
push str.constructor
push str.not_enough_data_provided_for_construction
jmp 0x100b6fd4
cmp dword [eax + 0x14], 0
jne 0x100b6fba
push 0x1010e340
push str.constructor
push str.cannot_convert_a_void
jmp 0x100b6fd4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x1010e340
push str.constructor
push str.constructor_argument_does_not_have_a_type
push dword [ebp + 8]
mov ecx, edi
call fcn.100b70c0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14