Function at 0x100ee060
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.100d6270
mov eax, dword [ebp + 0x14]
xor cl, cl
add eax, 0xffffff78
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 0x100ee19e
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.10102890
add dword [ebp - 4], eax
cmp byte [ebp - 0x1c], 0
je 0x100ee10f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
cmp byte [eax + 0x18], 1
jbe 0x100ee10f
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 0x100ee114
mov eax, 1
mov edx, dword [ebp + 0x18]
test bl, bl
movzx edx, dl
cmovne edx, eax
cmp dword [ebp + 0x14], 0x8b
mov dword [ebp + 0x18], edx
je 0x100ee149
cmp byte [esi + 0x1a], 0
jne 0x100ee149
mov ecx, esi
call fcn.10102890
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 0x100ee0d2
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x20]
test al, al
je 0x100ee1a5
mov dword [esi + 8], 3
mov al, byte [esi + 0x1a]
mov ebx, dword [ebp + 0x10]
mov byte [ebp + 0x1b], al
test al, al
je 0x100ee1d7
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x28]
sar eax, 3
cmp dword [esi + 0x1c], eax
je 0x100ee1d4
push 0x1013adb0
push str.constructor
push str.array_constructor_needs_one_argument_per_array_element
jmp 0x100ee333
mov al, byte [ebp + 0x1b]
cmp byte [ebp - 0x10], 0
je 0x100ee1fa
cmp dword [ebp + 0x14], 0x8b
je 0x100ee1fa
push 0x1013adb0
push str.constructor
push str.constructing_from_a_non_dereferenced_array
jmp 0x100ee333
mov ecx, dword [ebp - 8]
test cl, cl
je 0x100ee227
test al, al
jne 0x100ee227
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x28]
and eax, 0xfffffff8
cmp eax, 8
je 0x100ee227
push 0x1013adb0
push str.constructor
push str.constructing_matrix_from_matrix_can_only_take_one_argument
jmp 0x100ee333
test dl, dl
je 0x100ee23f
push 0x1013adb0
push str.constructor
push str.too_many_arguments
jmp 0x100ee333
mov eax, dword [ebp + 0x14]
cmp eax, 0x8b
jne 0x100ee286
cmp byte [ebp + 0x1b], 0
jne 0x100ee286
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 0x100ee280
push 0x1013adb0
push str.constructor
push str.Number_of_constructor_parameters_does_not_match_the_number_of_structure_fields
jmp 0x100ee333
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
cmp byte [esi + 0x18], 1
jbe 0x100ee296
cmp byte [esi + 0x19], 1
jbe 0x100ee296
test cl, cl
jne 0x100ee2b0
cmp eax, 0x8b
je 0x100ee2e5
mov ebx, dword [ebp - 4]
cmp ebx, 1
je 0x100ee2b0
mov ecx, esi
call fcn.10102890
cmp ebx, eax
jb 0x100ee2f1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100ee324
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x100ee324
cmp dword [ebp + 0x14], 0x8b
je 0x100ee302
mov ecx, dword [eax + 0x14]
add ecx, 0xfffffff1
cmp ecx, 0x10
ja 0x100ee302
push 0x1013adb0
push str.constructor
push str.cannot_convert_a_sampler
jmp 0x100ee333
mov ecx, esi
call fcn.10102890
cmp dword [ebp - 4], eax
jae 0x100ee2b0
push 0x1013adb0
push str.constructor
push str.not_enough_data_provided_for_construction
jmp 0x100ee333
cmp dword [eax + 0x14], 0
jne 0x100ee319
push 0x1013adb0
push str.constructor
push str.cannot_convert_a_void
jmp 0x100ee333
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x1013adb0
push str.constructor
push str.constructor_argument_does_not_have_a_type
push dword [ebp + 8]
mov ecx, edi
call fcn.100ee4f0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14