Function at 0x4043b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x28], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
push edi
mov edi, dword [eax + 0xd0b8]
mov eax, dword [eax + 0xcc]
mov dword [ebp - 0x50], eax
lea eax, [esi + 0x280]
lea eax, [edx + eax*4]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], eax
lea ecx, [esi + esi*2]
mov eax, dword [eax]
add ecx, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + esi*4 + 0xa18]
mov dword [ebp - 0x10], eax
lea eax, [esi + 4]
shl eax, 8
add eax, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
lea edx, [esi + 7]
mov eax, dword [ebp - 0xc]
shl edx, 8
add edx, eax
mov dword [ebp - 0x14], edx
mov eax, dword [eax + ecx*4 + 0xa30]
movzx eax, word [eax]
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4 + 0xa34]
movzx eax, word [eax]
mov word [ebp - 0x22], ax
xor eax, eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x10], eax
jle 0x4045ef
lea ecx, [esi + esi*2]
mov dword [ebp - 0x38], ecx
lea ebx, [ebx]
mov ecx, dword [ebp - 0x2c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xdc], xmm0
movdqu xmmword [ebp - 0xcc], xmm0
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x44], eax
movdqu xmmword [ebp - 0xbc], xmm0
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, ecx
and eax, 0x700
cmp eax, 0x100
mov eax, 0
movdqu xmmword [ebp - 0xac], xmm0
setne al
shr ecx, 2
and ecx, 0x3f
mov dword [ebp - 0x34], eax
add ecx, dword [ebp - 0x38]
xor esi, esi
movdqu xmmword [ebp - 0x9c], xmm0
movdqu xmmword [ebp - 0x8c], xmm0
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0xc]
movdqu xmmword [ebp - 0x7c], xmm0
movdqu xmmword [ebp - 0x6c], xmm0
mov eax, dword [ecx + eax*4 + 0xa30]
mov dword [ebp - 0x48], eax
cmp dword [edx + esi*4], 0
mov dword [ebp - 0x3c], esi
jne 0x4045a5
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + esi*4]
movzx edi, byte [edx + edi]
inc edx
mov ecx, dword [edi*4 + 0x4a69c0]
mov dword [ebp - 8], ecx
cmp edi, 0xf
jae 0x404528
xor ecx, ecx
cmp edi, 0xc
setl cl
xor eax, eax
neg ecx
and ecx, 0x15
cmp edi, 2
setl al
neg eax
and eax, 0xfffffff3
add ecx, eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [edx + eax]
shl eax, cl
mov ecx, dword [ebp - 8]
add ecx, eax
inc edx
mov dword [ebp - 8], ecx
mov eax, ecx
sar eax, 8
and eax, 0xfff
test edi, edi
jne 0x40454e
mov edi, dword [ebp - 0x18]
movzx ecx, byte [edx + edi]
inc edx
shl ecx, 8
add eax, ecx
mov ecx, closesocket
cmove eax, ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
movzx ecx, cl
mov dword [edi + esi*4], eax
mov edi, dword [ebp - 0x1c]
mov dword [edi + esi*4], edx
add esi, ecx
mov ecx, dword [ebp - 8]
mov edx, ecx
and edx, 0x100000
sar ecx, 0x15
neg edx
mov edi, dword [ebp - 0x18]
sar edx, 0x15
xor edx, ecx
mov ecx, dword [ebp - 0x48]
imul dx, word [ecx + esi*2]
mov ecx, dword [ebp - 0x40]
movzx ecx, byte [esi + ecx]
mov word [ebp + ecx*2 - 0xdc], dx
xor ecx, ecx
mov edx, dword [ebp - 0x14]
test eax, eax
sete cl
add esi, ecx
cmp esi, 0x40
jl 0x4044d3
jmp 0x4045a8
dec dword [edx + esi*4]
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
mov ax, word [eax + 2]
mov word [ebp - 0xdc], ax
movzx eax, word [ebp + esi*2 - 0x24]
mov esi, dword [ebp + 8]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [ebp - 0x28]
push esi
push dword [ebp - 0x44]
push eax
mov eax, dword [eax + 0x54]
call eax
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov edx, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x10]
jl 0x404450
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
shl eax, 2
push esi
add dword [ecx], eax
mov ecx, dword [edx + esi*4 + 0xa24]
mov eax, ecx
neg eax
push 1
shl eax, 2
add dword [edx + esi*4 + 0xa0c], eax
mov eax, dword [ebp - 0x28]
push 2
push ecx
push dword [edx + esi*4 + 0xa0c]
push eax
mov eax, dword [eax + 0x58]
call eax
add esp, 0x18
pop edi
pop esi
mov esp, ebp
pop ebp
ret