Function at 0x6f6cc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [esi + 0x5c0]
jmp 0x6f6cce
sub esp, 0x50
push ebx
push esi
mov esi, ecx
nop
nop
jmp 0x403c30
mov ecx, dword [eax*4 + 0xc38014]
xor ebx, ebx
cmp ecx, ebx
jle 0x6f707f
push ebp
mov dword [esp + 0x10], ebx
push edi
jmp 0x6f6cf0
movzx ecx, byte [esi + 0x5c0]
lea eax, [ebx + 1]
mov dword [esp + 0x20], eax
shl ecx, 2
cdq
idiv dword [ecx + 0xc38014]
mov eax, dword [ecx + 0xc38024]
mov ecx, dword [esp + 0x14]
movsx edi, word [ecx + eax]
add ecx, eax
mov dword [esp + 0x18], edi
movsx edi, word [ecx + 2]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edi
fmul dword [0x858c48]
fstp dword [esp + 0x24]
fild dword [esp + 0x18]
fmul dword [0x858c48]
fstp dword [esp + 0x28]
lea edi, [edx + edx*4]
shl edi, 1
movsx ebp, word [edi + eax]
movsx eax, word [edi + eax + 2]
mov dword [esp + 0x18], ebp
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14]
test eax, eax
fmul dword [0x858c48]
fstp dword [esp + 0x30]
fild dword [esp + 0x18]
fmul dword [0x858c48]
fstp dword [esp + 0x34]
je 0x6f6d7e
add eax, 0x30
jmp 0x6f6d81
lea eax, [esi + 4]
fld dword [esp + 0x24]
mov ebp, dword [eax]
fsub dword [esp + 0x30]
mov dword [esp + 0x3c], ebp
fld dword [esp + 0x28]
mov ebp, dword [eax + 4]
fsub dword [esp + 0x34]
mov dword [esp + 0x40], ebp
fld st(0)
mov eax, dword [eax + 8]
fmul st(1)
mov dword [esp + 0x44], eax
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fld dword [esp + 0x30]
fsub dword [esp + 0x24]
fst dword [esp + 0x18]
fld dword [esp + 0x34]
fsub dword [esp + 0x28]
fst dword [esp + 0x1c]
fld dword [esp + 0x3c]
fsub dword [esp + 0x24]
fld dword [esp + 0x40]
fsub dword [esp + 0x28]
fmul st(2)
fxch st(1)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
fdivp st(1)
fstp dword [esp + 0x10]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [0x858cdc]
fnstsw ax
test ah, 0x41
jne 0x6f6f40
fld dword [esp + 0x10]
fcomp dword [0x872490]
fnstsw ax
test ah, 5
jp 0x6f6f40
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x10]
fstp dword [esp + 0x54]
fmul dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [0x858b50]
fld dword [esp + 0x54]
fadd dword [esp + 0x24]
fstp dword [esp + 0x48]
fxch st(1)
fadd dword [esp + 0x28]
fstp dword [esp + 0x4c]
fld dword [esp + 0x48]
fsub dword [esp + 0x3c]
fld dword [esp + 0x4c]
fsub dword [esp + 0x40]
fxch st(2)
fld st(0)
fmul st(1)
fld st(3)
fmul st(4)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fxch st(3)
fstp st(1)
fstp st(0)
fstp st(0)
fcomp dword [0x858b3c]
fnstsw ax
test ah, 5
jnp 0x6f6f6d
call fcn.006f5f80
fld dword [0x8d12c0]
mov cl, al
and cl, 0xf
movzx edx, cl
movzx ecx, byte [esi + 0x5c0]
mov dword [esp + 0x1c], edx
mov ecx, dword [ecx*4 + 0xc38024]
shr al, 4
fild dword [esp + 0x1c]
movzx eax, al
fmul dword [0x858f10]
mov dword [esp + 0x1c], eax
fld dword [0x858624]
fsub st(2)
add ecx, edi
fmulp st(1)
fild dword [esp + 0x1c]
fmul dword [0x858f10]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x18]
fstp st(0)
call fcn.006f5f80
fld dword [0x8d12c0]
mov dl, al
and dl, 0xf
movzx ecx, dl
mov dword [esp + 0x1c], ecx
shr al, 4
movzx edx, al
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edx
fmul dword [0x858f10]
fld dword [0x858624]
fsub st(2)
fmulp st(1)
fild dword [esp + 0x1c]
fmul dword [0x858f10]
fmul st(2)
faddp st(1)
fsub dword [esp + 0x18]
fmul dword [esp + 0x10]
fadd dword [esp + 0x18]
fstp dword [esi + 0x12c]
fstp st(0)
movzx eax, byte [esi + 0x5c0]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov ecx, dword [eax*4 + 0xc38014]
add edx, 0xa
cmp ebx, ecx
mov dword [esp + 0x14], edx
jl 0x6f6cf0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x50
ret
movzx ecx, byte [esi + 0x5c0]
shl ecx, 2
mov eax, dword [ecx + 0xc38024]
lea edi, [ebx + ebx*4]
movzx edi, word [eax + edi*2 + 6]
lea edx, [edx + edx*4]
movzx eax, word [eax + edx*2 + 6]
movsx edx, word [esi + 0x22]
mov dword [esp + 0x20], edi
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
fmul dword [0x859040]
fild dword [esp + 0x20]
fmul dword [0x859040]
fsub st(1)
fmul dword [esp + 0x10]
faddp st(1)
fst dword [esi + 0x5a8]
mov eax, dword [edx*4 + 0xa9b0c8]
mov eax, dword [eax + 0x14]
fld dword [eax + 0x10]
fsub dword [eax + 4]
fmul dword [0x858b8c]
fsubp st(1)
fcom dword [0x858b50]
fst dword [esi + 0x5a8]
fnstsw ax
test ah, 5
jp 0x6f6ff4
fadd dword [ecx + 0xc37fec]
fstp dword [esi + 0x5a8]
jmp 0x6f6ff6
fstp st(0)
fld dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
fld st(0)
mov dword [esp + 0x18], ecx
fmul st(1)
fld dword [esi + 0x48]
fstp st(2)
fld st(1)
fmul st(2)
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fsqrt
fstp st(1)
fst dword [esi + 0x5a4]
fld dword [esp + 0x30]
fsub dword [esp + 0x24]
fld dword [esp + 0x34]
fsub dword [esp + 0x28]
fmul dword [esi + 0x48]
fld dword [esi + 0x4c]
fmul dword [0x858b50]
faddp st(1)
fxch st(1)
fmul dword [esi + 0x44]
faddp st(1)
fcomp dword [0x858b50]
fnstsw ax
test ah, 0x41
jne 0x6f7059
mov al, 1
jmp 0x6f705b
xor al, al
mov dl, byte [esi + 0x5b8]
shr dl, 6
and dl, 1
xor dl, al
jne 0x6f707b
pop edi
fchs
pop ebp
fstp dword [esi + 0x5a4]
pop esi
pop ebx
add esp, 0x50
ret
pop edi
fstp st(0)
pop ebp
pop esi
pop ebx
add esp, 0x50
ret