Function at 0x4645fd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 8
push ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call fcn.004d952d
add esp, 0xc
test eax, eax
jne 0x4648e0
push ebx
push fcn.00433393
push ebx
push str.1.5.1
call fcn.004dd955
add esp, 0x10
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4648e0
push eax
call fcn.004da556
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4648e0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], esi
add esi, eax
push 0x46435c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x38], esi
call fcn.004dda8c
push ebx
push dword [ebp - 4]
call fcn.004f2fa0
add esp, 0x14
test eax, eax
je 0x46469c
cmp dword [ebp - 0x18], ebx
je 0x464693
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004dc67b
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004ddb69
add esp, 0x2c
cmp dword [ebp - 0x1c], 0x10
jne 0x4646d7
push dword [ebp - 4]
call fcn.004ddc15
pop ecx
cmp dword [ebp - 0xc], 3
jne 0x4646e6
push dword [ebp - 4]
call fcn.004ddcdf
pop ecx
cmp dword [ebp - 0x1c], 8
jge 0x4646f5
push dword [ebp - 4]
call fcn.004ddcdf
pop ecx
push 0x10
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004ddad0
add esp, 0xc
test eax, eax
je 0x464712
push dword [ebp - 4]
call fcn.004ddcdf
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x46471d
cmp dword [ebp - 0xc], 4
jne 0x464726
push dword [ebp - 4]
call fcn.004ddd07
pop ecx
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004ddb3f
add esp, 0xc
test eax, eax
je 0x46475a
fld qword [ebp - 0x44]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [0x54c878]
fstp qword [esp]
push dword [ebp - 4]
call fcn.004ddc9d
add esp, 0x14
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004dccc6
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004ddb69
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004ddaea
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004ddb00
add esp, 0x3c
movzx esi, al
xor eax, eax
push 0xa
pop ecx
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x14]
neg eax
mov dword [ebp - 0x68], eax
xor eax, eax
inc eax
mov word [ebp - 0x64], ax
push ebx
mov eax, esi
shl eax, 3
push ebx
mov word [ebp - 0x62], ax
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x70], 0x28
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x464693
cmp dword [ebp - 0x20], ebx
je 0x464693
test byte [ebp - 0xc], 2
je 0x46480c
push dword [ebp - 4]
call fcn.004e1430
pop ecx
push dword [ebp - 4]
call fcn.004e143d
pop ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xd0]
mov edi, esi
mov dword [ecx + 0xd4], edx
imul edi, dword [ebp - 0x10]
add edi, 3
and edi, 0xfffffffc
cmp eax, ebx
jle 0x4648d3
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
cmp dword [ebp - 0x14], ebx
jbe 0x4648ca
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
lea esi, [ecx + eax]
push ebx
push esi
push dword [ebp - 4]
call fcn.004dccf8
add esp, 0xc
cmp dword [ebp - 0x34], 4
jne 0x4648bc
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x10], ebx
jbe 0x4648bc
movzx ecx, byte [esi + 3]
movzx eax, byte [esi]
imul eax, ecx
cdq
mov ecx, 0xff
idiv ecx
movzx ecx, byte [esi + 3]
mov byte [esi], al
movzx eax, byte [esi + 1]
imul eax, ecx
cdq
mov ecx, 0xff
idiv ecx
movzx ecx, byte [esi + 3]
add esi, 4
mov byte [esi - 3], al
movzx eax, byte [esi - 2]
imul eax, ecx
cdq
mov ecx, 0xff
idiv ecx
inc dword [ebp - 0x24]
mov byte [esi - 2], al
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x10]
jb 0x46486e
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x28], edi
cmp eax, dword [ebp - 0x14]
jb 0x46484a
dec dword [ebp - 0x30]
jne 0x46483b
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004dd121
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x464904
cmp dword [ebp - 8], ebx
je 0x4648f1
push ebx
lea eax, [ebp - 8]
push eax
jmp 0x4648f8
cmp dword [ebp - 4], ebx
je 0x464904
push ebx
push ebx
lea eax, [ebp - 4]
push eax
call fcn.004dd973
add esp, 0xc
mov eax, dword [ebp - 0x18]
jmp 0x464695