Function at 0x4ab840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4abb94
sub esp, 0x44
mov eax, dword [esp + 0x48]
test byte [eax], al
mov ecx, dword [esp + 0x58]
movzx edx, byte [esp + 0x5c]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov esi, ecx
mov edi, eax
mov eax, 0xff
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, edi
xor esi, esi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x24], esi
mov ecx, esi
jmp 0x4ab8b2
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x48]
mov ecx, edx
movzx edx, byte [esp + 0x5c]
cmp ebp, ecx
jle 0x4abb78
movzx edi, byte [ebx + ecx]
mov dword [esp + 0x38], edi
lea esi, [ecx + 1]
and edi, 0xc0
test edi, edi
je 0x4ab923
cmp edi, 0xc0
jne 0x4aba8f
test dl, dl
je 0x4aba6f
cmp ebp, esi
jle 0x4aba4f
movzx esi, byte [ecx + ebx + 1]
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x4ab8fd
add ecx, 2
jmp 0x4ab901
mov ecx, dword [esp + 0x24]
inc edi
cmp edi, 0xa
jg 0x4aba2f
mov edx, dword [esp + 0x38]
xor edx, 0xc0
shl edx, 8
or edx, esi
mov esi, dword [esp + 0x28]
jmp 0x4ab897
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4abacf
lea edx, [ecx + edi + 1]
cmp ebp, edx
jl 0x4abaaf
mov dword [esp + 0x30], edx
mov ebp, dword [esp + 0x28]
lea edx, [ebp + edi]
mov edi, dword [esp + 0x54]
sub edi, ecx
lea ecx, [edi - 1]
neg ecx
sar ecx, 0x1f
and ecx, esi
add ecx, ebx
mov esi, dword [esp + 0x2c]
cmp esi, edx
jae 0x4ab99d
mov dword [esp + 0x40], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
lea ecx, [0x4ed440]
mov dword [esp + 0x10], ecx
call fcn.00446290
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
lea ebx, [eax + ebp]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], ecx
call fcn.0045dc00
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jb 0x4ab9d9
mov ecx, eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
jmp 0x4aba0b
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x4ed440]
mov dword [esp + 0x10], eax
call fcn.00446290
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov byte [ecx + eax - 1], 0x2e
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x20]
mov esi, ecx
mov ecx, dword [esp + 0x24]
jmp 0x4ab897
mov eax, dword [0x60a4e8]
mov ecx, dword [0x60a4ec]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x60a490]
mov ecx, dword [0x60a494]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x60a488]
mov ecx, dword [0x60a48c]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x60a4b0]
mov ecx, dword [0x60a4b4]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x60a480]
mov ecx, dword [0x60a484]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x4abb22
mov ecx, dword [esp + 0x2c]
cmp ecx, 1
jb 0x4abae7
mov ecx, 1
jmp 0x4abb1d
mov dword [esp + 0x34], esi
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
lea eax, [0x4ed440]
mov dword [esp + 0x10], eax
call fcn.00446290
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov byte [ecx + eax - 1], 0x2e
cmp ecx, 0xff
jg 0x4abb58
mov eax, dword [esp + 0x48]
mov byte [eax + 0xff], cl
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4abb40
mov esi, dword [esp + 0x24]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
add esp, 0x44
ret
mov eax, dword [0x60a480]
mov ecx, dword [0x60a484]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
mov eax, dword [0x60a478]
mov ecx, dword [0x60a47c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
call fcn.0045c000
jmp fcn.004ab840