Function at 0x447630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6024a0
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x434], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x420]
push eax
push 0x102
push esi
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x428], esi
call fcn.0045c590
lea eax, [ebp - 0x440]
push eax
push 0x115
push esi
call fcn.0045c590
lea eax, [ebp - 0x41c]
push eax
push 0x106
push esi
call fcn.0045c590
mov ax, word [ebp - 0x41c]
add esp, 0x24
test ax, ax
je 0x4476ea
cmp ax, 1
je 0x4476ea
cmp ax, 3
je 0x4476ea
xor eax, eax
push str.unexpected_PhotometricInterpretation__default_to_PHOTOMETRIC_MINISWHITE
push 2
mov word [ebp - 0x41c], ax
call fcn.004406a0
add esp, 8
push esi
call fcn.0045cbe0
push eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 4], 0
call fcn.00489916
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x44771b
push str.Out_of_memory_allocating_TIFF_buffer.
push 0xa
call fcn.004406f0
add esp, 8
mov ax, word [ebp - 0x41c]
mov dword [ebp - 4], 0xffffffff
test ax, ax
je 0x44791b
cmp ax, 1
je 0x44791b
cmp ax, 3
jne 0x447907
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x444]
push eax
push 0x140
push esi
call fcn.0045afe0
movzx ecx, word [ebp - 0x420]
add esp, 0x14
mov eax, dword [ebp - 0x444]
mov edx, dword [ebp - 0x428]
mov esi, dword [ebp - 0x438]
mov dword [ebp - 0x424], 1
shl dword [ebp - 0x424], cl
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x430], eax
test ecx, ecx
jle 0x4477f0
mov dword [ebp - 0x418], 0x100
lea esp, [esp]
mov ax, word [eax]
dec ecx
add dword [ebp - 0x430], 2
cmp ax, word [ebp - 0x418]
jae 0x44784a
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x418]
jae 0x44784a
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x418]
jae 0x44784a
mov eax, dword [ebp - 0x430]
test ecx, ecx
jg 0x4477b0
mov esi, dword [ebp - 0x424]
test esi, esi
jle 0x44799c
xor edx, edx
xor ecx, ecx
mov eax, dword [ebp - 0x444]
inc edx
movzx eax, byte [eax + ecx*2]
mov byte [ebp + ecx*4 - 0x412], al
mov eax, dword [ebp - 0x438]
movzx eax, byte [eax + ecx*2]
mov byte [ebp + ecx*4 - 0x413], al
mov eax, dword [ebp - 0x428]
movzx eax, byte [eax + ecx*2]
mov byte [ebp + ecx*4 - 0x414], al
mov byte [ebp + ecx*4 - 0x411], 0xff
movsx ecx, dx
cmp ecx, esi
jl 0x447802
jmp 0x44799c
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x418], ecx
mov eax, dword [ebp - 0x444]
inc esi
movzx eax, word [eax + ecx*2]
imul ecx, eax, 0xff
mov eax, 0x80008001
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x418]
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp + ecx*4 - 0x412], al
mov eax, dword [ebp - 0x438]
movzx eax, word [eax + ecx*2]
imul ecx, eax, 0xff
mov eax, 0x80008001
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x418]
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp + ecx*4 - 0x413], al
mov eax, dword [ebp - 0x428]
movzx eax, word [eax + ecx*2]
imul ecx, eax, 0xff
mov eax, 0x80008001
imul ecx
add edx, ecx
mov ecx, dword [ebp - 0x418]
sar edx, 0xf
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp + ecx*4 - 0x411], 0xff
mov byte [ebp + ecx*4 - 0x414], al
movsx ecx, si
mov dword [ebp - 0x418], ecx
cmp ecx, dword [ebp - 0x424]
jl 0x447854
jmp 0x44799c
push str.unexpected_PhotometricInterpretation_in_PLTIFFDecoder::DoLoColor__
push 2
call fcn.004406a0
add esp, 8
jmp 0x44799c
movzx ecx, word [ebp - 0x420]
mov esi, 1
shl esi, cl
mov eax, 0xff
cdq
lea ecx, [esi - 1]
idiv ecx
cmp word [ebp - 0x41c], 0
mov edx, 4
mov byte [ebp - 0x429], al
lea eax, [ebp - 0x414]
mov dword [ebp - 0x428], eax
jne 0x447967
lea eax, [ebp + esi*4 - 0x418]
mov edx, 0xfffffffc
mov dword [ebp - 0x428], eax
test esi, esi
jle 0x44799c
movzx eax, byte [ebp - 0x429]
xor ecx, ecx
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x428]
add eax, 2
mov byte [eax - 2], cl
mov byte [eax - 1], cl
mov byte [eax], cl
add ecx, dword [ebp - 0x438]
mov byte [eax + 1], 0xff
add eax, edx
sub esi, 1
jne 0x447983
mov eax, dword [ebp - 0x43c]
push 1
push 0
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x613aec]
mov ecx, dword [ebp - 0x43c]
call esi
cmp word [ebp - 0x420], 8
mov eax, dword [ebp - 0x43c]
mov esi, dword [eax + 0x20]
jbe 0x4479e2
push str.unexpected_bit_depth_in_PLTIFFDecoder::DoLoColor__
push 2
call fcn.004406a0
add esp, 8
jmp 0x447b26
xor eax, eax
mov dword [ebp - 0x430], eax
cmp dword [edi + 8], eax
jle 0x447b26
push 0
push eax
push ebx
push dword [ebp - 0x448]
call fcn.0045da80
add esp, 0x10
cmp eax, 0xffffffff
jne 0x447a36
mov eax, 0x55555556
imul dword [edi + 8]
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x430], eax
jge 0x447a36
push ebx
call fcn.0048864e
push 0x6a4d30
push 7
call fcn.004406f0
add esp, 0xc
cmp word [ebp - 0x420], 4
jne 0x447ac3
mov eax, dword [edi + 4]
xor ecx, ecx
mov dword [ebp - 0x424], eax
cdq
sub eax, edx
mov dword [ebp - 0x418], ecx
sar eax, 1
test eax, eax
jle 0x447aa7
xor edi, edi
movzx ecx, byte [edi + ebx]
mov eax, dword [esi]
shr cl, 4
mov byte [eax + edi*2], cl
movzx ecx, byte [edi + ebx]
mov eax, dword [esi]
and cl, 0xf
mov byte [eax + edi*2 + 1], cl
mov eax, dword [ebp - 0x434]
mov ecx, dword [ebp - 0x418]
inc ecx
movzx edi, cx
mov eax, dword [eax + 4]
mov dword [ebp - 0x424], eax
cdq
sub eax, edx
mov dword [ebp - 0x418], ecx
sar eax, 1
cmp edi, eax
jl 0x447a60
mov edi, dword [ebp - 0x434]
mov edx, dword [ebp - 0x424]
test dl, 1
je 0x447b0d
movzx eax, cx
mov cl, byte [eax + ebx]
mov eax, dword [esi]
shr cl, 4
mov byte [edx + eax - 1], cl
jmp 0x447b0d
cmp word [ebp - 0x440], 1
jne 0x447ae0
push dword [ebp - 0x44c]
push ebx
push dword [esi]
call fcn.005d6ef0
add esp, 0xc
jmp 0x447b0d
mov eax, dword [ebp - 0x434]
xor edi, edi
cmp dword [eax + 4], edi
jle 0x447b0b
xor eax, eax
nop
mov edx, dword [esi]
inc edi
mov cl, byte [ebx + eax*2]
mov byte [eax + edx], cl
mov ecx, dword [ebp - 0x434]
movzx eax, di
cmp eax, dword [ecx + 4]
jl 0x447af0
mov edi, ecx
jmp 0x447b0d
mov edi, eax
mov eax, dword [ebp - 0x430]
add esi, 4
inc eax
mov dword [ebp - 0x430], eax
cmp eax, dword [edi + 8]
jl 0x4479f3
mov edi, dword [ebp - 0x43c]
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.00441170
push ebx
call fcn.0048864e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret 8