Function at 0x140001080
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
mov rax, qword [0x140282ff8]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
xor esi, esi
mov r13d, ecx
lea rcx, str.hdf2gif
mov rbx, rdx
mov r15d, esi
mov edi, esi
mov r12d, esi
lea r14d, [rsi + 2]
call fcn.1401efd10
xor ecx, ecx
call fcn.1401efd20
call fcn.1401efa50
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001123
movzx eax, byte [0x1401fb5f8]
cmp al, byte [rcx]
jne 0x140001123
movzx eax, byte [0x1401fb5f9]
cmp al, byte [rcx + 1]
jne 0x140001123
movzx eax, byte [0x1401fb5fa]
cmp al, byte [rcx + 2]
jne 0x140001123
lea rcx, str.gif2h5
call fcn.1401efd30
xor ecx, ecx
call fcn.1401efd20
cmp r13d, 4
jge 0x14000117f
lea rcx, str.Usage:_h52gif__h5_file___gif_file___i__h5_image__n
call fcn.1400018d0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._______h52gif__V__n
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.________Print_HDF5_library_version_and_exit_n
call fcn.140001010
lea rcx, str.h52gif_expects_at_least_one_h5_image._n
call fcn.1400018d0
mov ecx, 1
call fcn.1401efd20
mov rax, qword [rbx + 8]
add rbx, 0x10
mov qword [rsp + 0x68], rax
dec r13d
mov rax, qword [rbx]
mov qword [rsp + 0x70], rax
cmp r13d, r14d
jle 0x14000121e
mov rdx, qword [rbx + 8]
lea rbx, [rbx + 8]
inc r14d
movzx eax, byte [rdx]
cmp al, byte [0x1401fb604]
jne 0x1400011d5
movzx eax, byte [rdx + 1]
cmp al, byte [0x1401fb605]
jne 0x1400011d5
movzx eax, byte [rdx + 2]
cmp al, byte [0x1401fb606]
jne 0x1400011d5
mov edi, 1
jmp 0x140001214
test edi, edi
je 0x140001255
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], sil
jne 0x1400011e0
inc rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, qword [rbx]
mov r12, rax
mov r8, rax
nop dword [rax + rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
mov byte [r8], cl
lea r8, [r8 + 1]
test cl, cl
jne 0x140001200
mov edi, esi
cmp r14d, r13d
jl 0x1400011a0
mov rax, qword [rsp + 0x70]
lea rdx, [0x1401fb608]
mov dword [0x140286890], 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [0x1402831a0], rax
test rax, rax
jne 0x14000125f
lea rcx, str.Error_opening_gif_file_for_output._Aborting._n
call fcn.1400018d0
jmp 0x140001898
call fcn.140001970
jmp 0x140001898
mov ecx, 1
mov edx, 0xc
mov r8d, ecx
call fcn.1400042b0
call fcn.1400045d0
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call fcn.140004870
mov rbx, rax
test rax, rax
jns 0x1400012ac
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_open_HDF_file_for_input._Aborting._n
call fcn.140001010
jmp 0x140001898
lea rax, [rsp + 0x70]
mov rdx, r12
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x80]
lea rax, [rbp - 0x58]
mov rcx, rbx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x78]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
call fcn.1400020c0
test eax, eax
jns 0x1400012ff
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_get_information_of_the_image._Aborting._n
call fcn.140001010
jmp 0x140001898
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffff
ja 0x140001875
mov rax, qword [rbp - 0x80]
cmp rax, 0xffff
ja 0x140001875
cmp qword [rbp - 0x78], 1
jbe 0x140001347
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Cannot_handle_multiple_planes_image_n
call fcn.140001010
jmp 0x140001898
imul rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, r12
mov rcx, rbx
mov r8, rax
mov qword [rbp - 0x70], rax
call fcn.140002780
test eax, eax
jns 0x140001386
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_read_the_image._Aborting._n
call fcn.140001010
jmp 0x140001898
cmp qword [rsp + 0x70], rsi
je 0x14000143c
lea r9, [rbp - 0x68]
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call fcn.140002590
test eax, eax
jns 0x1400013c6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Unable_to_get_information_of_the_palette._Aborting._n
call fcn.140001010
jmp 0x140001898
mov rcx, qword [rbp - 0x68]
imul rcx, qword [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r8d, r8d
mov rdx, r12
mov r9, rax
mov rcx, rbx
mov rdi, rax
call fcn.1400023b0
test eax, eax
js 0x140001898
mov r15d, dword [rbp - 0x68]
test r15d, r15d
jle 0x140001433
lea rcx, [rdi + 1]
mov r8d, r15d
lea rdx, [rbp + 0x6c1]
nop dword [rax + rax]
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 3]
mov byte [rdx - 1], al
lea rdx, [rdx + 3]
movzx eax, byte [rcx - 3]
mov byte [rdx - 3], al
movzx eax, byte [rcx - 2]
mov byte [rdx - 2], al
sub r8, 1
jne 0x140001410
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call fcn.1400046f0
mov ebx, dword [rsp + 0x78]
mov edi, dword [rbp - 0x80]
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x68], edi
cmp qword [rsp + 0x70], rsi
jne 0x140001494
mov r15d, 0x100
mov edx, esi
mov rcx, rsi
nop word [rax + rax]
movzx eax, dl
lea rcx, [rcx + 1]
not al
inc edx
mov byte [rbp + rcx - 0x41], al
mov byte [rbp + rcx + 0xbf], al
mov byte [rbp + rcx + 0x1bf], al
cmp edx, r15d
jl 0x140001470
jmp 0x1400014e1
test r15d, r15d
jle 0x140001526
lea rcx, [rbp + 0x6c1]
mov r8d, r15d
mov rdx, rsi
nop word [rax + rax]
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 3]
mov byte [rbp + rdx - 0x40], al
lea rdx, [rdx + 1]
movzx eax, byte [rcx - 3]
mov byte [rbp + rdx + 0xbf], al
movzx eax, byte [rcx - 2]
mov byte [rbp + rdx + 0x1bf], al
sub r8, 1
jne 0x1400014b0
test r15d, r15d
jle 0x140001526
mov ecx, esi
nop dword [rax]
nop word [rax + rax]
movsxd rax, ecx
cmp rax, 0x100
jae 0x1400015c0
inc ecx
mov byte [rbp + rax + 0x3c0], sil
mov byte [rbp + rax + 0x4c0], sil
mov byte [rbp + rax + 0x5c0], sil
mov byte [rbp + rax + 0x2c0], sil
cmp ecx, r15d
jl 0x1400014f0
mov r11d, esi
mov r9d, esi
test r15d, r15d
jle 0x1400015e6
mov rdx, rsi
nop dword [rax + rax]
mov r8d, esi
mov rax, rsi
test r9d, r9d
jle 0x140001585
movzx r10d, byte [rbp + rdx - 0x40]
cmp r10b, byte [rbp + rax - 0x40]
jne 0x14000157a
movzx ecx, byte [rbp + rax + 0xc0]
cmp byte [rbp + rdx + 0xc0], cl
jne 0x14000157a
movzx ecx, byte [rbp + rax + 0x1c0]
cmp byte [rbp + rdx + 0x1c0], cl
je 0x140001585
inc r8d
inc rax
cmp r8d, r9d
jl 0x140001551
cmp r8d, r9d
jne 0x1400015c6
movzx eax, byte [rbp + rdx - 0x40]
movzx r8d, r11b
movsxd rcx, r11d
inc r11d
mov byte [rbp + rcx + 0x5c0], al
movzx eax, byte [rbp + rdx + 0xc0]
mov byte [rbp + rcx + 0x4c0], al
movzx eax, byte [rbp + rdx + 0x1c0]
mov byte [rbp + rcx + 0x3c0], al
jmp 0x1400015cf
call fcn.1401eff08
int3
movzx r8d, byte [rbp + rax + 0x2c0]
mov byte [rbp + rdx + 0x2c0], r8b
inc r9d
inc rdx
cmp r9d, r15d
jl 0x140001540
mov r14d, 1
nop dword [rax]
mov ecx, r14d
mov eax, 1
shl eax, cl
cmp eax, r11d
jge 0x140001608
inc r14d
cmp r14d, 8
jl 0x1400015f0
mov r9, qword [0x1402831a0]
mov ecx, r14d
mov r15d, 1
mov r13d, r14d
shl r15d, cl
mov eax, 2
cmp r14d, 1
cmovle r13d, eax
test r9, r9
jne 0x14000164c
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.WriteGIF:_file_not_open_for_writing_n
call fcn.140001010
jmp 0x140001898
mov edx, 1
lea rcx, str.GIF87a
lea r8d, [rdx + 5]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, qword [0x1402831a0]
mov ecx, ebx
call fcn.140001930
mov rdx, qword [0x1402831a0]
mov ecx, edi
call fcn.140001930
mov rdx, qword [0x1402831a0]
lea edi, [r14 - 1]
mov ecx, edi
or ecx, 0x70
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, qword [0x1402831a0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, qword [0x1402831a0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, qword [0x1402831a0]
mov ecx, 0x2c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rbx, qword [0x1402831a0]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rbx, qword [0x1402831a0]
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rdx, qword [0x1402831a0]
mov ecx, dword [rsp + 0x60]
call fcn.140001930
mov rdx, qword [0x1402831a0]
mov ecx, dword [rsp + 0x68]
call fcn.140001930
mov rdx, qword [0x1402831a0]
bts edi, 7
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
test r15d, r15d
jle 0x140001789
mov ebx, r15d
nop dword [rax]
movzx ecx, byte [rbp + rsi + 0x5c0]
mov rdx, qword [0x1402831a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
movzx ecx, byte [rbp + rsi + 0x4c0]
mov rdx, qword [0x1402831a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
movzx ecx, byte [rbp + rsi + 0x3c0]
mov rdx, qword [0x1402831a0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
lea rsi, [rsi + 1]
sub rbx, 1
jne 0x140001740
mov rdx, qword [0x1402831a0]
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov r9d, dword [rsp + 0x68]
lea rax, [rbp + 0x2c0]
mov rdx, qword [rbp - 0x70]
xor r8d, r8d
mov rcx, qword [0x1402831a0]
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x50], 8
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x3c0]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x4c0]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x5c0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call fcn.140001d30
mov rdx, qword [0x1402831a0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [0x1402831a0]
mov ecx, 0x3b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
jne 0x140001848
lea ecx, [rax + 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Error_
call fcn.140001010
jmp 0x140001898
mov rcx, qword [0x1402831a0]
test rcx, rcx
je 0x14000185a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r12, r12
je 0x140001868
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.1401efd00
mov ecx, eax
call fcn.140001060
int3
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0xffff
lea rdx, str.HDF5_image_is_too_large._Limit_is__d_by__d._n
mov r8d, r9d
mov rcx, rax
call fcn.140001010
mov rcx, qword [0x1402831a0]
test rcx, rcx
je 0x1400018aa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r12, r12
je 0x1400018b8
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 1
call fcn.1401efd20
call fcn.1401efd00
mov ecx, eax
call fcn.140001060
int3