Function at 0x8048f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xbc
mov eax, dword [esp + 0xc0]
push ebx
mov ebx, dword [esp + 0xcc]
push ebp
mov edx, dword [eax + 0xd0b8]
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0xcc]
push esi
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x18], eax
lea eax, [ebx + 4]
mov dword [esp + 0x40], ecx
shl eax, 8
add eax, esi
mov ecx, dword [esi + ebx*4 + 0xa18]
mov dword [esp + 0x14], eax
lea eax, [ebx + 7]
shl eax, 8
add eax, esi
push edi
mov dword [esp + 0x24], eax
lea eax, [ebx + ebx*2]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x38]
lea eax, [esi + eax*8 + 0xa30]
mov edi, 2
mov ebp, dword [eax]
add eax, 4
add ecx, 2
dec edi
mov bp, word [ebp]
mov word [ecx - 2], bp
jne 0x804960
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x804b30
lea ecx, [ebx + ebx*2]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + ebx*4 + 0xa00]
mov dword [esp + 0x14], ecx
jmp 0x80499b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, 0x20
lea edi, [esp + 0x48]
mov ebp, dword [eax]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], ebp
mov eax, dword [ecx + ebp*4]
xor ecx, ecx
mov edi, eax
and edi, 0x700
cmp edi, 0x100
mov edi, dword [esp + 0x2c]
setne cl
shr eax, 2
and eax, 0x3f
mov dword [esp + 0x30], ecx
add eax, edi
lea eax, [ecx + eax*2 + 0x28c]
mov ecx, dword [esi + eax*4]
xor eax, eax
mov dword [esp + 0x34], ecx
jmp 0x8049f9
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0xd4]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], eax
cmp dword [ecx + eax*4], 0
jne 0x804ad6
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + eax*4]
xor ecx, ecx
mov cl, byte [edi + edx]
inc edi
mov ebp, ecx
cmp ebp, 0xf
mov esi, dword [ebp*4 + 0x8a1cc0]
jae 0x804a53
xor ecx, ecx
cmp ebp, 0xc
setl cl
neg ecx
and ecx, 0x15
xor ebx, ebx
cmp ebp, 2
setl bl
neg ebx
and ebx, 0xfffffff3
add ecx, ebx
xor ebx, ebx
mov bl, byte [edi + edx]
shl ebx, cl
add esi, ebx
mov ebx, dword [esp + 0xd8]
inc edi
mov ecx, esi
sar ecx, 8
and ecx, 0xfff
test ebp, ebp
jne 0x804a7a
mov ebp, dword [esp + 0x10]
xor edx, edx
mov dl, byte [edi + ebp]
shl edx, 8
add ecx, edx
inc edi
test ecx, ecx
jne 0x804a7a
mov ecx, closesocket
mov edx, dword [esp + 0x24]
mov dword [edx + eax*4], ecx
mov edx, dword [esp + 0x18]
mov dword [edx + eax*4], edi
mov edi, esi
and edi, 0x100000
mov edx, esi
neg edi
sar edi, 0x15
sar esi, 0x15
and edx, 0xff
xor edi, esi
mov esi, dword [esp + 0x34]
add eax, edx
xor edx, edx
imul di, word [esi + eax*2]
mov esi, dword [esp + 0x44]
mov dl, byte [eax + esi]
mov word [esp + edx*2 + 0x48], di
xor edx, edx
test ecx, ecx
sete dl
add eax, edx
cmp eax, 0x40
jl 0x8049ee
mov esi, dword [esp + 0xd4]
jmp 0x804ad9
dec dword [ecx + eax*4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x30]
sar edx, 0x10
mov word [esp + 0x48], dx
mov dx, word [esp + ecx*2 + 0x38]
mov ecx, dword [esp + 0x40]
push edx
lea edx, [esp + 0x4c]
push ecx
push edx
push ebx
push eax
mov eax, dword [esp + 0xe4]
push eax
call fcn.0057e600
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
add esp, 0x18
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
jne 0x804997
mov eax, dword [esp + 0x28]
mov edx, dword [esi + ebx*4 + 0xa00]
lea ecx, [eax*4]
add edx, ecx
push ebx
mov dword [esi + ebx*4 + 0xa00], edx
mov edx, dword [esi + ebx*4 + 0xa24]
mov edi, dword [esi + ebx*4 + 0xa0c]
push 1
neg edx
shl edx, 2
add edi, edx
mov edx, dword [esp + 0xd8]
mov dword [esi + ebx*4 + 0xa0c], edi
mov ecx, dword [esi + ebx*4 + 0xa24]
mov eax, edi
push 2
push ecx
push eax
push edx
call fcn.0057f672
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret