Function at 0x140087c90
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push r12
push r15
lea rbp, [rsp - 0xac8]
sub rsp, 0xbc8
mov rax, qword [0x1402a83b0]
xor rax, rsp
mov qword [rbp + 0xaa0], rax
mov r9, qword [rcx]
mov r12, rcx
mov rbx, r8
mov r15, rdx
lea rcx, [rsp + 0x60]
mov r8d, 0xb40
mov edx, 1
call fcn.1401c1e14
cmp rax, 0xb40
je 0x140087cea
mov eax, 2
jmp 0x140088013
lea rax, [rsp + 0x30]
lea r8, str.SIMPLE
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov edx, 0xb40
mov qword [rsp + 0x20], rax
call fcn.140088080
test ax, ax
je 0x140087ce0
mov eax, dword [rsp + 0x30]
cmp eax, 0x54
je 0x140087d20
cmp eax, 0x46
jne 0x140087ce0
lea rax, [rsp + 0x30]
lea r8, str.BITPIX
lea rcx, [rsp + 0x60]
mov r9d, 1
mov edx, 0xb40
mov qword [rsp + 0x20], rax
call fcn.140088080
test ax, ax
je 0x140087ce0
mov ecx, dword [rsp + 0x30]
lea eax, [rcx + 0x20]
cmp eax, 0x30
ja 0x140087d67
movabs rdx, 0x1010000000001
bt rdx, rax
jb 0x140087dac
cmp ecx, 0x20
je 0x140087dac
movups xmm0, xmmword [str.FITS:_Bad_Bits_Per_Pixel__]
movups xmmword [rbx + 0x74], xmm0
movsd xmm1, qword [0x140219da0]
movsd qword [rbx + 0x84], xmm1
movzx eax, word [0x140219da8]
mov word [rbx + 0x8c], ax
movzx eax, byte [0x140219daa]
mov byte [rbx + 0x8e], al
mov eax, 9
jmp 0x140088013
mov dword [r15], ecx
test ecx, ecx
jns 0x140087db9
neg ecx
mov dword [rsp + 0x30], ecx
mov eax, ecx
lea r8, str.NAXIS
lea rcx, [rsp + 0x60]
cdq
mov r9d, 1
and edx, 7
add eax, edx
mov edx, 0xb40
sar eax, 3
mov dword [r15 + 4], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140088080
test ax, ax
je 0x140087ce0
mov eax, dword [rsp + 0x30]
cmp eax, 0x3e7
ja 0x140088050
test eax, eax
jne 0x140087e48
movups xmm0, xmmword [str.FITS:_Does_not_contain_any_image__]
movups xmmword [rbx + 0x74], xmm0
movups xmm1, xmmword [0x140219de0]
movups xmmword [rbx + 0x84], xmm1
movzx eax, word [0x140219df0]
mov word [rbx + 0x94], ax
movzx eax, byte [0x140219df2]
mov byte [rbx + 0x96], al
mov eax, 9
jmp 0x140088013
cmp eax, 2
jge 0x140087e72
movups xmm0, xmmword [str.FITS:_Bad_z_dimension__]
mov eax, 9
movups xmmword [rbx + 0x74], xmm0
movsd xmm1, qword [0x140219e08]
movsd qword [rbx + 0x84], xmm1
jmp 0x140088013
mov qword [rsp + 0xc08], rsi
mov dword [r15 + 8], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0xbc0], rdi
lea r8, str.BZERO
lea rcx, [rsp + 0x60]
mov r9d, 1
mov edx, 0xb40
mov qword [rsp + 0xbb8], r13
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xbb0], r14
call fcn.140088080
xor r13d, r13d
test ax, ax
lea rsi, [r15 + 0xc]
mov ecx, r13d
mov r14d, r13d
cmovne ecx, dword [rsp + 0x30]
mov dword [r15 + 0x20], ecx
mov qword [r15 + 0x10], r13
mov dword [rsi], r13d
cmp dword [r15 + 8], r13d
jle 0x140087f55
mov edi, r13d
nop word [rax + rax]
inc r14d
lea rdx, str.NAXIS_d
lea rcx, [rsp + 0x38]
mov r8d, r14d
call fcn.1401bea4c
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x60]
mov r9d, 1
mov edx, 0xb40
mov qword [rsp + 0x20], rax
call fcn.140088080
test ax, ax
je 0x140088030
mov eax, dword [rsp + 0x30]
test eax, eax
jle 0x140087fd5
cmp rdi, 3
jge 0x140087f48
mov dword [rsi], eax
inc rdi
add rsi, 4
cmp r14d, dword [r15 + 8]
jl 0x140087ef0
lea rax, [rsp + 0x30]
mov ebx, 2
lea r8, str.END
lea rcx, [rsp + 0x60]
mov edx, 0xb40
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.140088080
test ax, ax
jne 0x140087fcf
mov r9, qword [r12]
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8d, 0xb40
call fcn.1401c1e14
cmp rax, 0xb40
jne 0x140088049
lea rax, [rsp + 0x30]
lea r8, str.END
lea rcx, [rsp + 0x60]
mov r9d, ebx
mov edx, 0xb40
mov qword [rsp + 0x20], rax
call fcn.140088080
test ax, ax
je 0x140087f82
movzx eax, r13w
jmp 0x140087ff3
movups xmm0, xmmword [str.FITS:_Bad_NAXIS__]
movups xmmword [rbx + 0x74], xmm0
movzx eax, word [0x140219e48]
mov word [rbx + 0x84], ax
mov eax, 9
mov r13, qword [rsp + 0xbb8]
mov rdi, qword [rsp + 0xbc0]
mov rsi, qword [rsp + 0xc08]
mov r14, qword [rsp + 0xbb0]
mov rcx, qword [rbp + 0xaa0]
xor rcx, rsp
call fcn.1401bd600
add rsp, 0xbc8
pop r15
pop r12
pop rbx
pop rbp
ret
movups xmm0, xmmword [str.FITS:_Bad_keyword__]
movups xmmword [rbx + 0x74], xmm0
mov eax, dword [0x140219e30]
mov dword [rbx + 0x84], eax
jmp 0x140087fee
mov eax, 4
jmp 0x140087ff3
movups xmm0, xmmword [str.FITS:_Bad_NAXIS_value__]
mov eax, 9
movups xmmword [rbx + 0x74], xmm0
movsd xmm1, qword [0x140219dc8]
movsd qword [rbx + 0x84], xmm1
jmp 0x140088013