Function at 0x543047
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], 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 0x5430a2
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x25
je 0x543090
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x33
je 0x543090
jmp 0x543094
xor eax, eax
jmp 0x543097
xor eax, eax
inc eax
cmp eax, 0
jne 0x5430a2
xor eax, eax
jmp 0x5430a5
xor eax, eax
inc eax
cmp eax, 0
je 0x5430ba
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.00542d06
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, 2
cmp eax, 0
jle 0x543119
mov dword [ebp - 0x2c], 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 0x5430f9
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xb
jne 0x5430f9
xor eax, eax
jmp 0x5430fc
xor eax, eax
inc eax
cmp eax, 0
je 0x543111
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.00542d06
mov eax, dword [ebp - 0x2c]
sub eax, 1
jg 0x5430cc
mov eax, 3
cmp eax, 0
jle 0x543181
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 0x543179
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0xb
je 0x543162
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
je 0x543162
xor eax, eax
jmp 0x543165
xor eax, eax
inc eax
cmp eax, 0
je 0x543174
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x18], eax
jmp 0x543179
jmp 0x543181
mov eax, dword [ebp - 0x30]
sub eax, 1
jg 0x543125
mov eax, 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], eax
jmp 0x543204
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xf
jne 0x5431b7
push dword [ebp + 0x18]
call fcn.0044f582
jmp 0x5431ba
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x27
jne 0x5431db
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x27
je 0x5431f3
mov eax, dword [ebp - 0x20]
cmp eax, 0xc
je 0x5431f3
xor eax, eax
jmp 0x5431f6
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x543204
jmp 0x543219
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 0x54319c
mov eax, dword [ebp - 0x24]
cmp eax, 2
jge 0x543231
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00542d06
mov eax, dword [ebp + 0x1c]
mov edx, dword [0x582b00]
cmp eax, edx
sete al
xor ah, ah
cwde
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044ebdc
push eax
push dword [ebp + 8]
call fcn.00539a6a
mov eax, dword [ebp + 0x18]
sub eax, 0x10
leave
ret 0x1c