Function at 0x62c530
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x717aab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x4c], esi
call fcn.0062bed0
mov ebx, dword [esp + 0x16c]
xor edi, edi
mov eax, 0xd
push ebx
mov ecx, esi
mov dword [esp + 0x164], edi
mov dword [esi], 0x72b4d0
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x998], edi
mov dword [esi + 0x99c], edi
mov dword [esi + 0x9a4], edi
mov dword [esi + 0xba8], edi
call fcn.0062c1b0
test eax, eax
je 0x62cc4e
cmp dword [esi + 0x410], edi
jne 0x62c5c3
push str.Type_0_function_is_missing_range
push 0xffffffffffffffff
push 1
call fcn.006033f0
add esp, 0xc
jmp 0x62cc4e
mov ecx, dword [esi + 8]
cmp ecx, 0x10
jle 0x62c5e3
push 0x10
push str.Sampled_functions_with_more_than_0:d_inputs_are_unsupported
push 0xffffffffffffffff
push 1
call fcn.006033f0
add esp, 0x10
jmp 0x62cc4e
mov eax, 1
push 8
shl eax, cl
push eax
call fcn.005f6f20
mov dword [esi + 0x9a4], eax
mov eax, dword [esp + 0x170]
add esp, 8
cmp dword [eax], 8
je 0x62c61d
push str.Type_0_function_isnt_a_stream
push 0xffffffffffffffff
push 1
call fcn.006033f0
add esp, 0xc
jmp 0x62cc4e
mov ecx, dword [eax + 8]
lea edx, [esp + 0x34]
push edi
mov dword [esp + 0x30], ecx
push edx
push str.Size
mov ecx, ebx
call fcn.005f4430
cmp dword [eax], 6
jne 0x62cc34
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 8]
cmp dword [ecx + 0xc], eax
jne 0x62cc34
cmp eax, edi
jle 0x62c6a4
lea ebx, [esi + 0x418]
mov ebp, 1
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push 0
push edx
push edi
call fcn.006037c0
cmp dword [esp + 0x18], ebp
jne 0x62c6ff
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [ebx], eax
jle 0x62c70c
lea ecx, [esp + 0x18]
call fcn.005f2e10
mov eax, dword [esi + 8]
inc edi
add ebx, 4
cmp edi, eax
jl 0x62c65e
mov ebx, dword [esp + 0x16c]
xor edi, edi
lea ecx, [esp + 0x34]
call fcn.005f2e10
mov ecx, dword [esi + 8]
mov eax, 1
shl eax, cl
push 4
push eax
call fcn.005f6f20
mov ecx, dword [esi + 8]
mov edx, 1
shl edx, cl
add esp, 8
xor ebp, ebp
mov dword [esi + 0x998], eax
mov dword [esp + 0x28], ebp
test edx, edx
jle 0x62c77a
xor ebx, ebx
dec ecx
cmp ecx, 1
mov edx, ebp
jl 0x62c73b
lea edi, [esi + ecx*4 + 0x414]
mov dword [esp + 0x10], ecx
cmp dword [edi + 4], 1
jne 0x62c719
xor eax, eax
jmp 0x62c724
push str.Illegal_value_in_function_size_array
push 0xffffffffffffffff
push ebp
jmp 0x62c9d9
push str.Illegal_non_positive_value_in_function_size_array
push 0xffffffffffffffff
push ebp
jmp 0x62c9d9
mov ebp, dword [esp + 0x28]
mov eax, edx
sar eax, cl
and eax, 1
add ebx, eax
mov eax, dword [esp + 0x10]
imul ebx, dword [edi]
sub edi, 4
shl edx, 1
dec eax
mov dword [esp + 0x10], eax
jne 0x62c6f5
xor edi, edi
cmp dword [esi + 0x418], 1
jne 0x62c748
xor edx, edx
jmp 0x62c74d
sar edx, cl
and edx, 1
add edx, ebx
mov eax, dword [esi + 0x998]
imul edx, dword [esi + 0xc]
mov dword [eax + ebp*4], edx
mov ecx, dword [esi + 8]
mov edx, 1
inc ebp
shl edx, cl
mov dword [esp + 0x28], ebp
cmp ebp, edx
jl 0x62c6e0
mov ebx, dword [esp + 0x16c]
lea eax, [esp + 0x34]
push edi
push eax
push str.BitsPerSample
mov ecx, ebx
call fcn.005f4430
cmp dword [eax], 1
je 0x62c79b
push str.Function_has_missing_or_invalid_BitsPerSample
jmp 0x62cc39
fld qword [0x71a458]
fild dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ecx
call fcn.006fb640
fsub qword [0x71a450]
lea ecx, [esp + 0x34]
fdivr qword [0x71a450]
fstp qword [esp + 0x50]
call fcn.005f2e10
lea edx, [esp + 0x34]
push edi
push edx
push str.Encode
mov ecx, ebx
call fcn.005f4430
cmp dword [eax], 6
jne 0x62c895
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x3c]
mov ebx, dword [edx + 0xc]
lea ecx, [eax + eax]
cmp ebx, ecx
jne 0x62c895
xor ebp, ebp
cmp eax, edi
jle 0x62c8ca
xor edi, edi
lea ebx, [esi + 0x4a0]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push 0
push eax
push edi
call fcn.006037c0
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x62c860
cmp eax, 2
jne 0x62c88b
fld qword [esp + 0x20]
fstp qword [ebx - 8]
lea ecx, [esp + 0x18]
call fcn.005f2e10
lea ecx, [esp + 0x18]
push 0
lea edx, [edi + 1]
push ecx
mov ecx, dword [esp + 0x44]
push edx
call fcn.006037c0
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x62c866
cmp eax, 2
jne 0x62c88b
jmp 0x62c86c
fild dword [esp + 0x20]
jmp 0x62c830
fild dword [esp + 0x20]
jmp 0x62c870
fld qword [esp + 0x20]
fstp qword [ebx]
lea ecx, [esp + 0x18]
call fcn.005f2e10
mov eax, dword [esi + 8]
inc ebp
add ebx, 0x10
add edi, 2
cmp ebp, eax
jge 0x62c8ca
jmp 0x62c80d
push str.Illegal_value_in_function_encode_array
jmp 0x62c9d5
mov eax, dword [esi + 8]
xor edx, edx
cmp eax, edi
jle 0x62c8ca
lea eax, [esi + 0x4a0]
lea ecx, [esi + 0x418]
mov dword [eax - 8], edi
mov dword [eax - 4], edi
mov ebx, dword [ecx]
add ecx, 4
dec ebx
inc edx
mov dword [esp + 0x30], ebx
add eax, 0x10
fild dword [esp + 0x30]
fstp qword [eax - 0x10]
cmp edx, dword [esi + 8]
jl 0x62c8aa
lea ecx, [esp + 0x34]
call fcn.005f2e10
mov eax, dword [esi + 8]
xor edx, edx
test eax, eax
jle 0x62c90a
lea ecx, [esi + 0x898]
lea eax, [esi + 0x498]
fld qword [eax + 8]
fsub qword [eax]
fld qword [eax - 0x480]
fsub qword [eax - 0x488]
inc edx
add ecx, 8
fdivp st(1)
add eax, 0x10
fstp qword [ecx - 8]
cmp edx, dword [esi + 8]
jl 0x62c8e8
mov ecx, dword [esp + 0x16c]
lea eax, [esp + 0x34]
push 0
push eax
push str.Decode
call fcn.005f4430
cmp dword [eax], 6
jne 0x62c9ef
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x3c]
mov edi, dword [edx + 0xc]
lea ecx, [eax + eax]
cmp edi, ecx
jne 0x62c9ef
xor ebp, ebp
test eax, eax
jle 0x62ca2c
xor edi, edi
lea ebx, [esi + 0x6a0]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push 0
push eax
push edi
call fcn.006037c0
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x62c9a5
cmp eax, 2
jne 0x62c9d0
fld qword [esp + 0x20]
fstp qword [ebx - 8]
lea ecx, [esp + 0x18]
call fcn.005f2e10
lea ecx, [esp + 0x18]
push 0
lea edx, [edi + 1]
push ecx
mov ecx, dword [esp + 0x44]
push edx
call fcn.006037c0
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x62c9ab
cmp eax, 2
jne 0x62c9d0
jmp 0x62c9b1
fild dword [esp + 0x20]
jmp 0x62c975
fild dword [esp + 0x20]
jmp 0x62c9b5
fld qword [esp + 0x20]
fstp qword [ebx]
lea ecx, [esp + 0x18]
call fcn.005f2e10
mov eax, dword [esi + 0xc]
inc ebp
add ebx, 0x10
add edi, 2
cmp ebp, eax
jge 0x62ca2c
jmp 0x62c952
push str.Illegal_value_in_function_decode_array
push 0xffffffffffffffff
push 1
call fcn.006033f0
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.005f2e10
jmp 0x62cc45
mov eax, dword [esi + 0xc]
xor ecx, ecx
test eax, eax
jle 0x62ca2c
lea eax, [esi + 0x698]
mov edx, dword [eax - 0x488]
inc ecx
mov dword [eax], edx
mov edx, dword [eax - 0x484]
mov dword [eax + 4], edx
mov edx, dword [eax - 0x480]
mov dword [eax + 8], edx
mov edx, dword [eax - 0x47c]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0xc]
add eax, 0x10
cmp ecx, edx
jl 0x62c9fe
lea ecx, [esp + 0x34]
call fcn.005f2e10
mov eax, dword [esi + 0xc]
xor ebx, ebx
mov dword [esi + 0x9a0], eax
mov eax, dword [esi + 8]
test eax, eax
jle 0x62ca76
lea ebp, [esi + 0x418]
mov edi, dword [ebp]
mov eax, SysReAllocString
cdq
idiv edi
mov ecx, dword [esi + 0x9a0]
cmp ecx, eax
jg 0x62caac
imul ecx, edi
mov eax, dword [esi + 8]
inc ebx
add ebp, 4
cmp ebx, eax
mov dword [esi + 0x9a0], ecx
jl 0x62ca4d
mov ecx, dword [esi + 0x9a0]
push 8
push ecx
call fcn.005f6f20
mov edi, dword [esp + 0x1c]
add esp, 8
xor ebp, ebp
cmp edi, 0x20
mov dword [esi + 0x99c], eax
mov dword [esp + 0x10], ebp
jge 0x62cac2
mov eax, 1
mov ecx, edi
shl eax, cl
dec eax
mov dword [esp + 0x30], eax
jmp 0x62caca
push str.Integer_overflow_in_sampled_function_setup
push 0xffffffffffffffff
push 1
call fcn.006033f0
add esp, 0xc
jmp 0x62cc4e
mov dword [esp + 0x30], 0xffffffff
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x10]
mov eax, dword [esi + 0x9a0]
mov dword [esp + 0x28], 0
test eax, eax
jle 0x62cbdc
cmp edi, 8
jne 0x62cafc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
jmp 0x62cba9
cmp edi, 0x10
jne 0x62cb1b
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x18]
mov edi, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
shl edi, 8
add eax, edi
jmp 0x62cba5
cmp edi, 0x20
jne 0x62cb5f
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x18]
mov ebx, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [esp + 0x2c]
mov edi, eax
shl ebx, 8
mov edx, dword [ecx]
add edi, ebx
call dword [edx + 0x18]
mov ecx, dword [esp + 0x2c]
mov ebx, eax
shl edi, 8
mov eax, dword [ecx]
add ebx, edi
call dword [eax + 0x18]
shl ebx, 8
add eax, ebx
mov ebx, dword [esp + 0x2c]
jmp 0x62cba5
cmp ebp, edi
jge 0x62cb8f
mov edi, dword [esp + 0x14]
sub edi, ebp
add edi, 7
shr edi, 3
lea ebp, [ebp + edi*8]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x18]
mov ecx, dword [esp + 0x10]
and eax, 0xff
shl ecx, 8
or eax, ecx
dec edi
mov dword [esp + 0x10], eax
jne 0x62cb73
mov eax, dword [esp + 0x10]
mov ecx, ebp
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
sub ecx, ebp
shr eax, cl
mov ebp, ecx
and eax, edx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
fild qword [esp + 0x44]
mov edx, dword [esi + 0x99c]
mov eax, dword [esp + 0x28]
inc eax
fmul qword [esp + 0x50]
mov dword [esp + 0x28], eax
fstp qword [edx + eax*8 - 8]
cmp eax, dword [esi + 0x9a0]
jl 0x62caeb
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
jle 0x62cc15
lea ecx, [esp + 0x58]
lea edx, [esi + 0x9a8]
lea eax, [esi + 0x10]
fld qword [eax]
inc edi
add eax, 0x10
fst qword [ecx]
fsub qword [0x71a450]
add ecx, 8
add edx, 8
fstp qword [edx - 8]
cmp edi, dword [esi + 8]
jl 0x62cbf9
lea ecx, [esi + 0xaa8]
lea edx, [esp + 0x58]
push ecx
push edx
mov ecx, esi
call fcn.0062ce10
mov dword [esi + 0xba8], 1
jmp 0x62cc4e
push str.Function_has_missing_or_invalid_size_array
push 0xffffffffffffffff
push 1
call fcn.006033f0
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.005f2e10
mov ecx, dword [esp + 0x158]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x154
ret 8