Function at 0x1401327f0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
lea rbp, [rsp - 0x430]
sub rsp, 0x530
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rsi, rdx
lea rdx, [rsp + 0x20]
mov r14, rcx
call fcn.140132b20
test ax, ax
jne 0x140132834
mov eax, 2
jmp 0x140132af8
cmp byte [rsp + 0x20], 0xa
jne 0x14013282a
movzx eax, byte [rsp + 0x21]
cmp al, 5
ja 0x14013282a
mov ecx, 0x2d
bt ecx, eax
jae 0x14013282a
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x560], rbx
mov qword [rsp + 0x528], r12
call fcn.140060c40
movzx eax, byte [0x1402359a8]
movzx edx, byte [rsp + 0x23]
movups xmm0, xmmword [str.Zsoft_Paintbrush]
movups xmmword [rbp + 0x8e], xmm0
movzx r9d, word [rsp + 0x28]
movzx r10d, word [rsp + 0x2a]
movzx r8d, byte [rsp + 0x61]
mov byte [rbp + 0x9e], al
movzx eax, word [rsp + 0x2c]
xor ebx, ebx
mov dword [rbp - 0x34], eax
movzx eax, word [rsp + 0x2e]
mov r12d, 1
mov dword [rbp - 0x30], eax
movzx eax, word [rsp + 0x24]
mov ecx, 0x80
sub r9d, eax
movzx eax, word [rsp + 0x26]
mov dword [rbp - 0x58], r12d
sub r10d, eax
movzx eax, word [rsp + 0x62]
inc r9d
inc r10d
mov dword [rbp - 0x38], eax
lea eax, [rdx - 0xf]
cmp al, r12b
mov dword [rbp - 0x48], r9d
mov word [rbp - 0x40], r8w
cmova ecx, ebx
mov dword [rbp - 0x44], r10d
mov word [rbp - 0x3e], dx
mov dword [rbp - 0x60], ecx
cmp byte [rsp + 0x22], bl
je 0x140132900
mov word [rbp - 0x18], r12w
cmp r9d, r12d
jl 0x140132aad
cmp r10d, r12d
jl 0x140132aad
test r8b, r8b
je 0x140132aad
mov ecx, edx
imul ecx, r8d
cmp ecx, 3
je 0x140132aad
lea eax, [rcx - 5]
cmp eax, 2
jbe 0x140132aad
cmp r8b, 8
ja 0x140132aad
lea eax, [rdx - 1]
cmp al, 7
jbe 0x140132952
lea eax, [rdx - 0xf]
cmp al, 9
ja 0x140132aad
cmp r8b, 2
jne 0x14013295d
cmp dl, 8
jmp 0x140132966
cmp r8b, 3
jb 0x14013296c
cmp dl, 4
je 0x140132aad
cmp byte [rsp + 0x21], 3
mov qword [rsp + 0x520], r15
jne 0x14013299f
movups xmm0, xmmword [0x1402a1e28]
movups xmm1, xmmword [0x1402a1e38]
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [0x1402a1e48]
movaps xmmword [rsp + 0x50], xmm0
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.14005ee10
movzx r15d, ax
test ax, ax
jne 0x140132a9f
lea r8, [rbp - 0x60]
mov rdx, rsi
mov rcx, r14
cmp byte [rsp + 0x22], bl
je 0x1401329cf
call fcn.140132590
jmp 0x1401329d4
call fcn.140132750
cmp byte [rsp + 0x21], 5
movzx r15d, ax
mov qword [rsp + 0x568], rdi
jne 0x140132a62
mov edi, ebx
nop dword [rax]
mov eax, edi
inc edi
cmp eax, 0x20
jge 0x140132a12
mov rcx, qword [r14]
call fcn.1401c3f28
movzx ebx, ax
cmp ax, 0xffff
je 0x140132a12
cmp ax, 0xc
jne 0x1401329f0
jmp 0x140132a18
cmp bx, 0xc
jne 0x140132a62
movsx ecx, word [rbp - 0x3e]
movsx eax, word [rbp - 0x40]
imul ecx, eax
cmp ecx, 8
jg 0x140132a87
mov r9, qword [r14]
mov eax, r12d
mov r8, r12
shl eax, cl
lea rcx, [rbp + 0x110]
lea eax, [rax + rax*2]
movsxd rdx, eax
call fcn.1401c1e14
test rax, rax
jne 0x140132a4e
lea r15d, [rax + 4]
mov edx, 0x100
mov r8d, 8
lea r9, [rbp + 0x110]
jmp 0x140132a8f
movsx ecx, word [rbp - 0x3e]
movsx eax, word [rbp - 0x40]
imul ecx, eax
sub ecx, 3
cmp ecx, 4
ja 0x140132a87
mov edx, 0x100
mov r8d, 8
lea r9, [rsp + 0x30]
jmp 0x140132a8f
xor r8d, r8d
xor edx, edx
xor r9d, r9d
mov rcx, rsi
call fcn.14005cb20
mov rdi, qword [rsp + 0x568]
movzx eax, r15w
mov r15, qword [rsp + 0x520]
jmp 0x140132ae8
movups xmm0, xmmword [str.Pcx_:_Bad_pictures_size__]
movups xmmword [rsi + 0x74], xmm0
movsd xmm1, qword [0x1402359c0]
movsd qword [rsi + 0x84], xmm1
movzx eax, word [0x1402359c8]
mov word [rsi + 0x8c], ax
movzx eax, byte [0x1402359ca]
mov byte [rsi + 0x8e], al
mov eax, 2
mov rbx, qword [rsp + 0x560]
mov r12, qword [rsp + 0x528]
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0x530
pop r14
pop rsi
pop rbp
ret