Function at 0x42a084
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov dword [esp + 0x3c], 8
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x38]
mov ebx, dword [esi + 0x20]
mov ebp, dword [esi + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], eax
mov eax, edi
and eax, 0x7fff
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], edi
lea edx, [esi + 0x80]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x38], edx
test ecx, ecx
jne 0x42a0ef
cmp dword [edx], ecx
je 0x42a521
test ebx, ebx
je 0x42a521
lea eax, [ebx + edi]
mov edi, 0x1000
sub edi, ebx
and eax, 0x7fff
cmp ecx, edi
mov dword [esp + 0x34], eax
cmovb edi, ecx
sub ecx, edi
add ebx, edi
mov dword [esi + 0x88], ecx
mov dword [esp + 0x30], ebx
test edi, edi
je 0x42a195
mov ebx, eax
mov eax, 0x8000
mov ecx, edi
sub eax, ebx
cmp eax, edi
cmovb ecx, eax
lea eax, [ebx + 0x90]
push ecx
push dword [esi + 0x84]
add eax, esi
mov dword [esp + 0x34], ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x101
add esp, 0xc
cmp ebx, eax
jae 0x42a171
sub eax, ebx
cmp dword [esp + 0x2c], eax
cmovb eax, dword [esp + 0x2c]
push eax
push dword [esi + 0x84]
lea eax, [esi + 0x8090]
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x2c]
add ebx, eax
add dword [esi + 0x84], eax
and ebx, 0x7fff
sub edi, eax
jne 0x42a11b
mov ebx, dword [esp + 0x30]
lea edx, [esi + 0x80]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x14]
mov eax, 0x8000
sub eax, ebx
cmp eax, ecx
cmovb ecx, eax
cmp dword [edx], 0
mov dword [esp + 0x14], ecx
jne 0x42a1e3
cmp ebx, 0x1000
jae 0x42a1ec
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0x1c], edi
inc eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ebp
jmp 0x42a52f
cmp ebx, 4
jb 0x42a42c
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + esi + 0x90]
xor edx, edx
and eax, 0xffffff
inc edx
mov ecx, eax
mov dword [esp + 0x2c], eax
shr ecx, 0x11
xor ecx, eax
mov eax, dword [esp + 0x24]
and ecx, 0xfff
movzx eax, ax
movzx edi, word [esi + ecx*2 + 0x29272]
mov word [esi + ecx*2 + 0x29272], ax
sub eax, edi
mov ecx, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x28], eax
cmp eax, ecx
ja 0x42a358
and edi, 0x7fff
add edi, 0x90
add edi, esi
mov eax, dword [edi]
and eax, 0xffffff
cmp eax, dword [esp + 0x2c]
jne 0x42a358
mov ecx, dword [esp + 0x1c]
add ecx, 0x90
push 0x20
add ecx, esi
pop edx
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x42a2a7
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x42a2a7
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x42a2a7
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x42a2a7
sub edx, 1
jne 0x42a26a
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
add eax, 0x90
mov dword [esp + 0x34], edx
add eax, esi
mov edx, ecx
sub edx, eax
mov al, byte [ecx]
xor ecx, ecx
sar edx, 1
cmp al, byte [edi]
sete cl
cmp dword [esp + 0x34], 0
lea eax, [ecx + edx*2]
mov ecx, dword [esp + 0x28]
jne 0x42a2e2
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x102
cmp eax, 3
jb 0x42a351
jne 0x42a2f1
cmp ecx, 0x2000
jae 0x42a351
mov edi, dword [esp + 0x20]
cmp eax, ebx
mov edx, ebx
dec ecx
cmovb edx, eax
mov dword [ebp + 1], ecx
mov dword [esp + 0x28], ecx
and ecx, 0x1ff
lea eax, [edx - 3]
movzx ecx, byte [ecx + 0x443980]
mov byte [ebp], al
add ebp, 3
mov al, byte [edi]
shr al, 1
or al, 0x80
mov byte [edi], al
mov eax, dword [esp + 0x28]
shr eax, 8
cmp dword [esp + 0x28], 0x200
movzx eax, byte [eax + 0x443d80]
cmovb eax, ecx
mov ecx, dword [esp + 0x14]
inc word [esi + eax*2 + 0x83d2]
movzx eax, word [edx*2 + 0x44367a]
jmp 0x42a369
mov ecx, dword [esp + 0x14]
xor edx, edx
inc edx
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov byte [ebp], al
inc ebp
movzx eax, al
shr byte [edi], 1
inc word [esi + eax*2 + 0x8192]
mov eax, dword [esp + 0x10]
sub eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], eax
jne 0x42a38f
push 8
pop eax
mov edi, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edi
cmp dword [esp + 0x34], 0
lea eax, [ebp + 1]
cmovne eax, ebp
add dword [esp + 0x18], edx
add dword [esp + 0x24], edx
mov ebp, eax
lea eax, [edx + ecx]
mov ecx, 0x8000
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x14], ecx
sub ebx, edx
and eax, 0x7fff
lea edx, [esi + 0x1926a]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ebx
cmp ebp, edx
jbe 0x42a423
mov eax, dword [esp + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x10]
push 0
push esi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], eax
call fcn.0042aff0
pop ecx
pop ecx
test eax, eax
jne 0x42a52a
mov eax, dword [esi + 0x3c]
mov ebp, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
cmp ebx, 4
jae 0x42a1f0
test ebx, ebx
je 0x42a514
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x18], eax
lea eax, [ebp + 1]
mov dl, byte [edx + esi + 0x90]
mov byte [ebp], dl
shr byte [edi], 1
sub ecx, 1
mov esi, ecx
mov dword [esp + 0x10], ecx
cmove esi, dword [esp + 0x3c]
test ecx, ecx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x44]
cmovne eax, edi
mov edi, eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x20], edi
mov ecx, 0x8000
sete al
inc eax
add ebp, eax
movzx eax, dl
mov edx, dword [esp + 0x24]
inc word [esi + eax*2 + 0x8192]
inc edx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x24], edx
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x14], ecx
and eax, 0x7fff
dec ebx
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x1926a]
cmp ebp, eax
mov eax, dword [esp + 0x18]
jbe 0x42a508
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x10]
push 0
push esi
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], eax
call fcn.0042aff0
pop ecx
pop ecx
test eax, eax
jne 0x42a52a
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x2c]
mov ecx, dword [esi + 0x38]
mov ebp, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ecx
jmp 0x42a50c
mov ecx, dword [esp + 0x10]
test ebx, ebx
jne 0x42a440
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
jmp 0x42a0d1
mov ecx, dword [esp + 0x14]
jmp 0x42a1ba
not eax
shr eax, 0x1f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret