Function at 0x452a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0xd0b8]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0xcc]
mov dword [esp + 0x28], eax
lea eax, [esi + 0x280]
lea eax, [edx + eax*4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x50], eax
xor ecx, ecx
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [edx + esi*4 + 0xa18]
mov dword [esp + 0x14], eax
lea eax, [esi + 4]
shl eax, 8
add eax, edx
mov dword [esp + 0x20], eax
lea eax, [esi + 7]
shl eax, 8
add eax, edx
mov dword [esp + 0x1c], eax
imul eax, esi, 0x18
push edi
lea edi, [edx + 0xa30]
add edi, eax
mov eax, dword [edi]
lea edi, [edi + 4]
mov ax, word [eax]
mov word [esp + ecx*2 + 0x4c], ax
inc ecx
cmp ecx, 2
jl 0x452ab9
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x18], eax
jle 0x452c81
imul ecx, esi, 3
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x38]
lea edi, [esp + 0x58]
push 0x20
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x2c], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0
mov ecx, dword [eax + ecx*4]
mov eax, ecx
and eax, 0x700
cmp eax, 0x100
pop eax
setne al
shr ecx, 2
and ecx, 0x3f
mov dword [esp + 0x48], eax
add ecx, dword [esp + 0x3c]
xor edi, edi
lea eax, [eax + ecx*2]
mov eax, dword [edx + eax*4 + 0xa30]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], edi
mov eax, dword [ecx + edi*4]
test eax, eax
jne 0x452c32
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edi*4]
mov eax, dword [esp + 0x14]
mov al, byte [edx + eax]
inc edx
mov byte [esp + 0xb], al
cmp byte [esp + 0xb], 0xf
movzx eax, al
mov dword [esp + 0xc], edx
mov eax, dword [eax*4 + 0x4bece0]
mov dword [esp + 0x10], eax
jae 0x452ba4
cmp byte [esp + 0xb], 0xc
sbb ecx, ecx
and ecx, 0x15
cmp byte [esp + 0xb], 2
sbb eax, eax
and eax, 0xfffffff3
add ecx, eax
mov eax, dword [esp + 0x14]
movzx eax, byte [edx + eax]
shl eax, cl
add dword [esp + 0x10], eax
inc edx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov edx, eax
sar edx, 8
and edx, 0xfff
cmp byte [esp + 0xb], 0
jne 0x452bda
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
movzx eax, byte [eax + esi]
mov esi, closesocket
shl eax, 8
add edx, eax
inc dword [esp + 0xc]
mov eax, edx
test eax, eax
cmove edx, esi
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov dword [ecx + edi*4], edx
mov ecx, dword [esp + 0x24]
mov dword [ecx + edi*4], eax
mov ecx, dword [esp + 0x10]
movzx eax, cl
add edi, eax
mov eax, ecx
and ecx, 0x100000
sar eax, 0x15
neg ecx
sar ecx, 0x15
xor ecx, eax
mov eax, dword [esp + 0x40]
movsx ecx, cx
movsx eax, word [eax + edi*2]
imul ecx, eax
mov eax, dword [esp + 0x44]
movzx eax, byte [edi + eax]
mov word [esp + eax*2 + 0x58], cx
xor eax, eax
test edx, edx
sete al
add edi, eax
cmp edi, 0x40
jl 0x452b34
jmp 0x452c36
dec eax
mov dword [ecx + edi*4], eax
mov ecx, dword [esp + 0x28]
mov edx, ecx
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x48]
mov ax, word [eax + ecx*4 + 2]
mov ecx, dword [esp + 0x34]
mov word [esp + 0x58], ax
movzx eax, word [esp + edi*2 + 0x4c]
push eax
push dword [esp + 0x54]
lea eax, [esp + 0x60]
push eax
push esi
call fcn.00458dd0
mov eax, dword [esp + 0x40]
add esp, 0x10
mov edx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x18]
jl 0x452ae3
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + esi*4 + 0xa24]
shl eax, 2
add dword [ecx], eax
mov ecx, dword [esp + 0x1c]
add ecx, 0xa0c
imul eax, edx, 0xfffffffc
push esi
lea ecx, [ecx + esi*4]
add dword [ecx], eax
push ecx
push ecx
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x44]
call fcn.00458f50
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret