Function at 0x10110690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push edi
push dword [ebp + 8]
mov edi, ecx
call sym.FreeImageRender.dll_protected:_bool___thiscall_CxImage::EncodeSafeCheck_class_CxFile__
test al, al
jne 0x101106e1
cmp word [edi + 0x16], 1
je 0x101106ea
movups xmm0, xmmword [str.JBG_can_save_only_1_bpp_images]
movups xmmword [edi + 0x44], xmm0
movq xmm0, qword [0x101522c4]
movq qword [edi + 0x54], xmm0
mov eax, dword [0x101522cc]
mov dword [edi + 0x5c], eax
mov ax, word [0x101522d0]
mov word [edi + 0x60], ax
mov al, byte [0x101522d2]
mov byte [edi + 0x62], al
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0xc]
mov ecx, edi
push ebx
push esi
mov esi, dword [edi + 0x10]
lea ebx, [eax + 7]
mov dword [ebp - 0x20], eax
sar ebx, 3
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x10], ebx
call sym.FreeImageRender.dll_public:_struct_tagRGBQUAD____thiscall_CxImage::GetPalette_void_const
lea ecx, [eax + 4]
push ecx
push eax
call sym.FreeImageRender.dll_protected:_static_int___cdecl_CxImage::CompareColors_void_const___void_const__
test eax, eax
setns al
dec al
mov byte [ebp - 1], al
mov eax, ebx
imul eax, esi
add eax, eax
push eax
call fcn.1012f850
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1011075c
movups xmm0, xmmword [str.Sorry__not_enough_memory_available_]
pop esi
pop ebx
movups xmmword [edi + 0x44], xmm0
movups xmm0, xmmword [0x10152238]
movups xmmword [edi + 0x54], xmm0
mov eax, dword [0x10152248]
mov dword [edi + 0x64], eax
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
test esi, esi
jle 0x101107b3
xor ecx, ecx
mov dword [ebp - 0x18], esi
lea edx, [esi - 1]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], edx
mov eax, ebx
mov ebx, dword [edi + 0x30]
xor esi, esi
imul ebx, edx
test eax, eax
jle 0x101107a1
nop dword [eax]
mov eax, dword [edi + 0x34]
add ecx, esi
add eax, esi
inc esi
mov dl, byte [eax + ebx]
mov eax, dword [ebp - 0xc]
xor dl, byte [ebp - 1]
mov byte [ecx + eax], dl
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
cmp esi, eax
jl 0x10110780
mov edx, dword [ebp - 0x14]
add ecx, eax
dec edx
sub dword [ebp - 0x18], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], edx
jne 0x10110770
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push ebx
push 0x101108d0
push eax
push 1
push esi
push dword [ebp - 0x20]
lea eax, [ebp - 0x84]
push eax
call fcn.1002aa30
push 0xffffffffffffffff
lea eax, [ebp - 0x84]
push 0xffffffffffffffff
push eax
call fcn.1002ac70
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x1c
lea eax, [ebp - 0x84]
push 3
push eax
call fcn.1002aca0
add esp, 0x40
lea eax, [ebp - 0x84]
push eax
call fcn.1002d870
lea eax, [ebp - 0x84]
push eax
call fcn.1002ddb0
push dword [ebp - 0xc]
call fcn.1012f84b
mov eax, dword [ebx]
add esp, 0xc
mov ecx, ebx
call dword [eax + 0x24]
test eax, eax
je 0x10110866
movups xmm0, xmmword [str.Problem_while_writing_JBG_file]
pop esi
pop ebx
movups xmmword [edi + 0x44], xmm0
movq xmm0, qword [0x101522e4]
movq qword [edi + 0x54], xmm0
mov eax, dword [0x101522ec]
mov dword [edi + 0x5c], eax
mov ax, word [0x101522f0]
mov word [edi + 0x60], ax
mov al, byte [0x101522f2]
mov byte [edi + 0x62], al
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4