Function at 0x417520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x3fc
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
fldz
fstp qword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jmp 0x41755a
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
and ecx, 0xff
mov dword [ebp - 0x24], ecx
je 0x41757b
cmp dword [ebp - 0x24], 0x20
je 0x41757b
cmp dword [ebp - 0x24], 0xa
jne 0x4175fe
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 4]
jae 0x4175d4
cmp dword [ebp + 0x20], 0
je 0x4175d4
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0043a674
add esp, 8
fadd qword [ebp - 0x10]
fstp qword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
jbe 0x4175c8
fld qword [ebp + 0x10]
fcomp qword [ebp - 0x30]
fnstsw ax
test ah, 5
jp 0x4175c8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
jmp 0x4176ed
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
fld qword [ebp - 0x30]
fstp qword [ebp - 0x10]
cmp dword [ebp - 0x24], 0
jne 0x4175e1
jmp 0x4176ed
cmp dword [ebp - 0x24], 0xa
jne 0x4175f5
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x4176ed
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jbe 0x41760b
jmp 0x4176ed
cmp dword [ebp - 0x24], 9
jne 0x417655
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp + 0xc]
and eax, 0x80000007
jns 0x417623
dec eax
or eax, 0xfffffff8
inc eax
mov dword [ebp - 0x24], eax
jmp 0x417631
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 8
jge 0x417650
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jae 0x417650
mov eax, dword [ebp - 0x20]
mov byte [eax], 0x20
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x417628
jmp 0x4176e8
cmp dword [ebp - 0x24], 0x26
jne 0x41768c
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 1]
test eax, eax
je 0x41768c
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 1]
cmp edx, 0x26
jne 0x41768a
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0x26
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x4176e8
cmp dword [ebp - 0x24], 0x20
jl 0x417698
cmp dword [ebp - 0x24], 0x7f
jne 0x4176bd
mov eax, dword [ebp - 0x20]
mov byte [eax], 0x5e
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
xor edx, 0x40
mov eax, dword [ebp - 0x20]
mov byte [eax], dl
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x4176e8
cmp dword [ebp - 0x24], 0xa0
jne 0x4176d7
mov edx, dword [ebp - 0x20]
mov byte [edx], 0x20
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4176e8
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp - 0x24]
mov byte [ecx], dl
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x417551
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.0043a674
add esp, 8
fadd qword [ebp - 0x10]
mov eax, dword [ebp + 0x1c]
fstp qword [eax]
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret