Function at 0x4507b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 4], ebx
jne 0x4507d0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
mov edi, 1
cmp eax, ebx
jne 0x45089d
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
jle 0x450901
xor eax, eax
mov dword [esp + 0x14], eax
cdq
idiv ecx
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x450901
mov eax, dword [esi + 0xc]
xor ebx, ebx
test eax, eax
jle 0x45087c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ebx
push ecx
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_long_int__long_int_
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x21]
and ecx, 0xff
and eax, 0xff
lea edx, [ecx + ecx*2]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea ebp, [ecx + edx*8]
mov edx, dword [esp + 0x22]
and edx, 0xff
mov ecx, edx
shl ecx, 4
add ecx, edx
lea edx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea eax, [eax + edx*4]
lea ecx, [ebp + ecx*2]
lea eax, [eax + eax*8]
add ecx, eax
sar ecx, 0xa
cmp ecx, edi
jbe 0x450874
mov edi, ecx
mov eax, dword [esi + 0xc]
inc ebx
cmp ebx, eax
jl 0x450815
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
inc edx
add eax, 0x32
cmp edx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jl 0x4507f5
jmp 0x450901
jle 0x450901
lea ecx, [esp + 0x18]
push ebx
push ecx
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPaletteColor_unsigned_char_
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x21]
and ecx, 0xff
and eax, 0xff
lea edx, [ecx + ecx*2]
lea edx, [edx + edx*4]
lea edx, [edx + edx*4]
lea ebp, [ecx + edx*8]
mov edx, dword [esp + 0x22]
and edx, 0xff
mov ecx, edx
shl ecx, 4
add ecx, edx
lea edx, [eax + eax*2]
lea ecx, [ecx + ecx*8]
lea eax, [eax + edx*4]
lea ecx, [ebp + ecx*2]
lea eax, [eax + eax*8]
add ecx, eax
sar ecx, 0xa
cmp ecx, edi
jbe 0x4508f9
mov edi, ecx
mov eax, dword [esi + 0x28]
inc ebx
cmp ebx, eax
jl 0x45089f
mov dword [esp + 0x20], edi
xor edi, edi
mov dword [esp + 0x24], edi
mov eax, dword [esi + 0x28]
fild qword [esp + 0x20]
cmp eax, edi
fadd qword [0x4d1288]
fldln2
fxch st(1)
fyl2x
fdivr qword [0x4d1380]
fstp qword [esp + 0x28]
jne 0x4509f2
mov ecx, dword [esi + 0x10]
xor ebx, ebx
cmp ecx, edi
jle 0x450a65
xor ebp, ebp
mov eax, ebp
cdq
idiv ecx
add eax, 0x32
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x450a65
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x4509d9
push ebx
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_long_int__long_int_
mov eax, dword [eax]
lea edx, [esp + 0x10]
push eax
push edx
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::RGBtoYUV_struct_tagRGBQUAD_
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x22]
and ecx, 0xff
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fadd qword [0x4d1288]
fldln2
fxch st(1)
fyl2x
fmul qword [esp + 0x28]
call sub.msvcrt.dll__ftol
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::YUVtoRGB_struct_tagRGBQUAD_
mov eax, dword [eax]
push 0
push eax
push ebx
push edi
mov ecx, esi
call sym.ConversionShow.exe_public:_void___thiscall_CxImage::SetPixelColor_long_int__long_int__struct_tagRGBQUAD__bool_
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x450964
mov ecx, dword [esi + 0x10]
inc ebx
add ebp, 0x32
cmp ebx, ecx
jl 0x45093f
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
jle 0x450a65
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPaletteColor_unsigned_char_
mov eax, dword [eax]
lea edx, [esp + 0x18]
push eax
push edx
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::RGBtoYUV_struct_tagRGBQUAD_
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x22]
and ecx, 0xff
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fadd qword [0x4d1288]
fldln2
fxch st(1)
fyl2x
fmul qword [esp + 0x28]
call sub.msvcrt.dll__ftol
mov byte [esp + 0x22], al
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push edx
push eax
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::YUVtoRGB_struct_tagRGBQUAD_
mov eax, dword [eax]
mov ecx, esi
push eax
push edi
call sym.ConversionShow.exe_public:_void___thiscall_CxImage::SetPaletteColor_unsigned_char__struct_tagRGBQUAD_
mov eax, dword [esi + 0x28]
inc edi
cmp edi, eax
jl 0x4509f4
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret