Function at 0x45e311
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xdc
sub dword [esp + 0xe8], edx
xor eax, eax
sub dword [esp + 0xe0], edx
push ebx
push ebp
push esi
push edi
movsx edi, word [esp + 0x10c]
xor ebp, ebp
dec edi
mov dword [esp + 0x38], ecx
mov word [esp + 0x3c], ax
lea ecx, [esp + 0xac]
inc ebp
xor ebx, ebx
add ecx, edi
mov dword [esp + 0x2c], ebp
lea eax, [edx + edi*2]
mov dword [esp + 0x5c], ebx
lea edx, [esp + 0xac]
sub dword [esp + 0xf4], edx
mov edx, dword [esp + 0xf8]
mov esi, accept
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edi
movsx eax, word [edx + eax]
mov edx, ebx
add eax, dword [esp + 0xfc]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x1c], edx
movzx eax, byte [ecx + eax]
shl eax, 8
mov dword [esp + 0x4c], eax
test ebp, ebp
jle 0x45e59f
mov ebx, dword [esp + 0xf0]
mov eax, dword [esp + 0x10]
movsx edi, word [esp + 0x104]
sar edi, 0xf
mov dword [esp + 0x58], edi
movzx eax, word [ebx + eax]
mov ebx, dword [esp + 0x100]
cwde
mov dword [esp + 0x50], eax
lea eax, [esp + 0x5c]
lea eax, [eax + ebp*4]
movsx ebx, bx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
lea eax, [eax + ebp*2]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
movsx esi, word [esp + edx*2 + 0x3c]
imul esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x10]
push 0xfffffffffffffff6
movsx eax, word [edx]
movzx edx, word [esp + 0x108]
sar esi, 0x10
sub eax, esi
movsx ecx, ax
imul edx, ecx
imul edi, ecx
pop eax
push 9
sar edx, 0x10
add edx, edi
cmp edx, eax
mov ecx, edx
cmovl ecx, eax
pop eax
cmp edx, eax
cmovg ecx, eax
mov eax, dword [esp + 0x28]
mov edi, ecx
shl edi, 0xa
mov byte [eax], cl
mov eax, edi
lea edx, [edi + 0x400]
test ecx, ecx
jle 0x45e454
sub edi, 0x66
jmp 0x45e456
jne 0x45e45b
sub edx, 0x66
jmp 0x45e469
add edi, 0x66
cmp ecx, 0xffffffff
je 0x45e469
lea edx, [eax + 0x466]
movzx eax, di
imul eax, dword [esp + 0x24]
sar edi, 0x10
imul edi, dword [esp + 0x24]
sar eax, 0x10
add eax, esi
add edi, eax
movzx eax, dx
imul eax, dword [esp + 0x24]
sar edx, 0x10
imul edx, dword [esp + 0x24]
sar eax, 0x10
add eax, esi
mov esi, dword [esp + 0x1c]
add edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov word [esp + esi*2 + 0x3c], di
mov word [eax], dx
lea eax, [ecx + 1]
cmp eax, 4
jl 0x45e4cd
jne 0x45e4bf
mov dword [esp + 0x14], 0x118
jmp 0x45e4fc
movsx eax, cx
imul esi, eax, 0x2b
add esi, 0x6c
lea eax, [esi + 0x2b]
jmp 0x45e4ed
cmp ecx, 0xfffffffc
jg 0x45e4f3
jne 0x45e4df
movzx eax, byte [ebx + 1]
mov esi, 0x118
jmp 0x45e4ed
movsx eax, cx
imul eax, eax, 0x2b
push 0x6c
pop esi
sub esi, eax
lea eax, [esi - 0x2b]
mov dword [esp + 0x14], eax
jmp 0x45e501
movzx eax, byte [ecx + ebx + 5]
mov dword [esp + 0x14], eax
movzx esi, byte [ecx + ebx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x108]
add dword [esp + 0x28], 0x10
mov edx, dword [esp + eax*4 + 0x5c]
movsx eax, word [ecx]
mov ecx, dword [esp + 0x50]
sub eax, edi
cwde
mov edi, ebp
imul ecx, eax
add dword [esp + 0x18], 2
imul ecx, eax
movsx eax, si
movsx esi, bp
imul eax, esi
mov esi, dword [esp + 0x1c]
add ecx, edx
mov ebp, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + esi*4 + 0x5c], eax
movsx esi, di
mov edi, dword [esp + 0x58]
movsx eax, word [ecx]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
cwde
imul ecx, eax
imul ecx, eax
mov eax, dword [esp + 0x14]
cwde
imul eax, esi
add ecx, edx
mov edx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x34]
inc edx
mov dword [esp + 0x1c], edx
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x34], ecx
cmp edx, ebp
jl 0x45e3fa
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov ecx, dword [esp + 0x20]
mov esi, accept
cmp ebp, 4
jge 0x45e607
test ebp, ebp
jle 0x45e5cb
mov eax, ebp
lea edx, [esp + 0xac]
shl eax, 4
mov esi, ebp
add eax, edi
add edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 0x10]
inc al
mov byte [edx], al
lea edx, [edx + 0x10]
sub esi, 1
jne 0x45e5ba
add ebp, ebp
mov dword [esp + 0x2c], ebp
cmp ebp, 4
jge 0x45e726
mov esi, dword [esp + 0x20]
lea edx, [esp + 0xac]
mov eax, ebp
shl eax, 4
add eax, edi
push 4
pop ecx
add edx, eax
sub ecx, ebp
mov al, byte [esi]
lea esi, [esi + 0x10]
mov byte [edx], al
lea edx, [edx + 0x10]
sub ecx, 1
jne 0x45e5f3
jmp 0x45e726
mov edx, ebx
test edi, edi
jle 0x45e738
mov eax, dword [esp + edx*4 + 0x5c]
mov ecx, dword [esp + edx*4 + 0x6c]
cmp eax, ecx
jle 0x45e650
mov dword [esp + edx*4 + 0x9c], eax
mov dword [esp + edx*4 + 0x6c], eax
mov ax, word [esp + edx*2 + 0x44]
mov dword [esp + edx*4 + 0x8c], ecx
mov dword [esp + edx*4 + 0x5c], ecx
movzx ecx, word [esp + edx*2 + 0x3c]
mov word [esp + edx*2 + 0x3c], ax
lea eax, [edx + 4]
mov word [esp + edx*2 + 0x44], cx
mov dword [esp + edx*4 + 0x7c], eax
jmp 0x45e662
mov dword [esp + edx*4 + 0x8c], eax
mov dword [esp + edx*4 + 0x9c], ecx
mov dword [esp + edx*4 + 0x7c], edx
inc edx
cmp edx, 4
jl 0x45e611
mov dword [esp + 0x18], esi
mov ebp, ebx
mov edx, ebx
mov edi, ebx
mov esi, ebx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + esi*4 + 0x9c]
mov eax, esi
cmp ebx, ecx
cmovle ecx, ebx
cmovle eax, edx
mov ebx, ecx
mov edx, eax
mov ecx, dword [esp + esi*4 + 0x8c]
mov eax, esi
cmp ebp, ecx
cmovge eax, edi
cmovge ecx, ebp
inc esi
mov edi, eax
mov ebp, ecx
cmp esi, 4
jl 0x45e678
mov dword [esp + 0x18], ebx
xor ebx, ebx
cmp dword [esp + 0x18], ebp
jge 0x45e706
mov eax, dword [esp + edx*4 + 0x7c]
lea esi, [esp + 0xac]
xor eax, 4
mov dword [esp + edi*4 + 0x8c], ebx
mov dword [esp + edi*4 + 0x7c], eax
mov eax, dword [esp + edx*4 + 0x6c]
mov dword [esp + edi*4 + 0x5c], eax
mov ax, word [esp + edx*2 + 0x44]
mov word [esp + edi*2 + 0x3c], ax
mov dword [esp + edx*4 + 0x9c], VariantInit
shl edx, 4
add esi, edx
add edi, edi
lea edi, [esp + edi*8 + 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, accept
jmp 0x45e668
mov edx, dword [esp + 0x20]
mov ecx, ebx
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + ecx*4 + 0x7c]
sar eax, 2
add byte [edx], al
inc ecx
lea edx, [edx + 0x10]
cmp ecx, 4
jl 0x45e710
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
dec edi
mov ecx, dword [esp + 0x20]
sub eax, 2
dec ecx
jmp 0x45e364
mov ebp, accept
mov ecx, dword [esp + edx*4 + 0x5c]
mov eax, edx
cmp ebp, ecx
mov esi, ecx
cmovle esi, ebp
cmovle eax, ebx
inc edx
mov ebx, eax
mov ebp, esi
cmp edx, 8
jl 0x45e73d
movsx edx, word [esp + 0x10c]
test edx, edx
jle 0x45e780
and eax, 3
lea ecx, [esp + 0xac]
shl eax, 4
push edx
add ecx, eax
push ecx
push dword [esp + 0x40]
call fcn.00505060
add esp, 0xc
mov eax, dword [esp + 0x38]
sar ebx, 2
pop edi
add byte [eax], bl
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret