Function at 0x4501f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x450210
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc14
ret
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x824]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x424]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x10]
test ecx, ecx
jle 0x4502ef
mov dword [esp + 0x18], eax
cdq
idiv ecx
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x4502ef
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x4502d8
push ebx
lea eax, [esp + 0x20]
push edi
push eax
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_long_int__long_int_
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x11]
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 + 0x12]
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
mov edx, dword [esp + ecx*4 + 0x824]
lea eax, [esp + ecx*4 + 0x824]
inc edx
inc edi
mov dword [eax], edx
mov eax, dword [esi + 0xc]
cmp edi, eax
jl 0x45026a
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
inc ebx
add eax, 0x32
cmp ebx, ecx
mov dword [esp + 0x18], eax
jl 0x45024a
xor ebp, ebp
xor ecx, ecx
xor eax, eax
mov ebx, dword [esp + eax + 0x824]
add eax, 4
add ecx, ebx
cmp eax, 0x3fc
mov dword [esp + eax + 0x20], ecx
jle 0x4502f5
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x420]
cmp ebx, eax
jne 0x450328
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc14
ret
sub eax, ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], eax
xor edi, edi
fild qword [esp + 0x10]
mov ecx, dword [esp + edi + 0x24]
mov dword [esp + 0x14], ebp
sub ecx, ebx
mov dword [esp + 0x10], ecx
fild qword [esp + 0x10]
fmul qword [0x4d1380]
fdiv st(1)
call sub.msvcrt.dll__ftol
mov dword [esp + edi + 0x424], eax
add edi, 4
cmp edi, 0x3fc
jle 0x450338
mov eax, dword [esi + 0x28]
cmp eax, ebp
fstp st(0)
jne 0x450423
mov ecx, dword [esi + 0x10]
xor ebx, ebx
cmp ecx, ebp
jle 0x450483
mov eax, ebp
cdq
idiv ecx
add eax, 0x32
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x450483
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x450407
push ebx
lea edx, [esp + 0x20]
push edi
push edx
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_long_int__long_int_
mov eax, dword [eax]
mov ecx, esi
push eax
lea eax, [esp + 0x1c]
push eax
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::RGBtoYUV_struct_tagRGBQUAD_
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x12]
and edx, 0xff
mov al, byte [esp + edx*4 + 0x424]
lea edx, [esp + 0x20]
mov byte [esp + 0x12], al
mov ecx, dword [esp + 0x10]
push ecx
push edx
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 0x4503a8
mov ecx, dword [esi + 0x10]
inc ebx
add ebp, 0x32
cmp ebx, ecx
jl 0x450383
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc14
ret
xor edi, edi
cmp eax, ebp
jle 0x450483
lea eax, [esp + 0x20]
push edi
push eax
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPaletteColor_unsigned_char_
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sym.ConversionShow.exe_public:_struct_tagRGBQUAD___thiscall_CxImage::RGBtoYUV_struct_tagRGBQUAD_
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x12]
and eax, 0xff
mov cl, byte [esp + eax*4 + 0x424]
lea eax, [esp + 0x18]
mov byte [esp + 0x12], cl
mov edx, dword [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 0x450429
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc14
ret