Function at 0x535934
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x60
jmp 0x535d31
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 0x535987
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 0x5359a5
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 0x5359de
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 0x5359fc
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 0x535a68
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 0x535a4a
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 0x535a68
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, 0x80
fld dword [eax + 8]
fstp dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, 0x80
fld dword [eax + 0xc]
fstp dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
cmp eax, 0
je 0x535afe
mov eax, dword [ebp + 8]
add eax, 0x80
mov eax, dword [eax + 0x10]
cmp eax, 0
je 0x535ae7
fld dword [ebp - 0xc]
fld dword [0x585390]
fmulp st(1)
mov eax, dword [ebp + 8]
add eax, 0x80
fld dword [eax + 0x14]
fsubp st(1)
fstp dword [ebp - 0x28]
fld dword [ebp - 0x10]
fld dword [0x585394]
fmulp st(1)
mov eax, dword [ebp + 8]
add eax, 0x80
fld dword [eax + 0x18]
fsubp st(1)
fstp dword [ebp - 0x24]
jmp 0x535af3
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 0x535b7b
mov eax, dword [ebp + 0x18]
xor al, 1
cmp eax, 0
je 0x535b2a
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 0x535b7b
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 0x535b3b
mov eax, dword [ebp + 8]
add eax, 0x80
mov edx, eax
xor eax, eax
inc eax
xchg edx, eax
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x80
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 0x535c7f
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, 0x80
mov edx, eax
fld dword [ebp - 0x20]
fstp dword [eax + 0x14]
mov eax, dword [ebp + 8]
add eax, 0x80
mov edx, eax
fld dword [ebp - 0x1c]
fstp dword [eax + 0x18]
mov eax, dword [ebp + 8]
add eax, 0x80
mov edx, eax
fld dword [ebp - 0x18]
fstp dword [eax + 8]
mov eax, dword [ebp + 8]
add eax, 0x80
mov edx, eax
fld dword [ebp - 0x14]
fstp dword [eax + 0xc]
jmp 0x535d21
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, 0x80
mov edx, eax
fld dword [ebp - 0x28]
fstp dword [eax + 0x14]
mov eax, dword [ebp + 8]
add eax, 0x80
mov edx, eax
fld dword [ebp - 0x24]
fstp dword [eax + 0x18]
mov eax, dword [ebp + 8]
add eax, 0x80
mov edx, eax
fld dword [ebp - 0x20]
fstp dword [eax + 8]
mov eax, dword [ebp + 8]
add eax, 0x80
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 0x535943
leave
ret 0x18