Function at 0x4a71a1
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
xor eax, eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x54], eax
movzx eax, word [ecx + 0xa]
dec eax
movzx ecx, word [ecx + 8]
push ebx
mov ebx, dword [ebp + 0xc]
add eax, ebx
div ebx
push esi
push edi
mov edi, eax
mov esi, dword [ebp + 0x10]
lea eax, [ebx - 1]
mov dword [ebp - 0x50], edi
add eax, ecx
xor edx, edx
div ebx
mov ebx, eax
mov dword [ebp - 0x4c], ebx
test esi, esi
je 0x4a7227
xor eax, eax
cmp dword [esi], eax
jl 0x4a7421
cmp dword [esi + 4], eax
jl 0x4a7421
cmp dword [esi + 8], edi
jg 0x4a7421
cmp dword [esi + 0xc], ebx
jg 0x4a7421
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x54]
mov dword [ebp - 8], eax
jmp 0x4a722a
mov esi, dword [ebp - 0xc]
cmp dword [0xf0e5f8], 0
jne 0x4a7255
xor ecx, ecx
inc ecx
mov dword [0xf0e5f8], ecx
xor edx, edx
mov eax, 0x10000
div ecx
mov dword [ecx*4 + 0xf0e850], eax
inc ecx
cmp ecx, 0x100
jl 0x4a723c
sub edi, dword [ebp - 8]
sub ebx, esi
push 0
push edi
push ebx
mov ebx, dword [ebp - 0x3c]
mov ecx, ebx
call fcn.004a612d
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
imul esi, edi
imul eax, edi
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
call fcn.004a5f32
push 0
mov ecx, ebx
mov dword [ebp - 0x2c], eax
call fcn.004967ce
and dword [ebp - 0x44], 0
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x40], ecx
cmp ax, word [ebx + 8]
jae 0x4a741a
and dword [ebp - 0x38], 0
lea eax, [edi + esi]
mov edx, dword [ebp - 8]
xor esi, esi
cmp si, word [ebx + 0xa]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], eax
jae 0x4a73e6
lea eax, [ecx + 1]
mov dword [ebp - 0x24], eax
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
movzx ecx, word [eax + 8]
cmp dword [ebp - 0x28], ecx
cmovle ecx, dword [ebp - 0x28]
add edx, edi
mov dword [ebp - 0x20], edx
movzx edx, word [eax + 0xa]
cmp dword [ebp - 0x20], edx
cmovle edx, dword [ebp - 0x20]
mov dword [ebp - 0x48], edx
cmp esi, ecx
jge 0x4a7364
movzx eax, word [eax + 0xc]
mov edi, dword [ebp - 0x34]
imul eax, eax, 3
sub ecx, esi
mov esi, edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30]
cmp edi, esi
jge 0x4a7351
mov edx, dword [ebp + 0x10]
mov ebx, esi
imul eax, edi, 3
inc edx
sub ebx, edi
add edx, eax
add dword [ebp - 0x10], ebx
movzx eax, byte [edx + 1]
add dword [ebp - 0x1c], eax
movzx eax, byte [edx]
lea edx, [edx + 3]
add dword [ebp - 0x18], eax
movzx eax, byte [edx - 4]
add dword [ebp - 0x14], eax
sub ebx, 1
jne 0x4a732f
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30]
add eax, edx
mov dword [ebp + 0x10], eax
sub ecx, 1
jne 0x4a731b
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x10]
cmp ebx, 0x100
jl 0x4a7385
mov eax, dword [ebp - 0x14]
cdq
idiv ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ebx
mov ebx, eax
mov eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 0x10]
jmp 0x4a73b0
mov eax, dword [ebx*4 + 0xf0e850]
mov edx, 0x8000
mov ecx, eax
mov ebx, eax
imul ecx, dword [ebp - 0x14]
imul ebx, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
add ecx, edx
add ebx, edx
sar ecx, 0x10
add eax, edx
sar ebx, 0x10
sar eax, 0x10
mov edx, dword [ebp - 0x24]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x34], edx
mov byte [eax], bl
mov ebx, dword [ebp - 0x3c]
mov byte [eax - 1], cl
add eax, 3
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x24], eax
movzx eax, word [ebx + 0xa]
mov dword [ebp - 0x38], ecx
cmp ecx, eax
jl 0x4a72c9
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x28]
mov esi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
movzx eax, word [eax + 0xc]
imul eax, edi
imul eax, eax, 3
add dword [ebp - 0x2c], eax
movzx eax, word [ebx + 0xc]
imul eax, eax, 3
add ecx, eax
movzx eax, word [ebx + 8]
inc edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
cmp edx, eax
jl 0x4a72a4
pop edi
pop esi
pop ebx
leave
ret 0xc
push ecx
push eax
push 0x383
push str.C:Userskjk_src_sumatrapdfextlibdjvuGPixmap.cpp
push 0xe86aa8
lea ecx, [ebp - 0x60]
call fcn.004bef54
push 0xedebc0
lea eax, [ebp - 0x60]
push eax
call fcn.006f5b8c
int3