Function at 0x55d950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x55dca4
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 0x55d9c2
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 0x55dc88
movzx edi, byte [ebx + ecx]
mov dword [esp + 0x38], edi
lea esi, [ecx + 1]
and edi, 0xc0
test edi, edi
je 0x55da33
cmp edi, 0xc0
jne 0x55db9f
test dl, dl
je 0x55db7f
cmp ebp, esi
jle 0x55db5f
movzx esi, byte [ecx + ebx + 1]
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x55da0d
add ecx, 2
jmp 0x55da11
mov ecx, dword [esp + 0x24]
inc edi
cmp edi, 0xa
jg 0x55db3f
mov edx, dword [esp + 0x38]
xor edx, 0xc0
shl edx, 8
or edx, esi
mov esi, dword [esp + 0x28]
jmp 0x55d9a7
mov edi, dword [esp + 0x38]
test edi, edi
je 0x55dbdf
lea edx, [ecx + edi + 1]
cmp ebp, edx
jl 0x55dbbf
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 0x55daad
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, [0x67e920]
mov dword [esp + 0x10], ecx
call fcn.00447800
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.0045fe60
mov eax, dword [esp + 0x28]
inc eax
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jb 0x55dae9
mov ecx, eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
jmp 0x55db1b
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, [0x67e920]
mov dword [esp + 0x10], eax
call fcn.00447800
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 0x55d9a7
mov eax, dword [0xa1d978]
mov ecx, dword [0xa1d97c]
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 [0xa1d920]
mov ecx, dword [0xa1d924]
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 [0xa1d918]
mov ecx, dword [0xa1d91c]
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 [0xa1d940]
mov ecx, dword [0xa1d944]
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 [0xa1d910]
mov ecx, dword [0xa1d914]
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 0x55dc32
mov ecx, dword [esp + 0x2c]
cmp ecx, 1
jb 0x55dbf7
mov ecx, 1
jmp 0x55dc2d
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, [0x67e920]
mov dword [esp + 0x10], eax
call fcn.00447800
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 0x55dc68
mov eax, dword [esp + 0x48]
mov byte [eax + 0xff], cl
mov eax, dword [esp + 0x20]
test eax, eax
je 0x55dc50
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 [0xa1d910]
mov ecx, dword [0xa1d914]
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 [0xa1d908]
mov ecx, dword [0xa1d90c]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
add esp, 0x44
ret
call fcn.0045e260
jmp fcn.0055d950