Function at 0x4a3b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a3f66
sub esp, 0x40
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
lea edx, [ecx + eax]
shr edx, 1
mov dword [esp + 0x3c], edx
mov ebx, ecx
sub ecx, eax
mov dword [esp + 0x38], ecx
cmp ecx, 0x28
jg 0x4a3ebc
mov ecx, dword [esp + 0x44]
mov dword [esp], ecx
mov ebp, dword [esp + 0x48]
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea esi, [ebx - 1]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
call fcn.004a3a70
mov eax, dword [esp + 0x4c]
lea ecx, [eax + 1]
jmp 0x4a3bc6
mov ebx, dword [esp + 0x24]
lea ecx, [ebx + 1]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jge 0x4a3bea
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x44]
mov ebx, dword [edx]
call ebx
movzx eax, byte [esp + 8]
test al, al
jne 0x4a3bbb
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x4a3c8e
mov ebx, dword [esp + 0x30]
lea ecx, [ebx + 1]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
cmp ecx, eax
jge 0x4a3c26
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x44]
mov ebx, dword [edx]
call ebx
movzx eax, byte [esp + 8]
test al, al
je 0x4a3bf7
mov eax, dword [esp + 0x34]
jmp 0x4a3c30
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jge 0x4a3eb1
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
lea ebx, [eax - 1]
mov dword [esp + 0x2c], ebx
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x44]
mov ebp, dword [edx]
call ebp
movzx eax, byte [esp + 8]
test al, al
jne 0x4a3c2c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jge 0x4a3c97
mov dword [esp], eax
dec ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0x30]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x34], eax
jmp 0x4a3c02
mov ebx, dword [esp + 0x50]
sub ebx, ecx
cmp ebx, 5
jge 0x4a3d96
mov edx, 1
mov dword [esp + 0x20], ecx
test dl, dl
je 0x4a3d92
mov edx, dword [esp + 0x24]
jmp 0x4a3d5b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
cmp edx, eax
jge 0x4a3cf7
lea ecx, [eax - 1]
mov dword [esp + 0x38], ecx
mov dword [esp], ecx
mov ebx, dword [esp + 0x4c]
mov dword [esp + 4], ebx
mov edx, dword [esp + 0x44]
mov ebp, dword [edx]
call ebp
movzx eax, byte [esp + 8]
test al, al
je 0x4a3cc0
mov eax, dword [esp + 0x28]
jmp 0x4a3d04
mov ecx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x4a3d36
mov dword [esp], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x44]
mov ebx, dword [edx]
call ebx
movzx eax, byte [esp + 8]
test al, al
jne 0x4a3cfd
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x4a3d64
mov dword [esp], eax
dec ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0x28]
lea edx, [eax + 1]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], edx
jmp 0x4a3ccc
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
lea eax, [ecx - 1]
mov dword [esp + 0x38], eax
mov dword [esp + 4], eax
mov edx, dword [esp + 0x48]
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
add esp, 0x40
ret
mov ecx, eax
jmp 0x4a3d64
xchg ebp, ebx
setl bl
xchg ebp, ebx
mov esi, dword [esp + 0x38]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1e
add esi, edi
sar esi, 2
cmp ebx, esi
jl 0x4a3db9
mov edx, ebp
jmp 0x4a3cab
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x44]
mov ebx, dword [edx]
call ebx
movzx eax, byte [esp + 8]
mov byte [esp + 0x17], al
test al, al
je 0x4a3e8e
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x30]
lea ebx, [eax - 1]
mov dword [esp + 0x38], ebx
mov dword [esp], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x44]
mov esi, dword [edx]
call esi
movzx eax, byte [esp + 8]
movzx ecx, byte [esp + 0x17]
xor ecx, 1
movzx ecx, cl
test al, al
je 0x4a3e87
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x3c]
mov dword [esp], ebx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 4], ebp
mov edx, dword [esp + 0x44]
mov esi, dword [edx]
call esi
movzx eax, byte [esp + 8]
test al, al
je 0x4a3e60
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
cmp eax, 1
setg dl
mov eax, ecx
mov ecx, dword [esp + 0x20]
jmp 0x4a3cab
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
mov dword [esp + 4], eax
mov edx, dword [esp + 0x48]
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x1c]
inc eax
mov ecx, dword [esp + 0x38]
jmp 0x4a3e4f
inc ecx
mov eax, dword [esp + 0x38]
jmp 0x4a3e1f
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x48]
mov ecx, dword [edx]
call ecx
mov eax, dword [esp + 0x34]
lea ecx, [eax + 1]
jmp 0x4a3de5
mov eax, ecx
mov ecx, dword [esp + 0x34]
jmp 0x4a3c6d
mov edx, dword [esp + 0x44]
mov dword [esp], edx
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov ebp, ecx
sar ecx, 0x1f
shr ecx, 0x1d
add ecx, ebp
sar ecx, 3
mov dword [esp + 0x18], ecx
lea esi, [ecx + eax]
mov dword [esp + 0xc], esi
lea esi, [eax + ecx*2]
mov dword [esp + 0x10], esi
call fcn.004a3a70
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x18]
mov ebp, edx
sub edx, ebx
mov dword [esp + 0xc], edx
lea edx, [ebx + ebp]
mov dword [esp + 0x10], edx
call fcn.004a3a70
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
lea ebx, [edx - 1]
mov dword [esp + 8], ebx
mov ebp, dword [esp + 0x18]
mov esi, ebx
sub ebx, ebp
mov dword [esp + 0xc], ebx
shl ebp, 1
sub esi, ebp
mov dword [esp + 0x10], esi
call fcn.004a3a70
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x50]
jmp 0x4a3b8b
call fcn.00448580
jmp fcn.004a3b50