Function at 0x1400c96c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 8], rax
mov rsi, rcx
lea rcx, [rsp + 0x20]
mov rbx, rdx
call fcn.140061e90
cmp word [rbx + 0x138], 0
lea rcx, str.Pcx_Rle
lea rax, [0x14021de30]
lea rdx, [rsp + 0x50]
cmovne rax, rcx
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
lea rax, [rax + 1]
mov byte [rdx + rax - 1], cl
test cl, cl
jne 0x1400c9720
movzx ecx, word [rbx + 0x48]
mov r14d, 1
lea r8d, [r14 + 7]
cmp cx, r14w
je 0x1400c9758
cmp cx, 4
jne 0x1400c9750
cmp word [rbx + 0x58], 0x10
jle 0x1400c9758
mov word [rsp + 0x32], r8w
jmp 0x1400c975e
mov word [rsp + 0x32], r14w
cmp cx, 4
jne 0x1400c9772
cmp word [rbx + 0x58], 0x10
jg 0x1400c9772
mov eax, 4
jmp 0x1400c9792
lea eax, [rcx - 1]
mov edx, 0xfffc
test dx, ax
jne 0x1400c978d
cmp cx, 3
je 0x1400c978d
mov word [rsp + 0x30], r14w
jmp 0x1400c9797
mov eax, 3
mov word [rsp + 0x30], ax
mov edx, 0x7f0
cmp cx, dx
je 0x1400c97c4
cmp cx, 2
je 0x1400c97c4
cmp cx, 4
jne 0x1400c97b4
cmp word [rbx + 0x58], 0x10
jg 0x1400c97c4
mov eax, dword [rbx + 0x50]
add eax, 0xf
shr eax, 3
and eax, 0x1ffffffe
jmp 0x1400c97c7
mov eax, dword [rbx + 0x50]
mov dword [rsp + 0x3c], eax
xor edi, edi
cmp cx, dx
mov eax, 0x100
lea rdx, [rsp + 0x20]
mov rcx, rbx
cmove ax, di
mov word [rsp + 0x42], r8w
mov word [rsp + 0x40], ax
call fcn.14005fe70
test ax, ax
jne 0x1400c99cc
mov rdx, qword [rsi]
lea ecx, [rdi + 0xa]
call fcn.1401c1ae4
mov rdx, qword [rsi]
lea ecx, [rdi + 5]
call fcn.1401c1ae4
cmp word [rbx + 0x138], di
mov rdx, qword [rsi]
setne dil
mov ecx, edi
call fcn.1401c1ae4
movsx ecx, word [rsp + 0x32]
mov rdx, qword [rsi]
call fcn.1401c1ae4
xor ecx, ecx
mov rdx, rsi
call fcn.140067160
xor ecx, ecx
mov rdx, rsi
call fcn.140067160
movzx ecx, word [rbx + 0x50]
mov rdx, rsi
dec cx
call fcn.140067160
movzx ecx, word [rbx + 0x54]
mov rdx, rsi
dec cx
call fcn.140067160
movzx ecx, word [rbx + 0x5a]
mov rdx, rsi
call fcn.140067160
movzx ecx, word [rbx + 0x5c]
mov rdx, rsi
call fcn.140067160
movsx ecx, word [rsp + 0x30]
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
movsx eax, word [rsp + 0x32]
imul ecx, eax
cmp ecx, 4
jg 0x1400c98c1
mov rdx, qword [rsp + 0x48]
mov eax, r14d
shl eax, cl
lea rcx, [rbp - 0x30]
lea eax, [rax + rax*2]
movsxd r8, eax
call fcn.1401bd6e0
mov r9, qword [rsi]
lea rcx, [rbp - 0x30]
mov r8, r14
mov edx, 0x30
call fcn.1401c24f8
mov rdx, qword [rsi]
xor ecx, ecx
call fcn.1401c1ae4
movsx ecx, word [rsp + 0x30]
mov rdx, qword [rsi]
call fcn.1401c1ae4
movzx ecx, word [rsp + 0x3c]
mov rdx, rsi
call fcn.140067160
mov ecx, r14d
mov rdx, rsi
call fcn.140067160
xor ecx, ecx
mov rdx, rsi
call fcn.140067160
xor ecx, ecx
mov rdx, rsi
call fcn.140067160
mov r9, qword [rsi]
xor eax, eax
lea edx, [rax + 0x36]
lea rcx, [rbp - 0x30]
mov r8, r14
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov dword [rbp], eax
mov word [rbp + 4], ax
call fcn.1401c24f8
test rax, rax
je 0x1400c99bc
cmp word [rbx + 0x138], 0
movzx r8d, word [rbx + 0x54]
lea r9, [rsp + 0x20]
mov rdx, rbx
mov rcx, rsi
je 0x1400c9971
call fcn.1400c9ac0
jmp 0x1400c9976
call fcn.1400c9be0
movzx edi, ax
test ax, ax
jne 0x1400c99c1
movzx eax, word [rbx + 0x48]
cmp ax, 2
je 0x1400c9995
cmp ax, 4
jne 0x1400c99c1
cmp word [rbx + 0x58], 0x10
jle 0x1400c99c1
mov rdx, qword [rsi]
mov ecx, 0xc
call fcn.1401c1ae4
mov r9, qword [rsi]
mov rcx, qword [rsp + 0x48]
mov r8, r14
mov edx, 0x300
call fcn.1401c24f8
test rax, rax
jne 0x1400c99c1
mov edi, 6
mov rcx, rbx
call fcn.14005dcb0
movzx eax, di
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1401bd600
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret