Function at 0x426290
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4ea5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
mov dword [ebp - 0x14], ecx
sar esi, 4
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x4262c7
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
lea ebx, [esi*8]
mov eax, 0x51eb851f
mul ebx
shr edx, 5
lea eax, [edx + ebx + 8]
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x534], ebx
jae 0x426335
mov eax, dword [edi + 0x530]
test eax, eax
je 0x426304
push eax
call fcn.004a9011
add esp, 4
mov dword [edi + 0x530], 0
lea ecx, [ebx + 1]
push ecx
call fcn.004a8a24
add esp, 4
mov dword [edi + 0x530], eax
test eax, eax
jne 0x42632c
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x534], ebx
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [edi + 0x530]
cmp ecx, dword [edx + 4]
je 0x4263ee
lea esp, [esp]
mov eax, dword [ecx]
sub eax, dword [edi + 0x18]
mov esi, dword [edi + 0x51c]
xor edx, edx
div esi
add ecx, 0x10
add ebx, 8
mov edx, eax
shr edx, 8
and edx, 0xff
shl eax, 8
or edx, eax
mov eax, dword [ecx - 0xc]
sub eax, dword [edi + 0x1c]
mov word [ebp - 0x24], dx
xor edx, edx
div esi
mov edx, eax
shr edx, 8
and edx, 0xff
shl eax, 8
or edx, eax
mov eax, dword [ecx - 8]
sub eax, dword [ecx - 0x10]
mov word [ebp - 0x22], dx
xor edx, edx
div esi
mov edx, eax
shr edx, 8
and edx, 0xff
shl eax, 8
or edx, eax
mov eax, dword [ecx - 4]
sub eax, dword [ecx - 0xc]
mov word [ebp - 0x20], dx
xor edx, edx
div esi
mov edx, eax
shr edx, 8
shl eax, 8
and edx, 0xff
or edx, eax
mov eax, dword [ebp - 0x24]
mov word [ebp - 0x1e], dx
mov edx, dword [ebp - 0x20]
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx - 4], edx
cmp ecx, dword [eax + 4]
jne 0x426350
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp dword [edi + 0x52c], ecx
jae 0x42643a
mov eax, dword [edi + 0x528]
test eax, eax
je 0x426416
push eax
call fcn.004a9011
add esp, 4
mov dword [edi + 0x528], 0
mov edx, dword [ebp - 0x18]
inc edx
push edx
call fcn.004a8a24
add esp, 4
mov dword [edi + 0x528], eax
test eax, eax
je 0x42631a
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x52c], eax
mov ecx, dword [edi + 0x530]
lea eax, [esi*8]
push eax
mov eax, dword [edi + 0x528]
push ecx
lea edx, [ebp - 0x18]
push edx
push eax
call fcn.00492670
add esp, 0x10
test eax, eax
jne 0x42631a
mov edx, dword [ebp - 0x18]
lea ecx, [esi*8]
sub ecx, esi
add ecx, ecx
push ecx
push edx
push esi
push str.vncclient.cpp_:__Sending_CacheZip_Rects_d_Size_d___d__r_n
mov eax, 9
mov ecx, 0x4ecb00
call fcn.00403230
mov eax, esi
sar eax, 8
and eax, 0xff
shl esi, 8
or eax, esi
mov esi, dword [edi + 0x10c]
mov word [ebp - 0x10], ax
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0xe], ecx
mov word [ebp - 0xa], ax
mov eax, dword [ebp - 0x18]
mov ecx, eax
and ecx, 0xff0000
mov edx, eax
shr edx, 0x10
or ecx, edx
mov edx, eax
and edx, 0xff00
shl eax, 0x10
or edx, eax
shr ecx, 8
shl edx, 8
or ecx, edx
add esp, 0x10
mov dword [ebp - 8], 0x700ffff
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 8], 0xffffffff
je 0x42631a
cmp byte [esi + 0x18], 0
mov ebx, 0xc
je 0x42653b
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x21], 0
je 0x42653b
cmp byte [esi + 0x68], 0
je 0x426521
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x6c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
add dword [esi + 0x6c], ebx
jmp 0x426556
push ebx
lea edx, [ebp - 0x10]
push edx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00460e80
mov ebx, dword [ebp - 0x14]
jmp 0x42653e
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00460810
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
test eax, eax
je 0x42631a
mov esi, dword [edi + 0x10c]
cmp dword [esi + 8], 0xffffffff
je 0x42631a
cmp byte [esi + 0x18], 0
mov ebx, 4
je 0x4265aa
mov edx, dword [esi + 0x10]
cmp byte [edx + 0x21], 0
je 0x4265aa
cmp byte [esi + 0x68], 0
je 0x426590
mov eax, dword [esi + 0x64]
add eax, dword [esi + 0x6c]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
add dword [esi + 0x6c], ebx
jmp 0x4265c5
push ebx
lea edx, [ebp - 0x1c]
push edx
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00460e80
mov ebx, dword [ebp - 0x14]
jmp 0x4265ad
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.00460810
xor ecx, ecx
cmp eax, ebx
sete cl
mov eax, ecx
test eax, eax
je 0x42631a
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0x528]
mov edx, dword [edi + 0x10c]
call fcn.00460a30
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.004a8a2f
mov esp, ebp
pop ebp
ret