Function at 0x531944
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x60
jmp 0x531d41
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x25
jne 0x531997
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0x24]
jmp 0x5319b5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
fld dword [eax + 4]
fstp dword [ebp - 0x28]
mov eax, dword [ebp - 0x64]
fld dword [eax + 8]
fstp dword [ebp - 0x24]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x25
jne 0x5319ee
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0x1c]
jmp 0x531a0c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
fld dword [eax + 4]
fstp dword [ebp - 0x20]
mov eax, dword [ebp - 0x64]
fld dword [eax + 8]
fstp dword [ebp - 0x1c]
mov eax, dword [ebp + 0x1c]
cmp eax, 3
jne 0x531a78
mov eax, dword [ebp + 0xc]
add eax, 0x20
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x25
jne 0x531a5a
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0x14]
jmp 0x531a78
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
fld dword [eax + 4]
fstp dword [ebp - 0x18]
mov eax, dword [ebp - 0x64]
fld dword [eax + 8]
fstp dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, 0x7c
fld dword [eax + 8]
fstp dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, 0x7c
fld dword [eax + 0xc]
fstp dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x531b0e
mov eax, dword [ebp + 8]
add eax, 0x7c
mov eax, dword [eax + 0x10]
cmp eax, 0
je 0x531af7
fld dword [ebp - 0xc]
fld dword [0x57f5fc]
fmulp st(1)
mov eax, dword [ebp + 8]
add eax, 0x7c
fld dword [eax + 0x14]
fsubp st(1)
fstp dword [ebp - 0x28]
fld dword [ebp - 0x10]
fld dword [0x57f600]
fmulp st(1)
mov eax, dword [ebp + 8]
add eax, 0x7c
fld dword [eax + 0x18]
fsubp st(1)
fstp dword [ebp - 0x24]
jmp 0x531b03
fld dword [ebp - 0xc]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x10]
fstp dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
sub eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x14]
cmp eax, 0
je 0x531b8b
mov eax, dword [ebp + 0x18]
xor al, 1
cmp eax, 0
je 0x531b3a
fld dword [ebp - 0x28]
fld dword [ebp - 0xc]
faddp st(1)
fstp dword [ebp - 0x28]
fld dword [ebp - 0x24]
fld dword [ebp - 0x10]
faddp st(1)
fstp dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
dec eax
cmp eax, 0
jle 0x531b8b
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x2c]
fld dword [eax]
fld dword [ebp - 0xc]
faddp st(1)
mov edx, eax
mov eax, dword [ebp - 0x2c]
fstp dword [eax]
mov eax, dword [ebp - 0x2c]
fld dword [eax + 4]
fld dword [ebp - 0x10]
faddp st(1)
mov edx, eax
mov eax, dword [ebp - 0x2c]
fstp dword [eax + 4]
mov eax, dword [ebp - 0x2c]
add eax, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x68]
sub eax, 1
jg 0x531b4b
mov eax, dword [ebp + 8]
add eax, 0x7c
mov edx, eax
xor eax, eax
inc eax
xchg edx, eax
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x7c
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 3
jne 0x531c8f
lea eax, [ebp - 0x50]
add eax, 0
mov edx, eax
fld dword [ebp - 0x28]
fstp dword [eax]
lea eax, [ebp - 0x50]
add eax, 0
mov edx, eax
fld dword [ebp - 0x24]
fstp dword [eax + 4]
lea eax, [ebp - 0x50]
add eax, 8
mov edx, eax
fld dword [ebp - 0x20]
fstp dword [eax]
lea eax, [ebp - 0x50]
add eax, 8
mov edx, eax
fld dword [ebp - 0x1c]
fstp dword [eax + 4]
lea eax, [ebp - 0x50]
add eax, 0x10
mov edx, eax
fld dword [ebp - 0x18]
fstp dword [eax]
lea eax, [ebp - 0x50]
add eax, 0x10
mov edx, eax
fld dword [ebp - 0x14]
fstp dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x2c]
call eax
mov eax, dword [ebp + 8]
add eax, 0x7c
mov edx, eax
fld dword [ebp - 0x20]
fstp dword [eax + 0x14]
mov eax, dword [ebp + 8]
add eax, 0x7c
mov edx, eax
fld dword [ebp - 0x1c]
fstp dword [eax + 0x18]
mov eax, dword [ebp + 8]
add eax, 0x7c
mov edx, eax
fld dword [ebp - 0x18]
fstp dword [eax + 8]
mov eax, dword [ebp + 8]
add eax, 0x7c
mov edx, eax
fld dword [ebp - 0x14]
fstp dword [eax + 0xc]
jmp 0x531d31
lea eax, [ebp - 0x60]
add eax, 0
mov edx, eax
fld dword [ebp - 0x28]
fstp dword [eax]
lea eax, [ebp - 0x60]
add eax, 0
mov edx, eax
fld dword [ebp - 0x24]
fstp dword [eax + 4]
lea eax, [ebp - 0x60]
add eax, 8
mov edx, eax
fld dword [ebp - 0x20]
fstp dword [eax]
lea eax, [ebp - 0x60]
add eax, 8
mov edx, eax
fld dword [ebp - 0x1c]
fstp dword [eax + 4]
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x30]
call eax
mov eax, dword [ebp + 8]
add eax, 0x7c
mov edx, eax
fld dword [ebp - 0x28]
fstp dword [eax + 0x14]
mov eax, dword [ebp + 8]
add eax, 0x7c
mov edx, eax
fld dword [ebp - 0x24]
fstp dword [eax + 0x18]
mov eax, dword [ebp + 8]
add eax, 0x7c
mov edx, eax
fld dword [ebp - 0x20]
fstp dword [eax + 8]
mov eax, dword [ebp + 8]
add eax, 0x7c
mov edx, eax
fld dword [ebp - 0x1c]
fstp dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp + 0x1c]
shl eax, 4
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp eax, edx
jb 0x531953
leave
ret 0x18