Function at 0x54b24a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0x16d1
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jae 0x54b2aa
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x25
je 0x54b298
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x33
je 0x54b298
jmp 0x54b29c
xor eax, eax
jmp 0x54b29f
xor eax, eax
inc eax
cmp eax, 0
jne 0x54b2aa
xor eax, eax
jmp 0x54b2ad
xor eax, eax
inc eax
cmp eax, 0
je 0x54b2c2
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.0054aee1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, 2
cmp eax, 0
jle 0x54b321
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jae 0x54b301
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xb
jne 0x54b301
xor eax, eax
jmp 0x54b304
xor eax, eax
inc eax
cmp eax, 0
je 0x54b319
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.0054aee1
mov eax, dword [ebp - 0x30]
sub eax, 1
jg 0x54b2d4
mov eax, 3
cmp eax, 0
jle 0x54b389
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jae 0x54b381
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0xb
je 0x54b36a
mov eax, dword [ebp - 0x24]
cmp eax, 0xc
je 0x54b36a
xor eax, eax
jmp 0x54b36d
xor eax, eax
inc eax
cmp eax, 0
je 0x54b37c
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x18], eax
jmp 0x54b381
jmp 0x54b389
mov eax, dword [ebp - 0x34]
sub eax, 1
jg 0x54b32d
mov eax, 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], eax
jmp 0x54b40c
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xf
jne 0x54b3bf
push dword [ebp + 0x18]
call fcn.00451334
jmp 0x54b3c2
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0x27
jne 0x54b3e3
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0x27
je 0x54b3fb
mov eax, dword [ebp - 0x24]
cmp eax, 0xc
je 0x54b3fb
xor eax, eax
jmp 0x54b3fe
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x54b40c
jmp 0x54b421
mov eax, dword [ebp + 0x18]
add eax, 0x10
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jb 0x54b3a4
mov eax, dword [ebp - 0x28]
cmp eax, 2
jge 0x54b439
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0054aee1
mov eax, dword [ebp + 0x1c]
mov edx, dword [0x6303a8]
cmp eax, edx
sete al
xor ah, ah
cwde
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x18]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
push eax
call fcn.00450934
push eax
push dword [ebp + 8]
call fcn.0054112d
mov eax, dword [ebp + 0x18]
sub eax, 0x10
leave
ret 0x1c