Function at 0x4a3190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x34]
sub ecx, dword [eax + 0x6c]
mov edx, dword [ebp + 8]
sub ecx, dword [edx + 0x64]
mov dword [ebp - 0x10], ecx
jne 0x4a31d3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x64], 0
jne 0x4a31d3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6c], 0
jne 0x4a31d3
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
jmp 0x4a3305
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4a31e7
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
jmp 0x4a3305
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx - 0x106]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x64], ecx
jb 0x4a3305
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x30]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.004b8640
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x54]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax*2]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
sub edx, 2
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 4]
jb 0x4a328a
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x4a3291
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp - 0x18]
mov word [ecx], dx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jne 0x4a3265
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
mov ecx, dword [ebp - 8]
lea edx, [eax + ecx*2]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 4]
jb 0x4a32e0
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
jmp 0x4a32e7
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0xc]
mov ax, word [ebp - 0x1c]
mov word [edx], ax
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
jne 0x4a32bb
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jne 0x4a3315
jmp 0x4a33b3
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x64]
mov eax, dword [ebp + 8]
add ecx, dword [eax + 0x6c]
push ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.004a44e0
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6c], 3
jb 0x4a3398
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x64]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
movzx edx, byte [ecx + edx]
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
mov ecx, dword [edx + 0x50]
shl eax, cl
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x64]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
mov ecx, dword [ebp + 8]
and eax, dword [ecx + 0x4c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x40], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6c], 0x106
jae 0x4a33b3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
jne 0x4a319f
mov esp, ebp
pop ebp
ret