Function at 0x140001630
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x2b0]
sub rsp, 0x3b0
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x20], xmm0
mov rbx, rdx
mov edi, ecx
movdqu xmmword [rsp + 0x30], xmm1
movdqu xmmword [rsp + 0x40], xmm0
call qword [sym.imp.hdf5_tools.dll_h5tools_init]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400016af
movzx eax, byte [0x1400042d0]
cmp al, byte [rcx]
jne 0x1400016af
movzx eax, byte [0x1400042d1]
cmp al, byte [rcx + 1]
jne 0x1400016af
movzx eax, byte [0x1400042d2]
cmp al, byte [rcx + 2]
jne 0x1400016af
lea rcx, str.gif2h5
call qword [sym.imp.hdf5_tools.dll_print_version]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp edi, 3
jge 0x140001700
lea rcx, str.Usage:_gif2h5__GIFFILE___HDFFILE__n
call fcn.140001580
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._______gif2h5__V__n
call fcn.1400015e0
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.1400015e0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x3c0], rsi
lea rdx, [0x140004350]
mov rsi, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x140001737
lea rcx, str.Unable_to_open_GIF_file_for_reading._n
call fcn.140001580
lea ecx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edx, edx
mov qword [rsp + 0x3c8], r14
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
movsxd rdi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test edi, edi
jne 0x140001778
lea rcx, str.File_Size_Zero
call fcn.140001580
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
jne 0x1400017a0
lea rcx, str.Out_of_memory
call fcn.140001580
lea ecx, [r14 + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r9, rbx
mov r8d, 1
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, 1
je 0x1400017d3
lea rcx, str.Corrupted_Input_File
call fcn.140001580
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.1400019d0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x140001813
lea rcx, str.File_Stream_Error_n_n
call fcn.140001580
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
movups xmm0, xmmword [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x70], xmm0
call fcn.140002880
test eax, eax
je 0x140001857
lea rcx, str.HDF_Write_Error_n_n
call fcn.140001580
mov rax, qword [rsp + 0x20]
xor esi, esi
movzx edi, byte [rax + 8]
test rdi, rdi
je 0x140001943
mov ebx, esi
nop dword [rax]
mov rax, qword [rsp + 0x28]
mov edx, 6
mov rcx, qword [rax + rbx*8]
lea rax, [rbp - 0x80]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140001882
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm0
mov rcx, qword [rbp + 0x2a0]
test rcx, rcx
je 0x1400018fd
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + rbx*8]
test rcx, rcx
je 0x14000191a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x28]
mov qword [rax + rbx*8], rsi
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + rbx*8]
test rcx, rcx
je 0x140001937
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x30]
mov qword [rax + rbx*8], rsi
inc rbx
cmp rbx, rdi
jl 0x140001870
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140001961
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], rsi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001976
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14000198b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x28], rsi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000199b
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r14, qword [rsp + 0x3c8]
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x20]
xor eax, eax
mov rdi, qword [r11 + 0x28]
mov rsi, qword [rsp + 0x3c0]
mov rsp, r11
pop rbp
ret